/* ============================================================
   EvoLoop Design System — "Engineering Premium"
   Near-black canvas · hairline borders · tight typography
   White primary actions · restrained teal signal · mono details
   ============================================================ */

:root {
    /* Canvas */
    --bg: #050507;
    --bg-soft: #0A0A0D;
    --panel: rgba(255, 255, 255, 0.024);
    --panel-hover: rgba(255, 255, 255, 0.045);

    /* Lines */
    --line: rgba(255, 255, 255, 0.08);
    --line-soft: rgba(255, 255, 255, 0.05);
    --line-strong: rgba(255, 255, 255, 0.16);

    /* Type */
    --fg: #EDEDEF;
    --fg-2: #A1A1AA;
    --fg-3: #6E7076;
    --fg-4: #484A50;

    /* Signal */
    --teal: #2DD4BF;
    --teal-dim: rgba(45, 212, 191, 0.14);
    --blue: #3B82F6;
    --blue-dim: rgba(59, 130, 246, 0.14);
    --purple: #A78BFA;
    --purple-dim: rgba(167, 139, 250, 0.14);
    --red: #F87171;
    --amber: #FBBF24;
    --green: #4ADE80;

    /* Legacy aliases (kept for safety) */
    --bg-primary: var(--bg);
    --bg-secondary: var(--bg-soft);
    --text-primary: var(--fg);
    --text-secondary: var(--fg-2);
    --text-muted: var(--fg-3);
    --accent-teal: var(--teal);
    --accent-blue: var(--blue);
    --accent-gradient: linear-gradient(120deg, var(--teal), var(--blue));
    --border-color: var(--line);
    --card-bg: var(--panel);
    --nav-bg: rgba(5, 5, 7, 0.72);

    /* Shape & motion */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 18px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: all 0.35s var(--ease);

    --font: 'Inter', -apple-system, system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
    --container: 1160px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    letter-spacing: -0.011em;
}

::selection { background: rgba(45, 212, 191, 0.25); color: #fff; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--font);
    color: var(--fg);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-wrap: balance;
}

.display {
    font-size: clamp(2.9rem, 6.4vw, 4.9rem);
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.035em; }
.h3 { font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.3; }

.lead {
    font-size: clamp(1.05rem, 1.4vw, 1.2rem);
    color: var(--fg-2);
    line-height: 1.7;
    letter-spacing: -0.01em;
}

.muted { color: var(--fg-3); }
.text-center { text-align: center; }
.gradient-text {
    background: linear-gradient(100deg, #fff 20%, rgba(255,255,255,0.55) 70%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.accent-text {
    background: linear-gradient(100deg, var(--teal) 0%, var(--blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Mono eyebrow label */
.eyebrow {
    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}
.eyebrow::before {
    content: '';
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal));
}
.eyebrow.center::after {
    content: '';
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--teal), transparent);
}

/* Section frame */
.section { padding: clamp(88px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto clamp(44px, 6vw, 72px); }
.section-head.left { margin-left: 0; }
.section-head h2 { margin: 14px 0 16px; }
.section-head p { color: var(--fg-2); font-size: 1.06rem; }

/* Hairline top border with index number */
.hairline-top { border-top: 1px solid var(--line-soft); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: var(--font);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    padding: 0.72rem 1.45rem;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    white-space: nowrap;
    line-height: 1.2;
}
.btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }

.btn-primary {
    background: #fff;
    color: #050507;
    border-color: #fff;
}
.btn-primary:hover {
    background: rgba(255, 255, 255, 0.88);
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.02);
    color: var(--fg);
    border-color: var(--line);
}
.btn-ghost:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px);
}

.btn-teal {
    background: var(--teal-dim);
    color: var(--teal);
    border-color: rgba(45, 212, 191, 0.3);
}
.btn-teal:hover { background: rgba(45, 212, 191, 0.2); border-color: var(--teal); }

.btn.full-width { width: 100%; }
.btn .arrow { transition: transform 0.25s var(--ease); display: inline-block; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Pills / badges ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--fg-2);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.42em 1em;
    background: rgba(255, 255, 255, 0.02);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.dot.teal { background: var(--teal); box-shadow: 0 0 8px var(--teal); }
