:root {
    --bg: #09090b;
    --panel: #101013;
    --panel-2: #0d0d10;
    --muted-bg: #141417;
    --border: rgba(255, 255, 255, 0.08);
    --border-soft: rgba(255, 255, 255, 0.05);
    --fg: #fafafa;
    --fg-dim: #d4d4d8;
    --muted: #a1a1aa;
    --faint: #71717a;
    --green: #22c55e;
    --amber: #f59e0b;
    --red: #ef4444;
    --indigo: #6366f1;
    --radius: 12px;
    --radius-lg: 16px;
    --font-sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; }

#engines, #features, #why {
    scroll-margin-top: 76px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }
code { font-family: var(--font-mono); font-size: 0.85em; background: rgba(255,255,255,0.06); padding: 0.1em 0.4em; border-radius: 6px; }
::selection { background: rgba(99, 102, 241, 0.35); }

:focus-visible { outline: 2px solid #a5b4fc; outline-offset: 3px; border-radius: 4px; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); }
html { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.18) transparent; }

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 3000;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 2px;
    z-index: 4000;
    background: linear-gradient(90deg, var(--indigo), #a5b4fc);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.7);
    pointer-events: none;
}

[data-animate] { opacity: 0; }
html.anim-off [data-animate] { opacity: 1 !important; transform: none !important; }

/* ── Ambient background FX ─────────────────────────────────────────── */

.bg-fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    will-change: transform;
}

.b1 {
    width: 58vw;
    height: 58vw;
    min-width: 540px;
    min-height: 540px;
    top: -20vw;
    left: -14vw;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15), transparent 65%);
    animation: drift-a 36s ease-in-out infinite alternate;
}

.b2 {
    width: 48vw;
    height: 48vw;
    min-width: 460px;
    min-height: 460px;
    bottom: -22vw;
    right: -14vw;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.075), transparent 65%);
    animation: drift-b 46s ease-in-out infinite alternate;
}

.b3 {
    width: 34vw;
    height: 34vw;
    min-width: 340px;
    min-height: 340px;
    top: 32%;
    left: 42%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.065), transparent 65%);
    animation: drift-c 54s ease-in-out infinite alternate;
}

@keyframes drift-a {
    to { transform: translate(10vw, 8vh) scale(1.12); }
}
@keyframes drift-b {
    to { transform: translate(-9vw, -10vh) scale(1.15); }
}
@keyframes drift-c {
    to { transform: translate(-12vw, 10vh) scale(0.9); }
}

.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, black 15%, transparent 78%);
    mask-image: radial-gradient(ellipse 95% 75% at 50% 0%, black 15%, transparent 78%);
    animation: grid-drift 26s linear infinite;
    will-change: background-position;
}

@keyframes grid-drift {
    to { background-position: 56px 56px; }
}

@media (prefers-reduced-motion: reduce) {
    .blob, .bg-grid { animation: none; }
}

/* ── Marquee hero backdrop ─────────────────────────────────────────── */

.marquee-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0.5rem;
    z-index: 0;
    overflow: hidden;
}

@media (min-width: 768px) {
    .marquee-bg { grid-template-columns: repeat(4, 1fr); }
}

.mq-col {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mq-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: mq-up var(--dur, 60s) linear infinite;
    will-change: transform;
}

.mq-col.reverse .mq-track { animation-name: mq-down; }

.marquee-bg:hover .mq-track { animation-play-state: paused; }

@keyframes mq-up {
    from { transform: translateY(0); }
    to { transform: translateY(calc(-50% - 0.5rem)); }
}

@keyframes mq-down {
    from { transform: translateY(calc(-50% - 0.5rem)); }
    to { transform: translateY(0); }
}

