:root {
    --ink: #11182d;
    --ink-soft: #334155;
    --muted: #64748b;
    --line: #e2e8f0;
    --surface: #f7f8fc;
    --violet: #7357e8;
    --violet-dark: #5639ca;
    --coral: #fb7185;
    --green: #059669;
    --shadow: 0 24px 70px rgba(15,23,42,.13);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { color: var(--ink); background: white; font-family: 'Plus Jakarta Sans', sans-serif; -webkit-font-smoothing: antialiased; }
body::selection { color: white; background: var(--violet); }
a { color: inherit; }
button, input { font: inherit; }
.landing-container { width: min(1180px,calc(100% - 40px)); margin-inline: auto; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(226,232,240,.8); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.nav-shell { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.public-brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); text-decoration: none; }
.public-brand > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; color: white; background: linear-gradient(135deg,var(--violet),var(--coral)); box-shadow: 0 8px 18px rgba(115,87,232,.22); }
.public-brand svg { width: 18px; }
.public-brand strong { font-size: .95rem; letter-spacing: -.025em; }
.public-nav { display: flex; align-items: center; gap: 1.7rem; }
.public-nav > a { color: #475569; font-size: .76rem; font-weight: 700; text-decoration: none; }
.public-nav > a:hover { color: var(--violet); }
.public-nav .nav-login { display: inline-flex; align-items: center; gap: .4rem; padding: .65rem .85rem; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; box-shadow: 0 3px 10px rgba(15,23,42,.05); }
.nav-login svg { width: 14px; }
.nav-toggle { width: 40px; height: 40px; display: none; place-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: white; cursor: pointer; }
.nav-toggle svg { width: 18px; }

.public-hero { position: relative; overflow: hidden; padding: clamp(5rem,10vw,8.5rem) 0 6rem; background: radial-gradient(circle at 75% 15%,rgba(124,108,245,.12),transparent 32%),radial-gradient(circle at 20% 80%,rgba(251,113,133,.08),transparent 28%),linear-gradient(#fff,#fafbff); }
.public-hero::before { content: ''; position: absolute; inset: 0; opacity: .35; pointer-events: none; background-image: linear-gradient(rgba(15,23,42,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(15,23,42,.035) 1px,transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom,black,transparent 82%); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,.9fr) minmax(520px,1.1fr); gap: clamp(3rem,6vw,6rem); align-items: center; }
.public-eyebrow { display: inline-flex; align-items: center; gap: .45rem; padding: .42rem .65rem; border: 1px solid #ddd6fe; border-radius: 99px; color: #5b21b6; background: #f5f3ff; font-size: .65rem; font-weight: 800; letter-spacing: .02em; }
.public-eyebrow svg { width: 14px; }
.hero-copy h1 { max-width: 640px; margin-top: 1.25rem; font-size: clamp(2.9rem,5.7vw,5.2rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--violet); font-style: normal; }
.hero-copy > p { max-width: 620px; margin-top: 1.4rem; color: var(--muted); font-size: clamp(.95rem,1.3vw,1.08rem); line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.public-btn { min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .75rem 1rem; border: 1px solid transparent; border-radius: 11px; font-size: .75rem; font-weight: 800; text-decoration: none; transition: transform .2s ease,box-shadow .2s ease,background .2s ease; }
.public-btn:hover { transform: translateY(-2px); }
.public-btn svg { width: 15px; }
.public-btn.primary { color: white; background: linear-gradient(135deg,var(--violet),var(--violet-dark)); box-shadow: 0 12px 24px rgba(86,57,202,.22); }
.public-btn.secondary { border-color: var(--line); color: var(--ink); background: white; box-shadow: 0 6px 16px rgba(15,23,42,.05); }
.public-btn.light { color: var(--ink); background: white; box-shadow: 0 12px 30px rgba(0,0,0,.16); }
.hero-proof { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; margin-top: 1.7rem; list-style: none; }
.hero-proof li { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .62rem; font-weight: 700; }
.hero-proof svg { width: 13px; color: var(--green); }

.product-stage { position: relative; min-width: 0; padding: 2rem 0 2rem 1rem; }
.stage-glow { position: absolute; width: 80%; height: 80%; top: 5%; left: 10%; border-radius: 50%; background: linear-gradient(135deg,rgba(115,87,232,.32),rgba(251,113,133,.2)); filter: blur(60px); }
.product-window { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: white; box-shadow: 0 35px 90px rgba(15,23,42,.2),0 0 0 1px rgba(15,23,42,.05); transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.product-window-bar { height: 43px; display: flex; align-items: center; gap: .35rem; padding: 0 .8rem; border-bottom: 1px solid var(--line); background: #f8fafc; }
.product-window-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.product-window-bar > span:first-child { background: #fb7185; }
.product-window-bar > span:nth-child(2) { background: #fbbf24; }
.product-window-bar > span:nth-child(3) { background: #34d399; }
.product-window-bar strong { margin-left: .5rem; color: #475569; font-size: .52rem; }
.product-window-bar small { margin-left: auto; color: #94a3b8; font-size: .48rem; }
.product-window-body { min-height: 420px; display: grid; grid-template-columns: 52px 1.15fr .85fr; }
.mock-sidebar { display: grid; align-content: start; justify-items: center; gap: .85rem; padding: .8rem .5rem; color: #94a3b8; background: #11182d; }
.mock-sidebar > svg { width: 15px; }
.mock-sidebar > svg.active { color: #c4b5fd; }
.mock-logo { width: 27px; height: 27px; display: grid; place-items: center; margin-bottom: .7rem; border-radius: 8px; color: white; background: linear-gradient(135deg,var(--violet),var(--coral)); }
.mock-logo svg { width: 14px; }
.mock-builder { padding: 1.5rem 1.2rem; border-right: 1px solid var(--line); background: #f8fafc; }
.mock-kicker { color: var(--violet); font-size: .45rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.mock-builder h2 { max-width: 220px; margin: .35rem 0 1.2rem; color: #1e293b; font-size: 1rem; line-height: 1.25; letter-spacing: -.035em; }
.mock-route-card { display: grid; grid-template-columns: 40px 1fr 14px; gap: .55rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 4px 10px rgba(15,23,42,.05); }
.mock-route-card > span { color: var(--violet); font-size: .48rem; font-weight: 900; }
.mock-route-card div { min-width: 0; display: grid; gap: .15rem; }
.mock-route-card strong { font-size: .58rem; }
.mock-route-card small { overflow: hidden; color: #94a3b8; font-size: .42rem; text-overflow: ellipsis; white-space: nowrap; }
.mock-route-card svg { width: 13px; color: #cbd5e1; }
.mock-route-line { width: 1px; height: 18px; margin-left: 27px; background: #c4b5fd; }
.mock-add { display: flex; align-items: center; justify-content: center; gap: .35rem; margin-top: .8rem; padding: .55rem; border: 1px dashed #c4b5fd; border-radius: 9px; color: var(--violet); background: #f5f3ff; font-size: .48rem; font-weight: 800; }
.mock-add svg { width: 12px; }
.mock-document { padding: 1rem; background: #eef1f7; }
.mock-document > span { display: block; margin-bottom: .6rem; color: #64748b; font-size: .45rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.mock-document article { min-height: 335px; display: grid; grid-template-rows: 88px 1fr auto; overflow: hidden; background: white; box-shadow: 0 10px 24px rgba(15,23,42,.12); }
.mock-document article header { display: grid; align-content: end; gap: .15rem; padding: .8rem; color: white; background: linear-gradient(135deg,#272645,#51517d); }
.mock-document article header strong { font-family: Georgia,serif; font-size: .7rem; }
.mock-document article header small { opacity: .7; font-size: .4rem; }
.mock-document article > div { padding: 1rem .8rem; }
.mock-document article > div > span { color: #b38b34; font-size: .4rem; font-weight: 900; text-transform: uppercase; }
.mock-document h3 { margin-top: .3rem; font-family: Georgia,serif; font-size: .72rem; line-height: 1.3; }
.mock-document p { margin-top: .5rem; color: #64748b; font-size: .43rem; line-height: 1.6; }
.mock-document hr { margin: .7rem 0; border: 0; border-top: 1px solid #e2e8f0; }
.mock-document article > div > small { color: #b38b34; font-size: .4rem; font-weight: 700; }
.mock-document footer { padding: .45rem .8rem; border-top: 1px solid #e2e8f0; color: #94a3b8; font-size: .36rem; }
.stage-card { position: absolute; z-index: 3; right: -22px; bottom: 4px; display: flex; align-items: center; gap: .55rem; padding: .7rem .8rem; border: 1px solid rgba(255,255,255,.8); border-radius: 12px; background: rgba(255,255,255,.94); box-shadow: 0 18px 40px rgba(15,23,42,.16); backdrop-filter: blur(10px); }
.stage-card > svg { width: 18px; color: var(--green); }
.stage-card > span { display: grid; gap: .08rem; }
.stage-card strong { font-size: .56rem; }
.stage-card small { color: var(--muted); font-size: .44rem; }

.friction-section,
.feature-section,
.guide-section { padding: clamp(5rem,9vw,8rem) 0; }
.public-section-heading { max-width: 600px; }
.public-section-heading.centred { margin-inline: auto; text-align: center; }
.public-kicker { color: var(--violet); font-size: .64rem; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.public-section-heading h2 { margin-top: .65rem; font-size: clamp(2rem,4vw,3.3rem); line-height: 1.08; letter-spacing: -.052em; }
.public-section-heading > p { margin-top: 1rem; color: var(--muted); font-size: .9rem; line-height: 1.75; }
.friction-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin-top: 3rem; }
.friction-grid article { padding: 1.4rem; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.friction-grid article > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--violet); background: #ede9fe; }
.friction-grid article:nth-child(2) > span { color: #be123c; background: #ffe4e6; }
.friction-grid article:nth-child(3) > span { color: #047857; background: #d1fae5; }
.friction-grid svg { width: 18px; }
.friction-grid h3 { margin-top: 1rem; font-size: .9rem; }
.friction-grid p { margin-top: .55rem; color: var(--muted); font-size: .73rem; line-height: 1.65; }

.workflow-section { padding: clamp(5rem,9vw,8rem) 0; color: white; background: #11182d; }
.workflow-shell { display: grid; grid-template-columns: minmax(0,.8fr) minmax(460px,1.2fr); gap: clamp(3rem,8vw,8rem); align-items: center; }
.workflow-section .public-kicker { color: #c4b5fd; }
.workflow-section .public-section-heading > p { color: #94a3b8; }
.workflow-list { display: grid; list-style: none; }
.workflow-list li { display: grid; grid-template-columns: 45px 1fr; gap: 1rem; padding: 1.35rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.workflow-list li:first-child { border-top: 1px solid rgba(255,255,255,.1); }
.workflow-list li > span { color: #a78bfa; font-size: .62rem; font-weight: 900; letter-spacing: .08em; }
.workflow-list div { display: grid; gap: .35rem; }
.workflow-list strong { font-size: .9rem; }
.workflow-list p { max-width: 520px; color: #94a3b8; font-size: .72rem; line-height: 1.65; }

.feature-section { background: var(--surface); }
.feature-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1rem; }
.feature-card { min-height: 300px; overflow: hidden; padding: clamp(1.4rem,3vw,2rem); border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(15,23,42,.05); }
.feature-card h3 { max-width: 500px; margin-top: .55rem; font-size: clamp(1.35rem,2.5vw,2rem); line-height: 1.15; letter-spacing: -.04em; }
.feature-card p { max-width: 520px; margin-top: .7rem; color: var(--muted); font-size: .74rem; line-height: 1.65; }
.feature-large { grid-row: span 2; display: grid; grid-template-rows: auto 1fr; }
.library-stack { align-self: end; display: grid; gap: .55rem; margin-top: 2rem; padding: 1rem; border-radius: 15px; background: #f8fafc; }
.library-stack > span { display: grid; grid-template-columns: 34px 1fr; column-gap: .65rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 4px 10px rgba(15,23,42,.04); }
.library-stack svg { grid-row: 1 / 3; width: 15px; color: var(--violet); }
.library-stack strong { font-size: .62rem; }
.library-stack small { color: var(--muted); font-size: .5rem; }
.feature-card.dark { color: white; background: radial-gradient(circle at 90% 15%,rgba(251,113,133,.22),transparent 28%),linear-gradient(135deg,#11182d,#28234e); }
.feature-card.dark .public-kicker { color: #c4b5fd; }
.feature-card.dark p { color: #94a3b8; }
.palette-row { display: flex; gap: .55rem; margin-top: 2rem; }
.palette-row span { width: 38px; height: 38px; border: 3px solid rgba(255,255,255,.18); border-radius: 50%; background: #7357e8; }
.palette-row span:nth-child(2) { background: #fb7185; }
.palette-row span:nth-child(3) { background: #c9a961; }
.palette-row span:nth-child(4) { background: #f8fafc; }
.ai-line { display: flex; align-items: center; gap: .6rem; margin-top: 1.7rem; padding: .75rem; border: 1px solid #ddd6fe; border-radius: 11px; color: #5b21b6; background: #f5f3ff; font-size: .6rem; font-weight: 800; }
.ai-line svg { width: 14px; }
.ai-line svg:last-child { margin-left: auto; }

.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem,8vw,7rem); align-items: center; }
.guide-image { position: relative; min-height: 520px; overflow: hidden; border-radius: 24px; background: var(--ink); box-shadow: var(--shadow); }
.guide-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top,rgba(15,23,42,.55),transparent 55%); }
.guide-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.guide-image > span { position: absolute; z-index: 2; left: 1.2rem; bottom: 1.2rem; display: flex; align-items: center; gap: .45rem; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.18); border-radius: 99px; color: white; background: rgba(15,23,42,.62); font-size: .62rem; font-weight: 800; backdrop-filter: blur(10px); }
.guide-image svg { width: 14px; }
.guide-benefits { display: grid; gap: 1rem; margin-top: 1.5rem; list-style: none; }
.guide-benefits li { display: flex; gap: .65rem; }
.guide-benefits li > svg { width: 18px; flex: 0 0 auto; color: var(--green); }
.guide-benefits li > span { display: grid; gap: .2rem; }
.guide-benefits strong { font-size: .74rem; }
.guide-benefits small { color: var(--muted); font-size: .64rem; line-height: 1.55; }

.pilot-section { padding: 0 0 clamp(5rem,9vw,8rem); }
.pilot-card { display: flex; align-items: center; justify-content: space-between; gap: 2rem; overflow: hidden; padding: clamp(2rem,5vw,4rem); border-radius: 24px; color: white; background: radial-gradient(circle at 85% 20%,rgba(251,113,133,.28),transparent 30%),linear-gradient(135deg,#5b3fd3,#28234e); box-shadow: 0 25px 65px rgba(86,57,202,.22); }
.pilot-card .public-kicker { color: #ddd6fe; }
.pilot-card h2 { max-width: 700px; margin-top: .55rem; font-size: clamp(1.8rem,4vw,3rem); line-height: 1.1; letter-spacing: -.05em; }
.pilot-card p { max-width: 620px; margin-top: .7rem; color: #ddd6fe; font-size: .76rem; line-height: 1.65; }
.pilot-card .public-btn { flex: 0 0 auto; }

.public-footer { padding: 3rem 0; color: #94a3b8; background: #0c1221; }
.public-footer .public-brand { color: white; }
.footer-shell { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.footer-shell > div:first-child p { margin-top: .7rem; font-size: .64rem; }
.footer-shell > div:nth-child(2) { display: flex; gap: 1.2rem; }
.footer-shell > div:nth-child(2) a { color: #cbd5e1; font-size: .64rem; font-weight: 700; text-decoration: none; }
.footer-shell > div:nth-child(2) a:hover { color: white; }
.footer-shell > small { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .56rem; }

:focus-visible { outline: 3px solid rgba(115,87,232,.35); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}

@media (max-width: 1050px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy { max-width: 760px; text-align: center; margin-inline: auto; }
    .hero-copy > p { margin-inline: auto; }
    .hero-actions,.hero-proof { justify-content: center; }
    .product-stage { width: min(720px,100%); margin-inline: auto; padding-left: 0; }
    .stage-card { right: -5px; }
}
@media (max-width: 820px) {
    .nav-toggle { display: grid; }
    .public-nav { position: absolute; top: calc(100% + 1px); left: 20px; right: 20px; display: none; align-items: stretch; flex-direction: column; gap: .25rem; padding: .7rem; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
    .public-nav.open { display: flex; }
    .public-nav > a { padding: .7rem; }
    .public-nav .nav-login { justify-content: center; margin-top: .25rem; }
    .friction-grid { grid-template-columns: 1fr; }
    .workflow-shell { grid-template-columns: 1fr; }
    .feature-grid { grid-template-columns: 1fr; }
    .feature-large { grid-row: auto; }
    .guide-grid { grid-template-columns: 1fr; }
    .guide-image { min-height: 420px; }
    .pilot-card { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 620px) {
    .landing-container { width: min(100% - 28px,1180px); }
    .public-hero { padding-top: 4.5rem; }
    .hero-copy h1 { font-size: clamp(2.5rem,14vw,3.8rem); }
    .hero-actions { display: grid; grid-template-columns: 1fr; }
    .hero-proof { align-items: flex-start; flex-direction: column; width: max-content; margin-inline: auto; }
    .product-window { transform: none; }
    .product-window-body { min-height: 340px; grid-template-columns: 38px 1fr; }
    .mock-sidebar { padding-inline: .3rem; }
    .mock-document { display: none; }
    .stage-card { position: relative; right: auto; bottom: auto; width: max-content; margin: .8rem auto 0; }
    .feature-card { min-height: auto; }
    .guide-image { min-height: 330px; }
    .footer-shell { grid-template-columns: 1fr; }
    .footer-shell > div:nth-child(2) { flex-wrap: wrap; }
    .footer-shell > small { grid-column: auto; }
}
