/* Next4Chat website — automatic light and dark themes, no build step.
   Layout: airy split sections and a bento feature grid; real app screens in 3D phones carry the story. */

:root {
    --bg: #F5F8FC;
    --bg-alt: #EBF1F8;
    --surface: #FFFFFF;
    --surface-2: #F0F4FA;
    --ink: #0B1B3F;
    --ink-2: #3E4C66;
    --muted: #66738C;
    --line: rgba(11, 27, 63, .10);
    --line-strong: rgba(11, 27, 63, .18);
    --green: #10B981;
    --green-deep: #047857;
    --green-soft: rgba(16, 185, 129, .14);
    --navy: #1B2F8F;
    --navy-soft: rgba(59, 91, 219, .12);
    --navy-text: #3B5BDB;
    --orange: #FF6B57;
    --orange-soft: rgba(255, 107, 87, .14);
    --orange-text: #D9442F;
    --header-bg: rgba(245, 248, 246, .82);
    --shadow: 0 1px 2px rgba(11, 27, 63, .06), 0 12px 32px -12px rgba(11, 27, 63, .18);
    --shadow-lg: 0 40px 80px -30px rgba(11, 27, 63, .35), 0 18px 36px -18px rgba(11, 27, 63, .25);
    --blob-a: rgba(16, 185, 129, .28);
    --blob-b: rgba(59, 91, 219, .20);
    --blob-c: rgba(255, 107, 87, .16);
    --cta-from: #1B2F8F;
    --cta-to: #047857;
    --warn-bg: #FFF1EE;
    --warn-line: rgba(255, 107, 87, .35);
    --warn-ink: #7A2416;
    --font-display: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --radius: 20px;
    --radius-lg: 28px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #070F1F; --bg-alt: #0B1528; --surface: #0F1B33; --surface-2: #14223F;
        --ink: #EEF3F8; --ink-2: #B8C4D2; --muted: #8392A6;
        --line: rgba(148, 163, 184, .14); --line-strong: rgba(148, 163, 184, .26);
        --green-deep: #34D399; --green-soft: rgba(16, 185, 129, .16);
        --navy-soft: rgba(59, 91, 219, .22); --navy-text: #8FB0FF;
        --orange-soft: rgba(255, 107, 87, .16); --orange-text: #FFB4A6;
        --header-bg: rgba(7, 15, 31, .8);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
        --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 18px 36px -18px rgba(0, 0, 0, .6);
        --blob-a: rgba(16, 185, 129, .22); --blob-b: rgba(59, 91, 219, .28); --blob-c: rgba(255, 107, 87, .12);
        --cta-from: #14246B; --cta-to: #065F46;
        --warn-bg: rgba(255, 107, 87, .10); --warn-line: rgba(255, 107, 87, .35); --warn-ink: #FFD3CB;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --bg: #070F1F; --bg-alt: #0B1528; --surface: #0F1B33; --surface-2: #14223F;
    --ink: #EEF3F8; --ink-2: #B8C4D2; --muted: #8392A6;
    --line: rgba(148, 163, 184, .14); --line-strong: rgba(148, 163, 184, .26);
    --green-deep: #34D399; --green-soft: rgba(16, 185, 129, .16);
    --navy-soft: rgba(59, 91, 219, .22); --navy-text: #8FB0FF;
    --orange-soft: rgba(255, 107, 87, .16); --orange-text: #FFB4A6;
    --header-bg: rgba(7, 15, 31, .8);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .85), 0 18px 36px -18px rgba(0, 0, 0, .6);
    --blob-a: rgba(16, 185, 129, .22); --blob-b: rgba(59, 91, 219, .28); --blob-c: rgba(255, 107, 87, .12);
    --cta-from: #14246B; --cta-to: #065F46;
    --warn-bg: rgba(255, 107, 87, .10); --warn-line: rgba(255, 107, 87, .35); --warn-ink: #FFD3CB;
    color-scheme: dark;
}

