/* ============================================================
   Virtisha.ai — techy dark theme
   ============================================================ */

:root {
    --bg-0: #05060f;
    --bg-1: #0a0d1c;
    --bg-2: #10142a;
    --line: rgba(148, 163, 255, 0.12);
    --brand: #6d4cfe;
    --brand-soft: #8f76ff;
    --cyan: #22d3ee;
    --green: #4ade80;
    --amber: #fbbf24;
    --red: #f87171;
    --text: #e8eaf6;
    --muted: #9aa2c7;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-head: 'Space Grotesk', 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --max-w: 1180px;
    --radius: 14px;
    --header-h: 72px;
    --shadow-glow: 0 0 40px rgba(109, 76, 254, 0.25);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg-0);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* subtle global grid backdrop */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
    z-index: 0;
}

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

::selection { background: rgba(109, 76, 254, 0.55); color: #fff; }

/* themed scrollbars */
html { scrollbar-width: thin; scrollbar-color: rgba(109, 76, 254, 0.45) #0a0d1c; }
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: #07091a; }
::-webkit-scrollbar-thumb { background: rgba(109, 76, 254, 0.4); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: rgba(109, 76, 254, 0.6); }

h1, h2, h3, h4 {
    font-family: var(--font-head);
    line-height: 1.15;
    margin: 0 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.15rem; }

/* accessibility utilities */
.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;
    top: 10px;
    left: 10px;
    z-index: 300;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.1rem;
    border-radius: 9px;
    transform: translateY(-300%);
    transition: transform 0.2s var(--ease);
}

.skip-link:focus {
    transform: none;
}

.mobile-only { display: none; }

p { margin: 0 0 1em; }

.container {
    width: min(92%, var(--max-w));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

section { padding: 96px 0; position: relative; }

/* gradient text */
.grad-text {
    background: linear-gradient(92deg, var(--brand-soft) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 0.9rem;
}

.mono-tag {
    font-family: var(--font-mono);
    font-size: 0.8em;
    color: var(--cyan);
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); }

/* ============ buttons ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: var(--font-body);
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
    background: linear-gradient(92deg, var(--brand) 0%, #5a3df0 100%);
    color: #fff;
    box-shadow: 0 4px 24px rgba(109, 76, 254, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(109, 76, 254, 0.5);
}

.btn-outline {
    border-color: var(--line);
    color: var(--text);
    background: rgba(148, 163, 255, 0.04);
}

.btn-outline:hover {
    border-color: var(--brand-soft);
    background: rgba(109, 76, 254, 0.1);
    transform: translateY(-2px);
}

.btn-primary:active,
.btn-outline:active {
    transform: translateY(-1px) scale(0.98);
}

.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.88rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============ header / nav ============ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
    background: rgba(5, 6, 15, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom-color: var(--line);
}

/* while the mobile menu is open, the header must read as one opaque surface
   with the dropdown panel below it */
.site-header.menu-open {
    background: rgba(5, 6, 15, 0.97);
    border-bottom-color: var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.9rem 0;
}

.logo img { height: 34px; width: auto; }

.nav-links ul { display: flex; gap: 1.8rem; }

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--cyan));
    border-radius: 2px;
    transition: width 0.25s var(--ease);
}

.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* docs dropdown */
.nav-dropdown { position: relative; }

.nav-drop-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    padding: 0.3rem 0;
    transition: color 0.2s;
}

.nav-dropdown:hover .nav-drop-btn,
.nav-dropdown.open .nav-drop-btn { color: var(--text); }

.drop-caret { width: 14px; height: 14px; transition: transform 0.2s var(--ease); }

.nav-dropdown:hover .drop-caret,
.nav-dropdown.open .drop-caret { transform: rotate(180deg); }

.drop-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 172px;
    display: flex;
    flex-direction: column;
    background: rgba(10, 13, 28, 0.97);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}

/* invisible bridge so the pointer can cross the gap without closing the menu */
.drop-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .drop-menu,
.nav-dropdown:focus-within .drop-menu,
.nav-dropdown.open .drop-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav-links .drop-menu a {
    display: block;
    padding: 0.5rem 0.8rem;
    border-radius: 7px;
    font-size: 0.9rem;
    white-space: nowrap;
}

