/* =========================================================
   GALAVIX — DESIGN SYSTEM
   Palette is the original Galavix palette: black canvas,
   white-essence text, red accent. Do not change tokens
   without updating the brand.
========================================================= */

:root {
    --black: #050506;
    --black-soft: #0c0c0e;
    --black-card: #121216;
    --black-elevated: #1a1a1f;

    --white: #ffffff;
    --ink: #f3f2ee;
    --gray-200: #d8d8d4;
    --gray-400: #b7b6b1;
    --gray-500: #9c9b96;
    --gray-600: #86857f;

    --red: #e50914;
    --red-dark: #b70710;
    --red-light: #ff2934;

    --border: rgba(255, 255, 255, .09);
    --border-strong: rgba(255, 255, 255, .16);
    --glass: rgba(255, 255, 255, .04);

    --gradient-red: linear-gradient(135deg, var(--red-light) 0%, var(--red) 45%, var(--red-dark) 100%);
    --glow-red: 0 14px 40px rgba(229, 9, 20, .32);

    --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

    --container: 1240px;
    --gutter: clamp(20px, 5vw, 48px);
    --section-y: clamp(64px, 8vw, 104px);
    --nav-h: 76px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --radius-full: 999px;

    --ease: cubic-bezier(.22, .61, .36, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    background: var(--black);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main { flex: 1 0 auto; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.025em; font-weight: 600; }
p { text-wrap: pretty; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
    outline: 2px solid var(--red-light);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -60px;
    z-index: 200;
    background: var(--red);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Layout ---------- */
.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-y); position: relative; }
.section-tint { background: linear-gradient(180deg, transparent, var(--black-soft) 18%, var(--black-soft) 82%, transparent); }

[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

/* ---------- Type helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--gray-400);
}
.eyebrow::before {
    content: "";
    width: 26px; height: 1px;
    background: var(--red);
}
.eyebrow.no-line::before { display: none; }

.accent {
    background: var(--gradient-red);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); margin-top: 18px; }
.section-head p { margin-top: 20px; color: var(--gray-400); font-size: 1.1rem; max-width: 620px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }
.section-head.center .eyebrow::before { display: none; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 28px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .98rem;
    letter-spacing: -.005em;
    line-height: 1;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
}
.btn span { transition: transform .25s var(--ease); }
.btn:hover span { transform: translate(3px, -3px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
    background: var(--gradient-red);
    color: #fff;
    box-shadow: var(--glow-red);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px rgba(229, 9, 20, .45); }

.btn-secondary {
    background: var(--glass);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); transform: translateY(-2px); }

.btn-sm { padding: 12px 22px; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--border-strong);
    padding-bottom: 3px;
    transition: color .2s, border-color .2s, gap .2s;
}
.link-arrow:hover { color: var(--red-light); border-color: var(--red); gap: 12px; }

/* ---------- Scroll progress ---------- */
.progress {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 100%;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: 0 50%;
    z-index: 120;
    pointer-events: none;
}

/* =========================================================
   NAVIGATION
========================================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    display: flex;
    align-items: center;
    transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(5, 5, 6, .72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom-color: var(--border);
}
.nav-inner {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--black-card);
    border: 1px solid var(--border);
    display: grid; place-items: center;
    transition: border-color .3s, transform .3s var(--ease);
}
.brand:hover .brand-mark { border-color: rgba(229, 9, 20, .6); transform: rotate(-6deg); }
.brand-mark svg { width: 28px; height: 28px; }
.brand-mark svg path { fill: #fff; }
.brand-mark svg .mark-red { fill: var(--red); }
.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: .22em;
    font-size: 1.02rem;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-link {
    position: relative;
    padding: 10px 16px;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: .95rem;
    color: var(--gray-400);
    border-radius: var(--radius-full);
    transition: color .2s, background .2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.nav-link.active { color: #fff; }
.nav-link.active::after {
    content: "";
    position: absolute;
    left: 50%; bottom: 3px;
    width: 18px; height: 2px;
    border-radius: 2px;
    background: var(--red);
    transform: translateX(-50%);
}

.nav-actions { display: flex; align-items: center; gap: 12px; }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--glass);
    position: relative;
}
.menu-toggle span {
    position: absolute;
    left: 12px; right: 12px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
}
.menu-toggle span:nth-child(1) { top: 15px; }
.menu-toggle span:nth-child(2) { top: 21px; }
.menu-toggle span:nth-child(3) { top: 27px; }
.menu-open .menu-toggle span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

@media (max-width: 920px) {
    .menu-toggle { display: block; }
    .nav-actions .btn { display: none; }
    .nav-links {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: rgba(5, 5, 6, .96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s var(--ease), visibility .3s;
        z-index: -1;
    }
    .menu-open .nav-links { opacity: 1; visibility: visible; }
    .menu-open .navbar { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
    .nav-link { font-size: 1.9rem; padding: 12px 28px; color: #fff; font-weight: 600; }
    .nav-link.active::after { bottom: 6px; }
    .nav-links .nav-cta-mobile { display: inline-flex; margin-top: 22px; }
    body.menu-open { overflow: hidden; }
}
.nav-links .nav-cta-mobile { display: none; }
@media (max-width: 920px) { .nav-links .nav-cta-mobile { display: inline-flex; } }

/* =========================================================
   HERO
========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: calc(var(--nav-h) + 24px);
    padding-bottom: 72px;
    overflow: hidden;
    isolation: isolate;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(55% 55% at 82% 18%, rgba(229, 9, 20, .20), transparent 70%),
        radial-gradient(60% 60% at 8% 92%, rgba(229, 9, 20, .08), transparent 70%);
}
.hero-grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(75% 70% at 60% 40%, #000 20%, transparent 78%);
    mask-image: radial-gradient(75% 70% at 60% 40%, #000 20%, transparent 78%);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    align-items: center;
    gap: 24px;
}

.hero-content { position: relative; z-index: 2; }
.hero-title {
    font-size: clamp(2.7rem, 6.2vw, 5.5rem);
    letter-spacing: -.04em;
    line-height: 1;
    margin: 22px 0 26px;
}
.hero-title .wm { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .12em; margin-bottom: -.12em; }
.hero-title .w { display: inline-block; }
.js .hero-title .w { transform: translateY(110%); animation: wordUp .9s var(--ease-out) forwards; animation-delay: calc(.12s + var(--i) * .07s); }
@keyframes wordUp { to { transform: translateY(0); } }

.hero-description { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--gray-400); max-width: 560px; }
.hero-description strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    margin-top: 44px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.hero-proof li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: .92rem;
    color: var(--gray-400);
}
.hero-proof li::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 12px var(--red);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--glass);
    font-size: .84rem;
    color: var(--gray-200);
}
.status-pill i {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #31d46b;
    box-shadow: 0 0 0 0 rgba(49, 212, 107, .6);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 9px rgba(49, 212, 107, 0); }
    100% { box-shadow: 0 0 0 0 rgba(49, 212, 107, 0); }
}

/* Hero visual: WebGL canvas + graceful SVG fallback */
.hero-visual {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 78vh;
    justify-self: end;
}
.hero-visual canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    opacity: 0;
    transition: opacity 1.2s var(--ease);
    -webkit-mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
    mask-image: radial-gradient(closest-side, #000 82%, transparent 100%);
}
.webgl-on .hero-visual canvas { opacity: 1; }

.hero-fallback {
    position: absolute;
    inset: 0;
    perspective: 900px;
    display: grid;
    place-items: center;
    transition: opacity .6s;
}
.webgl-on .hero-fallback { opacity: 0; pointer-events: none; }
.hero-fallback .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border);
}
.hero-fallback .ring.r1 { width: 86%; height: 86%; border-color: rgba(229, 9, 20, .4); animation: spin 40s linear infinite; }
.hero-fallback .ring.r2 { width: 64%; height: 64%; animation: spin 28s linear infinite reverse; }
.hero-fallback .ring.r3 { width: 42%; height: 42%; border-color: rgba(229, 9, 20, .25); animation: spin 20s linear infinite; }
.hero-fallback .ring::after {
    content: "";
    position: absolute;
    top: -4px; left: 50%;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 16px var(--red);
}
.hero-fallback svg { position: relative; width: 34%; filter: drop-shadow(0 0 40px rgba(229, 9, 20, .35)); animation: floatT 6s ease-in-out infinite, spinY 8.4s linear infinite; }
.hero-fallback svg path { fill: #fff; }
.hero-fallback svg .mark-red { fill: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes floaty { 50% { transform: translateY(-12px); } }
@keyframes floatT { 50% { translate: 0 -12px; } }
@keyframes spinY { to { transform: rotateY(360deg); } }

.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius-full);
    background: rgba(18, 18, 22, .72);
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: var(--font-display);
    font-size: .84rem;
    font-weight: 500;
    z-index: 3;
    animation: floaty 7s ease-in-out infinite;
}
.float-chip b { color: var(--red-light); font-weight: 600; }
.float-chip.c1 { top: 9%; left: 2%; }
.float-chip.c2 { top: 52%; right: -2%; animation-delay: -2.4s; }
.float-chip.c3 { bottom: 8%; left: 10%; animation-delay: -4.6s; }