.dot.blue { background: var(--blue); box-shadow: 0 0 8px var(--blue); }
.dot.purple { background: var(--purple); box-shadow: 0 0 8px var(--purple); }
.pill .dot.live { animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(5, 5, 7, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.navbar.scrolled {
    background: rgba(5, 5, 7, 0.82);
    border-bottom-color: var(--line-soft);
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 2rem;
}
.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 600; letter-spacing: -0.02em; font-size: 1.02rem; }
.logo-icon { width: 26px; height: 26px; }

.nav-links { display: flex; gap: 0.35rem; }
.nav-links a {
    font-size: 0.88rem;
    color: var(--fg-2);
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--fg); }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; }
#lang-toggle {
    font-family: var(--mono);
    font-size: 0.75rem;
    padding: 0.45rem 0.8rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--fg-2);
    cursor: pointer;
    transition: all 0.2s ease;
}
#lang-toggle:hover { color: var(--fg); border-color: var(--line-strong); }

.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.hamburger span { width: 20px; height: 1.5px; background: var(--fg); transition: all 0.3s var(--ease); display: block; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-overlay { display: none; }

@media (max-width: 860px) {
    .nav-links {
        position: fixed;
        top: 64px; left: 0; right: 0;
        flex-direction: column;
        background: rgba(5, 5, 7, 0.97);
        border-bottom: 1px solid var(--line);
        padding: 1rem 24px 1.4rem;
        gap: 0.2rem;
        transform: translateY(-8px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s var(--ease);
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 0.8rem 0.6rem; font-size: 1rem; }
    .hamburger { display: flex; }
    .nav-actions .btn-primary { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: clamp(140px, 18vh, 190px) 0 clamp(70px, 9vw, 110px);
    text-align: center;
    overflow: hidden;
}

/* Vercel-style grid backdrop */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 65% at 50% 0%, #000 25%, transparent 78%);
    pointer-events: none;
}

.hero-glow {
    position: absolute;
    top: -240px;
    left: 50%;
    transform: translateX(-50%);
    width: 920px;
    height: 620px;
    background: radial-gradient(ellipse, rgba(45, 212, 191, 0.13) 0%, rgba(59, 130, 246, 0.07) 42%, transparent 70%);
    filter: blur(30px);
    pointer-events: none;
}

#net-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; }
.hero h1 { margin: 26px auto 22px; max-width: 15ch; }
.hero .lead { max-width: 600px; margin: 0 auto; }
.hero-btns {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin-top: 2.4rem;
    flex-wrap: wrap;
}
.hero-note { margin-top: 1.1rem; font-size: 0.8rem; color: var(--fg-3); }

/* Hero product shot */
.hero-shot {
    position: relative;
    max-width: 980px;
    margin: clamp(52px, 7vw, 84px) auto 0;
}
.hero-shot .frame {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 30px 90px rgba(0, 0, 0, 0.65),
        0 0 120px rgba(45, 212, 191, 0.07);
    background: var(--bg-soft);
}
.hero-shot .frame img { width: 100%; }
.hero-shot .mobile {
    position: absolute;
    right: -3%;
    bottom: -9%;
    width: 22%;
    border-radius: 18px;
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
    overflow: hidden;
    background: #000;
}
.hero-shot::before {
    content: '';
    position: absolute;
    inset: 10% 6% auto;
    height: 40%;
    background: radial-gradient(ellipse, rgba(45, 212, 191, 0.12), transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

/* ---------- Logo marquee ---------- */
.marquee-section { padding: 34px 0 90px; overflow: hidden; }
.marquee-label {
    text-align: center;
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 26px;
}
.marquee {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 42s linear infinite;
}
.marquee:hover { animation-play-state: paused; }
.marquee .m-item {
    width: 52px; height: 52px;
    border-radius: 13px;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.015);
    padding: 11px;
    filter: grayscale(0.4) opacity(0.75);
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.marquee .m-item:hover { filter: none; border-color: var(--line-strong); transform: translateY(-2px); }
.marquee .m-item img { width: 100%; height: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-mask {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* ---------- Stats band ---------- */
.stats-band {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.005));
    overflow: hidden;
}
.stat-cell {
    padding: 2.1rem 1.6rem;
    text-align: center;
    position: relative;
}
.stat-cell + .stat-cell { border-left: 1px solid var(--line-soft); }
.stat-num {
    font-size: clamp(1.9rem, 3vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}
.stat-num .suffix { color: var(--teal); }
.stat-label { font-size: 0.82rem; color: var(--fg-3); margin-top: 6px; }
@media (max-width: 780px) {
    .stats-band { grid-template-columns: 1fr 1fr; }
    .stat-cell:nth-child(3) { border-left: none; }
    .stat-cell:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* ---------- Cards ---------- */
.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.9rem;
    transition: all 0.35s var(--ease);
    position: relative;
}
.card:hover {
    border-color: var(--line-strong);
    background: var(--panel-hover);
}
.card h3 { margin-bottom: 0.55rem; }
.card p { color: var(--fg-2); font-size: 0.94rem; }

/* Spotlight hover (Linear style) */
.spot { position: relative; overflow: hidden; }
.spot::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(480px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.055), transparent 42%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.spot:hover::before { opacity: 1; }

/* ---------- Production line cards ---------- */
.lines-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.line-card { padding: 1.7rem 1.6rem 1.5rem; display: flex; flex-direction: column; }
.line-card .lc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}
.lc-icon {
    width: 40px; height: 40px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    border: 1px solid;
}
.lc-icon.mkt { color: var(--purple); border-color: rgba(167,139,250,0.3); background: var(--purple-dim); }
.lc-icon.ops { color: var(--teal); border-color: rgba(45,212,191,0.3); background: var(--teal-dim); }
.lc-icon.svc { color: #93C5FD; border-color: rgba(59,130,246,0.3); background: var(--blue-dim); }
.lc-count { font-family: var(--mono); font-size: 0.7rem; color: var(--fg-3); letter-spacing: 0.06em; }
.line-card .lc-title { font-size: 1.15rem; margin-bottom: 0.4rem; }
.line-card .lc-desc { font-size: 0.88rem; color: var(--fg-2); margin-bottom: 1.3rem; flex: 1; }

.lc-flow { display: flex; flex-direction: column; gap: 0; margin-bottom: 1.35rem; }
.lc-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.1rem;
    font-size: 0.87rem;
    color: var(--fg-2);
    position: relative;
}
.lc-step + .lc-step { border-top: 1px dashed var(--line-soft); }
.lc-step .idx {
    font-family: var(--mono);
    font-size: 0.64rem;
    width: 20px; height: 20px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    background: rgba(255,255,255,0.05);
    color: var(--fg-3);
}
.line-card.mkt .lc-step:hover .idx { background: var(--purple-dim); color: var(--purple); }
.line-card.ops .lc-step:hover .idx { background: var(--teal-dim); color: var(--teal); }
.line-card.svc .lc-step:hover .idx { background: var(--blue-dim); color: #93C5FD; }
.lc-step:hover { color: var(--fg); }
.lc-step .last { margin-left: auto; color: var(--teal); font-size: 0.75rem; opacity: 0; transition: opacity 0.25s ease; }
.lc-step:hover .last { opacity: 1; }

.lc-logos { display: flex; align-items: center; gap: 8px; padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.lc-logos img {
    width: 22px; height: 22px;
    padding: 4px;
    border-radius: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--line-soft);
    object-fit: contain;
}
.lc-logos .more { font-family: var(--mono); font-size: 0.68rem; color: var(--fg-3); }
.line-card .card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-top: 1.15rem;
    font-size: 0.85rem;
    color: var(--fg-2);
    transition: color 0.2s ease;
}
.line-card .card-link:hover { color: var(--teal); }
@media (max-width: 900px) { .lines-grid { grid-template-columns: 1fr; } }
.lines-grid.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .lines-grid.grid-4 { grid-template-columns: 1fr; } }
.line-card.mtx .lc-icon,
.lc-icon.mtx { color: var(--fg); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }
.line-card.mtx .lc-step:hover .idx { background: rgba(255, 255, 255, 0.12); color: var(--fg); }

/* combo tag (product combos) */
.combo-tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    color: var(--teal);
    display: block;
    margin-bottom: 0.9rem;
}

/* orchestration band (text + swarm) */
.orch-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.4rem, 6vw, 5rem);
    align-items: center;
}
@media (max-width: 900px) { .orch-band { grid-template-columns: 1fr; } }
.orch-points { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.8rem; }
.orch-point {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: var(--panel);
    transition: all 0.3s var(--ease);
}
.orch-point:hover { border-color: var(--line-strong); transform: translateX(4px); }
.orch-point .op-ico { font-family: var(--mono); font-size: 0.7rem; color: var(--teal); padding-top: 2px; }
.orch-point h4 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.orch-point p { font-size: 0.85rem; color: var(--fg-2); }

