/* ============================================================
   AI Smart Port Operations — Premium SaaS Landing
   Dark cinematic theme · glassmorphism · #050505 base
   (landing page only — the dashboard keeps style.css)
   ============================================================ */

:root {
    --bg:        #050505;
    --surface:   rgba(255, 255, 255, 0.05);
    --stroke:    rgba(255, 255, 255, 0.08);
    --text:      #ffffff;
    --dim:       #a1a1aa;
    --grad-a:    #6D5DF6;
    --grad-b:    #4F8CFF;
    --glow:      #7C3AED;
    --red:       #f87171;
    --green:     #34d399;
    --r:         24px;
    --nav-h:     68px;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: rgba(109, 93, 246, 0.45); }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

a { color: inherit; text-decoration: none; }

/* ============ Ambient background ============ */

.bg-grid {
    position: fixed; inset: 0; z-index: -3; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 100%);
    mask-image: radial-gradient(70% 55% at 50% 30%, #000 0%, transparent 100%);
    animation: gridDrift 26s linear infinite;
}
@keyframes gridDrift {
    from { background-position: 0 0, 0 0; }
    to   { background-position: 56px 56px, 56px 56px; }
}

.orb-wrap { position: fixed; z-index: -2; pointer-events: none; will-change: transform; }
.orb {
    border-radius: 50%;
    filter: blur(90px);
    animation: orbPulse 9s ease-in-out infinite;
}
.orb-a { top: -180px; left: -140px; }
.orb-a .orb { width: 560px; height: 560px; background: rgba(109, 93, 246, 0.22); }
.orb-b { top: 30vh; right: -220px; }
.orb-b .orb { width: 640px; height: 640px; background: rgba(79, 140, 255, 0.16); animation-delay: -3s; }
.orb-c { top: 130vh; left: -180px; }
.orb-c .orb { width: 520px; height: 520px; background: rgba(124, 58, 237, 0.14); animation-delay: -6s; }
@keyframes orbPulse {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50%      { transform: scale(1.15); opacity: 1; }
}

#cursor-glow {
    position: fixed; z-index: -1; pointer-events: none;
    width: 480px; height: 480px; left: 0; top: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(109,93,246,0.10) 0%, transparent 65%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
}
body.has-mouse #cursor-glow { opacity: 1; }

/* ============ Glass base ============ */

.glass {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--r);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

/* ============ Buttons & pills ============ */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: inherit; font-size: 14px; font-weight: 600; letter-spacing: 0.1px;
    padding: 11px 22px; border-radius: 999px; border: none; cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
    white-space: nowrap;
}
.btn-lg { padding: 15px 30px; font-size: 15px; }
.btn-grad {
    color: #fff;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    box-shadow: 0 8px 30px rgba(109, 93, 246, 0.4);
}
.btn-grad:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 44px rgba(109, 93, 246, 0.55), 0 0 0 1px rgba(255,255,255,0.12) inset;
}
.btn-glass {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--stroke);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}
.btn-glass:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.22); }

.pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.4px;
    color: #c9c3ff;
    background: rgba(109, 93, 246, 0.10);
    border: 1px solid rgba(109, 93, 246, 0.35);
    border-radius: 999px; padding: 7px 16px;
}
.pill-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--grad-a); box-shadow: 0 0 10px var(--grad-a);
    animation: blink 1.8s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.grad-text {
    background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.dot-green {
    width: 7px; height: 7px; border-radius: 50%; display: inline-block;
    background: var(--green); box-shadow: 0 0 8px var(--green);
}
.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%; display: inline-block;
    background: var(--red); box-shadow: 0 0 10px var(--red);
    animation: blink 1.3s infinite;
}

/* ============ Navbar ============ */

.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    background: rgba(5, 5, 5, 0.55);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
    max-width: 1200px; margin: 0 auto; height: var(--nav-h);
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    padding: 0 24px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 30px; width: auto; display: block; }
.nav-brand { font-size: 14px; font-weight: 500; color: var(--dim); white-space: nowrap; }
.nav-brand b { color: var(--text); font-weight: 700; }

