/* ============================================================================
 * PYBEX // ORBIT — Design System v2
 * ----------------------------------------------------------------------------
 * A deep-space obsidian canvas, an aurora spectrum (ion → flux → nova), and
 * HUD/blueprint detailing: hairlines, corner ticks, mono index labels and a
 * signature "signal beam" that runs through headers, dividers and card edges.
 *
 * Loaded AFTER style.css. It retunes the shared design tokens (so every page
 * inherits the new look) and then adds the v2 component layer.
 * ========================================================================= */

/* ============================================================================
   1. TOKENS — retuned globally
   ========================================================================= */

:root {
    /* Space */
    --void:        #04060d;
    --ink-950:     #05080f;
    --ink-900:     #080c16;
    --ink-800:     #0c1120;
    --ink-700:     #131a2c;
    --ink-600:     #1c2438;

    /* Aurora spectrum */
    --ion:         #3ee8ff;   /* cyan   — primary signal   */
    --flux:        #6d7cff;   /* indigo — structure        */
    --nova:        #b06bff;   /* violet — depth            */
    --plasma:      #ffb057;   /* amber  — rare highlight   */
    --mint:        #2ff0a8;   /* live / success            */

    --ion-08:      rgba(62, 232, 255, 0.08);
    --ion-15:      rgba(62, 232, 255, 0.15);
    --ion-30:      rgba(62, 232, 255, 0.30);
    --flux-15:     rgba(109, 124, 255, 0.15);
    --nova-15:     rgba(176, 107, 255, 0.15);

    /* Legacy token bridge — retunes every existing page */
    --abyss-950:   var(--void);
    --abyss-900:   var(--ink-900);
    --abyss-800:   var(--ink-800);
    --abyss-700:   var(--ink-700);
    --abyss-600:   var(--ink-600);
    --neon-cyan:   var(--ion);
    --neon-cyan-dim: var(--ion-15);
    --neon-cyan-glow: var(--ion-30);
    --neon-violet: var(--nova);
    --neon-magenta: #e879f9;

    /* Structure */
    --line:        rgba(150, 178, 255, 0.10);
    --line-strong: rgba(150, 178, 255, 0.20);
    --hairline:    1px solid var(--line);

    /* Text */
    --text-primary:   #e9eefc;
    --text-secondary: #9fadc9;
    --text-muted:     #7c89a6;
    --text-dim:       #5b6884;

    /* Surfaces */
    --surface:        rgba(12, 17, 32, 0.72);
    --surface-solid:  #0b0f1c;
    --surface-raised: rgba(19, 26, 44, 0.85);
    --glass-bg:       rgba(10, 14, 26, 0.62);
    --glass-bg-strong: rgba(8, 12, 22, 0.88);
    --glass-border:   var(--line);
    --card-bg:        rgba(11, 15, 28, 0.72);
    --card-border:    var(--line);

    /* Gradients */
    --grad-aurora:  linear-gradient(120deg, var(--ion) 0%, var(--flux) 48%, var(--nova) 100%);
    --grad-ion:     linear-gradient(135deg, var(--ion) 0%, var(--flux) 100%);
    --grad-nova:    linear-gradient(135deg, var(--flux) 0%, var(--nova) 100%);
    --gradient-neon: var(--grad-aurora);
    --gradient-cyan-violet: var(--grad-ion);

    /* Elevation */
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 18px 50px -22px rgba(0, 0, 0, 0.9);
    --shadow-lift: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 30px 70px -28px rgba(0, 0, 0, 0.95);
    --shadow-ion:  0 0 0 1px var(--ion-15), 0 20px 60px -24px rgba(62, 232, 255, 0.5);

    /* Motion */
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

    /* Rhythm */
    --shell: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section-y: clamp(4.5rem, 8vw, 7.25rem);
}

/* ============================================================================
   2. BASE
   ========================================================================= */

