/* =====================================================================
   uDesk marketing landing page
   Brand tokens mirror resources/css/app.css (real in-app values):
     --primary / --cta  #013e31   (deep "midnight teal")
     brand ramp         #14b8a6 -> #0d9488 -> #0f766e
     background cream   #f7f6f2   foreground #1f2937
   Standalone / static. No Inertia, no session, no auth.
   ===================================================================== */

:root {
    /* Brand */
    --midnight: #013e31;
    --midnight-700: #0a5544;
    --brand: #0d9488;
    --brand-400: #2dd4bf;
    --brand-500: #14b8a6;
    --brand-600: #0d9488;
    --brand-700: #0f766e;
    --brand-soft: #ccfbf1;
    --brand-glow: #14b8a6;
    --navy-900: #070e1a;

    /* Surface (light) */
    --bg: #f7f6f2;
    --bg-alt: #efeee9;
    --card: #ffffff;
    --fg: #1f2937;
    --fg-muted: #6b7280;
    --border: #e8e6e0;
    --ring: rgba(1, 62, 49, 0.35);

    /* Typography */
    --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    --font-display: 'Jersey 25', 'Jersey 20', 'Plus Jakarta Sans', sans-serif;
    /* Stack Sans Notch fallback: Inter uppercase + tracking (font file not shipped) */
    --font-eyebrow: 'Inter', system-ui, sans-serif;

    --shadow-sm: 0 1px 2px rgba(3, 24, 20, 0.06), 0 1px 3px rgba(3, 24, 20, 0.08);
    --shadow-md: 0 10px 30px -12px rgba(3, 24, 20, 0.25);
    --shadow-lg: 0 30px 60px -20px rgba(3, 24, 20, 0.35);
    --radius: 16px;
    --radius-sm: 10px;
    --maxw: 1180px;
}

html[data-theme='dark'] {
    --bg: #070e1a;
    --bg-alt: #0c1a2e;
    --card: #112240;
    --fg: #e6edf6;
    --fg-muted: #93a4bd;
    --border: #1a3358;
    --midnight: #14b8a6;
    --ring: rgba(20, 184, 166, 0.4);
}

* {
    box-sizing: border-box;
}

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

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

img,
svg {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.faq-a a {
    color: var(--brand-700);
    text-decoration: underline;
    text-underline-offset: 2px;
}

html[data-theme='dark'] .faq-a a {
    color: var(--brand-400);
}

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

p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 24px;
}

.eyebrow {
    font-family: var(--font-eyebrow);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand-700);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

html[data-theme='dark'] .eyebrow {
    color: var(--brand-400);
}

.eyebrow::before {
    content: '';
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.7;
}

.display {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.01em;
    line-height: 0.9;
}

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

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

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

.section-head h2 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin: 16px 0 14px;
}

.section-head p {
    color: var(--fg-muted);
    font-size: 1.075rem;
}

/* ---------------- Buttons ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.2;
    padding: 10px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
    text-decoration: none;
    box-sizing: border-box;
}

.btn:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 2px;
}

.btn-primary {
    background: var(--midnight);
    color: #f7f6f2;
    box-shadow: var(--shadow-md);
}

html[data-theme='dark'] .btn-primary {
    color: #04231c;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-demo {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #042f2e;
    border-color: transparent;
    background: linear-gradient(135deg, #5eead4 0%, #14b8a6 42%, #0d9488 78%, #2dd4bf 100%);
    background-size: 200% 200%;
    box-shadow:
        0 10px 28px -10px rgba(20, 184, 166, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.18) inset;
    animation: demo-btn-shine 4.5s ease-in-out infinite;
}

.btn-demo::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        115deg,
        transparent 0%,
        transparent 38%,
        rgba(255, 255, 255, 0.45) 50%,
        transparent 62%,
        transparent 100%
    );
    background-size: 220% 100%;
    animation: demo-btn-sweep 3.2s ease-in-out infinite;
    pointer-events: none;
}

.btn-demo:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
        0 16px 36px -12px rgba(20, 184, 166, 0.7),
        0 0 24px rgba(45, 212, 191, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.28) inset;
    animation-duration: 2.2s;
}

.btn-demo:hover::before {
    animation-duration: 1.6s;
}

@keyframes demo-btn-shine {
    0%,
    100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes demo-btn-sweep {
    0%,
    100% {
        background-position: 140% 0;
    }
    50% {
        background-position: -40% 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-demo,
    .btn-demo::before,
    .btn-ico-play,
    .btn-ico-bag {
        animation: none;
    }
}

.btn-ico {
    display: inline-block;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

.btn-ico-play {
    animation: demo-play-pulse 1.8s ease-in-out infinite;
    transform-origin: center;
}

.btn-demo:hover .btn-ico-play {
    animation: demo-play-nudge 0.55s ease-in-out infinite;
}

.btn-ico-bag {
    animation: buy-bag-float 2.4s ease-in-out infinite;
    transform-origin: center top;
}

.btn-buy:hover .btn-ico-bag {
    animation: buy-bag-swing 0.7s ease-in-out infinite;
}

@keyframes demo-play-pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.12);
        opacity: 0.88;
    }
}

@keyframes demo-play-nudge {
    0%,
    100% {
        transform: translateX(0) scale(1);
    }
    50% {
        transform: translateX(2px) scale(1.08);
    }
}

@keyframes buy-bag-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-1.5px);
    }
}

@keyframes buy-bag-swing {
    0%,
    100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.btn-ghost {
    background: transparent;
    color: var(--fg);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--midnight);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 12px 22px;
    font-size: 0.95rem;
}

/* Button icon / arrow hover motion */
.btn > svg,
.btn-jersey .arr,
.feature-link svg,
.theme-toggle svg {
    display: inline-block;
    flex-shrink: 0;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
    /* Jersey CTAs */
    .btn-jersey:hover .arr-diag {
        transform: translate(5px, -5px);
    }

    .btn-jersey:hover .arr-right {
        transform: translateX(7px);
    }

    /* Marketplace buy chevrons bounce down */
    .btn[data-buy-trigger]:hover > svg {
        transform: translateY(3px);
    }

    /* Forward arrows (demo launch, etc.) slide right — skip animated nav icons */
    .btn:not([data-buy-trigger]):hover > svg:not(.btn-ico) {
        transform: translateX(4px);
    }

    .feature-link:hover svg {
        transform: translateX(5px);
    }

    .theme-toggle:hover svg {
        transform: rotate(16deg) scale(1.06);
    }
}