.nav-links .drop-menu a:hover { background: rgba(109, 76, 254, 0.12); color: var(--text); }
.nav-links .drop-menu a::after { display: none; }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
}

.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s var(--ease), opacity 0.2s;
}

/* ============ hero ============ */
.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    overflow: hidden;
}

#net-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    top: -220px; left: 50%;
    transform: translateX(-50%);
    width: 900px; height: 600px;
    background: radial-gradient(ellipse at center, rgba(109, 76, 254, 0.22) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(148, 163, 255, 0.05);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    margin-bottom: 1.6rem;
}

.pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
    70%  { box-shadow: 0 0 0 9px rgba(74, 222, 128, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

.hero h1 { margin-bottom: 1.1rem; }

.caret {
    display: inline-block;
    width: 3px;
    height: 0.95em;
    margin-left: 4px;
    background: var(--cyan);
    vertical-align: -0.12em;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-sub {
    color: var(--muted);
    font-size: 1.08rem;
    max-width: 560px;
    margin-bottom: 1.8rem;
}

.hero-sub strong { color: var(--text); font-weight: 600; }

.cta-group { display: flex; flex-wrap: wrap; gap: 0.9rem; }

/* featured products row in the hero */
.hero-featured {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1.7rem;
}

.hf-label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-right: 0.15rem;
}

.hf-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(16, 20, 42, 0.7);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.hf-pill:hover {
    border-color: var(--brand-soft);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(109, 76, 254, 0.22);
}

.hf-pill svg { width: 16px; height: 16px; color: var(--brand-soft); }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.2rem;
    margin-top: 2.4rem;
    padding-top: 1.8rem;
    border-top: 1px solid var(--line);
}

.stat { display: flex; flex-direction: column; gap: 0.15rem; }

.stat-num {
    font-family: var(--font-head);
    font-size: 1.55rem;
    font-weight: 700;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--muted);
    max-width: 180px;
}

/* terminal */
.hero-terminal {
    background: rgba(10, 13, 28, 0.85);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--shadow-glow);
    backdrop-filter: blur(8px);
    overflow: hidden;
    font-size: 0.8rem;
}

.term-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0.7rem 1rem;
    background: rgba(148, 163, 255, 0.05);
    border-bottom: 1px solid var(--line);
}

.term-dot { width: 11px; height: 11px; border-radius: 50%; }
.term-dot.red { background: var(--red); }
.term-dot.yellow { background: var(--amber); }
.term-dot.green { background: var(--green); }

.term-title {
    margin-left: 8px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
}

.term-body, .code-body {
    margin: 0;
    padding: 1.1rem 1.2rem;
    font-family: var(--font-mono);
    line-height: 1.75;
    overflow-x: auto;
    color: #c8cdf0;
}

/* token colors */
.tk-c  { color: #7e88b5; }
.tk-p  { color: var(--cyan); }
.tk-s  { color: #a5e8b0; }
.tk-k  { color: var(--brand-soft); }
.tk-n  { color: var(--amber); }
.tk-b  { color: var(--cyan); }
.tk-j  { color: #c8cdf0; }
.tk-ok { color: var(--green); }
.tk-kw { color: var(--brand-soft); }
.tk-fn { color: var(--cyan); }

/* ============ status bar ============ */
.statusbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 2rem;
    padding: 0.6rem 4vw;
    border-top: 1px solid var(--line);
    background: rgba(10, 13, 28, 0.75);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    position: relative;
    z-index: 1;
}

.statusbar span { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.statusbar b { color: var(--cyan); font-weight: 500; }

.sb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(74, 222, 128, 0.8);
}

/* ============ ticker ============ */
.ticker {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(10, 13, 28, 0.6);
    overflow: hidden;
    padding: 0.85rem 0;
    position: relative;
    z-index: 1;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker 38s linear infinite;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    white-space: nowrap;
}

/* spacing lives on the items (not flex gap) so the -50% loop wraps seamlessly */
.ticker-track span,
.ticker-track i { margin-right: 2.2rem; }

.ticker-track i { color: var(--brand); font-style: normal; font-size: 0.6rem; }

@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============ solutions ============ */
.sol-group { margin-bottom: 3.4rem; }
.sol-group:last-child { margin-bottom: 0; }

.sol-group-title {
    font-size: 1.05rem;
    font-family: var(--font-mono);
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.6rem;
}

.sol-group-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

/* explicit per-group column counts so no row is ever left ragged */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
}

@media (min-width: 1025px) {
    .grid-6 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 620px) {
    .card-grid { grid-template-columns: 1fr; }
}

.card {
    position: relative;
    background: linear-gradient(160deg, rgba(16, 20, 42, 0.9), rgba(10, 13, 28, 0.9));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(109, 76, 254, 0.14), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(109, 76, 254, 0.5);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45), 0 0 24px rgba(109, 76, 254, 0.12);
}