body {
    background: var(--void);
    color: var(--text-primary);
    font-feature-settings: "cv11", "ss01";
    letter-spacing: -0.011em;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

h1 { font-size: clamp(2.75rem, 5.4vw + 0.5rem, 5rem); line-height: 0.96; }
h2 { font-size: clamp(2.1rem, 3.4vw + 0.6rem, 3.4rem); line-height: 1.02; }
h3 { font-size: clamp(1.35rem, 1.2vw + 0.9rem, 1.75rem); line-height: 1.15; }

p  { color: var(--text-secondary); }
.lead { color: var(--text-secondary); text-wrap: pretty; }

::selection { background: var(--ion-30); color: #fff; }

/* Feature-list rows are flex containers, so a bare text node plus a trailing
   <span> render as two columns. Align to the top and let the text block own the
   remaining width, which keeps wrapped rows and inline qualifiers together. */
.feature-list li { align-items: flex-start; }
.feature-list li::before { margin-top: 0.2em; }
.feature-list li > span { flex: 1; }

/* Component links never carry a default underline. */
.filter-btn,
.chip,
.cap-more,
.panel a,
.hud,
.tech-tag,
.mega-item,
.prod,
.cap { text-decoration: none; }

.container { max-width: var(--shell); padding-inline: var(--gutter); }

/* Ambient page furniture, retuned */
.grid-pattern {
    background-image:
        linear-gradient(rgba(150, 178, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 178, 255, 0.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 20%, transparent 78%);
}

.noise-overlay { opacity: 0.028; }

/* ============================================================================
   3. REVEAL — never traps content invisible
   Elements are visible by default; only the JS-enabled document hides them
   before the observer runs.
   ========================================================================= */

[data-reveal] { --reveal-delay: 0ms; }

html.orbit-js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(6px);
    transition:
        opacity 0.9s var(--ease-out) var(--reveal-delay),
        transform 0.9s var(--ease-out) var(--reveal-delay),
        filter 0.9s var(--ease-out) var(--reveal-delay);
    will-change: opacity, transform;
}

html.orbit-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
    filter: none;
}

/* Rescue for legacy animation classes on other pages */
html:not(.orbit-js) .fade-in,
html:not(.orbit-js) .slide-up,
html:not(.orbit-js) .animate-card {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html.orbit-js [data-reveal] {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        transition: none !important;
    }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

/* ============================================================================
   4. HUD PRIMITIVES — the signature detailing
   ========================================================================= */

/* Mono micro-label with an index tick: 01 / OUR EXPERTISE */
.hud {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ion);
}

.hud::before {
    content: "";
    width: 1.75rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ion));
}

.hud[data-index]::after {
    content: attr(data-index);
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* Thin animated light rail used as a section divider */
.beam {
    position: relative;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, var(--line-strong) 30%, var(--line-strong) 70%, transparent);
    overflow: hidden;
}

.beam::after {
    content: "";
    position: absolute;
    inset-block: 0;
    width: 22%;
    background: linear-gradient(90deg, transparent, var(--ion), transparent);
    animation: beam-run 6s linear infinite;
    opacity: 0.7;
}

@keyframes beam-run {
    from { transform: translateX(-120%); }
    to   { transform: translateX(560%); }
}

/* Corner brackets — the blueprint tell */
.bracket { position: relative; }

.bracket::before,
.bracket::after {
    content: "";
    position: absolute;
    width: 14px;
    height: 14px;
    border: 1px solid var(--ion-30);
    opacity: 0;
    transition: opacity 0.4s var(--ease-out);
    pointer-events: none;
}

.bracket::before { top: 10px; left: 10px; border-right: 0; border-bottom: 0; }
.bracket::after  { bottom: 10px; right: 10px; border-left: 0; border-top: 0; }
.bracket:hover::before,
.bracket:hover::after { opacity: 1; }

/* Glass panel with a cursor-tracked spotlight */
.panel {
    position: relative;
    isolation: isolate;
    background: var(--surface);
    border: var(--hairline);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: hidden;
    transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}

.panel::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: radial-gradient(
        360px circle at var(--px, 50%) var(--py, 0%),
        rgba(62, 232, 255, 0.16),
        transparent 62%
    );
    opacity: 0;
    transition: opacity 0.45s var(--ease-out);
    pointer-events: none;
    z-index: -1;
}

.panel:hover {
    border-color: var(--line-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

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

/* Pill / chip */
.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    border: var(--hairline);
    background: rgba(255, 255, 255, 0.03);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    white-space: nowrap;
}

.chip-ion   { border-color: var(--ion-15);  background: var(--ion-08);            color: var(--ion); }
.chip-mint  { border-color: rgba(47, 240, 168, 0.22); background: rgba(47, 240, 168, 0.08); color: var(--mint); }
.chip-nova  { border-color: var(--nova-15); background: rgba(176, 107, 255, 0.08); color: #c79bff; }
.chip-plasma{ border-color: rgba(255, 176, 87, 0.25); background: rgba(255, 176, 87, 0.08); color: var(--plasma); }

/* Live indicator dot */
.dot-live {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--mint);
    box-shadow: 0 0 0 0 rgba(47, 240, 168, 0.6);
    animation: pulse-live 2.4s ease-out infinite;
    flex: none;
}

@keyframes pulse-live {
    0%   { box-shadow: 0 0 0 0 rgba(47, 240, 168, 0.55); }
    70%  { box-shadow: 0 0 0 7px rgba(47, 240, 168, 0); }
    100% { box-shadow: 0 0 0 0 rgba(47, 240, 168, 0); }
}

/* ============================================================================
   5. BUTTONS
   ========================================================================= */

.btn {
    position: relative;
    overflow: hidden;
    font-family: var(--font-sans);
    font-weight: 550;
    letter-spacing: -0.01em;
    border-radius: var(--radius-full);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
                background 0.35s var(--ease-out), border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}

/* Sheen sweep on hover */
.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-18deg);
    transition: left 0.65s var(--ease-out);
    pointer-events: none;
}

.btn:hover::before { left: 130%; }

.btn-primary {
    background: var(--grad-ion);
    color: #04060d;
    border: 0;
    box-shadow: 0 10px 30px -12px rgba(62, 232, 255, 0.65);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px -14px rgba(62, 232, 255, 0.8);
    color: #04060d;
}