/* ---------------- Header / Nav ---------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    backdrop-filter: saturate(180%) blur(12px);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.brand img,
.brand .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    flex-shrink: 0;
}

.brand .lower-u {
    color: var(--midnight);
}

.nav-links {
    display: flex;
    align-items: center;
    column-gap: 32px;
    gap: 32px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    font-size: 14px;
    font-weight: 400;
    line-height: 14px;
    color: var(--fg-muted);
    transition: color 0.15s ease;
    padding: 0;
    margin: 0;
}

.nav-links a:hover {
    color: var(--fg);
}

.nav-buy-mobile {
    display: none;
    color: var(--midnight) !important;
    font-weight: 700 !important;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
    border-color: var(--midnight);
    transform: translateY(-1px);
}

.theme-toggle .icon-moon {
    display: none;
}

html[data-theme='dark'] .theme-toggle .icon-sun {
    display: none;
}

html[data-theme='dark'] .theme-toggle .icon-moon {
    display: block;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--fg);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ---------------- Marketplace dropdown ---------------- */
.buy {
    position: relative;
}

.buy-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 288px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 70;
}

.buy.open .buy-menu,
.buy-menu.buy-menu-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Portaled to document.body — escapes .hero / .final-cta overflow:hidden clipping */
.buy-menu.buy-menu-portal {
    position: fixed;
    z-index: 200;
    margin: 0;
    right: auto;
}

.buy-menu-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--fg-muted);
    padding: 8px 12px 4px;
}

.buy-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    transition: background 0.14s ease;
}

.buy-item:hover {
    background: var(--bg-alt);
}

.buy-item .mp-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.mp-envato {
    background: #82b541;
}

.buy-item .mp-name {
    font-weight: 600;
    font-size: 0.92rem;
}

.buy-item .mp-sub {
    font-size: 0.76rem;
    color: var(--fg-muted);
}

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    min-height: auto;
    display: block;
    padding: 48px 0 72px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(55% 50% at 85% 8%, rgba(20, 184, 166, 0.18), transparent 62%),
        radial-gradient(45% 40% at 6% 88%, rgba(1, 62, 49, 0.1), transparent 60%);
}

.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(color-mix(in srgb, var(--midnight) 8%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--midnight) 8%, transparent) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.45;
    -webkit-mask-image: radial-gradient(75% 70% at 50% 35%, #000 25%, transparent 80%);
    mask-image: radial-gradient(75% 70% at 50% 35%, #000 25%, transparent 80%);
}

.hero-top {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px 56px;
    align-items: end;
    margin-bottom: 48px;
}

.hero-lede {
    font-family: var(--font-notch);
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 500;
    color: var(--fg-muted);
    margin: 0 0 12px;
    max-width: 28ch;
}

/* Task 1 — pixel display H1 (Ollyo “MODERN WEB” scale; capped for uDesk copy length) */
.hero-display {
    font-family: 'Jersey 20', var(--font-head);
    font-size: clamp(0px, 12vw, 168px);
    line-height: 0.64em;
    text-transform: uppercase;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--fg);
}

.hero-display-line {
    display: block;
    position: relative;
    width: fit-content;
}