.card:hover::before { opacity: 1; }

.card-icon {
    width: 46px; height: 46px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-soft);
    background: rgba(109, 76, 254, 0.12);
    border: 1px solid rgba(109, 76, 254, 0.25);
    margin-bottom: 1.1rem;
}

.card-icon.alt {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.09);
    border-color: rgba(34, 211, 238, 0.22);
}

.card-icon svg { width: 24px; height: 24px; }

.card h4 { margin-bottom: 0.5rem; }

.card p {
    color: var(--muted);
    font-size: 0.9rem;
    flex: 1;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0.4rem 0 1rem;
}

.card-tags li {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(34, 211, 238, 0.06);
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
}

.card-spec {
    flex: 0 0 auto;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--green);
    background: rgba(74, 222, 128, 0.06);
    border-left: 2px solid rgba(74, 222, 128, 0.4);
    border-radius: 0 6px 6px 0;
    padding: 0.35rem 0.65rem;
    margin: 0 0 1rem;
}

.card-link {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-soft);
    padding: 0.55rem 0.3rem 0.55rem 0;
    margin: -0.35rem 0;
    transition: color 0.2s;
}

.card-link:hover { color: var(--cyan); }

/* ============ platform / under the hood ============ */
.platform-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 1.5rem;
    align-items: start;
}

.spec-table {
    margin: 0;
    background: rgba(16, 20, 42, 0.65);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.spec-row {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 1rem;
    padding: 0.78rem 1.2rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
    transition: background 0.2s;
}

.spec-row:last-child { border-bottom: 0; }
.spec-row:hover { background: rgba(109, 76, 254, 0.06); }

.spec-row dt {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--cyan);
    padding-top: 3px;
}

.spec-row dd { margin: 0; color: var(--text); }

.arch {
    background: rgba(5, 6, 15, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.arch-body {
    margin: 0;
    padding: 1.1rem 1.2rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    line-height: 1.5;
    color: #9fb0e8;
    overflow-x: auto;
}

/* CRT scanline texture on terminal panels */
.hero-terminal, .arch { position: relative; }

.hero-terminal::after, .arch::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 3px);
}

@media (max-width: 620px) {
    .spec-row { grid-template-columns: 1fr; gap: 0.15rem; }
}

/* ============ developers ============ */
.developers { background: linear-gradient(180deg, transparent, rgba(16, 20, 42, 0.55) 20%, rgba(16, 20, 42, 0.55) 80%, transparent); }

.dev-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
}

.dev-copy p { color: var(--muted); }

.dev-points { margin: 1.4rem 0 1.8rem; display: grid; gap: 0.7rem; }

.dev-points li {
    display: flex;
    gap: 0.7rem;
    align-items: baseline;
    color: var(--text);
    font-size: 0.95rem;
}

.tick { color: var(--green); font-family: var(--font-mono); }

.code-window {
    background: rgba(5, 6, 15, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    font-size: 0.82rem;
}

.code-tabs {
    display: flex;
    gap: 0.2rem;
    padding: 0.55rem 0.7rem 0;
    background: rgba(148, 163, 255, 0.04);
    border-bottom: 1px solid var(--line);
}

.code-tab {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    background: none;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0.8rem 1rem;
    cursor: pointer;
    transition: color 0.2s, border-color 0.2s;
}

.code-tab:hover { color: var(--text); }

.code-tab.active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
}

.code-body.hidden { display: none; }

.code-note {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--muted);
    margin: 0;
    padding: 0.8rem 1.2rem 1rem;
    border-top: 1px solid var(--line);
}

.code-note a { color: var(--cyan); }
.code-note a:hover { text-decoration: underline; }

/* ============ process ============ */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.3rem;
    counter-reset: step;
}