/* Theme-matched screenshots */
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .only-dark { display: block !important; }
    :root:not([data-theme]) .only-light { display: none !important; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; font-family: var(--font-body); font-size: 16.5px; line-height: 1.65;
    color: var(--ink-2); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased;
    transition: background-color .3s, color .3s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); color: var(--ink); line-height: 1.08; letter-spacing: -.025em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.9rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container.narrow { width: min(860px, 100% - 32px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section + .section { padding-top: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--green); color: #052E16; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--green-deep); margin: 0 0 .9rem; }
.accent-text, .gradient-text { color: var(--green-deep); }
:root[data-theme="dark"] .accent-text, :root[data-theme="dark"] .gradient-text {
    background: linear-gradient(100deg, #34D399, #A3F0C0 55%, #FFB4A6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: var(--ink-2); max-width: 42ch; }
.lead-sm { font-size: 1.08rem; color: var(--ink-2); }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: inherit; font-weight: 700; font-size: 1rem; padding: 12px 22px; border-radius: 999px;
    border: 1px solid transparent; cursor: pointer; text-decoration: none !important; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-primary { background: linear-gradient(180deg, #2BD769, #16A34A); color: #052E16; box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 12px 28px -10px rgba(22, 163, 74, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.4) inset, 0 18px 36px -10px rgba(22, 163, 74, .65); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--green); }
.btn-disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top, 0px); transition: background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: var(--header-bg); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: 1.32rem; letter-spacing: -.02em; text-decoration: none !important; }
.brand-icon { width: 38px; height: 38px; border-radius: 11px; box-shadow: var(--shadow); }
.brand-4 { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a:not(.btn) { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; text-decoration: none; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover, .nav-links a.active { color: var(--ink); background: var(--surface-2); }
.nav-cta { margin-left: 8px; }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.theme-toggle {
    position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong);
    background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: transform .3s var(--ease), border-color .2s;
}
.theme-toggle:hover { border-color: var(--green); transform: rotate(-12deg); }
.theme-toggle span { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .3s, transform .4s var(--ease); }
.theme-toggle .tt-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .tt-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
:root[data-theme="dark"] .theme-toggle .tt-moon { opacity: 1; transform: none; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1040px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: fixed; inset: calc(74px + env(safe-area-inset-top, 0px)) 0 auto; flex-direction: column; align-items: stretch; gap: 4px;
        padding: 16px max(16px, env(safe-area-inset-left, 0px)) 20px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
        transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s;
    }
    .nav-open .nav-links { transform: none; opacity: 1; pointer-events: auto; }
    .nav-open .site-header { background: var(--bg); }
    .nav-links a:not(.btn) { padding: 12px 14px; border-radius: 12px; }
    .nav-cta { margin: 8px 0 0; }
}

/* ---------- Background blobs ---------- */
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); }
.blob.b1 { width: 560px; height: 560px; background: var(--blob-a); top: -180px; right: -120px; }
.blob.b2 { width: 620px; height: 620px; background: var(--blob-b); bottom: -300px; left: -220px; }
.blob.b3 { width: 320px; height: 320px; background: var(--blob-c); top: 38%; right: 34%; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding: 128px 0 72px; }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s; }
.hero-canvas.ready { opacity: .9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 40%, transparent 65%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: .32em; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 600; font-size: .92rem; margin-bottom: 22px; box-shadow: var(--shadow); text-decoration: none !important; }
.pill:hover { border-color: var(--green); }
.pill-tag { padding: 3px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .78rem; font-weight: 700; }
.pill .icon { width: 1em; height: 1em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 26px; }
.trust-row { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 20px; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; color: var(--ink-2); }
.trust-row .icon { color: var(--green-deep); }

.hero-stage { position: relative; height: 640px; perspective: 1500px; }
.hero-phone { position: absolute; left: 50%; top: 50%; width: 300px; transform: translate(-50%, -50%) rotateY(calc(-16deg + var(--ry, 0deg))) rotateX(calc(7deg + var(--rx, 0deg))) rotateZ(2deg); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.float-card {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 86%, transparent); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg); color: var(--ink); font-size: .9rem;
    transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); transition: transform .4s var(--ease);
    animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: .93rem; line-height: 1.3; }
.float-card small { color: var(--muted); font-size: .78rem; }
.fc-1 { top: 8%; left: -4%; animation-delay: -1s; }
.fc-2 { top: 30%; right: -6%; animation-delay: -3s; }
.fc-3 { bottom: 22%; left: -8%; animation-delay: -2s; }
.fc-4 { bottom: 6%; right: 0; animation-delay: -4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.fc-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; }
.fc-icon.green { background: var(--green-soft); color: var(--green-deep); }
.fc-icon.orange { background: var(--orange-soft); color: var(--orange-text); }
.fc-icon.navy { background: var(--navy-soft); color: var(--navy-text); }
@media (max-width: 1000px) {
    .hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 80%, transparent), transparent 70%); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-stage { height: 580px; width: 100%; max-width: 520px; margin: 0 auto; }
}
@media (max-width: 560px) {
    .hero { padding-top: 104px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .hero-stage { height: 500px; }
    .hero-phone { width: 230px; }
    .float-card { font-size: .8rem; padding: 8px 12px 8px 8px; gap: 9px; }
    .fc-icon { width: 32px; height: 32px; }
    .fc-1 { left: 0; top: 2%; } .fc-2 { right: 0; top: 26%; } .fc-3 { left: 0; bottom: 20%; } .fc-4 { right: 0; bottom: 2%; }
}

/* ---------- Phone and browser mockups ---------- */
.phone { margin: 0; width: 260px; max-width: 100%; transition: transform .5s var(--ease); }
.phone-body {
    position: relative; border-radius: 44px; padding: 10px;
    background: linear-gradient(145deg, #2A3546, #0C1118 60%);
    box-shadow: 0 0 0 1.5px rgba(255,255,255,.08) inset, 10px 10px 0 -2px #070A0E, var(--shadow-lg);
}
.phone-body::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255,255,255,.16), transparent 30%, transparent 70%, rgba(255,255,255,.05)); pointer-events: none; }
.phone-screen { border-radius: 34px; overflow: hidden; background: var(--surface-2); }
.phone-screen img { width: 100%; aspect-ratio: 1236 / 2745; object-fit: cover; object-position: top; }
.phone.tilt-right { transform: rotateY(calc(-14deg + var(--ry, 0deg))) rotateX(calc(5deg + var(--rx, 0deg))); }
.phone.tilt-left { transform: rotateY(calc(14deg + var(--ry, 0deg))) rotateX(calc(5deg + var(--rx, 0deg))); }