.mq-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.mq-card {
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 16px 18px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.65;
    color: var(--fg-dim);
    white-space: pre-wrap;
    word-break: break-word;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mq-card .mono-dim { color: var(--faint); }
.tok-kw { color: #c084fc; }
.tok-name { color: #fafafa; font-weight: 600; }
.tok-str { color: #86efac; }
.tok-ok { color: var(--green); }
.tok-warn { color: var(--amber); }
.tok-run { color: var(--indigo); }

.alert-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fg);
    font-weight: 600;
    letter-spacing: 0.06em;
    font-size: 11px;
}

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-red { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
.dot-amber { background: var(--amber); box-shadow: 0 0 8px rgba(245, 158, 11, 0.5); }
.dot-green { background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.dot-indigo { background: var(--indigo); box-shadow: 0 0 8px rgba(99, 102, 241, 0.6); }

.mq-score { align-items: flex-start; gap: 6px; }
.score-big { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.score-big i { font-style: normal; font-size: 16px; color: var(--faint); font-weight: 500; }

.pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
.pill-green { color: #4ade80; background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.25); }
.pill-amber { color: #fbbf24; background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25); }
.pill-red { color: #f87171; background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.25); }

.marquee-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100dvh;
    z-index: 10;
    pointer-events: none;
    background: linear-gradient(to bottom,
        rgba(9, 9, 11, 0.30) 0%,
        rgba(9, 9, 11, 0.72) 52%,
        rgba(9, 9, 11, 0.96) 84%,
        var(--bg) 100%);
}

/* ── Page container ────────────────────────────────────────────────── */

.page {
    position: relative;
    z-index: 50;
    max-width: 80rem;
    margin-inline: auto;
    padding-inline: clamp(0.75rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: clamp(2.75rem, 6vw, 4.25rem);
}

/* ── Buttons ───────────────────────────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--fg);
    color: #09090b;
    font-family: var(--font-sans);
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.btn:hover { background: #e4e4e7; box-shadow: 0 8px 25px -8px rgba(255, 255, 255, 0.2); }
.btn svg { transition: transform 200ms ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }

.btn-lg {
    height: 48px;
    min-width: 250px;
    margin-inline: auto;
    padding: 0 24px;
    font-size: 19px;
    border-radius: 10px;
}

.btn-md { height: 42px; padding: 0 20px; font-size: 15px; }

.btn-block { height: 48px; width: 100%; font-size: 17px; }
.font-bold { font-weight: 800; }

/* ── Nav (flat top bar) ────────────────────────────────────────────── */

.nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(9, 9, 11, 0.86);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.nav-inner {
    max-width: 80rem;
    margin-inline: auto;
    height: 60px;
    padding: 0 clamp(16px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav .brand-name { font-size: 19px; }

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-name {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

.brand-tag {
    font-family: var(--font-mono);
    font-size: 0.56rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 3px;
    white-space: nowrap;
}

.nav-right { display: inline-flex; align-items: center; gap: 10px; }

/* ── System status chip ────────────────────────────────────────────── */

.sys-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 11px;
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.02);
}

.sys-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--faint);
    flex-shrink: 0;
}

.sys-text {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    line-height: 1;
}

.sys-status.online .sys-dot {
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.75);
    animation: sys-pulse 2.2s ease-in-out infinite;
}
.sys-status.online .sys-text { color: var(--green); }

.sys-status.offline .sys-dot {
    background: var(--red);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}
.sys-status.offline .sys-text { color: var(--red); }

@keyframes sys-pulse {
    50% { opacity: 0.45; }
}

@media (max-width: 640px) {
    .sys-status { padding: 5px 8px; }
    .sys-text { display: none; }
    .brand-tag { display: none; }
}

.nav-icon-btn {
    position: relative;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--muted);
    border: 1px solid var(--border-soft);
    border-radius: 8px;
    cursor: pointer;
    transition: color 170ms ease, border-color 170ms ease, background 170ms ease;
}
.nav-icon-btn:hover {
    color: var(--fg);
    border-color: rgba(255, 255, 255, 0.22);
    background: var(--muted-bg);
}

.settings-dot {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 200ms ease, transform 200ms ease;
}
.settings-dot.show { opacity: 1; transform: scale(1); }

/* ── Settings modal ────────────────────────────────────────────────── */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.modal-backdrop.open { display: flex; animation: fade-in 180ms ease both; }

@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.modal {
    width: min(430px, 100%);
    background: #101013;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 32px 90px -20px rgba(0, 0, 0, 0.8);
    animation: modal-rise 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes modal-rise {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
    .modal-backdrop, .modal { animation: none; }
}

.modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.modal-head h3 {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.modal-x {
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease;
}
.modal-x:hover { color: var(--fg); background: var(--muted-bg); }

.modal-sub {
    font-size: 0.84rem;
    line-height: 1.55;
    color: var(--muted);
    margin-bottom: 18px;
}

.field-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--muted);
    margin: 16px 0 7px;
}

.key-wrap { position: relative; }

.key-wrap input,
.modal input,
.modal select {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--fg);
    font-size: 0.92rem;
    padding: 11px 12px;
    outline: none;
    transition: border-color 170ms ease, box-shadow 170ms ease;
}
.key-wrap input { font-family: var(--font-mono); font-size: 0.85rem; padding-right: 42px; }
.key-wrap input:focus,
.modal select:focus {
    border-color: rgba(99, 102, 241, 0.55);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
}
.key-wrap input::placeholder { color: var(--faint); }

.key-eye {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 7px;
    color: var(--muted);
    cursor: pointer;
    transition: color 150ms ease;
}
.key-eye:hover { color: var(--fg); }

.field-hint {
    font-size: 0.78rem;
    color: var(--faint);
    margin-top: 8px;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 22px;
}

.brand-logo {
    width: auto;
    height: 22px;
    border-radius: 4px;
    flex-shrink: 0;
}

.nav-links {
    display: inline-flex;
    align-items: center;
    gap: clamp(18px, 3vw, 34px);
}

.nav-links a {
    position: relative;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    padding: 6px 2px;
    transition: color 170ms ease;
}
.nav-links a:hover { color: var(--fg); }

.nav-links a.active { color: var(--fg); }

.nav-links a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--indigo);
}

@media (max-width: 820px) {
    .nav-links { display: none; }
}

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    min-width: 100px;
}

/* ── Hero ──────────────────────────────────────────────────────────── */

.hero {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vh, 2.25rem);
    text-align: center;
    padding: clamp(1.75rem, 6vh, 3.5rem) 20px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--fg-dim);
    margin-bottom: 18px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.8);
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse { 50% { opacity: 0.3; } }