/* ---------- Process steps ---------- */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.012);
}
.proc-step {
    padding: 2.1rem 1.7rem;
    position: relative;
    transition: background 0.3s ease;
}
.proc-step + .proc-step { border-left: 1px solid var(--line-soft); }
.proc-step:hover { background: rgba(255, 255, 255, 0.028); }
.proc-step .p-num {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--teal);
    letter-spacing: 0.1em;
    margin-bottom: 1.3rem;
    display: block;
}
.proc-step h4 { font-size: 1.02rem; margin-bottom: 0.5rem; }
.proc-step p { font-size: 0.86rem; color: var(--fg-2); }
@media (max-width: 900px) {
    .process { grid-template-columns: 1fr 1fr; }
    .proc-step:nth-child(3) { border-left: none; }
    .proc-step:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}
@media (max-width: 540px) {
    .process { grid-template-columns: 1fr; }
    .proc-step + .proc-step { border-left: none; border-top: 1px solid var(--line-soft); }
}

/* ---------- Terminal / code mockups ---------- */
.terminal {
    background: #0A0A0F;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    font-family: var(--mono);
    font-size: 0.78rem;
    line-height: 1.75;
    text-align: left;
}
.term-header {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.02);
}
.term-header .td { width: 10px; height: 10px; border-radius: 50%; }
.td.red { background: #FF5F57; } .td.yellow { background: #FEBC2E; } .td.green { background: #28C840; }
.term-title { margin-left: 8px; color: var(--fg-4); font-size: 0.68rem; letter-spacing: 0.04em; }
.term-body { padding: 14px 16px; color: var(--fg-2); overflow-x: auto; }
.term-body .prompt { color: var(--teal); }
.term-body .cmd { color: var(--fg); }
.term-body .out { color: var(--fg-3); }
.term-body .ok { color: var(--green); }
.term-body .err { color: var(--red); }
.term-body .warn { color: var(--amber); }
.term-body .kw { color: var(--purple); }
.term-body .str { color: var(--teal); }
.term-body .fn { color: var(--blue); }
.term-body .cm { color: var(--fg-4); }
.term-body p { white-space: nowrap; }

.caret {
    display: inline-block;
    width: 7px; height: 14px;
    background: var(--teal);
    vertical-align: -2px;
    animation: caret 1.1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Feature split rows */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2.2rem, 5vw, 4.5rem);
    align-items: center;
}
.split.rev .split-text { order: 2; }
@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; }
    .split.rev .split-text { order: 0; }
}
.split-text h3 { font-size: 1.5rem; margin: 14px 0 14px; }
.split-text .f-points { margin-top: 1.2rem; display: flex; flex-direction: column; gap: 0.65rem; }
.split-text .f-points li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: var(--fg-2);
}
.split-text .f-points li::before {
    content: '—';
    color: var(--teal);
    font-family: var(--mono);
    flex-shrink: 0;
}

