/* Landing page sections. Requires base.css. */
/* ---------- Top bar & navbar ---------- */
.topbar { background: var(--gray-bg); font-size: .85rem; }
.topbar__inner { display: flex; justify-content: flex-end; gap: 1.25rem; padding: .4rem 0; }
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--brand-strong); }
.nav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .5rem; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; font-family: var(--font-body); color: var(--ink); }
.brand__mark { width: 32px; height: 32px; flex: none; object-fit: contain; } /* the app's Optilogist mark (static/img/brand) */
.brand__mark--dark, html[data-theme="dark"] .brand__mark--light { display: none; }
html[data-theme="dark"] .brand__mark--dark { display: block; }
.nav__menu { display: flex; align-items: center; gap: 1.75rem; flex: 1; }
.nav__links { display: flex; gap: 1.75rem; }
.nav__actions { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.nav__menu a:not(.btn), .nav__menu .link { text-decoration: none; font-weight: 500; background: none; border: 0; font: inherit; font-weight: 500; color: inherit; cursor: pointer; padding: 0; }
.nav__menu a:not(.btn):hover, .nav__menu .link:hover { color: var(--brand-strong); }
.lang { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; }
.lang button { border: 0; background: none; font: inherit; font-size: .8rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--brand-fill); color: #fff; }
.lang button:nth-child(2) { font-family: "Hind Siliguri", sans-serif; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: none; padding: 0; background: none; border: 0; border-radius: var(--radius); color: #6B7280; cursor: pointer; transition: background .15s, color .15s; }
.theme-toggle:hover { background: var(--gray-100); color: var(--ink); }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .icon-sun, html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
html:not([data-theme]) .theme-toggle { display: none; }
.nav__toggle { display: none; background: none; color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--radius); padding: .4rem .8rem; font: inherit; cursor: pointer; }

/* ---------- Features mega menu (dropdown under the navbar) ---------- */
.nav__dd { display: flex; }
.nav__ddbtn { display: inline-flex; align-items: center; gap: .3rem; }
.nav__ddbtn .chev { width: 14px; height: 14px; transition: transform .2s; }
.nav__ddbtn[aria-expanded="true"] { color: var(--brand-strong); }
.nav__ddbtn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__menu .nav__ddbtn.is-current, .nav__menu a.is-current { color: var(--brand-strong); }
.mega { position: absolute; left: 0; right: 0; top: 100%; padding-top: .6rem; }
.mega[hidden] { display: none; }
.mega__card { position: relative; width: min(1200px, 100% - 2.5rem); margin-inline: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 24px 48px -16px rgba(17,24,39,.22); }
.mega__card::before { content: ""; position: absolute; top: -7px; left: var(--caret-x, 50%); width: 12px; height: 12px; background: var(--surface); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: translateX(-50%) rotate(45deg); }
.mega__body { display: grid; grid-template-columns: 3fr 1fr; gap: 2rem; padding: 1.5rem 1.75rem 1.25rem; }
.mega__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .6rem; margin-bottom: .75rem; border-bottom: 1px solid var(--line); }
.mega__label { font-family: var(--font-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
html[lang="bn"] .mega__label { font-family: var(--font-body); letter-spacing: .02em; }
.nav__menu a.mega__all { display: inline-flex; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--brand); }
.mega__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem .75rem; }
.nav__menu .mega__grid a { display: block; padding: .6rem .6rem; border-radius: var(--radius-md); }
.nav__menu .mega__grid a:hover, .nav__menu .mega__grid a:focus-visible { background: var(--gray-bg); color: inherit; }
.mega__grid b { display: flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--ink); }
.mega__grid a:hover b { color: var(--brand-strong); }
.mega__grid span { display: block; font-size: .85rem; color: var(--muted); line-height: 1.4; margin-top: .15rem; }
.mega__grid a[aria-current="page"] b { color: var(--brand-strong); }
.mega__new { font-size: .62rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: .05rem .4rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.mega__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
.nav__menu .mega__links a { display: flex; align-items: center; gap: .65rem; padding: .55rem .5rem; border-radius: var(--radius-md); font-weight: 600; }
.nav__menu .mega__links a:hover { background: var(--gray-bg); }
.mega__links svg { width: 20px; height: 20px; flex: none; color: var(--brand-strong); }
.mega__foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin: 0 .5rem .5rem; padding: .75rem 1.25rem; background: var(--gray-bg); border-radius: var(--radius-md); font-size: .9rem; }
.mega__foot span { color: var(--line-2); }
.nav__menu .mega__foot a { font-weight: 400; }