.hero-tag {
    position: absolute;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
    line-height: 1;
    padding: 5px 10px;
    border-radius: 6px;
    color: #04231c;
    white-space: nowrap;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.hero-tag.tag-pink { background: #f9a8d4; top: 8%; right: -8%; }
.hero-tag.tag-lime { background: #a3e635; top: 18%; right: -4%; }
.hero-tag.tag-cyan { background: #67e8f9; bottom: 12%; left: 42%; }

@media (prefers-reduced-motion: no-preference) {
    .hero-display.tags-animate .hero-tag.tag-pink {
        animation:
            hero-tag-in 0.42s ease backwards,
            hero-tag-float 3.6s ease-in-out 0.42s infinite;
    }

    .hero-display.tags-animate .hero-tag.tag-lime {
        animation:
            hero-tag-in 0.42s ease 0.12s backwards,
            hero-tag-float 3.8s ease-in-out 0.54s infinite;
    }

    .hero-display.tags-animate .hero-tag.tag-cyan {
        animation:
            hero-tag-in 0.42s ease 0.24s backwards,
            hero-tag-float 4s ease-in-out 0.66s infinite;
    }

    @keyframes hero-tag-in {
        from {
            opacity: 0;
            transform: scale(0.85);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    @keyframes hero-tag-float {
        0%,
        100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-4px);
        }
    }
}

.heading-summary-hero {
    font-family: 'Stack Sans Notch', var(--font-notch);
    font-size: clamp(1.35rem, 2.4vw, 2.15rem);
    line-height: 1.2em;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    font-variant-caps: normal;
    margin: 0 0 14px;
    color: var(--fg);
}

.hero-sub {
    font-size: 1.02rem;
    color: var(--fg-muted);
    max-width: 42ch;
    margin-bottom: 28px;
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    align-items: baseline;
    gap: 22px;
    flex-wrap: wrap;
}

/* Task 1 — Jersey CTAs (~32–52px; 120px was a mistaken copy from display type) */
.btn-jersey {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Jersey 20', var(--font-head);
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    line-height: 0.9em;
    text-transform: none;
    font-weight: 400;
    letter-spacing: -0.02em;
    font-variant-caps: normal;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: var(--fg);
    cursor: pointer;
    text-decoration: none;
    border-radius: 6px;
}

.btn-jersey .arr {
    color: var(--brand-500);
    font-size: 0.85em;
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), color 0.18s ease;
}
.btn-jersey:hover { color: var(--midnight); }

/* Replace oversized UA :focus ring (painted past Jersey glyph bounds after click) */
.btn-jersey:focus {
    outline: none;
}

.btn-jersey:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 4px;
}

.btn-jersey-ghost {
    color: var(--fg-muted);
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

.btn-jersey-ghost:hover { color: var(--fg); }

.hero-cta .buy .buy-menu {
    left: 0;
    right: auto;
}


.hero-marketplaces {
    margin-top: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.85rem;
    color: var(--fg-muted);
    flex-wrap: wrap;
}

.hero-marketplaces .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
}

/* ---------- Hero looping collage (Task 3) ---------- */
.hero-collage {
    position: relative;
    margin-bottom: 36px;
}

.collage-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1.25fr auto 0.85fr;
    gap: 12px;
    align-items: center;
    min-height: 340px;
}

.collage-card { position: relative; z-index: 2; }

.collage-ticket .frame {
    transform: rotate(-1.2deg);
    box-shadow: var(--shadow-lg);
}

.collage-ticket .mock-ticket { display: block; }
.collage-ticket .mt-side { display: none; }

.collage-progress {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: -14px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    box-shadow: var(--shadow-md);
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--fg-muted);
}

.collage-progress-label {
    font-weight: 600;
    color: var(--fg);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.collage-progress-track {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: var(--bg-alt);
    overflow: hidden;
}

.collage-progress-fill {
    display: block;
    height: 100%;
    width: 72%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-500), var(--midnight));
    transform-origin: left center;
}

.collage-progress-pct {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--fg);
    min-width: 2.4ch;
}