.btn-secondary,
.btn-outline,
.btn-ghost {
    background: rgba(255, 255, 255, 0.035);
    border: var(--hairline);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--ion-30);
    color: #fff;
    transform: translateY(-2px);
}

.btn-large { padding: 0.95rem 1.75rem; font-size: 1rem; }

/* ============================================================================
   6. ANNOUNCEMENT BAR
   ========================================================================= */

/* The announce bar and the header travel together as one fixed stack. */
.top-stack {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.top-stack header#header {
    position: relative;
    top: auto;
}

.announce {
    position: relative;
    z-index: 1;
    background: linear-gradient(90deg, rgba(62, 232, 255, 0.10), rgba(176, 107, 255, 0.10));
    border-bottom: var(--hairline);
    overflow: hidden;
}

.announce::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(62, 232, 255, 0.16), transparent);
    transform: translateX(-100%);
    animation: beam-run 9s linear infinite;
    pointer-events: none;
}

.announce-inner {
    position: relative;
    z-index: 1;
    background: rgba(5, 8, 15, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    max-width: none;
    margin: 0 auto;
    padding: 0.6rem var(--gutter);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
}

.announce-inner strong { color: var(--text-primary); font-weight: 600; }

.announce-tag {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--mint);
    border: 1px solid rgba(47, 240, 168, 0.25);
    background: rgba(47, 240, 168, 0.08);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.announce-link {
    color: var(--ion);
    text-decoration: none;
    font-weight: 550;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.announce-link:hover { text-decoration: underline; }

.announce-close {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: var(--text-dim);
    cursor: pointer;
    padding: 0.25rem;
    line-height: 0;
    border-radius: 50%;
}

.announce-close:hover { color: var(--text-primary); }

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

@media (max-width: 720px) {
    .announce-inner { font-size: 0.72rem; gap: 0.5rem; padding-right: 2.5rem; }
    .announce-desc { display: none; }
}

/* ============================================================================
   7. HEADER + NAVIGATION
   ========================================================================= */

header#header {
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.4s var(--ease-soft), border-color 0.4s var(--ease-soft), backdrop-filter 0.4s;
}

header#header.scrolled {
    background: rgba(5, 8, 15, 0.72);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom-color: var(--line);
}

/* Scroll progress beam under the header */
.head-progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1.5px;
    width: 100%;
    transform: scaleX(var(--progress, 0));
    transform-origin: 0 50%;
    background: var(--grad-aurora);
    box-shadow: 0 0 12px rgba(62, 232, 255, 0.6);
    pointer-events: none;
}

nav ul.nav-menu { gap: 0.15rem; align-items: center; }

nav ul li a {
    font-size: 0.9rem;
    font-weight: 480;
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out);
}

nav ul li a:not(.btn):hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

nav ul li a:not(.btn)::after { display: none; }

nav ul li a.is-active { color: var(--text-primary); }

/* Mega menu -------------------------------------------------------------- */

.has-mega { position: relative; }

.mega-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 480;
    color: var(--text-secondary);
    padding: 0.5rem 0.85rem;
    border-radius: var(--radius-full);
    transition: color 0.25s, background 0.25s;
}

.mega-trigger:hover,
.has-mega.open .mega-trigger {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.mega-trigger svg { transition: transform 0.3s var(--ease-out); }
.has-mega.open .mega-trigger svg { transform: rotate(180deg); }

.mega {
    position: absolute;
    top: calc(100% + 0.9rem);
    left: 50%;
    width: min(680px, calc(100vw - 3rem));
    transform: translate(-50%, 10px);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(26px) saturate(170%);
    -webkit-backdrop-filter: blur(26px) saturate(170%);
    border: var(--hairline);
    border-radius: var(--radius-2xl);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.95);
    padding: 0.7rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
    z-index: 1001;
}

.has-mega.open .mega,
.has-mega:focus-within .mega {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

.mega-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.8rem !important;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: background 0.25s var(--ease-out);
}

.mega-item:hover { background: rgba(255, 255, 255, 0.05) !important; }

.mega-mark {
    flex: none;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: #05080f;
    background: var(--grad-ion);
}