.scroll-hint {
    position: absolute;
    left: 50%; bottom: 22px;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: .68rem;
    letter-spacing: .24em;
    text-transform: uppercase;
    color: var(--gray-600);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint::after {
    content: "";
    width: 1px; height: 34px;
    background: linear-gradient(var(--red), transparent);
    animation: drip 2s var(--ease) infinite;
    transform-origin: top;
}
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 920px) {
    .hero { min-height: 0; padding-top: calc(var(--nav-h) + 20px); }
    .hero-inner { grid-template-columns: 1fr; gap: 8px; }
    .hero-visual { max-width: 460px; justify-self: center; order: -1; max-height: 340px; aspect-ratio: 1.2 / 1; margin-top: -8px; }
    .float-chip { display: none; }
    .scroll-hint { display: none; }
    .hero { padding-bottom: 56px; }
}

/* =========================================================
   MARQUEE
========================================================= */
.marquee {
    border-block: 1px solid var(--border);
    background: var(--black-soft);
    overflow: hidden;
    padding-block: 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; }
.marquee-group span {
    display: inline-flex;
    align-items: center;
    gap: 28px;
    padding-right: 28px;
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 500;
    color: var(--gray-500);
    white-space: nowrap;
}
.marquee-group span::after { content: "✦"; color: var(--red); font-size: .7em; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   CARDS (shared)
========================================================= */
.card {
    position: relative;
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(229, 9, 20, .14), transparent 60%);
    opacity: 0;
    transition: opacity .35s;
    pointer-events: none;
}
.card:hover { border-color: rgba(229, 9, 20, .45); }
.card:hover::before { opacity: 1; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span {
    padding: 5px 12px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: var(--glass);
    font-size: .78rem;
    font-weight: 500;
    color: var(--gray-400);
    letter-spacing: .01em;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border: 1px solid var(--border-strong);
    color: var(--gray-200);
}
.badge.live { color: #5be28f; border-color: rgba(49, 212, 107, .4); background: rgba(49, 212, 107, .08); }
.badge.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #31d46b; }
.badge.soon { color: #ffb24a; border-color: rgba(255, 178, 74, .35); background: rgba(255, 178, 74, .07); }
.badge.src { color: var(--gray-200); }

/* =========================================================
   PRODUCT SHOWCASE CARDS (home)
========================================================= */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.product-card { display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.product-visual {
    position: relative;
    height: 260px;
    border-bottom: 1px solid var(--border);
    background:
        radial-gradient(70% 90% at 50% 0%, rgba(229, 9, 20, .13), transparent 70%),
        var(--black-soft);
    display: grid;
    place-items: center;
    overflow: hidden;
}
.product-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; position: relative; }
.product-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-body h3 { font-size: 1.7rem; }
.product-body p { color: var(--gray-400); font-size: .98rem; }
.product-body .tag-list { margin-top: 2px; }
.product-actions { margin-top: auto; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.product-note { font-size: .82rem; color: var(--gray-600); }

/* Illustrations (pure CSS — decorative) */
.mock-browser {
    --mb-bg: #0a0a0d;
    --mb-bar: var(--black-card);
    --mb-line: rgba(255, 255, 255, .08);
    --mb-border: var(--border-strong);
    --mb-dot: var(--border-strong);
    width: 78%;
    border-radius: 12px;
    background: var(--mb-bg);
    border: 1px solid var(--mb-border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
    overflow: hidden;
    transition: background .6s var(--ease), border-color .6s var(--ease);
}
.mock-browser.mood-frost { --mb-bg: #ece7da; --mb-bar: #ddd7c8; --mb-line: rgba(20, 20, 20, .12); --mb-border: rgba(0, 0, 0, .18); --mb-dot: rgba(0, 0, 0, .2); }
.mock-browser.mood-noir { --mb-bg: #0a0a0d; --mb-bar: #17171b; --mb-line: rgba(255, 255, 255, .08); }
.mock-browser.mood-aurora { --mb-bg: linear-gradient(135deg, #2a0a14, #12060f 60%, #1b0a24); --mb-bar: rgba(255, 255, 255, .06); --mb-line: rgba(255, 255, 255, .12); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--mb-line); background: var(--mb-bar); transition: background .6s var(--ease); }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--mb-dot); }
.mock-bar i:first-child { background: var(--red); }
.mock-url { margin-left: 8px; flex: 1; height: 18px; border-radius: 9px; background: var(--mb-line); transition: background .6s; }
.mock-body { padding: 16px; display: grid; gap: 10px; }
.mock-line { height: 8px; border-radius: 4px; background: var(--mb-line); transition: background .6s; }
.mock-line.w60 { width: 60%; } .mock-line.w80 { width: 80%; } .mock-line.w40 { width: 40%; }
.mock-pill {
    justify-self: start;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: .68rem;
    font-weight: 600;
    background: rgba(229, 9, 20, .14);
    color: var(--red-light);
    border: 1px solid rgba(229, 9, 20, .35);
    font-variant-numeric: tabular-nums;
}
.mock-browser.mood-frost .mock-pill { color: var(--red-dark); background: rgba(229, 9, 20, .1); }
.mock-moods { display: flex; align-items: center; gap: 8px; }
.mock-moods i, .mood-btn { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); transition: transform .3s var(--ease), box-shadow .3s; }
.mock-moods i:nth-child(1), .mood-btn[data-mood="frost"] { background: #e9e4d8; }
.mock-moods i:nth-child(2), .mood-btn[data-mood="noir"] { background: #151518; }
.mock-moods i:nth-child(3), .mood-btn[data-mood="aurora"] { background: linear-gradient(135deg, #ff2934, #8f0a44); }
.mock-moods i.on, .mood-btn[aria-pressed="true"] { transform: scale(1.22); box-shadow: 0 0 0 2px var(--black), 0 0 0 4px var(--red); }
.mood-btn { cursor: pointer; padding: 0; }
.mood-btn:hover { transform: scale(1.15); }
.mood-label { font-family: var(--font-display); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-500); margin-left: 6px; }
.mock-browser.mood-frost .mood-label { color: #6b665a; }

.mock-chat { width: 74%; display: grid; gap: 10px; }
.bubble {
    max-width: 78%;
    padding: 11px 15px;
    border-radius: 16px;
    font-size: .82rem;
    line-height: 1.4;
    background: var(--black-elevated);
    border: 1px solid var(--border);
    color: var(--gray-200);
}
.bubble.me { justify-self: end; background: var(--gradient-red); border-color: transparent; color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { border-bottom-left-radius: 4px; }
.mock-chat.demo-ready .bubble { opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.mock-chat.demo-ready .bubble.show { opacity: 1; transform: none; }
.bubble.typing { display: inline-flex; gap: 4px; align-items: center; width: 58px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--gray-400); animation: blink 1s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.mock-room {
    justify-self: center;
    font-family: var(--font-display);
    font-size: .7rem;
    letter-spacing: .14em;
    color: var(--gray-500);
    padding: 4px 12px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius-full);
}

.mock-chart { width: 78%; padding: 18px; border-radius: 14px; background: #0a0a0d; border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.mock-chart-head { display: flex; justify-content: space-between; margin-bottom: 14px; }
.mock-chart-head span { height: 8px; width: 38%; border-radius: 4px; background: rgba(255, 255, 255, .1); }
.mock-chart-head span + span { width: 18%; background: rgba(229, 9, 20, .5); }
.mock-bars { display: flex; align-items: flex-end; gap: 9px; height: 110px; }
.mock-bars i {
    flex: 1;
    border-radius: 5px 5px 0 0;
    background: linear-gradient(var(--red-light), var(--red-dark));
    opacity: .85;
    transform-origin: bottom;
    animation: grow 1.6s var(--ease-out) both;
    height: var(--h);
    transition: height 1s var(--ease-out);
}
.mock-bars i:nth-child(even) { background: linear-gradient(rgba(255, 255, 255, .55), rgba(255, 255, 255, .12)); opacity: 1; }
@keyframes grow { from { transform: scaleY(0); } }

@media (max-width: 1060px) {
    .product-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; }
}

/* =========================================================
   STATS BAND
========================================================= */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--black-card);
    overflow: hidden;
}
.stat { padding: 34px 30px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4.4vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
}
.stat strong em { font-style: normal; color: var(--red); }
.stat > span { display: block; margin-top: 12px; font-size: .92rem; color: var(--gray-400); line-height: 1.45; }
@media (max-width: 860px) {
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(2) { border-right: 0; }
    .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}

/* =========================================================
   WHY / FEATURE LIST
========================================================= */
.why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.why-card { padding: 34px; }
.why-card .num {
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    color: var(--red-light);
    margin-bottom: 22px;
    display: block;
}
.why-card h3 { font-size: 1.45rem; margin-bottom: 12px; }
.why-card p { color: var(--gray-400); }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } .why-card { padding: 28px; } }

/* =========================================================
   SERVICES
========================================================= */
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card { padding: 32px; display: flex; flex-direction: column; gap: 14px; }
.service-card:hover { transform: translateY(-5px); }
.service-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    border: 1px solid var(--border-strong);
    background: var(--glass);
    display: grid; place-items: center;
    margin-bottom: 8px;
    transition: border-color .3s, background .3s;
}
.service-card:hover .service-icon { border-color: var(--red); background: rgba(229, 9, 20, .1); }
.service-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { font-size: 1.35rem; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.service-card p { color: var(--gray-400); font-size: .98rem; }
.service-card ul { display: grid; gap: 8px; margin-top: 4px; }
.service-card li { position: relative; padding-left: 20px; font-size: .92rem; color: var(--gray-200); }
.service-card li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--red); }
@media (max-width: 1000px) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .service-grid { grid-template-columns: 1fr; } .service-card { padding: 26px; } }

/* =========================================================
   PROCESS
========================================================= */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; counter-reset: step; }
.process::before {
    content: "";
    position: absolute;
    top: 27px; left: 5%; right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-strong) 10%, var(--border-strong) 90%, transparent);
}
.step { position: relative; padding: 0 14px; text-align: center; }
.step-dot {
    position: relative;
    width: 54px; height: 54px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: var(--black);
    border: 1px solid var(--border-strong);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .95rem;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.step:hover .step-dot { border-color: var(--red); background: rgba(229, 9, 20, .12); box-shadow: 0 0 28px rgba(229, 9, 20, .35); }
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--gray-400); }
@media (max-width: 900px) {
    .process { grid-template-columns: 1fr; gap: 6px; }
    .process::before { top: 0; bottom: 0; left: 26px; right: auto; width: 1px; height: auto; background: var(--border-strong); }
    .step { text-align: left; padding: 0 0 26px 82px; }
    .step-dot { position: absolute; left: 0; top: 0; margin: 0; }
}

/* =========================================================
   FOUNDING CLIENT BAND
========================================================= */
.band {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(229, 9, 20, .35);
    background:
        radial-gradient(60% 120% at 100% 0%, rgba(229, 9, 20, .24), transparent 65%),
        radial-gradient(50% 100% at 0% 100%, rgba(229, 9, 20, .10), transparent 70%),
        var(--black-card);
    padding: clamp(34px, 6vw, 72px);
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 36px;
    align-items: center;
    overflow: hidden;
}
.band h2 { font-size: clamp(1.9rem, 4vw, 3rem); margin: 16px 0 16px; }
.band p { color: var(--gray-200); max-width: 560px; }
.band-list { display: grid; gap: 12px; margin-top: 22px; }
.band-list li { display: flex; gap: 12px; color: var(--gray-200); font-size: .98rem; }
.band-list li::before { content: "✓"; color: var(--red-light); font-weight: 700; }
.band-cta { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* =========================================================
   TEAM
========================================================= */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.team-card { padding: 30px 26px; text-align: left; }
.team-card:hover { transform: translateY(-5px); }
.avatar {
    position: relative;
    width: 84px; height: 84px;
    border-radius: 24px;
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.9rem;
    margin-bottom: 24px;
    background: linear-gradient(145deg, var(--black-elevated), var(--black-soft));
    border: 1px solid var(--border-strong);
    overflow: hidden;
}
.avatar::after {
    content: "";
    position: absolute;
    right: -18px; top: -18px;
    width: 46px; height: 46px;
    background: var(--gradient-red);
    transform: rotate(45deg);
    opacity: .9;
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.28rem; margin-bottom: 4px; }
.role { font-size: .78rem; font-family: var(--font-display); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--red-light); }
@media (max-width: 1060px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .team-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FINAL CTA
========================================================= */
.cta {
    position: relative;
    text-align: center;
    padding-block: clamp(80px, 12vw, 150px);
    overflow: hidden;
    isolation: isolate;
}
.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(50% 70% at 50% 100%, rgba(229, 9, 20, .26), transparent 70%);
}
.cta h2 { font-size: clamp(2.3rem, 6vw, 4.8rem); letter-spacing: -.04em; line-height: 1.02; max-width: 900px; margin: 18px auto 24px; }
.cta p { color: var(--gray-400); max-width: 560px; margin: 0 auto 38px; font-size: 1.1rem; }
.cta .hero-actions { justify-content: center; margin-top: 0; }

/* =========================================================
   FOOTER
========================================================= */
.footer { border-top: 1px solid var(--border); background: var(--black-soft); padding-top: 72px; flex-shrink: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 56px; }
.footer-brand p { color: var(--gray-500); margin-top: 20px; max-width: 320px; font-size: .96rem; }
.footer h4 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 20px; font-weight: 600; }
.footer li + li { margin-top: 12px; }
.footer-links a { color: var(--gray-200); font-size: .96rem; transition: color .2s; }
.footer-links a:hover { color: var(--red-light); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-block: 26px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: .86rem;
    color: var(--gray-600);
}
.footer-bottom b { font-family: var(--font-display); letter-spacing: .24em; font-weight: 600; color: var(--gray-500); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* =========================================================
   INNER PAGE HERO
========================================================= */
.page-hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(56px, 9vw, 110px)) 0 clamp(48px, 7vw, 84px);
    overflow: hidden;
    isolation: isolate;
}
.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(55% 90% at 85% 0%, rgba(229, 9, 20, .18), transparent 70%);
}
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.04em; line-height: 1.02; max-width: 960px; margin: 20px 0 24px; }
.page-hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--gray-400); max-width: 680px; }
.page-hero .hero-actions { margin-top: 32px; }