.collage-bridge {
    position: relative;
    width: 140px;
    height: 90px;
    color: var(--brand-500);
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-arc {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.collage-chip {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 12px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: var(--fg);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}

.collage-chip .chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.collage-widget .device {
    transform: rotate(2deg);
    max-width: 260px;
    margin-inline: auto;
}

.wg-float {
    margin-top: 10px;
    background: color-mix(in srgb, var(--brand-500) 14%, var(--card));
    border: 1px solid color-mix(in srgb, var(--brand-500) 35%, var(--border));
    color: var(--brand-700);
    border-radius: 10px;
    padding: 8px 10px;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
}

.collage-float {
    position: absolute;
    z-index: 4;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 11px;
    color: var(--fg);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.collage-float.f1 { top: 8%; left: 28%; }
.collage-float.f2 { top: 62%; left: 8%; color: #b45309; background: #fffbeb; border-color: #fde68a; }
.collage-float.f3 { bottom: 18%; right: 6%; }

.collage-stats {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: color-mix(in srgb, var(--card) 88%, transparent);
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: var(--fg-muted);
}

.collage-stats b {
    color: var(--fg);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.05rem;
    margin-right: 4px;
}

.collage-stats .sep {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--brand-500);
    opacity: 0.55;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-collage.is-playing .collage-progress-fill {
        animation: collage-fill 5.5s ease-in-out infinite;
    }
    .hero-collage.is-playing .collage-chip .chip-dot {
        animation: live-ping 2s ease-out infinite;
    }
    .hero-collage.is-playing .collage-arc path {
        animation: collage-dash 2.8s linear infinite;
    }
    .hero-collage.is-playing .wg-float {
        animation: collage-toast 5.5s ease-in-out infinite;
    }
    .hero-collage.is-playing .collage-float.f1 {
        animation: collage-drift 6s ease-in-out infinite;
    }
    .hero-collage.is-playing .collage-float.f2 {
        animation: collage-drift 7s ease-in-out infinite reverse;
    }
    .hero-collage.is-playing .collage-float.f3 {
        animation: collage-drift 5.2s ease-in-out infinite;
    }
    .hero-collage.is-playing .collage-ticket .frame {
        animation: collage-bob 5s ease-in-out infinite;
    }
    .hero-collage.is-playing .collage-widget .device {
        animation: collage-bob 5.8s ease-in-out infinite reverse;
    }

    @keyframes collage-fill {
        0%, 100% { width: 48%; }
        45% { width: 88%; }
        70% { width: 72%; }
    }
    @keyframes collage-dash {
        to { stroke-dashoffset: -56; }
    }
    @keyframes collage-toast {
        0%, 18% { opacity: 0; transform: translateY(8px); }
        28%, 72% { opacity: 1; transform: translateY(0); }
        85%, 100% { opacity: 0; transform: translateY(-4px); }
    }
    @keyframes collage-drift {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-7px); }
    }
    @keyframes collage-bob {
        0%, 100% { transform: rotate(var(--r, -1.2deg)) translateY(0); }
        50% { transform: rotate(var(--r, -1.2deg)) translateY(-6px); }
    }
    .collage-ticket .frame { --r: -1.2deg; }
    .collage-widget .device { --r: 2deg; }
}

@media (max-width: 1023px) {
    .hero-top {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .hero-display {
        font-size: clamp(3.2rem, 16vw, 7rem);
    }
    .collage-stage {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
    }
    .collage-bridge {
        width: 100%;
        height: 56px;
    }
    .collage-float.f1,
    .collage-float.f2 {
        display: none;
    }
}

@media (max-width: 620px) {
    .hero { padding: 28px 0 56px; }
    .hero-display { font-size: clamp(2.6rem, 15vw, 4.2rem); }
    .hero-tag { font-size: 0.58rem; padding: 4px 7px; }
    .heading-summary-hero { font-size: 1.25rem; }
    .btn-jersey { font-size: clamp(1.75rem, 8vw, 2.35rem); }
    .collage-widget .device { max-width: 220px; }
}

/* Hero tech dock — vertical icon+label strip (not the Integrations marquee cards) */
.hero-tech {
    margin-top: 52px;
    padding: 34px 0 10px;
    border-top: 1px solid var(--border);
    position: relative;
}

.hero-tech-label {
    text-align: center;
    margin: 0 0 28px;
}

.tech-dock {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 6px;
    position: relative;
}

/* Soft rail behind the icon row */
.tech-dock::before {
    content: '';
    position: absolute;
    left: 8%;
    right: 8%;
    top: 32px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        color-mix(in srgb, var(--midnight) 22%, transparent) 20%,
        color-mix(in srgb, var(--brand-500) 35%, transparent) 50%,
        color-mix(in srgb, var(--midnight) 22%, transparent) 80%,
        transparent
    );
    pointer-events: none;
    z-index: 0;
}

.tech-dock-item {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 108px;
    padding: 4px 6px 8px;
    cursor: default;
}

.tech-dock-ico {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transform: rotate(-6deg);
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease;
    box-shadow:
        0 1px 0 color-mix(in srgb, #fff 22%, transparent) inset,
        0 10px 22px color-mix(in srgb, var(--midnight) 14%, transparent);
}

.tech-dock-item:nth-child(even) .tech-dock-ico {
    transform: rotate(5deg);
}

.tech-dock-item:hover .tech-dock-ico {
    transform: rotate(0deg) translateY(-6px) scale(1.08);
    box-shadow:
        0 1px 0 color-mix(in srgb, #fff 28%, transparent) inset,
        0 16px 28px color-mix(in srgb, var(--midnight) 18%, transparent);
}

.tech-dock-item:focus-within .tech-dock-ico {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
}

.tech-letter {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.tech-dock-name {
    font-family: var(--font-body);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--fg);
    letter-spacing: -0.01em;
    line-height: 1.15;
    text-align: center;
}

.tech-dock-ver {
    font-family: var(--font-label);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-top: -4px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-alt) 80%, var(--border));
    transition: color 0.2s ease, background 0.2s ease;
}

.tech-dock-item:hover .tech-dock-ver {
    color: var(--midnight);
    background: color-mix(in srgb, var(--brand-500) 16%, var(--bg));
}

html[data-theme='dark'] .tech-dock-item:hover .tech-dock-ver {
    color: var(--brand-400);
}

.tech-php { background: linear-gradient(145deg, #8b90c8, #5c629e); }
.tech-laravel { background: linear-gradient(145deg, #ff5a4f, #e01e12); }
.tech-react { background: linear-gradient(145deg, #1a2438, #0b1220); color: #61DAFB; }
.tech-ts { background: linear-gradient(145deg, #4b93db, #2662a8); }
.tech-inertia { background: linear-gradient(145deg, #b07af5, #7c3aed); }
.tech-tw { background: linear-gradient(145deg, #1e293b, #0f172a); color: #38BDF8; }
.tech-shadcn { background: linear-gradient(145deg, #3f3f46, #18181b); color: #fafafa; }
.tech-vite { background: linear-gradient(145deg, #8b93ff, #535bf2); }

@media (prefers-reduced-motion: no-preference) {
    .hero-tech.in .tech-dock-ico {
        animation: tech-dock-idle 3.8s ease-in-out infinite;
        animation-delay: calc(var(--i, 0) * 0.18s);
    }

    .tech-dock-item:hover .tech-dock-ico {
        animation: none;
    }

    @keyframes tech-dock-idle {
        0%,
        100% { translate: 0 0; }
        50% { translate: 0 -4px; }
    }
}

@media (max-width: 767px) {
    .tech-dock::before {
        display: none;
    }

    .tech-dock {
        gap: 14px 4px;
    }

    .tech-dock-item {
        width: 84px;
    }

    .tech-dock-ico {
        width: 54px;
        height: 54px;
        border-radius: 15px;
    }

    .tech-dock-name {
        font-size: 0.75rem;
    }
}

@media (max-width: 639px) {
    .hero-tech {
        margin-top: 36px;
        padding-top: 24px;
    }
}

/* ---------------- Browser frame + mockups ---------------- */
.frame {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
}

.frame-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
}

.frame-bar .dots {
    display: flex;
    gap: 6px;
}

.frame-bar .dots span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #d6d3cd;
}

.frame-bar .dots span:nth-child(1) {
    background: #ff5f57;
}

.frame-bar .dots span:nth-child(2) {
    background: #febc2e;
}

.frame-bar .dots span:nth-child(3) {
    background: #28c840;
}

.frame-url {
    flex: 1;
    margin-left: 10px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.74rem;
    color: var(--fg-muted);
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    white-space: nowrap;
}

.frame-url svg {
    flex-shrink: 0;
    color: var(--brand-700);
}

.frame-body {
    background: var(--bg);
}

/* live "recording" shimmer badge for GIF-style sections */
.rec-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(7, 14, 26, 0.72);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.rec-badge .rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5f57;
    animation: recpulse 1.4s ease-in-out infinite;
}

@keyframes recpulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.25; }
}

/* -- shared mini UI primitives used inside mockups -- */
.ui-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.b-open { background: #dcfce7; color: #166534; }
.b-pending { background: #fef9c3; color: #854d0e; }
.b-high { background: #fee2e2; color: #b91c1c; }
.b-med { background: #ffedd5; color: #9a3412; }
.b-teal { background: var(--brand-soft); color: var(--brand-700); }
.b-gray { background: #eef0f2; color: #475569; }

html[data-theme='dark'] .b-open { background: #14532d; color: #bbf7d0; }
html[data-theme='dark'] .b-pending { background: #713f12; color: #fef08a; }
html[data-theme='dark'] .b-high { background: #7f1d1d; color: #fecaca; }
html[data-theme='dark'] .b-gray { background: #1e293b; color: #cbd5e1; }
html[data-theme='dark'] .b-teal { background: #134e4a; color: #99f6e4; }

/* Hero ticket-detail mockup */
.mock-ticket {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    min-height: 340px;
    font-size: 0.8rem;
}

.mt-main {
    padding: 16px 18px;
    border-right: 1px solid var(--border);
}

.mt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}

.mt-subject {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    color: var(--fg);
}

.mt-meta {
    color: var(--fg-muted);
    font-size: 0.72rem;
    margin-bottom: 14px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.msg {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.msg .av {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.72rem;
    color: #fff;
    background: var(--brand-600);
}

.msg.agent .av {
    background: var(--midnight);
}

.msg .bubble {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 12px;
    color: var(--fg);
    flex: 1;
}

.msg.note .bubble {
    background: #fff8e1;
    border-color: #fde68a;
}

html[data-theme='dark'] .msg.note .bubble {
    background: #3a3413;
    border-color: #715c1a;
}

.msg .who {
    font-weight: 600;
    font-size: 0.74rem;
    margin-bottom: 3px;
    display: flex;
    gap: 7px;
    align-items: center;
}

.msg .who span {
    color: var(--fg-muted);
    font-weight: 400;
}

.mt-composer {
    margin-top: 6px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--card);
    padding: 9px 11px;
}

.mt-composer .tabs {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
    font-size: 0.74rem;
    font-weight: 600;
}

.mt-composer .tabs .on {
    color: var(--midnight);
    border-bottom: 2px solid var(--midnight);
    padding-bottom: 3px;
}

.mt-composer .tabs .off {
    color: var(--fg-muted);
}

.mt-composer .ph {
    color: var(--fg-muted);
    font-size: 0.76rem;
    padding: 4px 0 12px;
}

.mt-composer .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mt-composer .tools {
    display: flex;
    gap: 8px;
    color: var(--fg-muted);
}

.mt-side {
    padding: 14px 15px;
    background: var(--bg-alt);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 11px 12px;
}

.side-card h5 {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--fg-muted);
    margin: 0 0 8px;
    font-family: var(--font-body);
    font-weight: 700;
}

.kv {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.75rem;
    padding: 3px 0;
}

.kv span:first-child {
    color: var(--fg-muted);
}

.kv span:last-child {
    font-weight: 600;
    text-align: right;
}

.mp-summary {
    background: linear-gradient(135deg, var(--midnight), var(--brand-700));
    color: #eafff9;
    border: none;
}

.mp-summary h5 {
    color: rgba(234, 255, 249, 0.75);
}

.mp-summary .kv span:first-child {
    color: rgba(234, 255, 249, 0.72);
}

.mp-summary .kv span:last-child {
    color: #fff;
}

/* ---------------- Feature sections ---------------- */
.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature.reverse .feature-media {
    order: 2;
}

.feature-copy h3 {
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    margin: 15px 0 16px;
}

.feature-copy > p {
    color: var(--fg-muted);
    font-size: 1.05rem;
    margin-bottom: 22px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 26px;
    display: grid;
    gap: 13px;
}

.feature-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.97rem;
}

.feature-list .tick {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--brand-soft);
    color: var(--brand-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

html[data-theme='dark'] .feature-list .tick {
    background: #134e4a;
    color: #99f6e4;
}

.feature-list li b {
    color: var(--fg);
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    color: var(--midnight);
    font-size: 0.95rem;
}

html[data-theme='dark'] .feature-link {
    color: var(--brand-400);
}

.feature-link svg {
    transition: transform 0.16s ease;
}

.feature-link:hover svg {
    transform: translateX(4px);
}

.feature-flag {
    font-size: 0.78rem;
    color: var(--fg-muted);
    font-style: italic;
    margin-top: 14px;
    display: block;
}

/* spotlight (workflows) — largest section */
.spotlight {
    background:
        radial-gradient(70% 120% at 85% 0%, rgba(20, 184, 166, 0.12), transparent 55%),
        var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.spotlight .feature {
    gap: 64px;
}

.spot-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--midnight);
    color: #eafff9;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 18px;
}

html[data-theme='dark'] .spot-tag {
    color: #04231c;
}

.spot-stats {
    display: flex;
    gap: 28px;
    margin: 26px 0 4px;
    flex-wrap: wrap;
}

.spot-stat .num {
    font-family: var(--font-display);
    font-size: 2.7rem;
    color: var(--midnight);
    line-height: 1;
}

html[data-theme='dark'] .spot-stat .num {
    color: var(--brand-400);
}

.spot-stat .lbl {
    font-size: 0.8rem;
    color: var(--fg-muted);
    margin-top: 4px;
}

/* Workflow builder mockup */
.mock-wf {
    padding: 18px;
    display: grid;
    gap: 12px;
    font-size: 0.82rem;
}

.wf-sentence {
    background: var(--card);
    border: 1px dashed var(--brand-500);
    border-radius: 12px;
    padding: 13px 15px;
    line-height: 1.7;
}

.wf-sentence .pill {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 7px;
    font-weight: 600;
    margin: 2px 1px;
}

.pill-trigger { background: #e0e7ff; color: #3730a3; }
.pill-cond { background: #ffedd5; color: #9a3412; }
.pill-action { background: var(--brand-soft); color: var(--brand-700); }

html[data-theme='dark'] .pill-trigger { background: #312e81; color: #c7d2fe; }
html[data-theme='dark'] .pill-cond { background: #7c2d12; color: #fed7aa; }
html[data-theme='dark'] .pill-action { background: #134e4a; color: #99f6e4; }

.wf-steps {
    display: grid;
    gap: 10px;
}

.wf-node {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 13px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.wf-node .ico {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.ico-trigger { background: #4f46e5; }
.ico-cond { background: #ea580c; }
.ico-action { background: var(--brand-600); }

.wf-node .lbl-top {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
}

.wf-node .lbl-main {
    font-weight: 600;
    color: var(--fg);
}

.wf-connector {
    height: 14px;
    width: 2px;
    background: var(--border);
    margin-left: 34px;
}

.wf-add {
    border: 1px dashed var(--border);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    color: var(--fg-muted);
    font-weight: 600;
    font-size: 0.8rem;
}

/* Languages table mockup */
.mock-lang {
    padding: 6px 0;
    font-size: 0.82rem;
}

.lang-row {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 0.9fr 0.7fr;
    gap: 8px;
    align-items: center;
    padding: 11px 18px;
    border-bottom: 1px solid var(--border);
}

.lang-row.head {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    font-weight: 700;
    background: var(--bg-alt);
}

.lang-row .flag {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 600;
}

.lang-row .flag .fl {
    width: 24px;
    height: 18px;
    border-radius: 4px;
    background: var(--bg-alt);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border: 1px solid var(--border);
}

.bar {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-alt);
    overflow: hidden;
}

.bar > i {
    display: block;
    height: 100%;
    background: var(--brand-500);
    border-radius: 999px;
}

/* Widget mockup */
.mock-widget {
    padding: 0;
    background: linear-gradient(160deg, var(--midnight), var(--brand-700));
    min-height: 420px;
    display: flex;
    flex-direction: column;
    color: #eafff9;
}

.wg-head {
    padding: 20px 20px 14px;
}

.wg-head .hi {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.wg-head .status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    margin-top: 5px;
    color: rgba(234, 255, 249, 0.85);
}

.wg-head .status .live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.wg-body {
    background: var(--card);
    margin: 6px 6px 0;
    border-radius: 14px 14px 0 0;
    flex: 1;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.wg-card {
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 12px;
    color: var(--fg);
    background: var(--card);
}

.wg-card .t {
    font-weight: 600;
    font-size: 0.86rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wg-card .d {
    font-size: 0.76rem;
    color: var(--fg-muted);
    margin-top: 3px;
}

.wg-search {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 9px 11px;
    font-size: 0.8rem;
    color: var(--fg-muted);
}

.wg-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.wg-chip {
    font-size: 0.74rem;
    font-weight: 500;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    color: var(--fg);
    padding: 6px 11px;
    border-radius: 999px;
}

.wg-nav {
    display: flex;
    background: var(--card);
    margin: 0 6px 6px;
    border-radius: 0 0 14px 14px;
    border-top: 1px solid var(--border);
}

.wg-nav .item {
    flex: 1;
    text-align: center;
    padding: 11px 4px 12px;
    font-size: 0.68rem;
    color: var(--fg-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.wg-nav .item.on {
    color: var(--midnight);
    font-weight: 600;
}

/* ---------------- Install steps ---------------- */
.install {
    text-align: center;
}

.reassure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0 auto 52px;
}

.reassure .no {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fg-muted);
}

.reassure .no svg {
    color: #ef4444;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    position: relative;
    margin-bottom: 56px;
}

.step {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 22px;
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step .n {
    font-family: var(--font-display);
    font-size: 2.6rem;
    color: var(--brand-soft);
    line-height: 1;
    position: absolute;
    top: 16px;
    right: 20px;
}

html[data-theme='dark'] .step .n {
    color: #134e4a;
}

.step .ico {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--midnight);
    color: #eafff9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

html[data-theme='dark'] .step .ico {
    color: #04231c;
}

.step h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    font-family: var(--font-head);
}

.step p {
    font-size: 0.9rem;
    color: var(--fg-muted);
}

/* installer wizard mockup */
.mock-install {
    padding: 20px;
    font-size: 0.82rem;
}

.iw-steps {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 20px;
}

.iw-step {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
}

.iw-step .b {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--border);
    color: var(--fg-muted);
    background: var(--card);
}

.iw-step.done .b {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: #fff;
}

.iw-step.active .b {
    background: var(--midnight);
    border-color: var(--midnight);
    color: #fff;
}

.iw-step .nm {
    font-size: 0.74rem;
    font-weight: 600;
    white-space: nowrap;
}

.iw-step .line {
    height: 2px;
    flex: 1;
    background: var(--border);
    margin: 0 6px;
}

.iw-step.done .line {
    background: var(--brand-500);
}

.iw-checks {
    display: grid;
    gap: 8px;
}

.iw-check {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--card);
}

.iw-check .ok {
    color: #16a34a;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.75rem;
}

/* ---------------- Requirements ---------------- */
.req-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 26px;
}

.req-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow-sm);
}

.req-card .ico {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: var(--brand-soft);
    color: var(--brand-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

html[data-theme='dark'] .req-card .ico {
    background: #134e4a;
    color: #99f6e4;
}

.req-card h4 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--fg-muted);
    font-family: var(--font-body);
    margin-bottom: 10px;
}

.req-card .big {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--fg);
    margin-bottom: 4px;
}

.req-card p {
    font-size: 0.86rem;
    color: var(--fg-muted);
}

.req-ext {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(80% 120% at 100% 0%, color-mix(in srgb, var(--brand-500) 14%, transparent), transparent 55%),
        var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 28px 24px;
    display: grid;
    gap: 22px;
    box-shadow: var(--shadow-sm);
}

.req-ext-head h3 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    margin: 0 0 6px;
    color: var(--fg);
}

.req-ext-head p {
    margin: 0;
    max-width: 42ch;
    font-size: 0.92rem;
    color: var(--fg-muted);
    line-height: 1.5;
}

.req-ext-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.req-ext-kicker {
    font-family: var(--font-label);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-700);
}

html[data-theme='dark'] .req-ext-kicker {
    color: var(--brand-400);
}

.req-ext-count {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--brand-500) 14%, transparent);
    color: var(--brand-700);
    font-family: var(--font-label);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

html[data-theme='dark'] .req-ext-count {
    background: #134e4a;
    color: #99f6e4;
}

.req-ext .exts {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
    gap: 10px;
}

.ext-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg) 88%, var(--card));
    border: 1px solid var(--border);
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.ext-chip code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
    color: var(--fg);
    background: none;
    border: 0;
    padding: 0;
}

.ext-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-500);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-500) 22%, transparent);
    flex-shrink: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .ext-chip:hover {
        transform: translateY(-2px);
        border-color: color-mix(in srgb, var(--brand-500) 40%, var(--border));
        background: color-mix(in srgb, var(--brand-500) 8%, var(--card));
    }
}

.req-ext-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    padding-top: 4px;
    border-top: 1px solid var(--border);
}

.req-ext-note {
    font-size: 0.82rem;
    color: var(--fg-muted);
}

.req-ext-note em {
    font-style: normal;
    font-weight: 600;
    color: var(--fg);
}

/* ---------------- Pricing ---------------- */
.pricing {
    background:
        radial-gradient(60% 90% at 50% 0%, rgba(20, 184, 166, 0.09), transparent 60%),
        var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.price-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    max-width: 880px;
    margin: 0 auto;
}

.price-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 34px 30px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.price-card.featured {
    border-color: var(--midnight);
    box-shadow: var(--shadow-lg);
}

html[data-theme='dark'] .price-card.featured {
    border-color: var(--brand-400);
}

.price-card .tier {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 6px;
}

.price-card .tier-sub {
    color: var(--fg-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.price-amount {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 4px;
}

.price-amount .price-was {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    color: var(--fg-muted);
    opacity: 0.75;
}

.price-amount .price-was[hidden] {
    display: none;
}

.price-amount .price-was .amt {
    font-family: var(--font-display);
    font-size: 1.55rem;
    color: inherit;
    line-height: 1;
}

.price-amount .price-was .cur {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: inherit;
}

.price-amount .price-now {
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}

.price-amount .amt {
    font-family: var(--font-display);
    font-size: 3.4rem;
    color: var(--midnight);
    line-height: 1;
}

html[data-theme='dark'] .price-amount .amt {
    color: var(--brand-400);
}

.price-amount .cur {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--midnight);
}

html[data-theme='dark'] .price-amount .cur {
    color: var(--brand-400);
}

.launch-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 12px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--midnight);
    color: #eafff9;
    font-family: var(--font-label);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--midnight) 22%, transparent);
}

.launch-badge::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--brand-400);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-400) 35%, transparent);
    flex-shrink: 0;
}

.launch-badge[hidden] {
    display: none;
}

html[data-theme='dark'] .launch-badge {
    background: var(--brand-400);
    color: #04231c;
    box-shadow: 0 6px 18px color-mix(in srgb, var(--brand-400) 28%, transparent);
}

html[data-theme='dark'] .launch-badge::before {
    background: #04231c;
    box-shadow: 0 0 0 3px color-mix(in srgb, #04231c 25%, transparent);
}

.price-note {
    font-size: 0.8rem;
    color: var(--fg-muted);
    margin-bottom: 24px;
}

.price-badge {
    position: absolute;
    top: 22px;
    right: 24px;
    background: var(--midnight);
    color: #eafff9;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 999px;
}

html[data-theme='dark'] .price-badge {
    color: #04231c;
}

.price-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: grid;
    gap: 12px;
}

.price-features li {
    display: flex;
    gap: 11px;
    align-items: flex-start;
    font-size: 0.92rem;
}

.price-features .tick {
    color: var(--brand-600);
    flex-shrink: 0;
    margin-top: 2px;
}

.price-features .muted {
    color: var(--fg-muted);
}

.install-service {
    max-width: 880px;
    margin: 28px auto 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
    align-items: start;
    padding: 28px 30px;
    border: 1px dashed color-mix(in srgb, var(--midnight) 28%, var(--border));
    border-radius: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--brand-500) 6%, var(--card)), var(--card));
}

html[data-theme='dark'] .install-service {
    border-color: color-mix(in srgb, var(--brand-400) 35%, var(--border));
}

.install-service-tag {
    display: inline-block;
    font-family: var(--font-label);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--fg-muted);
    margin-bottom: 10px;
}

.install-service-head h3 {
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.install-service-head p {
    margin: 0;
    color: var(--fg-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.install-hosting-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.install-hosting-table th,
.install-hosting-table td {
    text-align: left;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
}

.install-hosting-table th {
    font-family: var(--font-label);
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fg-muted);
    font-weight: 600;
}

.install-hosting-table tr:last-child td {
    border-bottom: none;
}

.install-host-type {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.install-host-type small {
    color: var(--fg-muted);
    font-size: 0.75rem;
}

.install-host-price {
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--midnight);
    white-space: nowrap;
}

html[data-theme='dark'] .install-host-price {
    color: var(--brand-400);
}

.install-host-price.is-free {
    color: var(--brand-700);
}

html[data-theme='dark'] .install-host-price.is-free {
    color: #99f6e4;
}

.install-service-cta {
    gap: 8px;
}

.price-disclaimer {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 30px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

/* ---------------- FAQ ---------------- */
.faq-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-q {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 22px 4px;
    font-family: 'Plus Jakarta Sans', var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    color: var(--fg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.faq-q:focus-visible {
    outline: 3px solid var(--ring);
    outline-offset: 3px;
    border-radius: 6px;
}

.faq-q .chev {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: var(--brand-700);
}

.faq-item[data-open='true'] .faq-q .chev {
    transform: rotate(180deg);
}

.faq-a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.28s ease;
}

.faq-item[data-open='true'] .faq-a {
    grid-template-rows: 1fr;
}

.faq-a > div {
    overflow: hidden;
}

.faq-a p {
    color: var(--fg-muted);
    font-size: 1rem;
    padding: 0 4px 22px;
    line-height: 1.7;
}

.faq-a .flag {
    font-style: italic;
    font-size: 0.85rem;
    color: var(--brand-700);
}

/* ---------------- Final CTA ---------------- */
.final-cta {
    text-align: center;
    padding: 110px 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--midnight), var(--navy-900));
    color: #eafff9;
}

.final-cta .dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.4px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%);
    mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 75%);
}

.final-cta h2 {
    color: #fff;
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    position: relative;
    margin-bottom: 16px;
}

.final-cta p {
    color: rgba(234, 255, 249, 0.8);
    font-size: 1.15rem;
    max-width: 560px;
    margin: 0 auto 34px;
    position: relative;
}

.final-cta .hero-cta {
    justify-content: center;
    position: relative;
}

.final-cta .btn-primary {
    background: #fff;
    color: var(--midnight);
}

.final-cta .btn-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.3);
}