.mega-mark.m-nova   { background: var(--grad-nova); }
.mega-mark.m-flux   { background: linear-gradient(135deg, #6d7cff, #3ee8ff); }
.mega-mark.m-plasma { background: linear-gradient(135deg, #ffb057, #ff7a7a); }
.mega-mark.m-mint   { background: linear-gradient(135deg, #2ff0a8, #3ee8ff); }

.mega-copy strong {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.mega-copy > span {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 0.15rem;
}

.mega-new {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.12rem 0.38rem;
    border-radius: var(--radius-full);
    color: var(--mint);
    background: rgba(47, 240, 168, 0.1);
    border: 1px solid rgba(47, 240, 168, 0.25);
}

.mega-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-top: var(--hairline);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.mega-foot a { color: var(--ion) !important; text-decoration: none; padding: 0 !important; }

@media (max-width: 900px) {
    .mega {
        position: static;
        width: 100%;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
        margin-top: 0.5rem;
    }
    .has-mega.open .mega { display: block; transform: none; }
    .mega-grid { grid-template-columns: 1fr; }
    .mega-trigger { width: 100%; justify-content: space-between; font-size: 1.05rem; }
}

/* ============================================================================
   8. HERO
   ========================================================================= */

.orbit-hero {
    position: relative;
    min-height: min(100svh, 940px);
    display: flex;
    align-items: center;
    padding: clamp(8rem, 15vh, 11rem) 0 clamp(4rem, 8vh, 6rem);
    overflow: hidden;
}

.orbit-hero-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.orbit-hero-canvas canvas { width: 100%; height: 100%; display: block; }

/* Aurora wash + vignette over the particle field */
.orbit-hero-wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 18% 30%, rgba(62, 232, 255, 0.13), transparent 70%),
        radial-gradient(55% 45% at 82% 22%, rgba(176, 107, 255, 0.13), transparent 70%),
        radial-gradient(80% 60% at 50% 108%, rgba(109, 124, 255, 0.16), transparent 70%),
        linear-gradient(180deg, rgba(4, 6, 13, 0.55) 0%, transparent 30%, rgba(4, 6, 13, 0.92) 100%);
}

.orbit-hero .container { position: relative; z-index: 2; }

.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.4rem 0.9rem 0.4rem 0.5rem;
    border-radius: var(--radius-full);
    border: var(--hairline);
    background: rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(10px);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.6rem;
    text-decoration: none;
    transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

a.hero-eyebrow:hover {
    border-color: var(--ion-30);
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

.hero-eyebrow svg { color: var(--ion); }

.hero-eyebrow b {
    flex: none;
    white-space: nowrap;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #05080f;
    background: var(--mint);
    padding: 0.22rem 0.5rem;
    border-radius: var(--radius-full);
}

.hero-title {
    font-size: clamp(2.6rem, 4.1vw + 0.5rem, 4.15rem);
    line-height: 1;
    letter-spacing: -0.045em;
    margin-bottom: 1.4rem;
}

.hero-title .line { display: block; overflow: hidden; }

.hero-title .line > span {
    display: block;
    transform: translateY(105%);
    animation: line-rise 1.05s var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}

@keyframes line-rise {
    to { transform: translateY(0); }
}

.aurora-word {
    background: var(--grad-aurora);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: aurora-drift 9s ease-in-out infinite;
}

@keyframes aurora-drift {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

.hero-copy {
    font-size: clamp(1.02rem, 0.4vw + 0.95rem, 1.2rem);
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 54ch;
    margin-bottom: 2.2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 2.75rem;
}

/* Metric rail beneath the hero copy */
.hero-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: var(--hairline);
    padding-top: 1.5rem;
    gap: 1rem;
}

.hero-rail div + div { border-left: var(--hairline); padding-left: 1.25rem; }

.hero-rail dt {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
}

.hero-rail dd {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

/* Scroll cue */
.scroll-cue {
    position: absolute;
    right: var(--gutter);
    bottom: 2rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.scroll-cue i {
    display: block;
    width: 1px;
    height: 42px;
    background: linear-gradient(180deg, var(--ion), transparent);
    animation: cue-drop 2.2s var(--ease-soft) infinite;
}

@keyframes cue-drop {
    0%   { transform: scaleY(0); transform-origin: 0 0; opacity: 0; }
    40%  { transform: scaleY(1); transform-origin: 0 0; opacity: 1; }
    60%  { transform: scaleY(1); transform-origin: 0 100%; opacity: 1; }
    100% { transform: scaleY(0); transform-origin: 0 100%; opacity: 0; }
}

@media (max-width: 1024px) {
    .hero-layout { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .scroll-cue { display: none; }
}

/* ============================================================================
   9. HERO VISUAL — the orbital console
   ========================================================================= */

.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    display: grid;
    place-items: center;
}

.orbit-ring-lg {
    position: absolute;
    inset: 4%;
    border: 1px solid rgba(150, 178, 255, 0.16);
    border-radius: 50%;
    animation: spin-slow 34s linear infinite;
}

.orbit-ring-lg:nth-of-type(2) { inset: 17%; border-color: rgba(62, 232, 255, 0.22); animation-duration: 24s; animation-direction: reverse; }
.orbit-ring-lg:nth-of-type(3) { inset: 30%; border-color: rgba(176, 107, 255, 0.20); animation-duration: 18s; }

.orbit-ring-lg span {
    position: absolute;
    top: -4px;
    left: 50%;
    width: 7px;
    height: 7px;
    margin-left: -3.5px;
    border-radius: 50%;
    background: var(--ion);
    box-shadow: 0 0 14px var(--ion);
}

.orbit-ring-lg:nth-of-type(3) span { background: var(--nova); box-shadow: 0 0 14px var(--nova); }

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

/* Floating glass console at the centre */
.hero-console {
    position: relative;
    z-index: 2;
    width: min(360px, 82%);
    padding: 1.1rem;
    border-radius: var(--radius-xl);
    border: var(--hairline);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    box-shadow: 0 40px 90px -35px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(62, 232, 255, 0.06);
    animation: float-y 7s ease-in-out infinite;
}

@keyframes float-y {
    0%, 100% { transform: translateY(-8px); }
    50%      { transform: translateY(8px); }
}

.console-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    padding-bottom: 0.75rem;
    border-bottom: var(--hairline);
    margin-bottom: 0.85rem;
}

.console-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.console-row + .console-row { border-top: 1px solid rgba(150, 178, 255, 0.06); }

.console-row .k { color: var(--text-muted); flex: 1; }
.console-row .v { font-family: var(--font-mono); color: var(--text-primary); font-size: 0.78rem; }
.console-row .v.up { color: var(--mint); }

.console-bar {
    height: 3px;
    border-radius: 3px;
    background: rgba(150, 178, 255, 0.1);
    overflow: hidden;
    margin-top: 0.85rem;
}

.console-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 3px;
    background: var(--grad-aurora);
    animation: bar-fill 3.6s var(--ease-out) infinite;
}

@keyframes bar-fill {
    0%   { width: 8%; }
    60%  { width: 92%; }
    100% { width: 92%; opacity: 0.4; }
}

/* Small satellite cards orbiting the console */
.hero-chip {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-lg);
    border: var(--hairline);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 45px -22px rgba(0, 0, 0, 0.9);
    font-size: 0.76rem;
    color: var(--text-secondary);
    white-space: nowrap;
    animation: float-y 9s ease-in-out infinite;
}

.hero-chip strong { color: var(--text-primary); font-weight: 600; }
.hero-chip.pos-a { top: 9%;  right: 58%; animation-delay: -2s; }
.hero-chip.pos-b { bottom: 12%; right: -3%; animation-delay: -5s; }

/* ============================================================================
   10. SECTION FURNITURE
   ========================================================================= */

.orbit-section { padding: var(--section-y) 0; position: relative; }

.orbit-section.tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .hud { justify-content: center; }

.section-head h2 { margin: 1rem 0 1rem; }

.section-head p {
    font-size: clamp(1rem, 0.3vw + 0.95rem, 1.12rem);
    line-height: 1.65;
    color: var(--text-secondary);
}

.split-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.split-head .section-head { margin-bottom: 0; }

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

.marquee {
    position: relative;
    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;
    gap: 3.25rem;
    animation: marquee-run 38s linear infinite;
}

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

@keyframes marquee-run {
    to { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
    transition: color 0.3s;
    white-space: nowrap;
}

.marquee-item:hover { color: var(--ion); }
.marquee-item i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.5; }

/* ============================================================================
   11. CAPABILITY BENTO
   ========================================================================= */

.bento-2 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: clamp(0.85rem, 1.4vw, 1.25rem);
}

.bento-2 > * { grid-column: span 2; }
.bento-2 > .span-3 { grid-column: span 3; }
.bento-2 > .span-4 { grid-column: span 4; }
.bento-2 > .span-6 { grid-column: span 6; }

@media (max-width: 980px) {
    .bento-2 { grid-template-columns: repeat(2, 1fr); }
    .bento-2 > *,
    .bento-2 > .span-3,
    .bento-2 > .span-4 { grid-column: span 2; }
}

.cap {
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 2.2vw, 2rem);
    min-height: 260px;
    text-decoration: none;
}

.cap-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.cap-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    border: var(--hairline);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ion);
    transition: color 0.4s, border-color 0.4s, background 0.4s, transform 0.4s var(--ease-out);
}

.cap:hover .cap-icon {
    color: #05080f;
    background: var(--grad-ion);
    border-color: transparent;
    transform: translateY(-2px) rotate(-4deg);
}

.cap-no {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    color: var(--text-dim);
}

.cap h3 { margin-bottom: 0.7rem; font-size: 1.3rem; }

.cap p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.cap-more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 550;
    color: var(--ion);
    letter-spacing: -0.01em;
}