/* =========================================================
   PRODUCTS PAGE — DETAIL
========================================================= */
.product-detail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(34px, 5vw, 56px); }
.product-detail + .product-detail { border-top: 1px solid var(--border); }
.product-detail.flip .pd-visual { order: 2; }
.pd-visual { border-radius: var(--radius-lg); border: 1px solid var(--border); min-height: 360px; display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(70% 90% at 50% 0%, rgba(229, 9, 20, .15), transparent 70%), var(--black-soft); }
.pd-copy h2 { font-size: clamp(2rem, 4vw, 3rem); margin: 14px 0 14px; }
.pd-copy .lead { color: var(--gray-200); font-size: 1.12rem; margin-bottom: 22px; }
.pd-copy h3 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gray-500); margin: 28px 0 14px; font-weight: 600; }
.check-list { display: grid; gap: 11px; }
.check-list li { position: relative; padding-left: 28px; color: var(--gray-200); font-size: .98rem; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--red-light); border-bottom: 2px solid var(--red-light); transform: rotate(-45deg) translateY(-3px); }
.pd-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.proves { margin-top: 26px; padding: 18px 20px; border-left: 2px solid var(--red); background: var(--glass); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--gray-200); font-size: .96rem; }
.proves b { color: #fff; font-family: var(--font-display); }
@media (max-width: 900px) {
    .product-detail { grid-template-columns: 1fr; }
    .product-detail.flip .pd-visual { order: 0; }
    .pd-visual { min-height: 280px; }
}

.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.mini-card { padding: 30px; display: flex; flex-direction: column; gap: 14px; }
.mini-card:hover { transform: translateY(-4px); }
.mini-card h3 { font-size: 1.45rem; }
.mini-card p { color: var(--gray-400); font-size: .98rem; }
@media (max-width: 760px) { .mini-grid { grid-template-columns: 1fr; } }

/* =========================================================
   TECH STACK + FAQ
========================================================= */
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.stack-card { padding: 28px; }
.stack-card h3 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--red-light); margin-bottom: 18px; font-weight: 600; }
@media (max-width: 1000px) { .stack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: 1fr; } }