.browser { margin: 0; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: rotateX(calc(9deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)); transform-origin: center bottom; transition: transform .5s var(--ease); }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.browser-bar .dots { display: inline-flex; gap: 6px; }
.browser-bar .dots i { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar .dots i:nth-child(1) { background: #F87171; } .browser-bar .dots i:nth-child(2) { background: #FBBF24; } .browser-bar .dots i:nth-child(3) { background: var(--green); }
.browser-bar .url { flex: 1; max-width: 340px; margin: 0 auto; display: inline-flex; justify-content: center; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.browser-bar .url .icon { width: .95em; height: .95em; color: var(--green-deep); }
.browser-screen img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.web-stage { position: relative; max-width: 1040px; margin: 0 auto; perspective: 1800px; padding-bottom: 40px; }
.web-stage .web-phone { position: absolute; right: -24px; bottom: 0; width: 200px; transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0) rotateY(-12deg); }
@media (max-width: 760px) {
    .web-stage .web-phone { width: 118px; right: -4px; bottom: -6px; }
    .web-stage .web-phone .phone-body { padding: 5px; border-radius: 22px; }
    .web-stage .web-phone .phone-screen { border-radius: 18px; }
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

/* ---------- Release track ---------- */
.release-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; position: relative; }
.release-track::before { content: ""; position: absolute; left: 6%; right: 6%; top: 34px; height: 2px; background: linear-gradient(90deg, var(--green), var(--navy-text), var(--orange)); opacity: .5; }
.release { position: relative; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.release-v { position: relative; display: inline-block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; padding: 6px 14px; border-radius: 999px; background: var(--green-soft); color: var(--green-deep); margin-bottom: 14px; }
.release:nth-child(2) .release-v { background: var(--navy-soft); color: var(--navy-text); }
.release:nth-child(3) .release-v { background: var(--orange); color: #fff; }
.release ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); display: grid; gap: 6px; font-size: .97rem; }
.release li::marker { color: var(--green); }
@media (max-width: 900px) { .release-track { grid-template-columns: 1fr; } .release-track::before { display: none; } }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
    position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg);
    background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none !important; overflow: hidden;
    box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.tile.wide { grid-column: span 2; }
.tile::before { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: var(--tile-tint, var(--green-soft)); filter: blur(10px); opacity: .9; pointer-events: none; }
.tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
.tile h3 { margin-top: 18px; }
.tile p { margin: 0 0 16px; font-size: .97rem; }
.tile-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--green-deep); }
.tile-more .icon { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.tile:hover .tile-more .icon { transform: translateX(3px); }
.tile-icon { position: relative; width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: var(--green-deep); background: var(--green-soft); flex-shrink: 0; }
.tile-icon .icon { width: 25px; height: 25px; }
.tile-green { --tile-tint: var(--green-soft); }
.tile-navy { --tile-tint: var(--navy-soft); }
.tile-orange { --tile-tint: var(--orange-soft); }
.tile-icon.tile-navy, .tile-navy .tile-icon { color: var(--navy-text); background: var(--navy-soft); }
.tile-icon.tile-orange, .tile-orange .tile-icon { color: var(--orange-text); background: var(--orange-soft); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile.wide { grid-column: auto; } }

/* ---------- Split spotlights ---------- */
.spotlight:nth-of-type(even) { background: var(--bg-alt); padding-top: clamp(64px, 9vw, 120px); }
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.split.flip { grid-template-columns: 1.1fr .9fr; }
.split-copy { min-width: 0; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check-list .icon { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); stroke-width: 3; margin-top: 1px; }
.duo { position: relative; display: flex; justify-content: center; align-items: center; min-height: 620px; perspective: 1400px; }
.duo .phone { position: absolute; }
.duo .duo-back { transform: translateX(-92px) translateY(-18px) rotateY(calc(18deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))) scale(.92); }
.duo .duo-front { transform: translateX(92px) translateY(18px) rotateY(calc(-16deg + var(--ry, 0deg))) rotateX(calc(4deg + var(--rx, 0deg))); }
@media (max-width: 900px) {
    .split, .split.flip { grid-template-columns: 1fr; gap: 28px; }
    .split.flip .split-visual { order: 2; }
    .duo { min-height: 470px; }
    .duo .phone { width: 196px; }
    .duo .duo-back { transform: translateX(-58px) rotateY(18deg) scale(.92); }
    .duo .duo-front { transform: translateX(58px) translateY(18px) rotateY(-16deg); }
}

/* ---------- Khata / Status panels ---------- */
.duo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feature-panel { display: flex; flex-direction: column; border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 100px; }
.panel-copy { padding: clamp(26px, 4vw, 40px) clamp(26px, 4vw, 40px) 0; }
.panel-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
.panel-visual { height: 380px; display: flex; justify-content: center; align-items: flex-start; perspective: 1200px; background: linear-gradient(180deg, transparent, var(--bg-alt)); }
.panel-phone { width: 250px; transform: translateY(10px) rotateX(calc(14deg + var(--rx, 0deg))) rotateY(var(--ry, 0deg)); }
@media (max-width: 900px) { .duo-cards { grid-template-columns: 1fr; } .panel-visual { height: 330px; } .panel-phone { width: 210px; } }