.cap-more svg { transition: transform 0.35s var(--ease-out); }
.cap:hover .cap-more svg { transform: translateX(4px); }

/* Full-width closing tile of the bento */
.cap-wide {
    min-height: 0;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
    row-gap: 0.4rem;
    align-items: center;
    padding-block: clamp(1.5rem, 2.5vw, 2rem);
}

.cap-wide .cap-top { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; display: block; }
.cap-wide .cap-no { display: none; }
.cap-wide h3 { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 0; }
.cap-wide p { grid-column: 2; grid-row: 2; align-self: start; margin-bottom: 0; max-width: 72ch; }
.cap-wide .cap-more { grid-column: 3; grid-row: 1 / span 2; align-self: center; margin-top: 0; white-space: nowrap; }

@media (max-width: 720px) {
    .cap-wide {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        row-gap: 0.6rem;
    }
    .cap-wide .cap-top,
    .cap-wide h3,
    .cap-wide p,
    .cap-wide .cap-more { grid-column: 1; grid-row: auto; }
}

/* Decorative mini-visuals inside the wide bento tiles */
.cap-art {
    position: absolute;
    right: -10%;
    bottom: -18%;
    width: 55%;
    aspect-ratio: 1;
    opacity: 0.5;
    pointer-events: none;
    transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
}