.hero-title {
    font-size: clamp(1.9rem, 6.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.45);
}

.hero-sub {
    font-size: clamp(1.02rem, 1.5vw, 1.3rem);
    line-height: 1.65;
    font-weight: 400;
    letter-spacing: 0;
    color: var(--muted);
    text-shadow: none;
}

.hero-actions { display: flex; justify-content: center; padding-top: 4px; }

/* ── Engines strip ─────────────────────────────────────────────────── */

.sec-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    margin-bottom: clamp(1.25rem, 3vw, 1.9rem);
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #a5b4fc;
}

.section-eyebrow::before,
.section-eyebrow::after {
    content: "";
    width: 28px;
    height: 1px;
}

.section-eyebrow::before { background: linear-gradient(90deg, transparent, rgba(165, 180, 252, 0.55)); }
.section-eyebrow::after { background: linear-gradient(90deg, rgba(165, 180, 252, 0.55), transparent); }

.engines-title {
    width: 100%;
    max-width: 42rem;
    margin-inline: auto;
    text-align: center;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.engines-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 64rem;
    margin-inline: auto;
}

.engine {
    --ec: var(--indigo);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}
.engine:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: color-mix(in srgb, var(--ec) 50%, transparent);
    box-shadow: 0 20px 50px -15px color-mix(in srgb, var(--ec) 60%, transparent);
}
.engine:active {
    transform: translateY(-2px) scale(0.99);
    transition-duration: 0.1s;
}