.nav-links { display: flex; gap: 6px; }
.nav-links a {
    font-size: 13.5px; font-weight: 500; color: var(--dim);
    padding: 7px 14px; border-radius: 999px;
    transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active {
    color: #fff;
    background: rgba(109, 93, 246, 0.16);
    box-shadow: inset 0 0 0 1px rgba(109, 93, 246, 0.35);
}

.nav-right { display: flex; align-items: center; gap: 16px; }
.live-pill {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase;
    color: var(--red);
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--red); box-shadow: 0 0 10px var(--red);
    animation: blink 1.4s infinite;
}
.nav .btn-grad { padding: 9px 20px; font-size: 13px; }

/* ============ Hero ============ */

.hero {
    position: relative;
    min-height: min(100vh, 960px);
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 40px) 24px 80px;
    overflow: hidden;
}
#particles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero-inner {
    position: relative; z-index: 1;
    max-width: 1200px; width: 100%; margin: 0 auto;
    display: grid; grid-template-columns: 1.08fr 0.92fr;
    gap: 56px; align-items: center;
}

.hero-h1 {
    font-size: clamp(38px, 4.6vw, 62px);
    font-weight: 800; line-height: 1.08; letter-spacing: -2px;
    margin: 26px 0 22px;
}
.hero-p { font-size: 16.5px; color: var(--dim); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-val {
    font-size: 30px; font-weight: 800; letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(120deg, #fff, #b9c8ff);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-lbl { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--dim); }
.stat-sep { width: 1px; height: 40px; background: var(--stroke); }

.hero-fade {
    position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 1;
    background: linear-gradient(transparent, var(--bg));
    pointer-events: none;
}

/* ---- Hero right: floating video cards ---- */

.hero-right { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; }

.float-badge {
    position: absolute; z-index: 5;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: 0.6px;
    color: var(--text);
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid var(--stroke);
    border-radius: 999px; padding: 9px 18px;
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 34px rgba(0,0,0,0.5);
    animation: floaty 6s ease-in-out infinite;
}
.badge-top { top: 52px; left: -8px; }
.badge-bottom { bottom: -46px; right: 4px; animation-delay: -3s; }

.v-wrap { width: 100%; max-width: 400px; }
.v-head {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 16px; padding: 0 4px;
}
.v-head-title { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.v-head-count {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 10.5px; font-weight: 700; letter-spacing: 0.9px; text-transform: uppercase;
    color: var(--dim);
}

.v-stack {
    position: relative; width: 100%; max-width: 400px;
    display: flex; flex-direction: column; gap: 20px;
}
.v-card { display: block; }
.v-card.f1 { transform: translateX(-26px); }
.v-card.f2 { transform: translateX(30px); }
.v-card.f3 { transform: translateX(-12px); }

.v-glass {
    position: relative;
    background: var(--surface);
    border: 1px solid transparent;
    border-radius: var(--r);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background-clip: padding-box;
    animation: floaty 7s ease-in-out infinite;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.v-card.f1 .v-glass { animation-delay: 0s; }
.v-card.f2 .v-glass { animation-delay: -2.3s; }
.v-card.f3 .v-glass { animation-delay: -4.6s; }

.v-glass::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    transition: background 0.25s;
}
.v-card:hover .v-glass {
    transform: scale(1.03);
    box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(109,93,246,0.22);
}
.v-card:hover .v-glass::before {
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
}
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}

.v-thumb { position: relative; aspect-ratio: 16 / 8.2; background: #000; overflow: hidden; }
.v-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.v-ready {
    position: absolute; top: 10px; right: 10px;
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
    color: var(--green);
    background: rgba(5, 5, 5, 0.65);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 999px; padding: 4px 10px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.v-num {
    position: absolute; bottom: 10px; left: 10px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.4px;
    color: var(--text);
    background: rgba(5, 5, 5, 0.6);
    border: 1px solid var(--stroke);
    border-radius: 8px; padding: 4px 10px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.v-info { display: flex; align-items: center; gap: 14px; padding: 13px 16px; }
.v-progress {
    flex: 1; height: 5px; border-radius: 99px; overflow: hidden;
    background: rgba(255,255,255,0.08);
}
.v-progress span {
    display: block; height: 100%; width: 45%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
    animation: progressSlide 2.6s ease-in-out infinite;
}
@keyframes progressSlide {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(320%); }
}
.v-start {
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
    background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* empty-state mock card */
.mock-empty { padding: 34px 28px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.mock-empty p { font-size: 13.5px; color: var(--dim); }
.mock-bars { display: flex; gap: 8px; align-items: flex-end; height: 46px; }
.mock-bars span {
    width: 12px; border-radius: 6px 6px 2px 2px;
    background: linear-gradient(180deg, var(--grad-a), var(--grad-b));
    animation: barBounce 1.6s ease-in-out infinite;
}
.mock-bars span:nth-child(1) { height: 60%; }
.mock-bars span:nth-child(2) { height: 100%; animation-delay: -0.4s; }
.mock-bars span:nth-child(3) { height: 40%; animation-delay: -0.8s; }
@keyframes barBounce { 0%, 100% { transform: scaleY(0.7); } 50% { transform: scaleY(1); } }

/* ============ Sections ============ */

.section {
    position: relative;
    max-width: 1200px; margin: 0 auto;
    padding: 110px 24px;
}
.section + .section::before {
    content: ""; position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(109,93,246,0.35), transparent);
}

.sec-head { text-align: center; max-width: 680px; margin: 0 auto 60px; }
.sec-h2 {
    font-size: clamp(30px, 3.4vw, 46px);
    font-weight: 800; line-height: 1.12; letter-spacing: -1.4px;
    margin: 22px 0 16px;
}
.sec-p { font-size: 15.5px; color: var(--dim); }

/* ============ Timeline ============ */

.timeline {
    position: relative;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.tl-line {
    position: absolute; top: 44px; left: 6%; right: 6%; height: 2px; z-index: 0;
    background: linear-gradient(90deg, transparent, var(--grad-a), var(--grad-b), transparent);
    background-size: 200% 100%;
    animation: lineFlow 4s linear infinite;
    filter: drop-shadow(0 0 8px rgba(109,93,246,0.7));
}
@keyframes lineFlow {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}
.tl-step {
    position: relative; z-index: 1;
    padding: 26px 22px; text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.tl-step:hover {
    transform: translateY(-6px);
    border-color: rgba(109, 93, 246, 0.5);
    box-shadow: 0 24px 70px rgba(0,0,0,0.45), 0 0 50px rgba(109,93,246,0.14);
}
.tl-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; margin-bottom: 16px;
    font-size: 13px; font-weight: 800;
    color: #fff; border-radius: 50%;
    background: linear-gradient(135deg, var(--grad-a), var(--grad-b));
    box-shadow: 0 0 24px rgba(109, 93, 246, 0.55);
}
.tl-step h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.3px; }
.tl-step p { font-size: 13px; color: var(--dim); }
.tl-step p.tl-extra {
    margin-top: 12px; padding-top: 12px;
    border-top: 1px solid var(--stroke);
    font-size: 12.5px;
    color: rgba(201, 195, 255, 0.8);
}

/* ============ Bento ============ */

.bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(190px, auto);
    gap: 18px;
}
.bento-card {
    position: relative; overflow: hidden;
    padding: 28px 26px;
    display: flex; flex-direction: column; gap: 10px; justify-content: flex-end;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.bento-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(109, 93, 246, 0.5);
    box-shadow: 0 26px 80px rgba(0,0,0,0.5), 0 0 60px rgba(109,93,246,0.16);
}
.bento-card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.3px; }
.bento-card p { font-size: 13.5px; color: var(--dim); }

.b-lg { grid-column: span 2; grid-row: span 2; justify-content: flex-end; }
.b-lg h3 { font-size: 24px; letter-spacing: -0.6px; }
.b-lg p { font-size: 14.5px; max-width: 460px; }

.b-visual {
    position: absolute; top: -40px; right: -40px; width: 300px; height: 300px;
    display: flex; align-items: center; justify-content: center;
    pointer-events: none;
}
.b-ring {
    position: absolute; inset: 0; border-radius: 50%;
    border: 1px solid rgba(109, 93, 246, 0.35);
    background: radial-gradient(circle, rgba(109,93,246,0.16) 0%, transparent 65%);
    animation: orbPulse 7s ease-in-out infinite;
}
.b-eye { width: 110px; height: 110px; color: rgba(150, 160, 255, 0.5); }

.b-ico {
    width: 44px; height: 44px; margin-bottom: auto;
    display: flex; align-items: center; justify-content: center;
    color: #b7aefc;
    background: rgba(109, 93, 246, 0.12);
    border: 1px solid rgba(109, 93, 246, 0.3);
    border-radius: 13px;
}
.b-ico svg { width: 22px; height: 22px; }
.ico-red { color: var(--red); background: rgba(248,113,113,0.10); border-color: rgba(248,113,113,0.3); }

.b-red:hover { border-color: rgba(248, 113, 113, 0.55); box-shadow: 0 26px 80px rgba(0,0,0,0.5), 0 0 60px rgba(248,113,113,0.14); }
.tag-critical {
    align-self: flex-start;
    font-size: 9.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
    color: var(--red);
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.4);
    border-radius: 999px; padding: 4px 12px;
}

/* ============ Pipeline ============ */

.pipe {
    position: relative;
    display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center; gap: 8px;
    padding: 44px 36px;
    overflow: hidden;
}
.pipe-track {
    position: absolute; left: 0; right: 0; top: 0; height: 100%;
    background: radial-gradient(60% 130% at 50% -30%, rgba(109,93,246,0.14), transparent 70%);
    pointer-events: none;
}
.pipe-node { position: relative; text-align: center; padding: 8px 6px; }
.pipe-ico {
    width: 52px; height: 52px; margin: 0 auto 14px;
    display: flex; align-items: center; justify-content: center;
    color: #b7aefc;
    background: rgba(109, 93, 246, 0.12);
    border: 1px solid rgba(109, 93, 246, 0.35);
    border-radius: 16px;
    box-shadow: 0 0 30px rgba(109, 93, 246, 0.25);
}
.pipe-ico svg { width: 24px; height: 24px; }
.pipe-node h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.2px; }
.pipe-node p { font-size: 12.5px; color: var(--dim); }
.pipe-arrow {
    font-size: 20px; font-weight: 300;
    background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
    -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: blink 2.2s infinite;
}

/* ============ Live preview ============ */

.preview {
    display: grid; grid-template-columns: 1.5fr 1fr;
    overflow: hidden;
}
.preview-main { border-right: 1px solid var(--stroke); display: flex; flex-direction: column; }

.win-bar {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--stroke);
    background: rgba(255,255,255,0.02);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,0.14);
}
.win-dots i:nth-child(1) { background: rgba(248,113,113,0.7); }
.win-dots i:nth-child(2) { background: rgba(251,191,36,0.7); }
.win-dots i:nth-child(3) { background: rgba(52,211,153,0.7); }
.win-title { font-size: 12px; font-weight: 600; color: var(--dim); letter-spacing: 0.4px; }
.win-live {
    margin-left: auto;
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 10.5px; font-weight: 800; letter-spacing: 1.2px; color: var(--red);
}
.win-live b { color: var(--dim); font-weight: 600; font-variant-numeric: tabular-nums; }