.cap:hover .cap-art { opacity: 0.85; transform: scale(1.06) rotate(-3deg); }

/* ============================================================================
   12. PRODUCT SHOWCASE (Lynkist)
   ========================================================================= */

.showcase {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 8vw, 7rem) 0 var(--section-y);
}

.showcase::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(50% 60% at 78% 40%, rgba(47, 240, 168, 0.09), transparent 70%),
        radial-gradient(60% 60% at 12% 60%, rgba(62, 232, 255, 0.09), transparent 70%);
    pointer-events: none;
}

.showcase > .container { position: relative; z-index: 1; }

.showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

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

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.product-mark {
    width: 3rem;
    height: 3rem;
    border-radius: 0.9rem;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    color: #05080f;
    background: var(--grad-ion);
    box-shadow: 0 12px 30px -12px rgba(62, 232, 255, 0.7);
}

.product-badge b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-transform: none;
    color: var(--text-primary);
}

.product-badge > span > span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.feature-rows { margin: 2rem 0; display: grid; gap: 1rem; }

.feature-row {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.feature-row svg { flex: none; margin-top: 0.15rem; color: var(--mint); }
.feature-row b { color: var(--text-primary); font-weight: 600; }

/* App frame — a browser chrome wrapper for the product mock */
.app-frame {
    position: relative;
    border-radius: var(--radius-2xl);
    border: var(--hairline);
    background: linear-gradient(180deg, rgba(19, 26, 44, 0.9), rgba(8, 12, 22, 0.95));
    box-shadow: 0 50px 110px -40px rgba(0, 0, 0, 1), 0 0 0 1px rgba(62, 232, 255, 0.05);
    overflow: hidden;
    transform: perspective(1600px) rotateY(-7deg) rotateX(3deg);
    transition: transform 0.8s var(--ease-out);
}

.app-frame:hover { transform: perspective(1600px) rotateY(-2deg) rotateX(1deg); }

.app-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: var(--hairline);
    background: rgba(255, 255, 255, 0.02);
}

.app-dots { display: flex; gap: 0.35rem; }
.app-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(150, 178, 255, 0.18); }
.app-dots i:first-child { background: rgba(255, 110, 110, 0.5); }
.app-dots i:nth-child(2) { background: rgba(255, 190, 90, 0.5); }
.app-dots i:nth-child(3) { background: rgba(80, 220, 160, 0.5); }

.app-url {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-dim);
    background: rgba(0, 0, 0, 0.3);
    border: var(--hairline);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
}

.app-body {
    display: grid;
    grid-template-columns: 168px 1fr;
    min-height: 380px;
}

.app-side {
    border-right: var(--hairline);
    padding: 0.9rem;
    background: rgba(0, 0, 0, 0.22);
}

.app-side-title {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 0.75rem;
}

.app-thread {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    padding: 0.55rem;
    border-radius: 0.6rem;
    margin-bottom: 0.2rem;
    transition: background 0.3s;
}

.app-thread.active { background: rgba(62, 232, 255, 0.08); }