/* Long-horizon log visual */
.log-box {
    background: #0A0A0F;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    font-family: var(--mono);
    font-size: 0.72rem;
    line-height: 1.9;
    color: var(--fg-3);
    overflow: hidden;
    position: relative;
}
.log-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, var(--bg) 98%);
    pointer-events: none;
}
.log-box .err { color: var(--red); }
.log-box .warn { color: var(--amber); }
.log-box .ok { color: var(--green); }

/* Server rack visual */
.racks { display: flex; flex-direction: column; gap: 10px; padding: 2rem 1.6rem; }
.rack {
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #0A0A0F;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 16px;
}
.rack i { width: 6px; height: 6px; border-radius: 50%; background: var(--fg-4); }
.rack i.on { background: var(--green); box-shadow: 0 0 7px var(--green); }
.rack i.blink { animation: blink 1.6s infinite; }
.rack i.b { background: var(--blue); box-shadow: 0 0 7px var(--blue); }

/* ---------- Workflow tabs ---------- */
.tabs {
    display: flex;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 2.4rem;
}
.tab-btn {
    font-family: var(--font);
    font-size: 0.86rem;
    color: var(--fg-3);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    cursor: pointer;
    transition: all 0.25s var(--ease);
}
.tab-btn:hover { color: var(--fg); }
.tab-btn.active {
    color: var(--fg);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--line);
}
.tab-content { display: none; }
.tab-content.tab-active { display: block; animation: tabIn 0.5s var(--ease); }
@keyframes tabIn {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
.wf-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.6rem, 3.5vw, 3rem);
}
.wf-text h3 { font-size: 1.4rem; margin-bottom: 0.9rem; }
.wf-text p { color: var(--fg-2); }
.wf-shot {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-soft);
}
.wf-shot img { width: 100%; }
@media (max-width: 860px) { .wf-grid { grid-template-columns: 1fr; } }

