/* =========================================================
   IBSAR — AI Vision Landing Page
   Dark theme · 3D · glassmorphism
   ========================================================= */

/* Smooth cross-document fade when moving between this landing page and the
   Angular auth pages (both opt in). Chromium-only; a graceful no-op elsewhere. */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 460ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

:root {
    /* Brand */
    --primary: #5e72e4;
    --primary-light: #7c8cff;
    --primary-light-2: #9aa7ff;
    --primary-dark: #4c63d2;
    --deep: #1e3c72;
    --info: #11cdef;
    --success: #2dce89;
    --warning: #fb6340;
    --violet: #b57cff;
    --teal: #2ee6c5;

    /* Dark surfaces */
    --bg-0: #05070f;
    --bg-1: #080b16;
    --bg-2: #0b0f1e;
    --surface: rgba(255, 255, 255, 0.035);
    --surface-2: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);

    /* Text */
    --text: #eef1f9;
    --text-2: #a6b0cf;
    --text-3: #6b7699;

    /* Effects */
    --glow-primary: 0 0 40px rgba(94, 114, 228, 0.45);
    --glow-info: 0 0 40px rgba(17, 205, 239, 0.35);
    --radius: 18px;
    --radius-lg: 26px;
    --container: 1340px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --grad: linear-gradient(110deg, #7c8cff 0%, #11cdef 60%, #2dce89 120%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Lenis smooth-scroll (added by fx3d.js) */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-0);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ambient background glows */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(60vw 60vw at 78% -8%, rgba(94, 114, 228, 0.16), transparent 60%),
        radial-gradient(45vw 45vw at 8% 12%, rgba(17, 205, 239, 0.10), transparent 60%),
        radial-gradient(50vw 50vw at 50% 108%, rgba(45, 206, 137, 0.08), transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

h1, h2, h3, h4 { font-family: 'Sora', 'Inter', sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

.grad {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ LOADER + INTRO (eye morph) ============ */
#loader { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center;
    transition: opacity .5s var(--ease), visibility .5s; }
#loader.hide { opacity: 0; visibility: hidden; }
#loader.unveil { pointer-events: none; }   /* let the page receive input once the scene shows */

/* dark backdrop that fades to reveal the live 3D scene around the eye */
.loader-veil { position: absolute; inset: 0; z-index: 0;
    background: radial-gradient(circle at 50% 46%, #0b1128 0%, var(--bg-0) 62%);
    transition: opacity .9s var(--ease); }
.loader-flash { position: absolute; top: 46%; left: 50%; z-index: 1; width: 70vmax; height: 70vmax; border-radius: 50%;
    pointer-events: none; opacity: 0; transform: translate(-50%,-50%) scale(.2);
    background: radial-gradient(circle, rgba(124,140,255,.5), rgba(17,205,239,.2) 32%, transparent 62%);
    will-change: transform, opacity; }

.loader-stage { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 22px; }

/* the loading eye — built to visually match the 3D hero eye for a seamless hand-off */
.loader-eye { position: relative; width: 74px; height: 74px; border-radius: 50%; transform-origin: center center;
    background: radial-gradient(circle at 50% 50%, #0c1226 0%, #060a16 72%);
    box-shadow: 0 0 0 1px var(--border), var(--glow-primary);
    display: flex; align-items: center; justify-content: center;
    transition: transform 1.15s cubic-bezier(.66,0,.2,1), box-shadow .8s var(--ease), opacity .55s var(--ease);
    will-change: transform, opacity; }
.loader-iris { width: 30px; height: 30px; border-radius: 50%;
    background: radial-gradient(circle at 40% 35%, #9aa7ff, var(--primary) 45%, var(--deep) 100%);
    box-shadow: inset 0 0 8px rgba(0,0,0,.6); animation: irisPulse 1.5s var(--ease) infinite; }
.loader-iris::after { content:""; position:absolute; inset:0; margin:auto; width:11px; height:11px; border-radius:50%; background:#03040a;
    box-shadow: 0 0 0 2px rgba(17,205,239,.5); }
.loader-hi { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.9); top: 30%; left: 38%; }
.loader-scan { position: absolute; inset: -1px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--info);
    animation: spin 1.1s linear infinite; transition: opacity .5s var(--ease), transform .6s var(--ease); }
@keyframes irisPulse { 0%,100%{transform:scale(1)} 50%{transform:scale(1.12)} }
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text { font-family:'Sora'; font-weight:800; letter-spacing:.5em; font-size:1.35rem; padding-left:.5em;
    background:var(--grad); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent;
    transition: opacity .5s var(--ease), transform .6s var(--ease); }
.loader-sub { color: var(--text-3); font-size:.82rem; letter-spacing:.04em; transition: opacity .4s var(--ease), transform .4s var(--ease); }

/* --- sequence: fade text/ring -> fly & grow -> reveal scene -> cross-fade into 3D eye --- */
#loader.seq1 .loader-sub  { opacity: 0; transform: translateY(8px); }
#loader.seq1 .loader-text { opacity: 0; transform: translateY(6px); }
#loader.seq1 .loader-scan { opacity: 0; transform: scale(1.5) rotate(120deg); }
#loader.seq1 .loader-eye  { box-shadow: 0 0 0 1px var(--border), 0 0 70px rgba(124,140,255,.6); }

#loader.move .loader-eye  { transform: translate(var(--tx,0), var(--ty,0)) scale(var(--ts,1));
    box-shadow: 0 0 0 1px var(--border), 0 0 120px 34px rgba(124,140,255,.45); }
#loader.move .loader-flash { opacity: 1; transform: translate(-50%,-50%) scale(1); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }

#loader.unveil .loader-veil  { opacity: 0; }
#loader.unveil .loader-flash { opacity: 0; }

#loader.morph .loader-eye { opacity: 0; }

/* ============ CURSOR GLOW ============ */
#cursor-glow {
    position: fixed; top: 0; left: 0; width: 460px; height: 460px; border-radius: 50%;
    background: radial-gradient(circle, rgba(94,114,228,0.10), transparent 62%);
    transform: translate(-50%, -50%); pointer-events: none; z-index: 2;
    transition: opacity .3s; opacity: 0;
}

/* ============ NAV ============ */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 18px 0; transition: all .4s var(--ease);
}
.nav.scrolled {
    padding: 10px 0;
    background: rgba(6, 9, 18, 0.72);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: inline-block; }
.brand-name { font-family:'Sora'; font-weight: 800; font-size: 1.28rem; letter-spacing: .16em; color: #fff; padding-left:.05em; }
.nav-links { display: flex; gap: 30px; }
.nav-links .mobile-signin { display: none; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: .93rem; font-weight: 500; position: relative; transition: color .25s; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-6px; width:0; height:2px; background:var(--grad); transition:width .3s var(--ease); border-radius:2px; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width:100%; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-burger { display:none; background:none; border:0; flex-direction:column; gap:5px; cursor:pointer; padding:8px; }
.nav-burger span { width:24px; height:2px; background:#fff; border-radius:2px; transition:.3s; }

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex; align-items: center; gap: 8px; justify-content:center;
    font-family:'Inter'; font-weight: 600; font-size: .92rem; text-decoration: none;
    padding: 11px 20px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
    transition: all .3s var(--ease); white-space: nowrap;
}
.btn .material-icons-round { font-size: 1.15em; }
.btn-lg { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn-primary { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 8px 24px rgba(94,114,228,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(94,114,228,.5); }
.btn-outline { background: var(--surface); color: #fff; border-color: var(--border-strong); backdrop-filter: blur(8px); }
.btn-outline:hover { background: var(--surface-2); border-color: var(--primary-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text-2); padding: 11px 14px; }
.btn-ghost:hover { color: #fff; }

/* ============ BACKGROUND CONSTELLATION ============ */
#bg-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; opacity: .5; }

/* ============ HERO ============ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
#eye-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-vignette {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: radial-gradient(ellipse 70% 60% at 72% 45%, transparent 30%, var(--bg-0) 92%),
                linear-gradient(180deg, transparent 60%, var(--bg-0) 100%);
}
.hero .container { max-width: 100%; padding-left: clamp(24px, 3.5vw, 72px); padding-right: clamp(24px, 3.5vw, 72px); }
.hero-inner { z-index: 2; max-width: 720px; padding-top: 90px; padding-bottom: 60px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--surface); border: 1px solid var(--border); color: var(--text-2);
    padding: 8px 16px; border-radius: 100px; font-size: .82rem; font-weight: 500; margin-bottom: 26px;
    backdrop-filter: blur(8px);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(45,206,137,.7); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 0%{box-shadow:0 0 0 0 rgba(45,206,137,.6)} 70%{box-shadow:0 0 0 9px rgba(45,206,137,0)} 100%{box-shadow:0 0 0 0 rgba(45,206,137,0)} }
.hero-title { font-size: clamp(2.6rem, 5.8vw, 4.6rem); font-weight: 800; margin-bottom: 22px; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.22rem); color: var(--text-2); max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hstat { display: flex; flex-direction: column; }
.hstat-num { font-family:'Sora'; font-size: 1.85rem; font-weight: 800; color: #fff; line-height: 1; }
.hstat-label { font-size: .8rem; color: var(--text-3); margin-top: 6px; }
.hstat-div { width: 1px; height: 38px; background: var(--border); }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--text-3); animation: bob 2s infinite; text-decoration:none; }
.scroll-hint .material-icons-round { font-size: 2rem; }
@keyframes bob { 0%,100%{transform:translate(-50%,0)} 50%{transform:translate(-50%,10px)} }

/* ============ TRUST ============ */
.trust { padding: 40px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.015); }
.trust-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.trust-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .18em; color: var(--text-3); }
.trust-logos { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; color: var(--text-2); font-weight: 600; font-size: 1rem; }
.trust-logos .dot { color: var(--primary); }

/* ============ SECTION HEAD ============ */
section { padding: 110px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 60px; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .16em; color: var(--primary-light); margin-bottom: 16px; }
.section-title { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 18px; }
.section-sub { color: var(--text-2); font-size: 1.08rem; }

/* ============ DETECTION ============ */
.detect { background: linear-gradient(180deg, var(--bg-0), var(--bg-1)); }
.detect-stage { display: grid; grid-template-columns: 1.6fr 1fr; gap: 34px; align-items: stretch; }
.detect-canvas-wrap {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-strong); background: #04060d;
    box-shadow: 0 30px 80px rgba(0,0,0,.5), var(--glow-primary); min-height: 460px;
    aspect-ratio: 16 / 10;
}
#detect-canvas, #detect-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
#detect-overlay { z-index: 2; pointer-events: none; }
.detect-hud { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; justify-content: space-between; padding: 16px 18px; pointer-events: none; }
.hud-row { display: flex; align-items: center; gap: 14px; }
.hud-live { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; color: #fff; background: rgba(251,99,64,.16); border:1px solid rgba(251,99,64,.4); padding: 4px 10px; border-radius: 6px; }
.hud-live .pulse-dot { background: var(--warning); }
.hud-cam { font-size: .78rem; color: var(--text-2); font-family: 'Inter'; letter-spacing:.03em; }
.hud-fps { font-family: 'Sora'; font-size: .8rem; color: var(--info); font-weight: 600; }
.detect-counters { position: absolute; bottom: 0; left: 0; right: 0; z-index: 3; display: flex; gap: 10px; padding: 16px 18px; pointer-events: none; }
.dcount { display: flex; align-items: center; gap: 11px; background: rgba(6,9,18,.66); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: 12px; padding: 10px 15px; flex: 1; }
.dcount .material-icons-round { font-size: 1.5rem; }
.dcount-num { font-family: 'Sora'; font-size: 1.35rem; font-weight: 800; color: #fff; display: block; line-height: 1; }
.dcount-lbl { font-size: .72rem; color: var(--text-3); }
.detect-side { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.feat-line { display: flex; gap: 15px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; transition: all .3s var(--ease); }
.feat-line:hover { border-color: var(--border-strong); background: var(--surface-2); transform: translateX(4px); }
.feat-line .material-icons-round { color: var(--primary-light); font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.feat-line b { color: #fff; font-family:'Sora'; font-weight: 600; font-size: 1.02rem; display: block; margin-bottom: 3px; }
.feat-line p { color: var(--text-2); font-size: .9rem; line-height: 1.5; }

/* ============ PRODUCTS ============ */
.prod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.prod-card {
    position: relative; isolation: isolate;
    background:
        radial-gradient(130% 130% at 100% 0%, rgba(255,255,255,.05), transparent 46%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px 26px 30px; overflow: hidden;
    transition: border-color .45s var(--ease), box-shadow .45s var(--ease);
}
/* accent driver per card */
.prod-card[data-accent="info"]    { --acc: var(--info); }
.prod-card[data-accent="primary"] { --acc: var(--primary-light); }
.prod-card[data-accent="success"] { --acc: var(--success); }
.prod-card[data-accent="warning"] { --acc: var(--warning); }
.prod-card[data-accent="violet"]  { --acc: var(--violet); }
.prod-card[data-accent="teal"]    { --acc: var(--teal); }
.prod-card > * { position: relative; z-index: 2; }

/* animated gradient border, revealed on hover */
.prod-border { position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 1; opacity: 0; transition: opacity .45s var(--ease);
    background: linear-gradient(135deg, var(--acc), transparent 42%, transparent 58%, var(--acc));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.prod-card:hover .prod-border { opacity: .75; }

/* cursor-follow spotlight */
.prod-spot { position: absolute; inset: 0; z-index: 1; border-radius: inherit; opacity: 0; transition: opacity .4s;
    background: radial-gradient(240px circle at var(--mx,50%) var(--my,0%), color-mix(in srgb, var(--acc) 24%, transparent), transparent 60%); }
.prod-card:hover .prod-spot { opacity: 1; }

.prod-card:hover { border-color: transparent; box-shadow: 0 26px 60px rgba(0,0,0,.5); }
.prod-card.featured { border-color: color-mix(in srgb, var(--acc) 42%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--acc) 20%, transparent), 0 24px 60px rgba(0,0,0,.4); }

.prod-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.prod-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--acc) 13%, var(--surface-2)); border: 1px solid color-mix(in srgb, var(--acc) 32%, var(--border));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07); transition: transform .45s var(--ease); }
.prod-card:hover .prod-icon { transform: translateY(-2px) scale(1.06); }
.prod-icon .material-icons-round { font-size: 1.7rem; color: var(--acc); }

.prod-status { display: inline-flex; align-items: center; gap: 7px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px; }
.prod-status .stat-dot { width: 6px; height: 6px; border-radius: 50%; }
.prod-status.live { color: var(--success); background: rgba(45,206,137,.12); border: 1px solid rgba(45,206,137,.28); }
.prod-status.live .stat-dot { background: var(--success); box-shadow: 0 0 0 0 rgba(45,206,137,.6); animation: pulseDot 2s infinite; }
.prod-status.soon { color: var(--text-2); background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.prod-status.soon .stat-dot { background: var(--acc); }

.prod-card h3 { font-size: 1.3rem; margin-bottom: 4px; color: #fff; }
.prod-kicker { display: inline-block; font-family: 'Sora', monospace; font-size: .72rem; letter-spacing: .04em; color: var(--acc); opacity: .9; margin-bottom: 14px; }
.prod-card > p { color: var(--text-2); font-size: .92rem; line-height: 1.6; margin-bottom: 20px; }
.prod-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.prod-list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: .88rem; }
.prod-list .material-icons-round { font-size: 1rem; color: var(--acc); background: color-mix(in srgb, var(--acc) 15%, transparent); border-radius: 50%; padding: 3px; }
/* roadmap cards read a touch quieter */
.prod-card[data-status="soon"] { background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.014) 0 9px, transparent 9px 18px), var(--surface); }
.prod-card[data-status="soon"] .prod-list li { color: var(--text-2); }

/* ============ FEATURES ============ */
.features { background: transparent; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat-card { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 26px; transition: border-color .4s var(--ease); }
.feat-card::before { content: ""; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .4s;
    background: radial-gradient(220px circle at var(--mx,50%) var(--my,0%), rgba(124,140,255,.16), transparent 60%); }
.feat-card:hover::before { opacity: 1; }
.feat-card:hover { border-color: var(--border-strong); }
.feat-card > * { position: relative; z-index: 1; }
.feat-card .material-icons-round { font-size: 2rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; display: inline-block; transition: transform .4s var(--ease); }
.feat-card:hover .material-icons-round { transform: translateY(-3px) scale(1.08); }
.feat-card h3 { font-size: 1.14rem; color: #fff; margin-bottom: 9px; }
.feat-card p { color: var(--text-2); font-size: .9rem; }

/* ============ HOW ============ */
.how-flow { display: flex; align-items: stretch; justify-content: center; gap: 6px; flex-wrap: wrap; }
.how-step { flex: 1; min-width: 190px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 24px; position: relative; text-align: center; transition: all .35s var(--ease); }
.how-step:hover { border-color: var(--primary-light); transform: translateY(-5px); }
.how-num { font-family: 'Sora'; font-size: .82rem; font-weight: 800; color: var(--primary-light); letter-spacing: .1em; margin-bottom: 12px; }
.how-step > .material-icons-round { font-size: 2.4rem; color: #fff; margin-bottom: 12px; }
.how-step h3 { font-size: 1.18rem; color: #fff; margin-bottom: 8px; }
.how-step p { color: var(--text-2); font-size: .88rem; }
.how-arrow { display: flex; align-items: center; color: var(--text-3); }
.how-arrow .material-icons-round { font-size: 1.6rem; animation: flowArrow 2.2s var(--ease) infinite; }
@keyframes flowArrow { 0%,100% { transform: translateX(-4px); opacity: .35; } 50% { transform: translateX(4px); opacity: 1; color: var(--primary-light); } }
.how-step > .material-icons-round { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ============ CTA ============ */
.cta { padding-bottom: 130px; }
.cta-box { position: relative; text-align: center; background: linear-gradient(140deg, rgba(94,114,228,.14), rgba(17,205,239,.06)); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: 70px 40px; overflow: hidden; }
.cta-glow { position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(circle, rgba(94,114,228,.3), transparent 62%); filter: blur(40px); pointer-events: none; }
.cta-box h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); margin-bottom: 14px; position: relative; z-index: 1; }
.cta-box p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 30px; position: relative; z-index: 1; }
.cta-box .btn { position: relative; z-index: 1; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--border); padding: 70px 0 30px; background: var(--bg-1); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-2); font-size: .92rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-family:'Sora'; }
.footer-col a { display: block; color: var(--text-2); text-decoration: none; font-size: .9rem; margin-bottom: 11px; transition: color .25s; }
.footer-col a:hover { color: var(--primary-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--border); color: var(--text-3); font-size: .84rem; flex-wrap: wrap; gap: 10px; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 940px) {
    .nav-links, .nav-cta { display: none; }
    .nav-burger { display: flex; }
    .nav-links.open {
        display: flex;
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 18px;
        padding: 22px 24px;
        background: rgba(6, 9, 18, 0.96);
        -webkit-backdrop-filter: blur(18px);
        backdrop-filter: blur(18px);
        border: 1px solid var(--border);
        border-radius: 14px;
    }
    .nav-links.open .mobile-signin { display: block; color: var(--primary-light); font-weight: 600; }
    .detect-stage { grid-template-columns: 1fr; }
    .prod-grid, .feat-grid { grid-template-columns: 1fr; }
    .how-arrow { transform: rotate(90deg); }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    section { padding: 80px 0; }
}
@media (max-width: 560px) {
    .hero-stats { gap: 16px; }
    .hstat-div { display: none; }
    .footer-inner { grid-template-columns: 1fr; }
    .hero-actions .btn { width: 100%; }
    .container { padding: 0 20px; }
}

/* =========================================================
   FX3D — scroll progress, marquee, 3D tilt, pipeline, CTA orb
   ========================================================= */

/* ---- scroll progress bar ---- */
#scroll-progress {
    position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 300;
    background: var(--grad); transform-origin: 0 50%; transform: scaleX(0);
    pointer-events: none;
}

/* ---- trust marquee ---- */
.trust-marquee {
    overflow: hidden; margin-top: 18px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.trust-track { display: flex; width: max-content; will-change: transform; animation: marquee 32s linear infinite; }
.trust-marquee:hover .trust-track { animation-play-state: paused; }
.trust-track .trust-logos { flex-wrap: nowrap; gap: 38px; padding-right: 38px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---- 3D tilt cards (html.fx-tilt set by fx3d.js on fine-pointer devices) ---- */
.fx-tilt .prod-grid { perspective: 1600px; }
.fx-tilt .prod-card { transform-style: preserve-3d; }
.fx-tilt .prod-card .prod-head   { transform: translateZ(46px); }
.fx-tilt .prod-card h3           { transform: translateZ(38px); }
.fx-tilt .prod-card .prod-kicker { transform: translateZ(30px); }
.fx-tilt .prod-card > p          { transform: translateZ(22px); }
.fx-tilt .prod-card .prod-list   { transform: translateZ(32px); }
.fx-tilt .prod-card:hover .prod-icon { transform: translateY(-2px) scale(1.06); }
.fx-tilt .feat-grid { perspective: 1400px; }
.fx-tilt .feat-card { transform-style: preserve-3d; }
.fx-tilt .feat-card .material-icons-round { transform: translateZ(36px); }
.fx-tilt .feat-card h3 { transform: translateZ(26px); }
.fx-tilt .feat-card p  { transform: translateZ(16px); }
/* glare sweep, driven by --gx from JS */
.fx-tilt .prod-card::after, .fx-tilt .feat-card::after {
    content: ""; position: absolute; inset: -2px; z-index: 4; pointer-events: none;
    opacity: 0; transition: opacity .35s;
    background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.075) 50%, transparent 58%);
    transform: translateX(var(--gx, -70%)) translateZ(1px);
}
.fx-tilt .prod-card:hover::after, .fx-tilt .feat-card:hover::after { opacity: 1; }

/* ---- split-title words ---- */
.section-title .w, .hero-title .w { display: inline-block; will-change: transform; transform-origin: 50% 100%; margin-right: .24em; }
.section-title .w:last-child, .hero-title .w:last-child { margin-right: 0; }
[data-fx-head="1"] .section-title, .pipe-head .section-title, .hero-title { perspective: 700px; }

/* ---- HOW: 3D pipeline stage ---- */
.how { overflow: visible; }
.how.pipe-on { padding: 0; }
.how-stage { display: none; }
.how.pipe-on .how-stage { display: block; }
.how.pipe-on .how-fallback { display: none; }
.how-stage {
    position: relative; height: 100vh; overflow: hidden;
    background: linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 30%, var(--bg-1) 70%, var(--bg-0) 100%);
}
#pipe-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pipe-vignette {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        linear-gradient(180deg, var(--bg-0), transparent 16%, transparent 84%, var(--bg-0)),
        radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(3,5,12,.55) 100%);
}
.pipe-head { position: absolute; top: 6.5vh; left: 0; right: 0; text-align: center; z-index: 3; pointer-events: none; }
.pipe-head .eyebrow { margin-bottom: 10px; }
.pipe-head .section-title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin: 0; }