.app-avatar {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    flex: none;
    display: grid;
    place-items: center;
    font-size: 0.62rem;
    font-weight: 700;
    color: #05080f;
    background: linear-gradient(135deg, #3ee8ff, #6d7cff);
}

.app-avatar.v2 { background: linear-gradient(135deg, #b06bff, #6d7cff); }
.app-avatar.v3 { background: linear-gradient(135deg, #2ff0a8, #3ee8ff); }
.app-avatar.v4 { background: linear-gradient(135deg, #ffb057, #ff7a7a); }

.app-thread-copy { min-width: 0; }
.app-thread-copy b { display: block; font-size: 0.74rem; color: var(--text-primary); font-weight: 600; }
.app-thread-copy span {
    display: block;
    font-size: 0.66rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 96px;
}

.app-chat {
    padding: 1rem 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.app-chat-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.85rem;
    border-bottom: var(--hairline);
    margin-bottom: 0.35rem;
}

.app-chat-head b { font-size: 0.82rem; color: var(--text-primary); }

.bubble {
    max-width: 78%;
    padding: 0.6rem 0.85rem;
    border-radius: 1rem;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.045);
    border: var(--hairline);
    border-bottom-left-radius: 0.3rem;
    opacity: 0;
    transform: translateY(10px);
    animation: bubble-in 0.6s var(--ease-out) forwards;
}

.bubble.out {
    align-self: flex-end;
    border-bottom-left-radius: 1rem;
    border-bottom-right-radius: 0.3rem;
    background: linear-gradient(135deg, rgba(62, 232, 255, 0.16), rgba(109, 124, 255, 0.16));
    border-color: rgba(62, 232, 255, 0.22);
    color: var(--text-primary);
}

.bubble time {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-dim);
    margin-top: 0.3rem;
}

@keyframes bubble-in {
    to { opacity: 1; transform: none; }
}

.app-typing {
    display: inline-flex;
    gap: 0.25rem;
    align-self: flex-start;
    padding: 0.7rem 0.85rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.045);
    border: var(--hairline);
}

.app-typing i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing 1.2s ease-in-out infinite;
}

.app-typing i:nth-child(2) { animation-delay: 0.15s; }
.app-typing i:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30%           { opacity: 1;   transform: translateY(-3px); }
}

/* Floating KPI cards over the app frame */
.app-kpi {
    position: absolute;
    z-index: 4;
    padding: 0.7rem 0.95rem;
    border-radius: var(--radius-lg);
    border: var(--hairline);
    background: var(--glass-bg-strong);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 25px 55px -25px rgba(0, 0, 0, 0.95);
    animation: float-y 8s ease-in-out infinite;
}

.app-kpi b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.app-kpi span {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.app-kpi.k1 { top: 2%; left: -8%; }
.app-kpi.k2 { bottom: 4%; right: -6%; animation-delay: -4s; }

@media (max-width: 640px) {
    .app-body { grid-template-columns: 1fr; }
    .app-side { display: none; }
    .app-frame { transform: none; }
    .app-kpi { display: none; }
}

/* ============================================================================
   13. PRODUCT GRID (other products)
   ========================================================================= */

.prod-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.4vw, 1.25rem);
}

@media (max-width: 980px) { .prod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .prod-grid { grid-template-columns: 1fr; } }

.prod {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1.6rem;
    text-decoration: none;
}

.prod-head { display: flex; align-items: center; gap: 0.8rem; }

.prod-head b {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    text-transform: none;
}

.prod-head > span > span {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 0.15rem;
}

.prod p { font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); }

.prod-foot {
    margin-top: auto;
    padding-top: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ============================================================================
   14. METRICS
   ========================================================================= */

.metrics {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: var(--hairline);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    background: var(--surface);
    backdrop-filter: blur(14px);
}

.metric {
    padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2vw, 2rem);
    border-right: var(--hairline);
    position: relative;
    overflow: hidden;
}

.metric:last-child { border-right: 0; }

.metric::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 1px;
    background: var(--grad-aurora);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.7s var(--ease-out);
}

.metric:hover::after { transform: scaleX(1); }

.metric b {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 3.2vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #f4f7ff;
    text-shadow: 0 0 34px rgba(62, 232, 255, 0.28);
}

.metric > span {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}

@media (max-width: 860px) {
    .metrics { grid-template-columns: repeat(2, 1fr); }
    .metric:nth-child(2n) { border-right: 0; }
    .metric:nth-child(-n+2) { border-bottom: var(--hairline); }
}

/* ============================================================================
   15. PROCESS RAIL
   ========================================================================= */

.rail { position: relative; display: grid; gap: clamp(1rem, 2vw, 1.5rem); grid-template-columns: repeat(4, 1fr); }

.rail::before {
    content: "";
    position: absolute;
    top: 1.6rem;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--line);
}

.rail-step { position: relative; padding-top: 3.75rem; }

.rail-step::before {
    content: "";
    position: absolute;
    top: 1.6rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--grad-aurora);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 1.1s var(--ease-out);
}

.rail-step.is-in::before { transform: scaleX(1); }

.rail-no {
    position: absolute;
    top: 0;
    left: 0;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--ion);
    border: 1px solid var(--ion-15);
    background: var(--ink-900);
    box-shadow: 0 0 0 6px var(--void);
    transition: color 0.4s, background 0.4s, border-color 0.4s;
}

.rail-step:hover .rail-no {
    color: #05080f;
    background: var(--grad-ion);
    border-color: transparent;
}

.rail-step h3 { font-size: 1.12rem; margin-bottom: 0.55rem; }
.rail-step p { font-size: 0.88rem; line-height: 1.6; color: var(--text-muted); }

@media (max-width: 900px) {
    .rail { grid-template-columns: 1fr; }
    .rail::before { display: none; }
    .rail-step { padding-top: 0; padding-left: 4.25rem; }
    .rail-step::before { display: none; }
    .rail-no { top: 0.1rem; }
}

/* ============================================================================
   16. TESTIMONIAL MARQUEE
   ========================================================================= */

.quote-rows { display: grid; gap: clamp(0.85rem, 1.4vw, 1.25rem); }

.quote-row { overflow: hidden; }

.quote-track {
    display: flex;
    width: max-content;
    gap: clamp(0.85rem, 1.4vw, 1.25rem);
    animation: marquee-run 60s linear infinite;
}

.quote-row.rev .quote-track { animation-direction: reverse; animation-duration: 72s; }
.quote-rows:hover .quote-track { animation-play-state: paused; }