.preview-screen { position: relative; flex: 1; min-height: 340px; background: #000; overflow: hidden; }
.preview-screen video { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; }
.preview-empty {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
    color: var(--dim); font-size: 13.5px;
}
.scanline {
    position: absolute; left: 0; right: 0; top: 0; height: 90px; z-index: 2;
    background: linear-gradient(180deg, transparent, rgba(79,140,255,0.16) 70%, rgba(79,140,255,0.5) 100%);
    animation: scan 4.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes scan {
    0%   { transform: translateY(-90px); }
    55%  { transform: translateY(420px); }
    100% { transform: translateY(-90px); }
}
.preview-side { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.q-title { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.q-list { display: flex; flex-direction: column; gap: 12px; }
.q-item {
    display: flex; align-items: center; gap: 14px;
    padding: 10px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.q-item:hover {
    transform: translateX(4px);
    border-color: rgba(109, 93, 246, 0.55);
    background: rgba(109, 93, 246, 0.08);
    box-shadow: 0 8px 30px rgba(109,93,246,0.14);
}
.q-thumb {
    flex: 0 0 76px; width: 76px; aspect-ratio: 16/10;
    border-radius: 10px; overflow: hidden; background: #000;
}
.q-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.q-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.q-name { font-size: 13px; font-weight: 700; }
.q-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: var(--dim); }
.q-go {
    margin-left: auto; white-space: nowrap;
    font-size: 12px; font-weight: 800;
    background: linear-gradient(120deg, var(--grad-a), var(--grad-b));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.q-empty { font-size: 13px; color: var(--dim); }
.preview-side .btn { align-self: flex-start; }

/* ============ Final CTA ============ */

.cta-sec { padding-bottom: 130px; }
.cta {
    position: relative; overflow: hidden;
    text-align: center;
    padding: 90px 32px;
}
.cta-glow {
    position: absolute; inset: -60px; z-index: -1;
    background:
        radial-gradient(45% 70% at 30% 20%, rgba(109,93,246,0.28), transparent 70%),
        radial-gradient(45% 70% at 75% 85%, rgba(79,140,255,0.22), transparent 70%);
    animation: orbPulse 8s ease-in-out infinite;
    pointer-events: none;
}
.cta h2 {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800; line-height: 1.1; letter-spacing: -1.6px;
    margin-bottom: 18px;
}
.cta p { font-size: 15.5px; color: var(--dim); margin-bottom: 34px; }

/* ============ Footer ============ */

.footer { border-top: 1px solid var(--stroke); }
.footer-inner {
    max-width: 1200px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 26px 24px;
    font-size: 12.5px; color: var(--dim);
}

/* ============ Scroll reveal ============ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.in { opacity: 1; transform: none; }

/* ============ Responsive ============ */

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 64px; }
    .hero-right { min-height: 0; }
    .v-wrap, .v-stack { max-width: 460px; }
    .v-card.f1, .v-card.f2, .v-card.f3 { transform: none; }
    .badge-top { left: 8px; }
    .badge-bottom { right: 8px; }
    .timeline { grid-template-columns: repeat(2, 1fr); }
    .tl-line { display: none; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .b-lg { grid-column: span 2; }
    .pipe { grid-template-columns: 1fr; gap: 20px; }
    .pipe-arrow { transform: rotate(90deg); }
    .preview { grid-template-columns: 1fr; }
    .preview-main { border-right: none; border-bottom: 1px solid var(--stroke); }
}

@media (max-width: 720px) {
    .nav-links { display: none; }
    .nav-brand { display: none; }
    .section { padding: 80px 18px; }
    .hero { padding-left: 18px; padding-right: 18px; }
    .hero-stats { gap: 18px; }
    .stat-sep { display: none; }
    .timeline { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .b-lg { grid-column: span 1; grid-row: span 1; padding-top: 130px; }
    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 430px) {
    .pill { font-size: 10.5px; padding: 6px 13px; text-align: center; }
    .hero-h1 { font-size: 33px; letter-spacing: -1.2px; }
    .hero-stats { gap: 14px; }
    .stat-val { font-size: 24px; }
    .btn-lg { padding: 13px 22px; font-size: 14px; }
    .win-title { display: none; }
}

/* ============ Reduced motion ============ */

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}