.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--black-card); transition: border-color .3s; }
.faq details[open] { border-color: rgba(229, 9, 20, .4); }
.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; color: var(--red-light); transition: transform .3s var(--ease); flex-shrink: 0; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 26px 24px; color: var(--gray-400); }

/* =========================================================
   ABOUT
========================================================= */
.story { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.story h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin-top: 18px; }
.story-copy { display: grid; gap: 22px; color: var(--gray-400); font-size: 1.1rem; }
.story-copy strong { color: var(--ink); font-weight: 600; }
.pull-quote {
    margin-top: 12px;
    padding: 26px 30px;
    border-left: 2px solid var(--red);
    background: var(--glass);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    line-height: 1.35;
    color: var(--ink);
    letter-spacing: -.015em;
}
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.value-card { padding: 32px; }
.value-card h3 { font-size: 1.3rem; margin-bottom: 12px; }
.value-card p { color: var(--gray-400); font-size: .98rem; }
@media (max-width: 900px) { .values { grid-template-columns: 1fr; } }

/* =========================================================
   CONTACT
========================================================= */
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-info { display: grid; gap: 30px; position: sticky; top: calc(var(--nav-h) + 24px); }
.contact-info h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 16px; }
.contact-info p { color: var(--gray-400); }
.info-block h3 { font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gray-500); margin-bottom: 8px; font-weight: 600; }
.info-block a { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; border-bottom: 1px solid var(--border-strong); transition: color .2s, border-color .2s; word-break: break-word; }
.info-block a:hover { color: var(--red-light); border-color: var(--red); }
.next-steps { display: grid; gap: 16px; counter-reset: ns; }
.next-steps li { counter-increment: ns; display: flex; gap: 16px; color: var(--gray-200); font-size: .98rem; }
.next-steps li::before {
    content: counter(ns);
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    display: grid; place-items: center;
    font-family: var(--font-display);
    font-size: .8rem;
    font-weight: 600;
    color: var(--red-light);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } .contact-info { position: static; } }