.step {
    position: relative;
    background: rgba(16, 20, 42, 0.6);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.step:hover { transform: translateY(-4px); border-color: rgba(34, 211, 238, 0.4); }

.step-num {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(180deg, var(--brand-soft), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: block;
    margin-bottom: 0.6rem;
}

.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--muted); font-size: 0.88rem; margin: 0; }

/* centered CTA under the process steps (self-serve solution pages) */
.process .cta-group { justify-content: center; margin-top: 2.6rem; }

/* ============ industries ============ */
.industries { padding: 56px 0; }

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    max-width: 860px;
    margin: 0 auto;
}

.chip {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(16, 20, 42, 0.7);
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
    cursor: default;
}

.chip:hover {
    border-color: var(--brand-soft);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(109, 76, 254, 0.2);
}

/* ============ why ============ */
.why { background: linear-gradient(180deg, transparent, rgba(16, 20, 42, 0.55) 20%, rgba(16, 20, 42, 0.55) 80%, transparent); }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.3rem;
}

.why-card {
    background: linear-gradient(160deg, rgba(16, 20, 42, 0.9), rgba(10, 13, 28, 0.9));
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    border-radius: 10px;
    padding: 1.5rem 1.4rem;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.why-card:nth-child(even) { border-left-color: var(--cyan); }

.why-card:hover { transform: translateY(-4px); }

.why-card h3 { margin-bottom: 0.4rem; }
.why-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ============ faq ============ */
.faq-narrow { max-width: 780px; }

.faq-list details {
    background: rgba(16, 20, 42, 0.65);
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-list details[open] { border-color: rgba(109, 76, 254, 0.45); }

.faq-list summary {
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-head);
    padding: 1.05rem 1.3rem;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: var(--cyan);
    transition: transform 0.25s var(--ease);
}

.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq-list details p {
    padding: 0 1.3rem 1.1rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.faq-list details a { color: var(--cyan); }

.faq-more { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1.6rem; }
.faq-more a { color: var(--cyan); }

/* ============ related solutions (cross-links) ============ */
.related { padding: 24px 0 0; }

.related-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cyan);
    text-align: center;
    margin-bottom: 1.1rem;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
    max-width: 760px;
    margin: 0 auto;
}

.related-links a {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(16, 20, 42, 0.7);
    border-radius: 999px;
    padding: 0.5rem 1.1rem;
    transition: border-color 0.25s, color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.related-links a:hover {
    border-color: var(--brand-soft);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(109, 76, 254, 0.2);
}

/* ============ cta band ============ */
.cta-band { padding: 0; }

.cta-band-inner {
    text-align: center;
    background:
        radial-gradient(600px circle at 20% 0%, rgba(109, 76, 254, 0.22), transparent 55%),
        radial-gradient(600px circle at 80% 100%, rgba(34, 211, 238, 0.14), transparent 55%),
        rgba(16, 20, 42, 0.8);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 4rem 2rem;
}

.cta-band-inner p { color: var(--muted); margin-bottom: 1.8rem; }
.cta-band-inner .cta-group { justify-content: center; }

/* ============ contact ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
}

.contact-info p { color: var(--muted); }

.contact-list { display: grid; gap: 0.8rem; margin-top: 1.6rem; }

.contact-list li {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    font-size: 0.95rem;
}

.contact-list .ci {
    color: var(--cyan);
    display: inline-flex;
    flex-shrink: 0;
}

.contact-list .ci svg { width: 17px; height: 17px; }

.contact-list a { color: var(--cyan); }
.contact-list a:hover { text-decoration: underline; }

.contact-form form {
    background: rgba(16, 20, 42, 0.65);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.8rem;
    display: grid;
    gap: 1.1rem;
}

.field { display: grid; gap: 0.4rem; }

.field label {
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.field input, .field textarea {
    background: rgba(5, 6, 15, 0.7);
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 0.8rem 0.95rem;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem; /* 16px minimum prevents iOS Safari auto-zoom on focus */
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea { min-height: 120px; resize: vertical; }

.field input::placeholder, .field textarea::placeholder { color: #7c86b8; }

.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--brand-soft);
    box-shadow: 0 0 0 3px rgba(109, 76, 254, 0.18);
}

.form-response {
    font-size: 0.88rem;
    color: var(--cyan);
    min-height: 1.2em;
    margin: 0;
}