/* ---------- Benefits ---------- */
.benefit-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.benefit { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: .96rem; }
.benefit-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--green-deep); background: var(--green-soft); }
.benefit:nth-child(4n+2) .benefit-icon, .benefit:nth-child(4n+4) .benefit-icon { color: var(--navy-text); background: var(--navy-soft); }
.benefit:nth-child(4n+3) .benefit-icon { color: var(--orange-text); background: var(--orange-soft); }
.benefit:nth-child(-n+3) { border-color: color-mix(in srgb, var(--green) 40%, var(--line)); }
@media (max-width: 1100px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .benefit-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .benefit-grid { grid-template-columns: 1fr; } .benefit { flex-direction: row; align-items: flex-start; } .benefit-icon { flex-shrink: 0; } }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .25s; }
.faq[open] { border-color: color-mix(in srgb, var(--green) 50%, var(--line)); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 22px; font-weight: 700; color: var(--ink); position: relative; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq-plus { position: absolute; right: 22px; top: 50%; width: 16px; height: 16px; margin-top: -8px; }
.faq-plus::before, .faq-plus::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--green-deep); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-plus::after { transform: rotate(90deg); }
.faq[open] .faq-plus::after { transform: rotate(0); }
.faq p { padding: 0 22px 20px; margin: 0; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta-band { position: relative; overflow: hidden; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding: clamp(30px, 5vw, 56px); border-radius: 36px; background: linear-gradient(120deg, var(--cta-from), var(--cta-to)); color: #E6EEF8; box-shadow: var(--shadow-lg); }
.cta-band::after { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -220px; background: radial-gradient(closest-side, rgba(255,107,87,.4), transparent); pointer-events: none; }
.cta-icon { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 20px 40px -14px rgba(0,0,0,.6); transform: rotate(-6deg); }
.cta-copy { flex: 1 1 320px; position: relative; }
.cta-copy h2 { color: #fff; margin-bottom: .2em; }
.cta-copy p { margin: 0; color: #C9D6E6; font-size: 1.1rem; }
.cta-band .btn { position: relative; z-index: 1; }

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; padding: 160px 0 70px; }
.page-hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
.page-hero .lead { margin-inline: auto; max-width: 62ch; }
.page-hero .blob.b1 { top: -260px; }

/* ---------- Features page ---------- */
.chip-nav { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .88rem; font-weight: 600; text-decoration: none; }
.chip-nav a:hover { color: var(--ink); border-color: var(--green); }
.chip-nav .icon { width: 1em; height: 1em; color: var(--green-deep); }
@media (max-width: 700px) { .chip-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: -16px; padding: 4px 16px; scrollbar-width: none; } .chip-nav::-webkit-scrollbar { display: none; } .chip-nav a { flex-shrink: 0; } }
.feature-rows { display: grid; gap: clamp(56px, 8vw, 104px); }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; scroll-margin-top: 100px; }
.feature-row.flip .feature-row-copy { order: 2; }
.feature-row-copy { min-width: 0; }
.row-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.new-badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em; font-family: var(--font-body); vertical-align: middle; }
.new-badge.sm { font-size: .66rem; padding: 2px 8px; margin-left: 4px; }
.feature-row-visual { position: relative; display: grid; place-items: center; min-height: 600px; perspective: 1400px; }
.glow-disc { position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--tile-tint); filter: blur(30px); }
.feature-row .phone { position: relative; width: 270px; }
@media (max-width: 900px) {
    .feature-row { grid-template-columns: 1fr; gap: 20px; }
    .feature-row.flip .feature-row-copy { order: 0; }
    .feature-row-visual { min-height: 470px; order: -1; }
    .feature-row .phone { width: 210px; }
    .glow-disc { width: 280px; height: 280px; }
}
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.mini-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.mini-card h3 { margin-top: 16px; }
.mini-card p { margin: 0; color: var(--muted); }
@media (max-width: 900px) { .mini-grid { grid-template-columns: 1fr; } }