.final-cta .btn-ghost:hover {
    border-color: #fff;
}

/* ---------------- Footer ---------------- */
.footer {
    background: var(--bg);
    padding: 66px 0 34px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}

.footer .brand {
    margin-bottom: 14px;
}

.footer-tag {
    color: var(--fg-muted);
    font-size: 0.92rem;
    max-width: 280px;
    margin-bottom: 18px;
}

.footer-col h5 {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-muted);
    font-family: var(--font-body);
    font-weight: 700;
    margin: 0 0 16px;
}

.footer-col a {
    display: block;
    color: var(--fg);
    font-size: 0.92rem;
    padding: 6px 0;
    transition: color 0.14s ease;
}

.footer-col a:hover {
    color: var(--midnight);
}

html[data-theme='dark'] .footer-col a:hover {
    color: var(--brand-400);
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--fg-muted);
    transition: all 0.15s ease;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    color: var(--fg-muted);
    font-size: 0.85rem;
    flex-wrap: wrap;
}

/* ---------------- Scroll reveal ---------------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

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

.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
    .feature,
    .feature.reverse {
        grid-template-columns: 1fr;
    }

    .feature.reverse .feature-media {
        order: 0;
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .req-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .install-service {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-header.menu-open .nav-links {
        display: flex;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--card);
        border-bottom: 1px solid var(--border);
        padding: 18px 24px;
        gap: 18px;
        box-shadow: var(--shadow-md);
    }

    .nav-buy-mobile {
        display: block;
    }
}

@media (max-width: 620px) {
    .section {
        padding: 64px 0;
    }

    .container {
        padding-inline: 18px;
    }

    /* keep the header compact; Demo/Buy live in the hero + mobile menu */
    .nav-actions > .btn {
        display: none;
    }

    .hero-sub {
        font-size: 1.05rem;
    }

    .eyebrow {
        font-size: 0.66rem;
        letter-spacing: 0.16em;
    }

    .price-grid {
        grid-template-columns: 1fr;
    }

    .install-service {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 24px 20px;
    }

    .demo-col {
        padding: 24px 20px;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .req-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .mock-ticket {
        grid-template-columns: 1fr;
    }

    .mt-main {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

    .hero-cta {
        width: 100%;
    }

    .hero-cta .btn,
    .buy {
        width: 100%;
    }

    .buy-menu {
        width: 100%;
    }

    .spot-stats {
        gap: 20px;
    }

    .lang-row {
        grid-template-columns: 1.4fr 0.8fr;
    }

    .lang-row .col-hide {
        display: none;
    }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