/* ---------- Hero ---------- */
.hero { padding: 4.5rem 0 0; text-align: center; overflow: hidden;
  background: radial-gradient(60% 50% at 12% 25%, var(--brand-soft), transparent 70%), radial-gradient(50% 45% at 92% 18%, var(--glow), transparent 70%), var(--page); }
.hero__title { font-size: clamp(2.4rem, 6.5vw, 4.4rem); margin: .4rem auto 1.1rem; max-width: 17ch; }
.hero__lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0 auto 2rem; }
.actions { display: flex; justify-content: center; align-items: center; gap: .9rem; flex-wrap: wrap; }
.hero__vendor { margin-top: 1.1rem; font-size: .95rem; }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.chips span { font-size: .82rem; padding: .3rem .75rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--chip-bg); color: var(--muted); }

/* Hero product visual (drawn in CSS/SVG; replace with real screenshots later) */
.showcase { position: relative; max-width: 1040px; margin: 3.25rem auto 0; display: grid; grid-template-columns: 1.25fr 1fr; text-align: left; background: var(--surface); border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 30px 60px -20px rgba(17,24,39,.25); overflow: hidden; }
.to { padding: 1.4rem 1.5rem 1.6rem; border-right: 1px solid var(--line); }
.to__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: .9rem; }
.to__id { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); }
.to__route { font-weight: 600; font-size: 1.05rem; margin-top: .15rem; }
.steps-line { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .1rem; }
.steps-line li { display: grid; grid-template-columns: 22px 1fr auto; gap: .6rem; align-items: center; font-size: .88rem; padding: .3rem 0; }
.steps-line .dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); justify-self: center; }
.steps-line .done .dot { background: var(--brand); border-color: var(--brand); }
.steps-line .now .dot { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.steps-line .now { font-weight: 600; }
.steps-line .todo { color: var(--faint); }
.steps-line small { color: var(--muted); font-size: .78rem; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; }
.fact { border: 1px solid var(--line); border-radius: 8px; padding: .55rem .65rem; }
.fact small { display: block; color: var(--muted); font-size: .72rem; }
.fact b { font-size: .86rem; font-weight: 600; }
.mapbox { position: relative; background: var(--map-bg); min-height: 340px; }
.mapbox svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-road { stroke: var(--map-road); }
.map-road--minor { stroke: var(--map-road-2); }
.map-pin { fill: var(--surface); }
.map-label { position: absolute; background: var(--surface); border-radius: 6px; padding: .2rem .5rem; font-size: .72rem; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.map-card { position: absolute; right: 1rem; bottom: 1rem; background: var(--surface); border-radius: 10px; padding: .6rem .8rem; box-shadow: 0 8px 20px rgba(0,0,0,.12); font-size: .78rem; }
.map-card b { display: block; font-size: .85rem; }

/* ---------- Problem strip ---------- */
.swap { display: grid; grid-template-columns: 1fr auto 1fr; gap: 2rem; align-items: center; }
.swap__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; }
.swap__col h3 { display: flex; align-items: center; gap: .5rem; }
.swap__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.swap__col li { display: flex; gap: .6rem; align-items: flex-start; color: var(--muted); }
.swap__col li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--red-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B3361F' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }
.swap__col--good li::before { background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B65DC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/11px no-repeat; }
.swap__col--good { border-color: var(--brand-line); }
.swap__arrow { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-fill); color: #fff; display: grid; place-items: center; font-size: 1.4rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; text-align: center; }
.stat { font-family: var(--font-stat); font-weight: 700; color: var(--ink); font-size: clamp(3.5rem, 7vw, 5.5rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 .6rem; }
.stats p:not(.stat) { max-width: 22ch; margin-inline: auto; color: var(--muted); }

/* ---------- Flow stepper ---------- */
.flow__tabs { display: grid; grid-template-columns: repeat(8, 1fr); gap: .5rem; margin-bottom: 1.5rem; }
.flow__tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: .9rem .4rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font: inherit; font-size: .85rem; font-weight: 500; color: var(--ink); cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.flow__tab:hover { border-color: var(--brand-line); }
.flow__tab[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); }
.flow__num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-stat); font-size: .95rem; background: var(--gray-bg); }
.flow__tab[aria-selected="true"] .flow__num { background: var(--brand-fill); color: #fff; }
.flow__panel { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; }
.flow__panel[hidden] { display: none; }
.who { display: inline-flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.who span { font-size: .78rem; font-weight: 600; padding: .2rem .6rem; border-radius: 999px; background: var(--gray-bg); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.checks li { display: flex; gap: .6rem; color: var(--muted); }
.checks li::before { content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B65DC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------- Mini screens (used in flow + pillars) ---------- */
.media { width: 100%; border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--brand-soft), var(--media-mid) 60%, var(--media-end)); border: 1px solid var(--line); padding: 1.75rem; display: grid; place-items: center; min-height: 260px; }
.mini { width: 100%; max-width: 380px; background: var(--surface); border-radius: 10px; box-shadow: 0 12px 30px -12px rgba(17,24,39,.25); padding: 1rem 1.1rem; text-align: left; font-size: .82rem; }
.mini__title { font-weight: 600; margin-bottom: .5rem; display: flex; justify-content: space-between; gap: .5rem; align-items: center; }
.mini__row { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.mini__row span:first-child { color: var(--muted); }
.mono { font-family: var(--font-mono); font-size: .78rem; }
.bar { height: 8px; border-radius: 99px; background: var(--gray-bg); overflow: hidden; margin: .35rem 0 .2rem; }
.bar i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar i.warn { background: var(--amber); }

/* ---------- Pillars ---------- */
.pillar { padding: 5rem 0 1rem; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.card .btn--float { margin-top: -1.2rem; position: relative; }
.card p { margin: 1rem 0 0; max-width: 40ch; color: var(--muted); }
.card p b { color: var(--ink); }

/* ---------- Roles tabs ---------- */
.roles__tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.roles__tab { font: inherit; font-weight: 500; font-size: .92rem; padding: .55rem 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.roles__tab[aria-selected="true"] { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }
.roles__panel { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2.25rem; }
.roles__panel[hidden] { display: none; }
.roles__panel blockquote { margin: 0; font-family: var(--font-stat); font-size: 1.55rem; line-height: 1.3; letter-spacing: -.01em; }
html[lang="bn"] .roles__panel blockquote { font-family: var(--font-body); }

/* ---------- Grid cards (apps, industries, security, soon) ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.tile { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem; background: var(--surface); display: flex; flex-direction: column; gap: .6rem; }
.tile p { color: var(--muted); margin: 0; }
.tile .icon { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-strong); display: grid; place-items: center; margin-bottom: .4rem; }
.section--dark .tile { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .tile p { color: #B4BAE6; }
.section--dark .tile .icon { background: rgba(165,171,245,.14); color: #A5ABF5; }
.tile--soon { background: var(--soon-bg); border-style: dashed; border-color: var(--soon-line); }
.tile--soon h3 { display: flex; justify-content: space-between; gap: .5rem; align-items: flex-start; }

/* ---------- Vendors ---------- */
.vendor { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.vsteps { list-style: none; counter-reset: v; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: 1rem; }
.vsteps li { counter-increment: v; display: grid; grid-template-columns: 36px 1fr; gap: .9rem; align-items: start; }
.vsteps li::before { content: counter(v); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-fill); color: #fff; font-family: var(--font-stat); }
.vsteps b { display: block; }
.vsteps span { color: var(--muted); }
.phone { width: 260px; margin: 0 auto; background: var(--surface); border: 8px solid var(--phone-frame); border-radius: 34px; box-shadow: 0 30px 60px -15px rgba(17,24,39,.35); padding: 1.4rem .9rem 1.6rem; font-size: .8rem; }
.phone__title { font-weight: 700; font-size: 1rem; margin-bottom: .6rem; }
.bid { border: 1px solid var(--line); border-radius: 10px; padding: .65rem .75rem; margin-bottom: .55rem; }
.bid b { display: block; font-size: .85rem; }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.plan { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; display: flex; flex-direction: column; background: var(--surface); }
.plan--pick { border-color: var(--brand); box-shadow: 0 16px 36px -20px rgba(91,101,220,.45); }
.plan h3 { font-size: 1.35rem; margin-bottom: .25rem; }
.plan__limits { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin: 1rem 0; }
.plan__limits div { background: var(--gray-bg); border-radius: 8px; padding: .55rem .65rem; }
.plan__limits b { display: block; font-family: var(--font-stat); font-size: 1.35rem; font-weight: 500; }
.plan__limits small { color: var(--muted); font-size: .76rem; }
.plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: .5rem; flex: 1; font-size: .92rem; }
.plan li { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.plan .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 0; font-weight: 600; font-size: 1.05rem; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--brand); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 1.2rem; margin: 0; }

/* ---------- Final CTA ---------- */
.cta { padding: 6rem 0; text-align: center; background: radial-gradient(60% 80% at 50% 100%, var(--brand-soft), var(--page) 70%); }
.cta h2 { max-width: 20ch; margin: .5rem auto 1rem; }

/* ---------- Footer ---------- */
.footer { background: var(--gray-bg); padding: 4rem 0 2rem; font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
.footer__about p { color: var(--muted); max-width: 32ch; margin-top: 1rem; }
.footer h3 { font-family: var(--font-body); font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--body); text-transform: uppercase; padding-bottom: .5rem; border-bottom: 1px solid var(--line-2); margin-bottom: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer ul a { color: var(--muted); text-decoration: none; }
.footer ul a:hover { color: var(--ink); }
.footer__legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-2); color: var(--muted); }
.footer__legal a { color: var(--muted); text-decoration: none; margin-left: 1.25rem; }

/* ---------- Login dialog ---------- */
dialog { background: var(--surface); border: 0; border-radius: var(--radius-lg); padding: 2rem; width: min(440px, 100% - 2rem); box-shadow: 0 30px 80px rgba(0,0,0,.25); color: var(--ink); }
dialog::backdrop { background: rgba(17,24,39,.45); }
dialog h2 { font-size: 1.6rem; }
.field { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; margin: .4rem 0 1rem; }
.field input { flex: 1; min-width: 0; background: transparent; color: var(--ink); border: 0; padding: .75rem .85rem; font: inherit; outline: none; }
.field span { padding: .75rem .85rem; background: var(--gray-bg); color: var(--muted); font-size: .9rem; white-space: nowrap; }
.field:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.dialog__note { font-size: .85rem; color: var(--muted); margin: 1rem 0 0; }
.dialog__close { position: absolute; top: .9rem; right: .9rem; background: none; border: 0; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }

/* ---------- Dark theme: icons drawn with fixed colours ---------- */
html[data-theme="dark"] .swap__col li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F87171' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
html[data-theme="dark"] .swap__col--good li::before, html[data-theme="dark"] .checks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A94F5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E"); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .flow__tabs { grid-template-columns: repeat(4, 1fr); }
  .plans, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .nav__toggle { display: block; }
  .nav__menu { display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 1.25rem; padding: 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav__menu.is-open { display: flex; }
  .nav__links { flex-direction: column; gap: 1rem; }
  .nav__actions { margin-left: 0; flex-wrap: wrap; }
  .nav__menu.is-open { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav__dd { flex-direction: column; align-items: flex-start; }
  .mega { position: static; padding-top: .5rem; width: 100%; }
  .mega__card { width: 100%; box-shadow: none; }
  .mega__card::before { display: none; }
  .mega__body { grid-template-columns: 1fr; gap: 1rem; padding: 1rem; }
  .mega__grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1fr; }
  .to { border-right: 0; border-bottom: 1px solid var(--line); }
  .mapbox { min-height: 260px; }
  .swap { grid-template-columns: 1fr; }
  .swap__arrow { transform: rotate(90deg); margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .flow__panel, .roles__panel, .vendor, .cards, .grid--3 { grid-template-columns: 1fr; }
  .section, .cta { padding: 3.75rem 0; }
  .pillar { padding: 3.75rem 0 0; }
}
@media (max-width: 560px) {
  .flow__tabs { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: 1fr 1fr; }
  .plans, .grid--4, .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
  .footer__legal a { margin: 0 1.25rem 0 0; }
  .flow__panel, .roles__panel { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .arrow { transition: none; } }