.quote {
    width: min(420px, 78vw);
    flex: none;
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.quote p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.quote-by { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }

.quote-by .app-avatar { width: 2.25rem; height: 2.25rem; font-size: 0.7rem; }

.quote-by b { display: block; font-size: 0.85rem; color: var(--text-primary); font-weight: 600; }
.quote-by > span > span { display: block; font-size: 0.72rem; color: var(--text-dim); }

.stars { color: var(--plasma); font-size: 0.85rem; letter-spacing: 0.15em; }

/* ============================================================================
   17. CLOSING CTA
   ========================================================================= */

.cta-orbit {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-3xl);
    border: var(--hairline);
    background:
        radial-gradient(70% 130% at 50% 0%, rgba(62, 232, 255, 0.14), transparent 62%),
        linear-gradient(180deg, rgba(19, 26, 44, 0.85), rgba(6, 9, 18, 0.9));
    padding: clamp(3rem, 7vw, 6rem) clamp(1.5rem, 5vw, 4rem);
    text-align: center;
}

.cta-orbit::before {
    content: "";
    position: absolute;
    top: -55%;
    left: 50%;
    width: 130%;
    aspect-ratio: 1;
    transform: translateX(-50%);
    background: conic-gradient(from 0deg, transparent, rgba(62, 232, 255, 0.1), transparent 28%);
    animation: spin-slow 22s linear infinite;
    pointer-events: none;
}

.cta-orbit > * { position: relative; z-index: 1; }

.cta-orbit h2 { margin: 1rem auto 1.1rem; max-width: 18ch; }
.cta-orbit p { max-width: 56ch; margin: 0 auto 2.25rem; font-size: 1.05rem; }

.cta-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

.cta-note {
    margin: 2.5rem auto 0;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    max-width: none;
}

/* ============================================================================
   18. FOOTER
   ========================================================================= */

.main-footer {
    background: linear-gradient(180deg, transparent, rgba(8, 12, 22, 0.9));
    border-top: var(--hairline);
    margin-top: 0;
}

.main-footer::before { background: var(--grad-aurora); opacity: 0.35; }

.footer-column h3 {
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    font-weight: 500;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.25s;
}

.footer-links a:hover { color: var(--ion); }

.social-link {
    border: var(--hairline);
    background: rgba(255, 255, 255, 0.03);
    transition: color 0.3s, border-color 0.3s, transform 0.3s var(--ease-out), background 0.3s;
}

.social-link:hover {
    color: var(--ion);
    border-color: var(--ion-30);
    background: var(--ion-08);
    transform: translateY(-3px);
}

.footer-bottom { border-top: var(--hairline); }
.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }
.footer-bottom-links a { font-size: 0.8rem; color: var(--text-dim); }
.footer-bottom-links a:hover { color: var(--ion); }

/* Wordmark strip at the very bottom */
.footer-wordmark {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 15vw, 12rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.8;
    text-align: center;
    background: linear-gradient(180deg, rgba(150, 178, 255, 0.14), transparent 78%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    user-select: none;
    padding-top: 2.5rem;
    margin-bottom: -0.2em;
    pointer-events: none;
}

/* ============================================================================
   19. INNER PAGE HEADERS (about / services / solutions / blog / careers)
   ========================================================================= */

.page-header {
    position: relative;
    padding: clamp(8rem, 16vh, 11rem) 0 clamp(3.5rem, 7vw, 5.5rem);
    overflow: hidden;
    border-bottom: var(--hairline);
}

.page-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(60% 90% at 20% 0%, rgba(62, 232, 255, 0.11), transparent 65%),
        radial-gradient(50% 80% at 85% 10%, rgba(176, 107, 255, 0.11), transparent 65%);
    pointer-events: none;
}

.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(150, 178, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150, 178, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000, transparent 75%);
    pointer-events: none;
}

.page-header .container { position: relative; z-index: 1; }
.page-header h1 { margin-block: 1.1rem; }
.page-header .lead { max-width: 60ch; font-size: clamp(1rem, 0.4vw + 0.95rem, 1.15rem); }

/* Legacy card families inherit the new panel language */
.service-card,
.blog-card,
.bento-card,
.testimonial-card,
.info-card,
.job-card,
.plan-card {
    background: var(--surface);
    border: var(--hairline);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.5s var(--ease-out), border-color 0.4s, box-shadow 0.5s var(--ease-out);
}

.service-card:hover,
.blog-card:hover,
.bento-card:hover,
.testimonial-card:hover,
.info-card:hover,
.job-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-lift);
}

/* ============================================================================
   20. RESPONSIVE
   ========================================================================= */

@media (max-width: 1024px) {
    .hero-rail { grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
    .hero-rail div + div { padding-left: 0.85rem; }
}

@media (max-width: 640px) {
    .hero-rail { grid-template-columns: 1fr 1fr; }
    .hero-rail div:nth-child(3) { display: none; }
    .hero-title { font-size: clamp(2.5rem, 11vw, 3.4rem); }
    .split-head { align-items: flex-start; }
    .footer-wordmark { padding-top: 1.5rem; }
}

/* Utility */
.u-center { text-align: center; }
.u-mono {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-dim);
}