.e-yara { --ec: var(--indigo); }
.e-osv { --ec: var(--green); }
.e-gpt { --ec: #a78bfa; }
.e-secret { --ec: var(--amber); }

.engine-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 9px;
    color: var(--ec);
    background: color-mix(in srgb, var(--ec) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--ec) 22%, transparent);
}

.engine-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.engine-txt span { font-size: 0.92rem; font-weight: 700; letter-spacing: -0.01em; }
.engine-txt p { font-size: 0.8rem; line-height: 1.5; color: var(--muted); }
.engine-txt em {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--faint);
    margin-top: 2px;
}

@media (max-width: 1024px) {
    .engines-row { grid-template-columns: repeat(2, 1fr); max-width: 42rem; }
}
@media (max-width: 480px) {
    .engines-row { grid-template-columns: 1fr; }
}

/* ── Showcase (app mock in bordered frame) ─────────────────────────── */

.showcase {
    position: relative;
    z-index: 500;
    display: block;
    width: 100%;
    margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
    margin-inline: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px;
    background: rgba(255, 255, 255, 0.015);
    transition: border-color 250ms ease, box-shadow 250ms ease;
}
.showcase::before {
    content: "";
    position: absolute;
    inset: -50px;
    z-index: -1;
    background: radial-gradient(ellipse 68% 55% at 50% 45%, rgba(99, 102, 241, 0.14), transparent 70%);
    filter: blur(34px);
    pointer-events: none;
}
.showcase:hover {
    border-color: rgba(99, 102, 241, 0.35);
    box-shadow: 0 30px 80px -40px rgba(99, 102, 241, 0.35);
}

.app-mock {
    border-radius: 14px;
    background: var(--panel-2);
    border: 1px solid var(--border-soft);
    overflow: hidden;
}

.chrome {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.02);
}

.chrome-dots { display: inline-flex; gap: 6px; }
.chrome-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.chrome-dots i:first-child { background: rgba(239, 68, 68, 0.55); }
.chrome-dots i:nth-child(2) { background: rgba(245, 158, 11, 0.55); }
.chrome-dots i:last-child { background: rgba(34, 197, 94, 0.55); }

.url-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--faint);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-soft);
    padding: 3px 12px;
    border-radius: 999px;
    margin-inline: auto;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--green);
}
.live-badge i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: sys-pulse 1.8s ease-in-out infinite;
}

.mock-body { padding: clamp(16px, 3vw, 28px); display: flex; flex-direction: column; gap: 18px; }

.mock-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mock-top h4 { font-size: clamp(1.1rem, 2.4vw, 1.5rem); font-weight: 700; letter-spacing: -0.01em; }
.mono-dim { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.mock-steps { display: flex; align-items: center; gap: 4px; list-style: none; flex-wrap: wrap; }
.mock-steps li {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--faint);
}
.mock-steps li i {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    display: grid;
    place-items: center;
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--muted);
    transition: all 320ms ease;
}
.mock-steps li:not(:last-child)::after {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--border);
    margin-inline: 6px;
    transition: background 320ms ease;
}

.mock-steps li.done { color: #4ade80; }
.mock-steps li.done i {
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.1);
}
.mock-steps li.done:not(:last-child)::after { background: rgba(34, 197, 94, 0.35); }

.mock-steps li.active { color: #fbbf24; }
.mock-steps li.active i {
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.1);
    animation: step-glow 1.3s ease-in-out infinite;
}

@keyframes step-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.35); }
    50% { box-shadow: 0 0 0 5px rgba(245, 158, 11, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .mock-steps li.active i { animation: none; }
}

.verdict-panel {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: clamp(16px, 3vw, 32px);
    padding: clamp(16px, 3vw, 26px);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
}

.ring-wrap { position: relative; width: 104px; height: 104px; }
.ring-wrap svg { width: 100%; height: 100%; overflow: visible; }

.ring-wrap::before {
    content: "";
    position: absolute;
    inset: -22px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.14), transparent 62%);
    filter: blur(12px);
    animation: ring-halo 3.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ring-halo {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.07); }
}