.form-response.error { color: var(--red); }
.form-response.ok { color: var(--green); }

/* ============ footer ============ */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 6, 15, 0.9);
    padding: 3.5rem 0 1.8rem;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo { height: 30px; width: auto; margin-bottom: 1rem; }

.footer-brand p { color: var(--muted); font-size: 0.9rem; max-width: 320px; }

.footer-social { display: flex; gap: 0.6rem; margin-top: 1.2rem; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    transition: color 0.2s, border-color 0.2s, transform 0.2s var(--ease);
}

.footer-social a:hover {
    color: var(--cyan);
    border-color: var(--brand-soft);
    transform: translateY(-2px);
}

.footer-social svg { width: 18px; height: 18px; }

.site-footer h3 {
    font-size: 0.85rem;
    font-family: var(--font-mono);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
}

.site-footer ul { display: grid; gap: 0.55rem; }

.site-footer ul a {
    color: var(--muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.site-footer ul a:hover { color: var(--cyan); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--muted);
}

/* ============ subpages (blog, docs, guides) ============ */
.subpage { padding: 150px 0 90px; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.breadcrumb a { color: var(--cyan); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--muted); opacity: 0.6; }

.subpage-head { max-width: 820px; margin-bottom: 3rem; }
.subpage-head .lead { color: var(--muted); font-size: 1.08rem; }

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 1rem;
}

.post-meta .tag {
    color: var(--cyan);
    border: 1px solid rgba(34, 211, 238, 0.25);
    background: rgba(34, 211, 238, 0.06);
    padding: 0.12rem 0.55rem;
    border-radius: 999px;
}

/* long-form typography */
.prose { max-width: 820px; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.55rem; margin: 2.1em 0 0.6em; }
.prose h3 { font-size: 1.18rem; margin: 1.7em 0 0.5em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose a { color: var(--cyan); }
.prose a:hover { text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.35rem; display: grid; gap: 0.45rem; }
/* list items are grid items: without min-width 0, an inner <pre> would
   inflate the implicit track past the viewport instead of scrolling */
.prose li { min-width: 0; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 1.25rem; }
.prose ul li::before { content: '▸'; position: absolute; left: 0; color: var(--brand-soft); }
.prose ol { list-style: decimal; }
.prose ol li::marker { color: var(--cyan); font-family: var(--font-mono); }

.prose code {
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: #a5e8b0;
    background: rgba(148, 163, 255, 0.09);
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0.08em 0.4em;
}

.prose pre {
    background: rgba(5, 6, 15, 0.9);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.2rem;
    overflow-x: auto;
}

.prose pre code {
    background: none;
    border: 0;
    padding: 0;
    color: #c8cdf0;
    font-size: 0.82rem;
    line-height: 1.7;
}

.prose blockquote {
    margin: 0;
    border-left: 3px solid var(--brand);
    background: rgba(109, 76, 254, 0.06);
    padding: 0.85rem 1.2rem;
    border-radius: 0 10px 10px 0;
}

.prose blockquote p { margin: 0; }
.prose img { border-radius: var(--radius); border: 1px solid var(--line); }

.prose figure { margin: 2.2rem 0; }
.prose figure img { width: 100%; display: block; height: auto; }
.prose figcaption {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--muted);
    text-align: center;
    margin-top: 0.7rem;
}

.table-wrap { overflow-x: auto; }

.prose table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; }

.prose th {
    font-family: var(--font-mono);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--cyan);
    background: rgba(16, 20, 42, 0.8);
}

.prose td { color: var(--muted); }

/* solution detail pages */
.sol-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.sol-hero .subpage-head { margin-bottom: 0; }

.price-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.3rem;
    max-width: 860px;
    margin: 0 auto;
}

.price-cards p a { color: var(--cyan); }
.price-cards p a:hover { text-decoration: underline; }

@media (max-width: 680px) {
    .price-cards { grid-template-columns: 1fr; max-width: 560px; }
}

.price-label {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 0 0 0.6rem;
}

.card p.price-num {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.7rem;
}

.price-per { font-size: 1rem; color: var(--muted); font-weight: 500; }

.pricing-note { text-align: center; color: var(--muted); margin-top: 1.8rem; }
.pricing-note strong { color: var(--text); }