/* role tags (journey stations) */
.t-tag {
    font-family: var(--mono);
    font-size: 0.58rem;
    letter-spacing: 0.08em;
    padding: 0.28em 0.7em;
    border-radius: 5px;
    border: 1px solid;
}
.t-tag.teal { color: var(--teal); border-color: rgba(45,212,191,0.3); background: var(--teal-dim); }
.t-tag.blue { color: #93C5FD; border-color: rgba(59,130,246,0.3); background: var(--blue-dim); }
.t-tag.purple { color: var(--purple); border-color: rgba(167,139,250,0.3); background: var(--purple-dim); }

/* ---------- Swarm visual ---------- */
.swarm {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 1;
    margin: 0 auto;
}
.swarm .s-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    z-index: 2;
    transition: transform 0.3s var(--ease);
}
.swarm .s-node:hover { transform: scale(1.06); }
.swarm .s-core {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 108px; height: 108px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255,255,255,0.14), rgba(255,255,255,0.02));
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 70px rgba(45, 212, 191, 0.18);
    z-index: 3;
}
.swarm .s-core img { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; }
.swarm .s-core::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.45);
    animation: ripple 3s var(--ease) infinite;
}
@keyframes ripple { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.85); opacity: 0; } }
.swarm .s-sat { width: 58px; height: 58px; }
.swarm .s-sat img { width: 30px; height: 30px; object-fit: contain; }
.swarm .sat1 { top: 3%; left: 50%; transform: translateX(-50%); animation: floatY 5s ease-in-out infinite; }
.swarm .sat2 { top: 30%; left: 3%; animation: floatY 6s ease-in-out 0.7s infinite; }
.swarm .sat3 { top: 30%; right: 3%; animation: floatY 5.4s ease-in-out 1.2s infinite; }
.swarm .sat4 { bottom: 6%; left: 18%; animation: floatY 6.4s ease-in-out 0.4s infinite; }
.swarm .sat5 { bottom: 6%; right: 18%; animation: floatY 5.8s ease-in-out 1s infinite; }
@keyframes floatY { 0%,100% { margin-top: 0; } 50% { margin-top: -9px; } }