.form-card { padding: clamp(24px, 4vw, 44px); }
.form-card:hover { border-color: var(--border); }
.form-card:hover::before { opacity: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-display); font-size: .86rem; font-weight: 500; color: var(--gray-200); }
.field label small { color: var(--gray-600); font-weight: 400; }
.field input, .field select, .field textarea {
    width: 100%;
    padding: 15px 16px;
    border-radius: var(--radius-sm);
    background: var(--black-soft);
    border: 1px solid var(--border-strong);
    color: var(--ink);
    transition: border-color .2s, box-shadow .2s, background .2s;
    -webkit-appearance: none;
    appearance: none;
}
.field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23b7b6b1' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}
.field select option { background: #121216; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-600); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 9, 20, .16); background: #0e0e11; }
.field [aria-invalid="true"] { border-color: var(--red-light); }
.field-error { color: var(--red-light); font-size: .82rem; min-height: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form-hint { font-size: .84rem; color: var(--gray-600); }
.form-status { margin-top: 22px; padding: 16px 20px; border-radius: var(--radius-md); font-size: .96rem; display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(49, 212, 107, .08); border: 1px solid rgba(49, 212, 107, .35); color: #9af0b8; }
.form-status.err { background: rgba(229, 9, 20, .08); border: 1px solid rgba(229, 9, 20, .4); color: #ffb3b6; }
.form-status a { text-decoration: underline; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* =========================================================
   404
========================================================= */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 20px) var(--gutter) 60px; position: relative; isolation: isolate; }
.notfound::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 50% at 50% 40%, rgba(229, 9, 20, .2), transparent 70%); }
.notfound h1 { font-size: clamp(6rem, 22vw, 14rem); letter-spacing: -.06em; line-height: .9; }
.notfound p { color: var(--gray-400); margin: 18px auto 34px; max-width: 460px; }

/* =========================================================
   REVEAL MOTION
========================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    .js .hero-title .w { transform: none; }
    .marquee-track { animation: none; }
}

@media print {
    .navbar, .progress, .hero-visual, .scroll-hint { display: none !important; }
    body { background: #fff; color: #000; }
}


/* =========================================================
   HERO ROTATOR
========================================================= */
.hero-rotator {
    margin-top: 22px;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 1.7vw, 1.3rem);
    font-weight: 500;
    color: var(--gray-400);
    min-height: 1.6em;
}
.hero-rotator .rot-word { color: var(--ink); font-weight: 600; }
.hero-rotator .caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.16em; background: var(--red); animation: caretBlink 1s steps(2) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