/* ---------- Security page ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sec-card { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sec-card .tile-icon { width: 44px; height: 44px; border-radius: 13px; }
.sec-card .tile-icon .icon { width: 22px; height: 22px; }
.sec-card h3 { font-size: 1.04rem; margin-bottom: .35em; font-family: var(--font-body); letter-spacing: 0; }
.sec-card p { margin: 0; color: var(--ink-2); font-size: .95rem; }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .sec-grid { grid-template-columns: 1fr; } }
.honest-panel { display: flex; gap: 22px; padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--warn-bg); border: 1px solid var(--warn-line); margin-bottom: 20px; }
.honest-panel h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.honest-panel ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; color: var(--warn-ink); }
.honest-icon { flex-shrink: 0; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--orange-soft); color: var(--orange-text); }
.honest-icon .icon { width: 28px; height: 28px; }
@media (max-width: 600px) { .honest-panel { flex-direction: column; } }
.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.rate-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate-table th, .rate-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rate-table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); background: var(--surface-2); }
.rate-table tbody th { color: var(--ink); font-weight: 700; white-space: nowrap; }
.rate-table td { color: var(--ink-2); }
.rate-table tr:last-child th, .rate-table tr:last-child td { border-bottom: 0; }

/* ---------- Platforms page ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.platform-card { position: relative; padding: 32px 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.platform-card p { color: var(--ink-2); min-height: 4.8em; }
.platform-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--green-soft); color: var(--green-deep); margin-bottom: 20px; }
.platform-icon .icon { width: 30px; height: 30px; }
.status { position: absolute; top: 28px; right: 24px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--orange-soft); color: var(--orange-text); }
.status.live { background: var(--green-soft); color: var(--green-deep); }
.platform-card .btn { width: 100%; }
@media (max-width: 900px) { .platform-grid { grid-template-columns: 1fr; } }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.prose { font-size: 1.07rem; color: var(--ink-2); min-width: 0; }
.prose > p:first-child { font-family: var(--font-display); font-size: clamp(1.3rem, 2.2vw, 1.7rem); color: var(--ink); font-weight: 700; line-height: 1.35; }
.prose a { font-weight: 600; }
.about-logo-wrap { perspective: 1000px; display: grid; place-items: center; }
.about-logo { width: min(380px, 100%); padding: 28px; border-radius: 40px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: rotateY(calc(-12deg + var(--ry, 0deg))) rotateX(calc(5deg + var(--rx, 0deg))); transition: transform .5s var(--ease); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mv-card { padding: 34px 32px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mv-card h2 { margin-top: 18px; font-size: 1.8rem; }
.mv-card p { color: var(--ink-2); font-size: 1.08rem; margin: 0; }
.company-card { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.company-logo { background: #fff; border-radius: 24px; padding: 14px; border: 1px solid var(--line); }
.company-card p { color: var(--ink-2); }
.company-links { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 18px 0 0; }
.company-links dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.company-links dd { margin: 0; font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .about-grid, .mv-grid, .company-card { grid-template-columns: 1fr; } .company-logo { max-width: 180px; } }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.contact-channels { display: grid; gap: 14px; }
.channel-card { display: flex; gap: 18px; padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.channel-card h2 { font-size: 1.15rem; margin-bottom: .25em; }
.channel-card p { color: var(--muted); margin: 0 0 .4em; font-size: .95rem; }
.channel-card a { font-weight: 700; word-break: break-all; }
.contact-form { padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); display: grid; gap: 16px; }
.contact-form h2 { font-size: 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: .88rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.field [aria-invalid="true"] { border-color: #EF4444; }
.err { color: #DC2626; }
:root[data-theme="dark"] .err { color: #FCA5A5; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.alert.success { background: var(--green-soft); color: var(--green-deep); }
.alert.error { background: rgba(239, 68, 68, .1); color: #DC2626; }
.contact-form .btn { justify-self: start; }
@media (max-width: 900px) { .contact-grid, .field-row { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: 100px; display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.legal-toc a { color: var(--ink-2); font-size: .92rem; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.legal-toc a:hover { color: var(--ink); background: var(--surface-2); text-decoration: none; }
.legal .prose { font-size: 1rem; max-width: 760px; }
.legal .prose > p:first-child { font-family: var(--font-body); font-size: inherit; font-weight: 400; color: var(--ink-2); line-height: 1.65; }
.legal .prose h2 { font-size: 1.45rem; margin-top: 2em; scroll-margin-top: 100px; }
.legal .prose h2:first-child { margin-top: 0; }
.legal .prose li { margin-bottom: .5em; }
.legal .prose strong { color: var(--ink); }
@media (max-width: 900px) { .legal-grid { grid-template-columns: 1fr; } .legal-toc { position: static; grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding: 72px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); margin: 14px 0 0; max-width: 34ch; }
.footer-brand .footer-tagline { color: var(--green-deep); font-weight: 700; margin-top: 6px; }
.site-footer h3 { font-family: var(--font-body); font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--ink-2); font-weight: 500; }
.site-footer ul a:hover { color: var(--ink); }
.dev-credit { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.dev-credit-link { display: inline-flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 800; font-size: 1.05rem; text-decoration: none !important; }
.dev-credit-link img { width: 44px; height: 44px; border-radius: 12px; background: #fff; padding: 3px; object-fit: contain; border: 1px solid var(--line); }
.dev-credit-link small { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-bottom nav a { color: var(--muted); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Motion ---------- */
.tilt { transform-style: preserve-3d; will-change: transform; }
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* Shared NextRobic type: Montserrat for text, JetBrains Mono for tech labels */
.eyebrow, .pill, .new-badge, .release-v, .site-footer h3, code, kbd, pre { font-family: var(--font-mono); }
.eyebrow, .site-footer h3 { letter-spacing: .12em; }
h1, h2 { font-weight: 800; letter-spacing: -.03em; }