.swarm .s-line {
    position: absolute;
    top: 50%; left: 50%;
    width: 38%;
    height: 1px;
    transform-origin: 0 50%;
    background: linear-gradient(90deg, rgba(45, 212, 191, 0.5), rgba(255, 255, 255, 0.04));
    z-index: 1;
}
.swarm .s-line i {
    position: absolute;
    top: -2.5px; left: 0;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 10px var(--teal);
    animation: travel 2.8s linear infinite;
}
@keyframes travel { 0% { left: 0; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.sl1 { transform: rotate(-90deg); }
.sl2 { transform: rotate(-140deg); }
.sl3 { transform: rotate(-40deg); }
.sl4 { transform: rotate(155deg); }
.sl5 { transform: rotate(25deg); }

/* ---------- Pricing ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}
.price-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    position: relative;
    transition: all 0.35s var(--ease);
    display: flex;
    flex-direction: column;
}
.price-card:hover { border-color: var(--line-strong); }
.price-card.featured {
    background: linear-gradient(180deg, rgba(45, 212, 191, 0.055), rgba(255, 255, 255, 0.012));
    border-color: rgba(45, 212, 191, 0.35);
}
.price-card .p-flag {
    position: absolute;
    top: -11px; left: 50%;
    transform: translateX(-50%);
    font-family: var(--mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal);
    background: #0B0D0C;
    border: 1px solid rgba(45, 212, 191, 0.4);
    border-radius: 999px;
    padding: 0.3em 1em;
}
.price-card .p-name { font-size: 1.12rem; margin-bottom: 0.3rem; }
.price-card .p-sub { font-size: 0.84rem; color: var(--fg-3); margin-bottom: 1.6rem; }
.price-card .p-price { display: flex; align-items: baseline; gap: 0.3rem; margin-bottom: 1.7rem; }
.price-card .p-price .cur { color: var(--fg-3); font-size: 1.1rem; }
.price-card .p-price .amt {
    font-size: 2.9rem;
    font-weight: 600;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
}
.price-card .p-price .per { color: var(--fg-3); font-size: 0.85rem; }
.price-card .p-feats { margin-bottom: 2rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.price-card .p-feats li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.9rem;
    color: var(--fg-2);
}
.price-card .p-feats li::before {
    content: '';
    width: 14px; height: 14px;
    margin-top: 4px;
    flex-shrink: 0;
    background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3 8.5L6.5 12L13 4.5' stroke='%232DD4BF' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media (max-width: 1080px) {
    .price-card { padding: 1.7rem 1.4rem; }
    .price-card .p-price .amt { font-size: 2.2rem; }
    .price-card .p-price .per { white-space: nowrap; }
}
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; max-width: 460px; } }

/* ---------- Trust ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    max-width: 860px;
    margin: 0 auto;
}
.trust-card {
    display: flex;
    gap: 1.1rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    transition: all 0.3s var(--ease);
}
.trust-card:hover { border-color: var(--line-strong); }
.trust-card .t-ico {
    width: 40px; height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem;
    background: var(--teal-dim);
    border: 1px solid rgba(45, 212, 191, 0.3);
}
.trust-card h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.trust-card p { font-size: 0.88rem; color: var(--fg-2); }
@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */
.dl-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.dl-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.35s var(--ease);
    display: flex;
    flex-direction: column;
}
.dl-card:hover { border-color: var(--line-strong); }
.dl-card .dl-ico {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
}
.dl-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.dl-card .dl-desc { font-size: 0.88rem; color: var(--fg-2); margin-bottom: 1.5rem; flex: 1; }
.dl-card .dl-actions { display: flex; flex-direction: column; gap: 10px; }
.dl-card .btn .badge {
    font-family: var(--mono);
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    background: rgba(5, 5, 7, 0.25);
    border-radius: 5px;
    padding: 0.25em 0.6em;
    margin-left: 0.4em;
}
.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: #0A0A0F;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--teal);
}
.code-box .copy-btn {
    font-family: var(--mono);
    font-size: 0.68rem;
    color: var(--fg-2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 0.4rem 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.code-box .copy-btn:hover { color: var(--fg); border-color: var(--line-strong); }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
    position: relative;
    text-align: center;
    padding: clamp(4.2rem, 8vw, 6.5rem) 2rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(ellipse 60% 80% at 50% 115%, rgba(45, 212, 191, 0.12), transparent 70%),
        radial-gradient(ellipse 45% 60% at 50% 0%, rgba(255, 255, 255, 0.035), transparent 70%),
        var(--panel);
    overflow: hidden;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: var(--fg-2); max-width: 460px; margin: 0 auto 2.1rem; }
.cta-band .btns { display: flex; justify-content: center; gap: 0.85rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--line-soft);
    padding: 64px 0 40px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012));
}
.footer-inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--line-soft);
}
.footer-brand p { font-size: 0.86rem; color: var(--fg-3); margin-top: 1rem; max-width: 300px; }
.footer-links h4 {
    font-family: var(--mono);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-3);
    font-weight: 500;
    margin-bottom: 1.1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { font-size: 0.88rem; color: var(--fg-2); transition: color 0.2s ease; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom { padding-top: 2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { font-family: var(--mono); font-size: 0.7rem; color: var(--fg-4); letter-spacing: 0.04em; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Reveal motion system ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(7px);
    transition:
        opacity 0.9s var(--ease),
        transform 0.9s var(--ease),
        filter 0.9s var(--ease);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform, filter;
}
.reveal.active { opacity: 1; transform: none; filter: blur(0); }

/* stagger groups */
[data-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
    transition:
        opacity 0.85s var(--ease),
        transform 0.85s var(--ease),
        filter 0.85s var(--ease);
}
[data-stagger].active > * { opacity: 1; transform: none; filter: blur(0); }
[data-stagger].active > *:nth-child(1) { transition-delay: 0.02s; }
[data-stagger].active > *:nth-child(2) { transition-delay: 0.09s; }
[data-stagger].active > *:nth-child(3) { transition-delay: 0.16s; }
[data-stagger].active > *:nth-child(4) { transition-delay: 0.23s; }
[data-stagger].active > *:nth-child(5) { transition-delay: 0.3s; }
[data-stagger].active > *:nth-child(6) { transition-delay: 0.37s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal, [data-stagger] > * { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ---------- Utility ---------- */
.mt-10 { margin-top: 10px; }
.z-10 { position: relative; z-index: 10; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