/* =========================================================
   IDEAS WE LOVE BUILDING
========================================================= */
.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.idea-card { display: flex; flex-direction: column; gap: 12px; padding: 30px; color: inherit; }
.idea-card:hover { transform: translateY(-5px); }
.idea-card h3 { font-size: 1.28rem; }
.idea-card p { color: var(--gray-400); font-size: .96rem; }
.idea-like { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .84rem; color: var(--gray-500); }
.idea-like b { color: var(--gray-200); font-weight: 600; font-family: var(--font-display); }
.idea-go { color: var(--red-light); font-family: var(--font-display); font-weight: 600; transition: transform .25s var(--ease); }
.idea-card:hover .idea-go { transform: translate(3px, -3px); }
.idea-card.cta-card { background: linear-gradient(145deg, rgba(229, 9, 20, .18), rgba(229, 9, 20, .04)), var(--black-card); border-color: rgba(229, 9, 20, .4); justify-content: center; }
.idea-card.cta-card h3 { font-size: 1.6rem; }
@media (max-width: 1000px) { .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .idea-grid { grid-template-columns: 1fr; } .idea-card { padding: 26px; } }

.service-cta { margin-top: auto; padding-top: 6px; }
.service-cta a { display: inline-flex; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--red-light); border-bottom: 1px solid transparent; transition: gap .2s, border-color .2s; }
.service-cta a:hover { gap: 12px; border-color: var(--red-light); }