.ring-ticks {
    fill: none;
    stroke: rgba(255, 255, 255, 0.14);
    stroke-width: 1.4;
    stroke-dasharray: 1.6 5.87;
    transform-origin: center;
    animation: ticks-spin 46s linear infinite;
}

@keyframes ticks-spin {
    to { transform: rotate(360deg); }
}

.ring-bg { fill: none; stroke: rgba(255, 255, 255, 0.07); stroke-width: 8; }
.ring-fill {
    fill: none;
    stroke-width: 8;
    stroke-linecap: round;
    transform-origin: center;
    transform: rotate(-90deg);
}
.ring-fill.green { stroke: var(--green); filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.4)); }
.ring-fill.amber { stroke: var(--amber); filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.4)); }
.ring-fill.red { stroke: var(--red); filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.4)); }

#showcase-ring {
    stroke-dasharray: 326.73;
    stroke-dashoffset: 326.73;
    stroke: url(#ring-grad);
    filter:
        drop-shadow(0 0 5px rgba(74, 222, 128, 0.55))
        drop-shadow(0 0 14px rgba(34, 211, 238, 0.3));
}

.ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 27px;
    letter-spacing: -0.02em;
}
.ring-value b { font-weight: 800; text-shadow: 0 0 18px rgba(74, 222, 128, 0.45); }
.ring-value i { font-style: normal; font-size: 12px; color: var(--faint); font-weight: 500; margin-left: 1px; }

@media (prefers-reduced-motion: reduce) {
    .ring-ticks, .ring-wrap::before { animation: none; }
}

.verdict-info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.verdict-info p {
    font-size: clamp(0.82rem, 1.6vw, 0.95rem);
    color: var(--muted);
    line-height: 1.55;
    border-left: 2px solid rgba(99, 102, 241, 0.45);
    padding-left: 12px;
    font-style: italic;
}

.chips { display: flex; gap: 8px; list-style: none; flex-wrap: wrap; justify-content: flex-end; }
.chips li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 5px 12px;
    white-space: nowrap;
}
.chips li b { color: var(--fg); font-weight: 700; }
.chips li.warn b { color: #fbbf24; }

.pulse-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.pulse-ring {
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.pulse-ring.outer { width: 96px; height: 96px; position: relative; animation: pulse-outer 2.6s ease-out infinite; }
.pulse-ring.inner {
    width: 78px;
    height: 78px;
    background: rgba(9, 9, 11, 0.45);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: transform 300ms ease;
}
.showcase:hover .pulse-ring.inner { transform: scale(1.08); }

@keyframes pulse-outer {
    0% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.35); }
    70% { box-shadow: 0 0 0 26px rgba(99, 102, 241, 0); }
    100% { box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); }
}

@media (max-width: 720px) {
    .verdict-panel { grid-template-columns: auto 1fr; }
    .chips { grid-column: 1 / -1; justify-content: flex-start; }
}

.showcase-hint {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--faint);
    margin-top: 16px;
}

/* ── Features ──────────────────────────────────────────────────────── */

.features { display: flex; flex-direction: column; gap: 1.25rem; }

.feature-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    background: var(--muted-bg);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: clamp(14px, 2.5vw, 22px);
}

.fv {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: var(--panel);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.ftext { flex: 1; padding: clamp(8px, 2vw, 20px); }
.ftext h3 { font-size: clamp(1.12rem, 1.8vw, 1.3rem); font-weight: 700; letter-spacing: -0.01em; }
.ftext p { font-size: clamp(0.92rem, 1.5vw, 1.05rem); color: var(--muted); margin-top: 6px; }

@media (min-width: 768px) {
    .feature-row { flex-direction: row; }
    .feature-row.reverse { flex-direction: row-reverse; }
    .fv { width: 33%; aspect-ratio: auto; min-height: 240px; }
}

.fv-agent { display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 18px; }

.agent-step {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    padding: 12px 14px;
    max-width: 92%;
}
.agent-step.offset { margin-left: 14px; animation: floaty 6s ease-in-out infinite; }
.agent-step.offset2 { margin-left: 28px; animation: floaty 7.5s ease-in-out infinite; animation-delay: -3.2s; }

@keyframes floaty { 50% { transform: translateY(-7px); } }

.as-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 800;
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
    flex-shrink: 0;
}