.cta-note {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
    margin: 0.9rem 0 0;
}

@media (max-width: 1024px) {
    .sol-hero { grid-template-columns: 1fr; gap: 2.5rem; }
    .sol-hero .hero-terminal { max-width: 620px; }
}

@media (max-width: 620px) {
    .price-cards { grid-template-columns: 1fr; }
}

/* blog index cards */
.post-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.3rem;
    max-width: 980px;
}

.post-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(160deg, rgba(16, 20, 42, 0.9), rgba(10, 13, 28, 0.9));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.5rem;
    transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    border-color: rgba(109, 76, 254, 0.5);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}

.post-card h2 { font-size: 1.28rem; margin: 0.4rem 0 0.5rem; }
.post-card p { color: var(--muted); font-size: 0.92rem; flex: 1; margin-bottom: 1rem; }

/* docs layout with sticky table of contents */
.doc-layout {
    display: grid;
    grid-template-columns: 225px minmax(0, 1fr);
    gap: 3rem;
    align-items: start;
}

.toc {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 0.5rem;
    font-size: 0.85rem;
    border-left: 1px solid var(--line);
    padding-left: 1rem;
}

.toc-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--cyan);
}

.toc a { color: var(--muted); transition: color 0.2s; }
.toc a:hover { color: var(--cyan); }

@media (max-width: 900px) {
    /* minmax(0,1fr), not 1fr: long code lines must scroll inside <pre>,
       not inflate the track past the viewport */
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .toc { position: static; border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; }
}

@media (max-width: 768px) {
    .subpage { padding: 118px 0 68px; }
    .post-grid { grid-template-columns: 1fr; }
}

/* ============ reveal animations ============ */
html.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

html.js .reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js .reveal { opacity: 1; transform: none; transition: none; }
    .ticker-track { animation: none; }
    .caret { animation: none; }
    .pulse-dot { animation: none; }
    html { scroll-behavior: auto; }
}

/* ============ responsive ============ */
@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-terminal { max-width: 620px; }
    .dev-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .steps { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .platform-grid { grid-template-columns: 1fr; }

    /* hamburger navigation — the full desktop nav needs ~950px of width,
       so the dropdown takes over below 1024px */
    .nav-links {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        background: rgba(5, 6, 15, 0.97);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        max-height: 0;
        overflow: hidden;
        visibility: hidden; /* keeps closed-menu links out of tab order and AT */
        transition: max-height 0.35s var(--ease), visibility 0s linear 0.35s;
    }

    .nav-links.open {
        max-height: calc(100vh - var(--header-h));
        max-height: calc(100dvh - var(--header-h));
        overflow-y: auto;
        visibility: visible;
        border-bottom: 1px solid var(--line);
        transition: max-height 0.35s var(--ease);
    }

    .nav-links ul {
        flex-direction: column;
        gap: 0;
        padding: 0.8rem 1.4rem 1.2rem;
    }

    .nav-links a {
        display: block;
        padding: 0.7rem 0;
        font-size: 1rem;
    }

    .nav-links .mobile-only { display: list-item; }

    /* flatten the docs dropdown into labeled links inside the hamburger menu */
    .nav-drop-btn { display: none; }

    .drop-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        background: transparent;
        border: 0;
        border-left: 1px solid var(--line);
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        padding: 0 0 0 0.9rem;
        margin: 0.2rem 0 0.4rem;
        transition: none;
    }

    .drop-menu::before {
        content: '// docs';
        position: static;
        height: auto;
        display: block;
        font-family: var(--font-mono);
        font-size: 0.68rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--cyan);
        padding: 0.35rem 0 0.1rem;
    }

    .nav-links .drop-menu a { padding: 0.55rem 0; border-radius: 0; font-size: 0.95rem; }
    .nav-links .drop-menu a:hover { background: transparent; }

    .nav-cta .btn-ghost { display: none; }

    .nav-toggle { display: flex; }

    .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.open span:nth-child(2) { opacity: 0; }
    .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 768px) {
    section { padding: 68px 0; }

    .hero { padding-top: 110px; }
    .hero-stats { gap: 1.4rem; }
    .statusbar { gap: 0.35rem 1.2rem; }
    .steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
    .cta-band-inner { padding: 3rem 1.4rem; }
}