/* =========================================================
   TIMELINE (About)
========================================================= */
.timeline { position: relative; display: grid; gap: 0; max-width: 820px; margin-inline: auto; }
.timeline::before { content: ""; position: absolute; left: 15px; top: 8px; bottom: 8px; width: 1px; background: linear-gradient(var(--red), var(--border-strong) 40%, var(--border-strong) 85%, transparent); }
.tl-item { position: relative; padding: 0 0 38px 54px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: 6px; top: 6px; width: 19px; height: 19px; border-radius: 50%; background: var(--black); border: 2px solid var(--red); box-shadow: 0 0 0 5px rgba(229, 9, 20, .12); }
.tl-item.next::before { border-color: var(--border-strong); box-shadow: none; border-style: dashed; }
.tl-item .when { font-family: var(--font-display); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--red-light); }
.tl-item.next .when { color: var(--gray-500); }
.tl-item h3 { font-size: 1.35rem; margin: 6px 0 8px; }
.tl-item p { color: var(--gray-400); }

/* =========================================================
   STICKY MOBILE CTA
========================================================= */
.sticky-cta {
    position: fixed;
    left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: none;
    justify-content: center;
    padding: 16px 24px;
    transform: translateY(140%);
    transition: transform .4s var(--ease-out);
    box-shadow: var(--glow-red), 0 12px 40px rgba(0, 0, 0, .6);
}
@media (max-width: 760px) {
    .sticky-cta { display: inline-flex; }
    .sticky-cta.show { transform: none; }
    .menu-open .sticky-cta { transform: translateY(140%); }
    .footer-bottom { padding-bottom: 96px; }
}

