:root {
    --bg: #f4efe7;
    --bg-soft: #fffaf3;
    --surface: rgba(255, 252, 246, 0.86);
    --surface-strong: #fffdf8;
    --text: #191612;
    --muted: #6f675f;
    --line: rgba(25, 22, 18, 0.1);
    --primary: #1f9d68;
    --primary-dark: #16784f;
    --accent: #ff7a1a;
    --accent-soft: #ffd8b7;
    --shadow: 0 30px 80px rgba(32, 24, 14, 0.12);
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 122, 26, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(31, 157, 104, 0.16), transparent 24%),
        linear-gradient(180deg, #fff8ee 0%, #f6efe6 46%, #f1e7da 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

.page-shell {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
    position: relative;
}

.page-shell::before,
.page-shell::after {
    content: '';
    position: fixed;
    inset: auto;
    z-index: -1;
    border-radius: 999px;
    filter: blur(18px);
    opacity: 0.8;
}

.page-shell::before {
    width: 280px;
    height: 280px;
    top: 10%;
    right: 4%;
    background: rgba(255, 122, 26, 0.16);
}

.page-shell::after {
    width: 320px;
    height: 320px;
    bottom: 6%;
    left: 2%;
    background: rgba(31, 157, 104, 0.12);
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, #0d5f3c 100%);
    box-shadow: 0 18px 36px rgba(31, 157, 104, 0.28);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.topnav a,
.btn,
.eyebrow,
h1,
h2,
h3,
summary {
    font-family: 'Sora', sans-serif;
}

.brand-text small {
    color: var(--muted);
    font-size: 0.8rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 14px 20px;
    background: rgba(255, 252, 247, 0.74);
    border: 1px solid rgba(25, 22, 18, 0.08);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(40, 28, 18, 0.06);
}

.topnav a {
    font-size: 0.92rem;
    color: var(--muted);
}

.topnav a:hover,
.topnav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--text);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn,
.mobile-menu {
    display: none;
}

.mobile-menu-btn {
    border: 0;
    background: rgba(255, 255, 255, 0.72);
    width: 48px;
    height: 48px;
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    box-shadow: 0 12px 28px rgba(40, 28, 18, 0.08);
}

.mobile-menu-btn span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.mobile-menu {
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 252, 247, 0.96);
    border: 1px solid rgba(25, 22, 18, 0.08);
    box-shadow: var(--shadow);
    margin-bottom: 12px;
}

.mobile-menu a {
    display: block;
    padding: 12px 6px;
    border-bottom: 1px solid var(--line);
}

.mobile-menu a:last-child {
    border-bottom: 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 13px 20px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, #126942 100%);
    box-shadow: 0 18px 34px rgba(31, 157, 104, 0.24);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(25, 22, 18, 0.12);
}

.btn-ghost {
    color: var(--text);
    background: transparent;
    border-color: rgba(25, 22, 18, 0.12);
}

.btn-large {
    padding: 16px 26px;
    font-size: 1rem;
}

.section {
    padding: 72px 0;
}

.hero {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 44px;
    align-items: center;
    min-height: calc(100vh - 110px);
    padding-top: 28px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-dark);
    background: rgba(31, 157, 104, 0.11);
    border: 1px solid rgba(31, 157, 104, 0.14);
}

.hero h1,
.section-heading h2,
.cta-box h2 {
    margin: 18px 0 14px;
    line-height: 0.98;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(2.9rem, 5.5vw, 5.2rem);
    max-width: 11ch;
}

.hero-text,
.section-heading p,
.module-stack p,
.timeline-item p,
.cta-box p,
.faq-list p,
.feature-card p,
.proof-band span,
.module-highlight li,
.site-footer span,
.site-footer small {
    color: var(--muted);
    line-height: 1.68;
}

.hero-text {
    max-width: 60ch;
    font-size: 1.07rem;
}

.hero-actions,
.cta-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.hero-notes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 34px;
}