.as-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.as-text b { font-size: 12.5px; font-weight: 700; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-text i { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }

.as-state { flex-shrink: 0; font-size: 12px; font-weight: 800; color: #4ade80; }
.as-state.spin {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(165, 180, 252, 0.25);
    border-top-color: #a5b4fc;
    animation: spin 0.9s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.fv-code { padding: 0; }
.code-window { width: 100%; height: 100%; display: flex; flex-direction: column; }
.code-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-soft);
}
.code-file { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.code-window pre {
    flex: 1;
    padding: 14px 0;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: clamp(10.5px, 1.15vw, 12.5px);
    line-height: 1.7;
}
.code-window code { display: block; padding: 0 16px; background: none; border-radius: 0; font-size: inherit; }
code.hit {
    background: rgba(239, 68, 68, 0.07);
    border-left: 2px solid var(--red);
    position: relative;
    color: #fecaca;
}
.hit-chip {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #f87171;
    background: rgba(239, 68, 68, 0.14);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: 4px;
    padding: 2px 6px;
}

.fv-rings { display: flex; align-items: center; justify-content: center; gap: clamp(10px, 2.5vw, 28px); padding: 16px; }

.mini-verdict { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; }
.mini-verdict.green { --vc: var(--green); }
.mini-verdict.amber { --vc: var(--amber); }
.mini-verdict.red { --vc: var(--red); }
.mini-verdict svg { width: clamp(64px, 7vw, 88px); height: auto; }

.mini-verdict .mv-ring { position: relative; width: clamp(64px, 7vw, 88px); }
.mini-verdict .mv-ring > svg { display: block; width: 100%; height: auto; }
.mv-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--vc);
    pointer-events: none;
}
.mv-icon svg {
    width: clamp(15px, 1.55vw, 20px);
    height: auto;
    filter: drop-shadow(0 0 9px color-mix(in srgb, var(--vc) 40%, transparent));
}
.ring-bg.sm { stroke-width: 5; }
.mini-verdict .ring-bg.sm { stroke: color-mix(in srgb, var(--vc) 18%, #151519); }

.ring-tint {
    fill: color-mix(in srgb, var(--vc) 10%, transparent);
    stroke: none;
}

.ring-fill.sm { stroke-width: 5; stroke-dasharray: 163.36; stroke-dashoffset: 163.36; }
.mini-verdict .ring-fill.sm { stroke: var(--vc); }
.mini-verdict figcaption b { color: var(--vc); }
.mini-verdict figcaption { display: flex; flex-direction: column; align-items: center; line-height: 1.25; }
.mini-verdict figcaption b { font-size: 15px; font-weight: 800; }
.mini-verdict figcaption span { font-size: 9px; font-weight: 800; letter-spacing: 0.09em; color: var(--faint); }

/* ── CTA banner ────────────────────────────────────────────────────── */

.cta-banner {
    position: relative;
    height: 400px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 65% at 50% 118%, rgba(99, 102, 241, 0.22), transparent 60%),
        radial-gradient(ellipse 60% 45% at 82% 108%, rgba(34, 197, 94, 0.07), transparent 65%),
        #0b0b0e;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.banner-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 75% 70% at 50% 100%, black 20%, transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 100%, black 20%, transparent 72%);
}

.banner-glow {
    position: absolute;
    left: 50%;
    bottom: -46%;
    width: 900px;
    height: 560px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, rgba(99, 102, 241, 0.30), transparent 72%);
    filter: blur(24px);
    pointer-events: none;
    will-change: transform;
}