/* ---------- Live demo panel ---------- */
.live-demo { border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--black-card); overflow: hidden; }
.live-tabs { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--border); background: var(--black-soft); flex-wrap: wrap; }
.live-tabs button { font: inherit; font-weight: 600; font-size: .95rem; color: var(--gray-400); background: transparent; border: 1px solid transparent; border-radius: var(--radius-full); padding: 10px 20px; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.live-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.live-tabs button[aria-selected="true"] { color: #fff; background: rgba(229, 9, 20, .16); border-color: rgba(229, 9, 20, .5); }
.live-tabs button:focus-visible { outline: 2px solid var(--red-light); outline-offset: 2px; }
.live-frame { position: relative; height: clamp(520px, 78vh, 760px); background: #0a0a0c; }
.live-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #fff; }
.live-start { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; text-align: center; padding: 28px; }
.live-start[hidden] { display: none; }
.live-start p { max-width: 460px; color: var(--gray-400); }
.live-start strong { color: #fff; font-family: var(--font-display); font-size: 1.5rem; }
.live-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 20px; border-top: 1px solid var(--border); font-size: .9rem; color: var(--gray-500); }
@media (max-width: 640px) { .live-frame { height: 78vh; } .live-tabs button { padding: 9px 14px; } }

#live { scroll-margin-top: 96px; }

/* ---------- Product screenshots ---------- */
.pd-shots { display: block; padding: 14px; min-height: 0; }
.shot-gallery { display: grid; gap: 12px; }
.shot { margin: 0; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-strong); background: #0a0a0c; box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; font-size: .85rem; color: var(--gray-400); border-top: 1px solid var(--border); background: var(--black-soft); }
.shot-thumbs { display: flex; gap: 10px; }
.shot-thumbs[hidden] { display: none; }
.shot-thumbs button { flex: 1; padding: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: none; cursor: pointer; opacity: .65; transition: opacity .2s, border-color .2s; }
.shot-thumbs button img { display: block; width: 100%; height: auto; }
.shot-thumbs button:hover, .shot-thumbs button[aria-pressed="true"] { opacity: 1; border-color: var(--red); }
.shot-thumbs button:focus-visible { outline: 2px solid var(--red-light); outline-offset: 2px; }
.mini-shot-link { display: block; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-strong); }
.mini-shot { display: block; width: 100%; height: auto; transition: transform .4s var(--ease); }
.mini-shot-link:hover .mini-shot { transform: scale(1.03); }
.mini-shots { display: flex; gap: 12px; justify-content: center; }
.mini-shots img { width: 46%; height: auto; border-radius: 18px; border: 1px solid var(--border-strong); box-shadow: 0 14px 36px rgba(0, 0, 0, .4); }

/* ---------- Home cards with screenshots, install snippet ---------- */
.product-visual-shot { padding: 0; overflow: hidden; }
.product-visual-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
pre.install { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--black-soft); border: 1px solid var(--border); font-size: .85rem; overflow-x: auto; color: var(--gray-200); }
pre.install code { font-family: ui-monospace, Consolas, monospace; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; }
