/* ==========================================================================
   Mindsoft — public site styles
   ========================================================================== */

:root {
    --navy-950: #020817;
    --navy-900: #06132b;
    --navy-800: #0a1f45;
    --navy: #002e5b;
    --blue: #375eef;
    --blue-400: #6383ff;
    --blue-300: #93a9ff;
    --cyan: #2dd4e8;
    --green: #34d399;

    --ink: #0a1324;
    --text: #3b4a63;
    --muted: #6b7a93;
    --line: #e3e8f1;
    --bg: #ffffff;
    --bg-soft: #f4f7fc;

    --grad: linear-gradient(110deg, #375eef 0%, #5b7cff 40%, #2dd4e8 100%);
    --grad-soft: linear-gradient(135deg, rgba(55, 94, 239, .12), rgba(45, 212, 232, .12));

    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Barlow Condensed', 'Manrope', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow-sm: 0 1px 2px rgba(10, 19, 36, .05);
    --shadow: 0 1px 2px rgba(10, 19, 36, .04), 0 12px 32px -12px rgba(10, 19, 36, .12);
    --shadow-lg: 0 40px 80px -32px rgba(2, 8, 23, .45);

    --container: 1200px;
    --gutter: clamp(20px, 4vw, 40px);
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-top: var(--header-h);
}

body.has-dark-top { padding-top: 0; }
body.nav-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: rgba(55, 94, 239, .25); }

:focus-visible { outline: 2px solid var(--blue-400); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; box-shadow: var(--shadow); transition: top .2s; }
.skip-link:focus { top: 16px; }

.icon { width: 22px; height: 22px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.icon-xs { width: 14px; height: 14px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(820px + var(--gutter) * 2); }

.draft-bar { position: relative; z-index: 60; background: #fbbf24; color: #3b2600; text-align: center; font-size: 14px; font-weight: 700; padding: 8px 16px; }
body.has-dark-top .draft-bar { position: fixed; top: 0; left: 0; right: 0; }

/* ---------- Sections & themes ---------- */

.section {
    --s-bg: var(--bg);
    --s-heading: var(--ink);
    --s-text: var(--text);
    --s-muted: var(--muted);
    --s-card: #fff;
    --s-border: var(--line);
    position: relative;
    padding: clamp(80px, 10vw, 136px) 0;
    background: var(--s-bg);
    color: var(--s-text);
}
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section[data-bg="soft"] { --s-bg: var(--bg-soft); }
.section[data-bg="dark"] {
    --s-bg: var(--navy-950);
    --s-heading: #fff;
    --s-text: #a9b6cf;
    --s-muted: #7d8aa5;
    --s-card: rgba(255, 255, 255, .03);
    --s-border: rgba(255, 255, 255, .09);
    overflow: hidden;
    isolation: isolate;
}
.section[data-bg="dark"]::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(800px 400px at 15% 0%, rgba(55, 94, 239, .22), transparent 60%),
        radial-gradient(600px 400px at 90% 100%, rgba(45, 212, 232, .12), transparent 60%);
}
.section[data-bg="dark"]::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 20%, transparent 80%);
}
.section h2, .section h3 { color: var(--s-heading); }

/* ---------- Typography ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.section[data-bg="dark"] .eyebrow { color: var(--blue-300); }

.hl {
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.section-head { max-width: 720px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.035em; line-height: 1.08; }
.section-lead { margin-top: 20px; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--s-muted, var(--muted)); }

.prose { color: var(--s-text, var(--text)); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.65rem; margin-top: 2em; color: var(--s-heading, var(--ink)); }
.prose h3 { font-size: 1.3rem; margin-top: 1.8em; color: var(--s-heading, var(--ink)); }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--s-heading, var(--ink)); font-weight: 600; }
.prose img { border-radius: var(--radius); }
.prose code { font-family: var(--font-mono); font-size: .9em; background: var(--bg-soft); padding: 2px 6px; border-radius: 6px; }
.prose-lg { font-size: 1.08rem; }

/* ---------- Buttons ---------- */