.hero-notes div,
.proof-band div,
.feature-card,
.module-highlight,
.timeline-item,
.faq-list details,
.floating-card,
.visual-browser,
.cta-box {
    background: var(--surface);
    border: 1px solid rgba(25, 22, 18, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-notes div {
    padding: 18px;
    border-radius: var(--radius-md);
}

.hero-notes strong,
.proof-band strong,
.feature-card h3,
.module-stack h3,
.module-highlight h3,
.timeline-item strong,
.cta-box h2,
.faq-list summary,
.metrics-row strong,
.visual-grid h2,
.floating-card strong {
    display: block;
    color: var(--text);
}

.hero-notes span,
.floating-card small,
.metrics-row span,
.metrics-row small,
.visual-grid span,
.chat-preview li span,
.proof-band span {
    font-size: 0.92rem;
}

.hero-visual {
    position: relative;
    min-height: 620px;
}

.visual-browser {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
}

.browser-bar {
    display: flex;
    gap: 8px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.browser-bar span {
    width: 11px;
    height: 11px;
    border-radius: 999px;
    background: rgba(25, 22, 18, 0.18);
}

.browser-body {
    padding: 22px;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.metrics-row article,
.chat-preview,
.pipeline-preview,
.module-stack article {
    background: var(--surface-strong);
    border: 1px solid rgba(25, 22, 18, 0.08);
}

.metrics-row article {
    padding: 18px;
    border-radius: 18px;
}

.metrics-row strong {
    margin: 8px 0 4px;
    font-size: 1.8rem;
}

.visual-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 14px;
    margin-top: 14px;
}

.chat-preview,
.pipeline-preview {
    border-radius: 22px;
    padding: 18px;
}

.chat-preview header,
.pipeline-preview header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.chat-preview ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.chat-preview li {
    padding: 14px;
    border-radius: 16px;
    background: #fff8ef;
    border: 1px solid rgba(25, 22, 18, 0.06);
}

.chat-preview li strong {
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.kanban-columns {
    display: grid;
    gap: 12px;
}

.kanban-columns article {
    padding: 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(31, 157, 104, 0.1) 0%, rgba(255, 122, 26, 0.08) 100%);
}

.kanban-columns strong {
    margin-top: 6px;
    font-size: 1.4rem;
}

.floating-card {
    position: absolute;
    padding: 18px;
    border-radius: 20px;
    max-width: 220px;
}

.floating-card span {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.floating-card-left {
    left: -24px;
    bottom: 110px;
}

.floating-card-right {
    right: -18px;
    top: 120px;
}

.proof-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 18px;
    border-radius: 28px;
}

.proof-band div {
    padding: 20px;
    border-radius: 20px;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 28px;
}

.section-heading h2,
.cta-box h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 24px;
    border-radius: 24px;
}

.feature-card i {
    width: 52px;
    height: 52px;
    display: inline-grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, #cc5f10 100%);
    box-shadow: 0 16px 26px rgba(255, 122, 26, 0.24);
}

.feature-card h3 {
    margin: 18px 0 10px;
    font-size: 1.18rem;
}

.modules-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 20px;
    align-items: start;
}

.module-stack {
    display: grid;
    gap: 14px;
}

.module-stack article {
    display: grid;
    grid-template-columns: 78px 1fr;
    gap: 18px;
    align-items: start;
    padding: 20px;
    border-radius: 22px;
}

.module-stack span {
    width: 58px;
    height: 58px;
    display: inline-grid;
    place-items: center;
    border-radius: 18px;
    color: #fff;
    font-family: 'Sora', sans-serif;
    font-weight: 700;
    background: linear-gradient(135deg, #111111 0%, #343434 100%);
}

.module-stack h3 {
    margin: 0 0 8px;
}

.module-highlight {
    padding: 26px;
    border-radius: 28px;
}

.module-highlight ul {
    margin: 18px 0 26px;
    padding-left: 18px;
}

.module-highlight li + li {
    margin-top: 10px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.timeline-item {
    padding: 24px;
    border-radius: 24px;
    min-height: 220px;
}

.timeline-item strong {
    margin-bottom: 12px;
    font-size: 1.1rem;
}

.cta-section {
    padding-top: 24px;
}

.cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 252, 246, 0.86) 0%, rgba(238, 248, 243, 0.96) 100%);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 20px 22px;
    border-radius: 22px;
}

.faq-list summary {
    cursor: pointer;
    list-style: none;
    font-size: 1rem;
    font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list p {
    margin: 12px 0 0;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0 42px;
    border-top: 1px solid rgba(25, 22, 18, 0.08);
    margin-top: 22px;
}

.site-footer strong,
.site-footer a {
    font-family: 'Sora', sans-serif;
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.22s;
}

@media (max-width: 1100px) {
    .hero,
    .modules-layout,
    .timeline,
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: auto;
    }

    .hero-copy,
    .hero-visual,
    .modules-layout > *,
    .timeline-item,
    .feature-card {
        grid-column: auto;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        min-height: auto;
        padding-bottom: 80px;
    }

    .floating-card-left {
        left: 12px;
        bottom: 12px;
    }

    .floating-card-right {
        right: 12px;
        top: 16px;
    }

    .proof-band,
    .metrics-row,
    .visual-grid,
    .hero-notes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .topnav,
    .topbar-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .mobile-menu.is-open {
        display: block;
    }

    .proof-band,
    .feature-grid,
    .modules-layout,
    .timeline,
    .hero-notes,
    .metrics-row,
    .visual-grid,
    .cta-box {
        grid-template-columns: 1fr;
    }

    .cta-box {
        display: grid;
    }

    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--container));
    }

    .section {
        padding: 56px 0;
    }

    .hero {
        padding-top: 8px;
        gap: 26px;
    }

    .hero h1 {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
        max-width: 100%;
    }

    .browser-body,
    .feature-card,
    .timeline-item,
    .module-highlight,
    .cta-box,
    .proof-band,
    .faq-list details {
        padding: 20px;
    }

    .module-stack article {
        grid-template-columns: 1fr;
    }

    .floating-card {
        position: static;
        max-width: none;
        margin-top: 14px;
    }

    .hero-visual {
        padding-bottom: 0;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .cta-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal,
    .btn {
        transition: none;
    }
}