/* Founders */
.founders-head { max-width: 680px; margin: 0 auto 34px; text-align: center; }
.founders-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.founder-card { display: flex; gap: 24px; align-items: center; padding: 30px 30px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.founder-card h3 { margin: 0; font-size: 1.4rem; }
.founder-role { margin: 4px 0 10px; font: 600 .82rem 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .02em; color: var(--green-deep); }
.founder-card p:last-child { margin: 0; color: var(--ink-2); }
.founder-avatar { flex: 0 0 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; position: relative; transform: rotate(-6deg); box-shadow: 0 18px 34px -16px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.4); }
.founder-avatar span { transform: rotate(6deg); font: 800 2rem Montserrat, system-ui, sans-serif; color: #fff; letter-spacing: .02em; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.founder-avatar--green { background: linear-gradient(140deg, #34d399, #16a34a 55%, #0f766e); }
.founder-avatar--orange { background: linear-gradient(140deg, #FFB4A6, #FF6B57 55%, #D9442F); }
.founder-card:hover .founder-avatar { transform: rotate(0deg) scale(1.04); transition: transform .4s ease; }
.footer-founders a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .founders-grid { grid-template-columns: 1fr; } .founder-card { padding: 24px; gap: 18px; } .founder-avatar { flex-basis: 72px; height: 72px; border-radius: 22px; } .founder-avatar span { font-size: 1.5rem; } .dev-credit { flex-wrap: wrap; gap: 10px; } }

/* ==========================================================================
   New look: cool off-white and deep navy, emerald + indigo + coral palette,
   pill header, 3D objects in hero, cards, page titles, CTA and footer
   ========================================================================== */
@keyframes n3float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
@keyframes n3spin { to { transform: rotate(360deg); } }
.accent-text { background: linear-gradient(100deg, #10B981 0%, #14B8A6 45%, #3B5BDB 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-primary { background: linear-gradient(110deg, #10B981, #0D9488 55%, #3B5BDB) !important; background-size: 170% auto !important; border: 0 !important; color: #fff !important; box-shadow: 0 12px 30px -12px rgba(16,185,129,.7); transition: background-position .4s, transform .3s, box-shadow .3s; }
.btn-primary:hover { background-position: 100% 0 !important; box-shadow: 0 16px 36px -12px rgba(59,91,219,.6); }

/* pill header */
@media (min-width: 901px) {
    .site-header { padding-top: 12px; }
    .site-header .nav { height: 64px; padding: 0 12px 0 22px; border-radius: 999px; border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
    .site-header.scrolled { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; }
    .site-header.scrolled .nav, .site-header .nav { background: var(--header-bg); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-color: var(--line); box-shadow: 0 18px 40px -28px rgba(11,27,63,.35); }
    .nav-links a.active { background: var(--green-soft); color: var(--green-deep); border-radius: 999px; }
}

/* hero 3D */
.hero--v36 .hero-stage { transform-style: preserve-3d; }
.hero-floor { position: absolute; left: 50%; bottom: 2%; width: 92%; aspect-ratio: 1; translate: -50% 50%; transform: rotateX(76deg); border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle, rgba(16,185,129,.16) 0 34%, rgba(59,91,219,.08) 35% 60%, transparent 61%); box-shadow: inset 0 0 0 1px rgba(16,185,129,.3); }
.hero-floor i { position: absolute; inset: 8%; border-radius: 50%; border: 2px dashed rgba(16,185,129,.45); animation: n3spin 30s linear infinite; }
.hero-floor i:nth-child(2) { inset: 22%; border: 1.5px solid rgba(59,91,219,.45); border-top-color: transparent; border-bottom-color: transparent; animation-duration: 10s; animation-direction: reverse; }
.hero-floor i:nth-child(3) { inset: -6%; border: 1px dashed rgba(255,107,87,.4); animation-duration: 70s; }
.hero-obj { position: absolute; height: auto; filter: drop-shadow(0 22px 22px rgba(11,27,63,.28)); animation: n3float 6s ease-in-out infinite; pointer-events: none; z-index: 2; }
.ho-1 { width: 120px; left: 2%; top: 4%; }
.ho-2 { width: 96px; right: 0; top: 30%; animation-delay: -1.5s; }
.ho-3 { width: 100px; left: 6%; bottom: 14%; animation-delay: -3s; }
.ho-4 { width: 70px; right: 14%; bottom: 4%; animation-delay: -4.5s; }
html[data-theme="dark"] .hero-obj { filter: drop-shadow(0 22px 24px rgba(0,0,0,.6)); }
.fc-3d { width: 44px; height: 44px; flex-shrink: 0; filter: drop-shadow(0 6px 8px rgba(11,27,63,.25)); }
@media (max-width: 900px) { .ho-1 { width: 76px; } .ho-2 { width: 64px; } .ho-3 { width: 66px; } .ho-4 { width: 48px; } .fc-3d { width: 34px; height: 34px; } }

/* 3D tile images replace flat icons */
.tile-3d { width: 64px; height: 64px; flex-shrink: 0; display: block; filter: drop-shadow(0 10px 12px rgba(11,27,63,.22)); transition: transform .5s var(--ease); }
.bento > *:hover .tile-3d, .mv-card:hover .tile-3d, .tilt:hover .tile-3d { transform: translateY(-6px) rotate(-6deg) scale(1.06); }
html[data-theme="dark"] .tile-3d { filter: drop-shadow(0 10px 14px rgba(0,0,0,.55)); }

/* page hero 3D */
.ph-obj { position: absolute; z-index: 0; width: clamp(70px, 9vw, 130px); height: auto; top: 46%; filter: drop-shadow(0 22px 22px rgba(11,27,63,.25)); animation: n3float 6s ease-in-out infinite; pointer-events: none; }
.ph-obj--l { left: max(3%, calc(50% - 600px)); }
.ph-obj--r { right: max(3%, calc(50% - 600px)); top: 30%; animation-delay: -3s; }
html[data-theme="dark"] .ph-obj { filter: drop-shadow(0 22px 24px rgba(0,0,0,.6)); }
.page-hero .container { position: relative; z-index: 1; }
@media (max-width: 900px) { .ph-obj { width: 54px; top: 96px; opacity: .9; } .ph-obj--r { top: 110px; } }

/* CTA */
.cta-band { background: linear-gradient(120deg, #0B1B4D, #1B2F8F 45%, #047857) !important; }
html[data-theme="dark"] .cta-band { background: linear-gradient(120deg, #0B1838, #14246B 45%, #065F46) !important; }
.cta-band::after { background: radial-gradient(closest-side, rgba(255,107,87,.35), transparent) !important; }
.cta-3d { position: absolute; height: auto; pointer-events: none; filter: drop-shadow(0 20px 22px rgba(0,0,0,.4)); animation: n3float 6s ease-in-out infinite; }
.cta-3d--a { width: 120px; right: 26%; top: -26px; opacity: .95; }
.cta-3d--b { width: 92px; right: 3%; bottom: -18px; animation-delay: -3s; }
@media (max-width: 900px) { .cta-3d--a { width: 70px; right: 6%; top: -14px; } .cta-3d--b { display: none; } }

/* footer contact cards */
.footer-contact { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 48px; }
.fcc { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .3s var(--ease), border-color .3s; }
.fcc:hover { transform: translateY(-4px); border-color: rgba(16,185,129,.5); }
.fcc img { width: 44px; height: 44px; flex: 0 0 44px; filter: drop-shadow(0 6px 8px rgba(11,27,63,.25)); }
.fcc small { display: block; font: 600 .68rem var(--font-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fcc b { display: block; font-size: .88rem; font-weight: 600; word-break: break-word; }
@media (max-width: 1000px) { .footer-contact { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-contact { grid-template-columns: 1fr; } }
.static-shot .hero-obj, .static-shot .ph-obj, .static-shot .cta-3d, .static-shot .hero-floor i { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .hero-obj, .ph-obj, .cta-3d, .hero-floor i { animation: none !important; } }
.ho-1 { width: 118px; left: -2%; top: auto; bottom: 26%; }
.ho-3 { width: 92px; left: auto; right: -4%; bottom: 22%; }
.cta-3d--a { width: 86px; right: 19%; top: -34px; }
@media (max-width: 900px) { .ho-1 { width: 70px; left: 0; } .ho-3 { width: 60px; right: 0; } }

/* ==========================================================================
   Official Next4Chat brand colours (logo kit): Deep Navy #0B2F3A, Teal #0F766E,
   Blue #2563EB -> #1D4ED8, Light Teal #2DD4BF (dark backgrounds), Mist #F4F6F8
   ========================================================================== */
:root {
    --bg: #F4F6F8; --bg-alt: #EAF0F2; --surface: #FFFFFF; --surface-2: #F0F4F5;
    --ink: #0B2F3A; --ink-2: #33505A; --muted: #5F7880;
    --line: rgba(11, 47, 58, .10); --line-strong: rgba(11, 47, 58, .18);
    --green: #0F766E; --green-deep: #0F766E; --green-soft: rgba(15, 118, 110, .12);
    --navy: #0B2F3A; --navy-soft: rgba(37, 99, 235, .10); --navy-text: #1D4ED8;
    --header-bg: rgba(244, 246, 248, .86);
    --blob-a: rgba(15, 118, 110, .22); --blob-b: rgba(37, 99, 235, .18); --blob-c: rgba(45, 212, 191, .16);
    --cta-from: #0B2F3A; --cta-to: #0F766E;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #061C23; --bg-alt: #08232B; --surface: #0B2F3A; --surface-2: #0F3946;
        --ink: #EAF6F6; --ink-2: #B5CDD1; --muted: #85A3A9;
        --line: rgba(45, 212, 191, .12); --line-strong: rgba(45, 212, 191, .24);
        --green: #2DD4BF; --green-deep: #2DD4BF; --green-soft: rgba(45, 212, 191, .14);
        --navy-soft: rgba(37, 99, 235, .22); --navy-text: #8DB0FF;
        --header-bg: rgba(6, 28, 35, .82);
        --blob-a: rgba(45, 212, 191, .16); --blob-b: rgba(37, 99, 235, .24); --blob-c: rgba(15, 118, 110, .2);
        --cta-from: #0B2F3A; --cta-to: #0F766E;
    }
}
:root[data-theme="dark"] {
    --bg: #061C23; --bg-alt: #08232B; --surface: #0B2F3A; --surface-2: #0F3946;
    --ink: #EAF6F6; --ink-2: #B5CDD1; --muted: #85A3A9;
    --line: rgba(45, 212, 191, .12); --line-strong: rgba(45, 212, 191, .24);
    --green: #2DD4BF; --green-deep: #2DD4BF; --green-soft: rgba(45, 212, 191, .14);
    --navy-soft: rgba(37, 99, 235, .22); --navy-text: #8DB0FF;
    --header-bg: rgba(6, 28, 35, .82);
    --blob-a: rgba(45, 212, 191, .16); --blob-b: rgba(37, 99, 235, .24); --blob-c: rgba(15, 118, 110, .2);
    --cta-from: #0B2F3A; --cta-to: #0F766E;
}
.accent-text { background-image: linear-gradient(100deg, #0F766E 0%, #14968C 40%, #2563EB 100%); }
:root[data-theme="dark"] .accent-text { background-image: linear-gradient(100deg, #2DD4BF 0%, #5EEAD4 40%, #6B9BFF 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .accent-text { background-image: linear-gradient(100deg, #2DD4BF 0%, #5EEAD4 40%, #6B9BFF 100%); } }
.btn-primary { background: linear-gradient(110deg, #0F766E, #0F766E 35%, #2563EB 75%, #1D4ED8) !important; background-size: 180% auto !important; box-shadow: 0 12px 30px -12px rgba(15,118,110,.7); }
.brand-logo { height: 38px; width: auto; display: block; }
.site-footer .brand-logo { height: 36px; }
@media (max-width: 900px) { .brand-logo { height: 32px; } }
.cta-band, :root[data-theme="dark"] .cta-band { background: linear-gradient(120deg, #0B2F3A, #0F766E 60%, #1D4ED8) !important; }
.cta-icon { border-radius: 22px; box-shadow: 0 18px 30px -12px rgba(0,0,0,.45); }
.about-logo { background: #fff; }
:root[data-theme="dark"] .about-logo { background: #0B2F3A; border-color: rgba(45,212,191,.2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .about-logo { background: #0B2F3A; } }
.about-logo img { width: 100%; height: auto; }
.hero-floor { background: radial-gradient(circle, rgba(15,118,110,.16) 0 34%, rgba(37,99,235,.08) 35% 60%, transparent 61%); box-shadow: inset 0 0 0 1px rgba(15,118,110,.3); }
.hero-floor i { border-color: rgba(15,118,110,.45); }
.hero-floor i:nth-child(2) { border-left-color: rgba(37,99,235,.45); border-right-color: rgba(37,99,235,.45); }
.hero-floor i:nth-child(3) { border-color: rgba(45,212,191,.4); }
.brand-logo { height: 44px; }
@media (max-width: 900px) { .brand-logo { height: 36px; } }

/* ---------- API integration ---------- */
.api-sec { position: relative; overflow: hidden; }
.api-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.api-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 1rem; padding: 6px 14px; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0F766E; background: rgba(15,118,110,.1); border: 1px solid rgba(15,118,110,.28); }
.api-badge span { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: api-pulse 2s infinite; }
@keyframes api-pulse { 50% { opacity: .3; } }
.api-copy h2 { margin: 0 0 1rem; }
.api-lead { color: var(--muted); font-size: 1.1rem; }
.api-points { list-style: none; padding: 0; margin: 1.6rem 0 2rem; display: grid; gap: 1rem; }
.api-points li { display: flex; gap: 14px; color: var(--muted); }
.api-points li > span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #0F766E, #2563EB); box-shadow: 0 10px 22px -10px rgba(15,118,110,.8); }
.api-points li > span svg { width: 20px; height: 20px; }
.api-points b { display: block; color: var(--ink); margin-bottom: 2px; }
.api-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.api-visual { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto auto auto; column-gap: 22px; align-items: center; padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(15,118,110,.1), rgba(37,99,235,.08)); border: 1px solid var(--line); }
.api-node, .api-wire { grid-column: 1; justify-self: center; }
.api-node { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 220px; padding: 16px 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.api-node img { width: 60px; height: 60px; object-fit: contain; }
.api-node small { color: var(--muted); font-size: .8rem; }
.api-node--hub { border-color: rgba(15,118,110,.45); box-shadow: 0 0 0 6px rgba(15,118,110,.08), var(--shadow); }
.api-node--hub img { width: auto; height: 44px; }
.api-node--hub code { margin-top: 6px; padding: 4px 10px; border-radius: 999px; font: 600 .74rem/1 var(--font-mono); color: #fff; background: linear-gradient(110deg, #0F766E, #14B8A6); }
.api-wire { position: relative; width: 3px; height: 40px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.api-wire i { position: absolute; left: -2px; width: 7px; height: 7px; border-radius: 50%; background: #2DD4BF; box-shadow: 0 0 10px #2DD4BF; animation: api-drop 1.8s linear infinite; }
.api-wire i:nth-child(2) { animation-delay: .6s; } .api-wire i:nth-child(3) { animation-delay: 1.2s; }
.api-wire--b i { background: #2563EB; box-shadow: 0 0 10px #2563EB; }
@keyframes api-drop { from { top: -8px; } to { top: 100%; } }
.api-msgs { grid-column: 2; grid-row: 1 / -1; display: grid; gap: 10px; justify-items: start; }
.api-msgs span { padding: 9px 13px; border-radius: 16px 16px 16px 4px; font-size: .8rem; font-weight: 600; color: #fff; background: linear-gradient(110deg, #0F766E, #14B8A6); box-shadow: 0 12px 24px -12px rgba(15,118,110,.9); animation: api-nudge 6s ease-in-out infinite; }
.api-msgs span:nth-child(2) { margin-left: 16px; animation-delay: 2s; } .api-msgs span:nth-child(3) { animation-delay: 4s; }
@keyframes api-nudge { 0%, 100% { transform: none; } 15% { transform: translateX(6px); } }
:root[data-theme="dark"] .api-badge { color: #2DD4BF; background: rgba(45,212,191,.1); border-color: rgba(45,212,191,.3); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .api-badge { color: #2DD4BF; background: rgba(45,212,191,.1); border-color: rgba(45,212,191,.3); } }
@media (max-width: 1000px) { .api-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) { .api-visual { grid-template-columns: 1fr; padding: 22px; } .api-msgs { grid-column: 1; grid-row: auto; justify-items: center; margin-top: 18px; } .api-msgs span:nth-child(2) { margin-left: 0; } }
@media (prefers-reduced-motion: reduce) { .api-wire i, .api-msgs span, .api-badge span { animation: none; } }