.banner-content { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.5rem; padding: 24px; }
.banner-content h3 { font-size: clamp(1.7rem, 4.5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }

/* ── Pulse band (animated scan feed) ───────────────────────────────── */

.pulse-band {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #0b0b0e;
    padding: clamp(48px, 7vw, 72px) 0 clamp(44px, 6vw, 64px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(28px, 4vw, 40px);
    text-align: center;
}

.pb-glow {
    position: absolute;
    inset: -45%;
    background: conic-gradient(from 0deg at 50% 58%,
        rgba(99, 102, 241, 0.16),
        transparent 24%,
        rgba(34, 197, 94, 0.07) 42%,
        transparent 58%,
        rgba(99, 102, 241, 0.13) 78%,
        transparent);
    filter: blur(70px);
    animation: spin 26s linear infinite;
    pointer-events: none;
    will-change: transform;
}

.pb-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 85% at 50% 50%, black 25%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 85% at 50% 50%, black 25%, transparent 75%);
    animation: pb-gridpan 14s linear infinite;
    pointer-events: none;
}

@keyframes pb-gridpan {
    to { background-position: 44px 44px; }
}

.pb-head {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding-inline: 20px;
}

.pb-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #a5b4fc;
}

.pb-head p {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 600;
    letter-spacing: -0.005em;
    line-height: 1.5;
    color: var(--fg);
}

.pb-marquee {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 12%, black 88%, transparent);
}

.pb-track {
    display: flex;
    width: max-content;
    animation: pb-scroll var(--dur, 50s) linear infinite;
    will-change: transform;
}

.pb-track.reverse { animation-direction: reverse; }
.pulse-band:hover .pb-track { animation-play-state: paused; }

@keyframes pb-scroll {
    to { transform: translateX(-50%); }
}

.pb-group {
    display: flex;
    gap: 10px;
    padding-right: 10px;
    flex-shrink: 0;
}

.pb-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--fg-dim);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 8px 16px;
}

/* ── Footer ────────────────────────────────────────────────────────── */

.footer {
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--border);
    margin-inline: -8px;
    padding: clamp(36px, 5vw, 56px) clamp(20px, 4vw, 40px) 28px;
}

.footer-ghost {
    position: absolute;
    left: 50%;
    bottom: -0.18em;
    transform: translateX(-50%);
    font-size: clamp(5rem, 17vw, 15rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 0.78;
    color: rgba(255, 255, 255, 0.022);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.footer-top {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: clamp(36px, 5vw, 56px);
}

@media (min-width: 768px) {
    .footer-top { grid-template-columns: 1.5fr repeat(3, minmax(150px, 1fr)); gap: 2rem; }
}

.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }

.footer-tagline {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 34ch;
}

.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.fbadge {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--faint);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    border-radius: 999px;
    padding: 4px 12px;
    letter-spacing: 0.02em;
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.13em;
    color: var(--faint);
    margin-bottom: 6px;
}

.footer-col a {
    color: var(--muted);
    font-size: 0.92rem;
    width: fit-content;
    transition: color 170ms ease, transform 170ms ease;
}
.footer-col a:hover { color: var(--fg); transform: translateX(3px); }

.footer-col a[target="_blank"]::after {
    content: "\2197";
    font-size: 0.72em;
    opacity: 0.45;
    margin-left: 5px;
}

.footer-bottom {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--border-soft);
    padding-top: 24px;
}

.footer-bottom p {
    color: var(--faint);
    font-size: 0.85rem;
}

.footer-built {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.03em;
}

@media (max-width: 767px) {
    .footer-built { order: 3; width: 100%; }
}

.footer-actions { display: inline-flex; align-items: center; gap: 10px; }

.footer-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border-soft);
    border-radius: 50%;
    color: var(--muted);
    transition: color 180ms ease, border-color 180ms ease, transform 180ms ease, background 180ms ease;
}
.footer-icon:hover {
    color: var(--fg);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-2px);
}

/* ── Motion preferences ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .mq-track, .pulse-ring.outer, .as-state.spin { animation: none !important; }
    .pb-track, .pb-glow, .pb-grid { animation: none !important; }
    .agent-step.offset, .agent-step.offset2, .badge-dot { animation: none !important; }
    [data-animate] { opacity: 1 !important; }
}