.btn {
    --btn-h: 46px;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: var(--btn-h);
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.005em;
    white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s, color .25s;
}
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-sm { --btn-h: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { --btn-h: 54px; padding: 0 28px; font-size: 16px; }
.btn-block { width: 100%; }

.btn-primary {
    color: #fff;
    background: linear-gradient(110deg, #375eef, #4f74ff 50%, #3a8bf5);
    box-shadow: 0 10px 30px -10px rgba(55, 94, 239, .7), inset 0 1px 0 rgba(255, 255, 255, .2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(55, 94, 239, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }

.btn-light { color: var(--navy-950); background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.btn-light:hover { transform: translateY(-2px); }

.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .08); }

.btn-outline { color: var(--s-heading, var(--ink)); border-color: var(--s-border, var(--line)); background: transparent; }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }
.section[data-bg="dark"] .btn-outline:hover { color: #fff; border-color: var(--blue-300); }

/* ---------- Header ---------- */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    height: var(--header-h);
    color: var(--ink);
    background: rgba(255, 255, 255, .78);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(227, 232, 241, .8);
    transition: background-color .35s, border-color .35s, color .35s, transform .35s var(--ease);
}
.has-dark-top .site-header:not(.is-scrolled),
.nav-open .site-header {
    color: #fff;
    background: transparent;
    border-bottom-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.nav-open .site-header,
.nav-open.has-dark-top .site-header:not(.is-scrolled) { background: var(--navy-950); }
.has-dark-top .draft-bar ~ .site-header { top: 36px; }

.header-inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; }
.wordmark { font-family: var(--font-display); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -.01em; }
.wordmark-a { color: var(--navy); transition: color .35s; }
.wordmark-b { color: var(--ink); transition: color .35s; }
.has-dark-top .site-header:not(.is-scrolled) .wordmark-a,
.nav-open .wordmark-a,
.brand-footer .wordmark-a { color: var(--blue-300); }
.has-dark-top .site-header:not(.is-scrolled) .wordmark-b,
.nav-open .wordmark-b,
.brand-footer .wordmark-b { color: #fff; }

.main-nav { display: flex; gap: 4px; margin-left: auto; }
.main-nav a {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    opacity: .8;
    transition: opacity .2s, background-color .2s;
}
.main-nav a:hover { opacity: 1; background: rgba(55, 94, 239, .08); }
.has-dark-top .site-header:not(.is-scrolled) .main-nav a:hover { background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { opacity: 1; }
.main-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cyan);
    transform: translateX(-50%);
}

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

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid currentColor;
    border-color: rgba(127, 140, 160, .3);
    background: transparent;
    color: inherit;
}
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

.mobile-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 49;
    background: var(--navy-950);
    padding: 24px 0 40px;
    overflow-y: auto;
    animation: fadeIn .25s var(--ease);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a:not(.btn) {
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -.03em;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.mobile-nav .btn { margin-top: 28px; }

/* ---------- Shared dark FX background (hero, page header, CTA) ---------- */

.fx-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 30%, transparent 85%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); will-change: transform; }
.glow-1 { width: 560px; height: 560px; left: -160px; top: -220px; background: #375eef; opacity: .5; animation: drift 16s ease-in-out infinite alternate; }
.glow-2 { width: 480px; height: 480px; right: -160px; top: 10%; background: #2dd4e8; opacity: .28; animation: drift 20s ease-in-out infinite alternate-reverse; }
.glow-3 { width: 520px; height: 520px; left: 35%; bottom: -340px; background: #7c3aed; opacity: .22; animation: drift 24s ease-in-out infinite alternate; }
.fx-spotlight {
    position: absolute;
    inset: 0;
    background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), rgba(99, 131, 255, .16), transparent 60%);
    transition: opacity .4s;
}

@keyframes drift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy-950);
    color: #a9b6cf;
    padding: calc(var(--header-h) + clamp(48px, 8vw, 104px)) 0 clamp(80px, 10vw, 128px);
}
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 131, 255, .5), transparent);
}

.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 6vw, 80px); align-items: center; }

.pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
    color: #c9d4ff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 28px;
}
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.pill-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; animation: ping 2.2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.hero-title {
    color: #fff;
    font-size: clamp(2.7rem, 6.2vw, 5rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.hero-text { margin-top: 26px; max-width: 560px; font-size: clamp(1.08rem, 1.5vw, 1.25rem); line-height: 1.6; color: #a9b6cf; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 34px; font-size: 14px; color: #7d8aa5; }
.hero-note .icon { color: var(--blue-300); }

.hero-visual { position: relative; perspective: 1200px; }
.hero-stage { position: relative; transform-style: preserve-3d; transition: transform .6s var(--ease); padding: 36px 0; }

.code-card {
    position: relative;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(16, 31, 62, .92), rgba(6, 15, 34, .96));
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .06);
    overflow: hidden;
}
.code-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(99, 131, 255, .7), transparent 35%, transparent 65%, rgba(45, 212, 232, .5));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.code-head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.code-dots { display: flex; gap: 7px; }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-dots i:nth-child(2) { background: #febc2e; }
.code-dots i:nth-child(3) { background: #28c840; }
.code-file { font-family: var(--font-mono); font-size: 12.5px; color: #7d8aa5; }
.code {
    margin: 0;
    padding: 20px 22px 26px 8px;
    font-family: var(--font-mono);
    font-size: clamp(12px, 1.15vw, 14px);
    line-height: 1.9;
    color: #e2e8f5;
    overflow: hidden;
}
.ln { display: flex; white-space: pre; }
.ln-n { width: 36px; flex: none; text-align: right; padding-right: 18px; color: #3c4a66; user-select: none; }
.js .ln { opacity: 0; transform: translateX(-8px); }
.js .hero.is-in .ln { animation: lineIn .5s var(--ease) forwards; animation-delay: calc(var(--i) * 110ms + 450ms); }
@keyframes lineIn { to { opacity: 1; transform: none; } }
.t-k { color: #c4a7ff; }
.t-s { color: #7ee0c3; }
.t-f { color: #82aaff; }
.t-v { color: #f0f4ff; }
.t-p { color: #8fd3ff; }
.t-c { color: #5d6b85; font-style: italic; }
.caret { display: inline-block; width: 8px; height: 1.1em; margin-left: 4px; vertical-align: -2px; background: var(--cyan); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.status-card {
    position: absolute;
    right: -18px;
    bottom: -6px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    transform: translateZ(60px);
    animation: float 7s ease-in-out infinite;
    animation-delay: -2s;
}
.status-card strong { display: block; font-size: 14px; line-height: 1.3; }
.status-card small { display: block; font-size: 12.5px; color: var(--muted); }
.status-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(52, 211, 153, .15); color: #059669; }

.chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(10, 25, 55, .75);
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #e2e8f5;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6);
    transform: translateZ(40px);
    animation: float 6s ease-in-out infinite;
}
.chip .icon { color: var(--cyan); }
.chip-1 { left: -34px; top: 4px; }
.chip-2 { right: -26px; top: 58%; animation-delay: -1.5s; }
.chip-3 { left: -20px; bottom: 12px; animation-delay: -3s; }
.chip-4 { right: 20%; top: -6px; animation-delay: -4.5s; }

@keyframes float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -10px; }
}

/* ---------- Page header ---------- */

.page-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: var(--navy-950);
    color: #a9b6cf;
    padding: calc(var(--header-h) + clamp(56px, 8vw, 96px)) 0 clamp(64px, 8vw, 104px);
    text-align: center;
}
.page-header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(99, 131, 255, .5), transparent);
}
.page-header-inner { max-width: 900px; }
.page-header h1, .page-title { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.045em; }
.page-lead { margin: 24px auto 0; max-width: 640px; font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.page-header .hero-actions { justify-content: center; }
.page-header--error { min-height: 80vh; display: grid; align-items: center; }
.error-code {
    font-family: var(--font-display);
    font-size: clamp(6rem, 16vw, 11rem);
    font-weight: 600;
    line-height: .9;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 16px;
}

/* ---------- Marquee ---------- */

.marquee-section { border-bottom: 1px solid var(--s-border); }
.marquee-label { text-align: center; font-size: 14px; font-weight: 600; color: var(--s-muted); margin-bottom: 28px; }
.marquee {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-list { display: flex; align-items: center; gap: 56px; padding-right: 56px; list-style: none; }
.marquee-list li {
    display: flex;
    align-items: center;
    gap: 56px;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--s-heading);
    opacity: .82;
    white-space: nowrap;
}
.marquee-list li::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards ---------- */

.cards { display: grid; gap: 20px; }
.cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 30px 28px 32px;
    border-radius: var(--radius);
    background: var(--s-card);
    border: 1px solid var(--s-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    isolation: isolate;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(420px circle at var(--x, 50%) var(--y, 0%), rgba(55, 94, 239, .1), transparent 45%);
    opacity: 0;
    transition: opacity .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(55, 94, 239, .35); }
.card:hover::before { opacity: 1; }
.section[data-bg="dark"] .card::before { background: radial-gradient(420px circle at var(--x, 50%) var(--y, 0%), rgba(99, 131, 255, .18), transparent 45%); }

.card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.card-icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: var(--grad-soft);
    border: 1px solid rgba(55, 94, 239, .15);
    color: var(--blue);
    transition: transform .4s var(--ease), background .4s, color .4s;
}
.card:hover .card-icon { transform: rotate(-6deg) scale(1.06); background: var(--grad); color: #fff; }
.section[data-bg="dark"] .card-icon { color: var(--blue-300); }
.card-num { font-family: var(--font-mono); font-size: 13px; color: var(--s-muted); opacity: .7; }
.card-title { font-size: 1.28rem; letter-spacing: -.02em; }
.card-text { margin-top: 12px; color: var(--s-muted); font-size: 15.5px; line-height: 1.65; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 22px; font-weight: 700; font-size: 15px; color: var(--blue); }
.section[data-bg="dark"] .card-link { color: var(--blue-300); }

.section-actions { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- Split ---------- */

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 96px); align-items: center; }
.split--left .split-visual { order: -1; }
.split--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.split-copy .section-title { margin-bottom: 24px; }
.split-copy .prose { font-size: 1.07rem; }
.split-copy > .btn { margin-top: 36px; }

.checklist { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.checklist li { display: flex; align-items: center; gap: 14px; font-weight: 600; color: var(--s-heading); }
.check { display: grid; place-items: center; width: 26px; height: 26px; flex: none; border-radius: 8px; background: var(--grad); color: #fff; box-shadow: 0 6px 16px -6px rgba(55, 94, 239, .6); }

.split-image { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.4; }
.split-image img { width: 100%; height: 100%; object-fit: cover; }

.highlight-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    aspect-ratio: 4 / 3.6;
    padding: clamp(32px, 5vw, 52px);
    border-radius: var(--radius-lg);
    background: var(--navy-950);
    color: #a9b6cf;
    box-shadow: var(--shadow-lg);
}
.highlight-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(500px 340px at 100% 0%, rgba(55, 94, 239, .55), transparent 60%),
        radial-gradient(400px 300px at 0% 100%, rgba(45, 212, 232, .22), transparent 60%);
}
.highlight-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.highlight-orbit { position: absolute; right: -90px; top: -90px; width: 360px; height: 360px; z-index: -1; }
.highlight-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(147, 169, 255, .22); animation: spin 30s linear infinite; }
.highlight-orbit i:nth-child(2) { inset: 50px; border-style: dashed; animation-duration: 22s; animation-direction: reverse; }
.highlight-orbit i:nth-child(3) { inset: 100px; border-color: rgba(45, 212, 232, .3); animation-duration: 16s; }
.highlight-orbit i::after { content: ""; position: absolute; top: 50%; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); }
.highlight-orbit i:nth-child(2)::after { background: var(--blue-400); box-shadow: 0 0 16px var(--blue-400); left: auto; right: -5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.highlight-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(5rem, 11vw, 8.5rem);
    line-height: .9;
    letter-spacing: -.01em;
    background: linear-gradient(180deg, #fff 30%, #93a9ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.highlight-label { margin-top: 14px; max-width: 300px; font-size: 1.1rem; font-weight: 600; color: #c6d1e6; }

/* ---------- Steps ---------- */

.steps { --n: 4; list-style: none; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 20px; counter-reset: step; position: relative; }
.step {
    position: relative;
    padding: 30px 26px 32px;
    border-radius: var(--radius);
    background: var(--s-card);
    border: 1px solid var(--s-border);
    transition: border-color .4s, transform .4s var(--ease), background-color .4s;
}
.step:hover { transform: translateY(-4px); border-color: rgba(99, 131, 255, .45); }
.step-num {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 3.4rem;
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 22px;
}
.step::after {
    content: "";
    position: absolute;
    top: 52px;
    right: -21px;
    width: 22px;
    height: 1px;
    background: linear-gradient(90deg, var(--s-border), rgba(99, 131, 255, .6));
}
.step:last-child::after { display: none; }
.step-title { font-size: 1.3rem; }
.step-text { margin-top: 12px; font-size: 15.5px; color: var(--s-muted); }

/* ---------- Stats ---------- */

.stats { --n: 4; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-top: 1px solid var(--s-border); border-bottom: 1px solid var(--s-border); }
.stat { padding: 40px 28px; text-align: center; }
.stat + .stat { border-left: 1px solid var(--s-border); }
.stat-value {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(3rem, 6vw, 4.6rem);
    line-height: 1;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 12px; font-weight: 600; font-size: 15px; color: var(--s-muted); }

/* ---------- Timeline ---------- */

.timeline { list-style: none; position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--blue), var(--cyan), transparent); opacity: .5; }
.timeline-item { position: relative; display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 24px; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -40px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--s-bg); border: 3px solid var(--blue); box-shadow: 0 0 0 6px rgba(55, 94, 239, .12); }
.timeline-year { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; color: var(--blue); text-transform: uppercase; }
.section[data-bg="dark"] .timeline-year { color: var(--blue-300); }
.timeline-title { font-size: 1.3rem; }
.timeline-body p { margin-top: 8px; color: var(--s-muted); }

/* ---------- Quote ---------- */

.quote { position: relative; margin: 0; text-align: center; }
.quote .eyebrow { justify-content: center; }
.quote-mark {
    display: block;
    font-family: Georgia, serif;
    font-size: 120px;
    line-height: .6;
    height: 56px;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.6rem, 3.4vw, 2.6rem); line-height: 1.3; font-weight: 700; letter-spacing: -.03em; color: var(--s-heading); }
.quote figcaption { margin-top: 32px; }
.quote figcaption strong { display: block; color: var(--s-heading); }
.quote figcaption span { font-size: 15px; color: var(--s-muted); }

/* ---------- CTA ---------- */

.cta-section { padding-top: clamp(40px, 6vw, 80px); }
.cta-panel {
    --s-heading: #fff;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(56px, 8vw, 104px) clamp(24px, 6vw, 80px);
    border-radius: 32px;
    background: var(--navy-950);
    text-align: center;
    color: #a9b6cf;
    box-shadow: var(--shadow-lg);
}
.cta-panel .glow-1 { left: -120px; top: -260px; }
.cta-panel .glow-2 { right: -120px; top: auto; bottom: -260px; opacity: .35; }
.cta-title { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.04em; max-width: 820px; margin: 0 auto; }
.cta-text { margin: 22px auto 0; max-width: 560px; font-size: 1.15rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- Contact ---------- */

.contact { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.contact-info .section-title { margin-bottom: 4px; }
.contact-list { list-style: none; display: grid; gap: 14px; margin-top: 40px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--s-border); background: var(--s-card); }
.contact-list small { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--s-muted); margin-bottom: 2px; }
.contact-list span { color: var(--s-heading); font-weight: 600; }
.contact-list a:hover { color: var(--blue); }
.contact-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--grad-soft); color: var(--blue); }