.pipe-steps {
    position: absolute; left: clamp(24px, 5.5vw, 96px); top: 50%; transform: translateY(-50%);
    width: min(420px, 33vw); z-index: 3; perspective: 900px; pointer-events: none;
}
.pipe-step {
    position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
    background: rgba(7, 10, 20, .58);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
    padding: 26px 28px; opacity: 0; visibility: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,.45);
}
.pipe-step::before {
    content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px;
    border-radius: 3px; background: var(--grad);
}
.pipe-step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.pipe-step-num { font-family: 'Sora'; font-weight: 800; font-size: .85rem; letter-spacing: .14em; color: var(--primary-light); }
.pipe-step-top .material-icons-round { font-size: 1.9rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pipe-step h3 { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.pipe-step p { color: var(--text-2); font-size: .95rem; line-height: 1.6; }

.pipe-nav { position: absolute; left: 50%; transform: translateX(-50%); bottom: 5vh; z-index: 4; width: min(620px, 62vw); }
.pipe-rail { height: 2px; background: var(--border); border-radius: 2px; overflow: hidden; }
.pipe-rail-fill { height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }
.pipe-dots { display: flex; justify-content: space-between; margin-top: 12px; }
.pipe-dot {
    background: none; border: 0; cursor: pointer; font-family: 'Inter'; font-size: .78rem; font-weight: 600;
    color: var(--text-3); display: flex; flex-direction: column; align-items: center; gap: 7px;
    transition: color .3s; padding: 4px 6px;
}
.pipe-dot span { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--text-3); transition: all .3s var(--ease); }
.pipe-dot:hover { color: var(--text-2); }
.pipe-dot.on { color: #fff; }
.pipe-dot.on span { background: var(--info); border-color: var(--info); box-shadow: 0 0 12px rgba(17,205,239,.8); }
.pipe-hint {
    position: absolute; right: 4vw; bottom: 5vh; z-index: 3; color: var(--text-3);
    font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
    display: flex; align-items: center; gap: 6px; animation: bob2 2.2s ease-in-out infinite;
}
.pipe-hint .material-icons-round { font-size: 1.1rem; }
@keyframes bob2 { 0%,100% { transform: translateY(0); opacity: .6; } 50% { transform: translateY(6px); opacity: 1; } }

/* ---- CTA orb canvas ---- */
#cta-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

/* ---- responsive for pipeline ---- */
@media (max-width: 1180px) {
    .pipe-steps { width: min(380px, 38vw); }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
    .trust-track { animation: none; }
}