.contact-card {
    position: relative;
    padding: clamp(28px, 4vw, 44px);
    border-radius: var(--radius-lg);
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -40px rgba(10, 19, 36, .25);
}
.contact-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    border-radius: inherit;
    background: var(--grad);
    opacity: .5;
    filter: blur(24px);
    transform: translateY(16px) scale(.94);
}
.contact-card-title { font-size: 1.5rem; margin-bottom: 26px; color: var(--ink) !important; }

.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea {
    width: 100%;
    padding: 24px 16px 10px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field label {
    position: absolute;
    left: 17px;
    top: 17px;
    font-size: 16px;
    color: var(--muted);
    pointer-events: none;
    transform-origin: left top;
    transition: transform .2s var(--ease), color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(55, 94, 239, .12); }
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-10px) scale(.76); color: var(--blue); font-weight: 600; }
.field.has-error input, .field.has-error textarea { border-color: #ef4444; background: #fef2f2; }
.field-error { margin-top: 6px; font-size: 13.5px; font-weight: 600; color: #dc2626; }
.form-note { font-size: 13px; color: var(--muted); text-align: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-success { text-align: center; padding: 32px 8px; }
.form-success-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: var(--grad); color: #fff; box-shadow: 0 16px 40px -12px rgba(55, 94, 239, .7); margin-bottom: 22px; }
.form-success-icon .icon { width: 30px; height: 30px; }
.form-success h3 { font-size: 1.6rem; color: var(--ink) !important; }
.form-success p { margin: 12px auto 28px; max-width: 380px; color: var(--muted); }
.form-success .btn-outline { color: var(--ink); border-color: var(--line); }

/* ---------- Footer ---------- */

.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--navy-950); color: #8f9cb8; padding: clamp(72px, 9vw, 112px) 0 36px; }
.footer-glow { position: absolute; z-index: -1; left: 50%; top: -340px; width: 900px; height: 500px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(55, 94, 239, .35), transparent); }
.footer-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-bottom: clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-heading { color: #fff; font-size: clamp(2.4rem, 6vw, 4.8rem); letter-spacing: -.045em; line-height: 1; max-width: 760px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; padding: 56px 0; }
.footer-about p { margin-top: 18px; max-width: 380px; font-size: 15.5px; }
.footer-title { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; display: grid; gap: 10px; font-size: 15.5px; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: 4px; color: var(--blue-300); }
.socials { display: flex; gap: 10px; margin-top: 24px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .1); color: #c6d1e6; transition: background-color .2s, border-color .2s, color .2s; }
.socials a:hover { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .25); color: #fff; }
.socials .icon { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.footer-legal { display: flex; gap: 22px; }
.footer-legal a:hover { color: #fff; }

/* ---------- Reveal on scroll ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal].is-in { transition: opacity .8s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s; transition-delay: calc(var(--d, 0) * 90ms), 0s, 0s, 0s; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
    .cards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .step::after { display: none; }
    .chip-1 { left: -8px; }
    .chip-2 { right: -8px; }
    .status-card { right: 0; }
}

@media (max-width: 960px) {
    .main-nav, .header-cta { display: none; }
    .nav-toggle { display: inline-flex; }
    .header-actions { margin-left: auto; }

    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; }
    .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .split, .contact { grid-template-columns: 1fr; }
    .split--left .split-visual { order: 0; }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat:nth-child(odd) { border-left: 0; }
    .stat:nth-child(n + 3) { border-top: 1px solid var(--s-border); }
    .footer-top { flex-direction: column; align-items: flex-start; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    :root { --header-h: 68px; }
    .wordmark { font-size: 30px; }
    .cards--2, .cards--3, .cards--4, .steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-actions .btn { flex: 1 1 100%; }
    .chip { font-size: 12px; padding: 8px 12px; }
    .chip-2 { top: 40%; }
    .status-card { padding: 10px 14px; bottom: -14px; }
    .code { font-size: 11.5px; }
    .ln-n { width: 28px; padding-right: 12px; }
    .timeline-item { grid-template-columns: 1fr; gap: 4px; }
    .footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .highlight-card { aspect-ratio: auto; min-height: 320px; }
}

@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 [data-reveal], .js .ln { opacity: 1; transform: none; }
    .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
    .marquee-list[aria-hidden="true"] { display: none; }
    .marquee-list { flex-wrap: wrap; justify-content: center; row-gap: 16px; }
}
