/* =====================================================================
   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;
}

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;
}

.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-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;
}

/* ---------------- 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;
    gap: 30px;
}

.nav-links a {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--fg-muted);
    transition: color 0.15s ease;
}

.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 {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.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;
}

.mp-codester {
    background: #ff6f61;
}

.mp-lemon {
    background: #ffc233;
    color: #1f2937 !important;
}

.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: calc(100vh - 72px);
    display: flex;
    align-items: center;
    padding: 60px 0 80px;
    overflow: hidden;
}

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

.hero-dots {
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(currentColor 1px, transparent 1.4px);
    background-size: 26px 26px;
    color: color-mix(in srgb, var(--midnight) 18%, transparent);
    opacity: 0.32;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 78%);
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 78%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.05rem, 5.2vw, 4.15rem);
    margin: 22px 0 20px;
    overflow-wrap: break-word;
}

.hero h1 .accent {
    color: var(--midnight);
    position: relative;
}

.hero-sub {
    font-size: 1.18rem;
    color: var(--fg-muted);
    max-width: 540px;
    margin-bottom: 34px;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero-cta .btn svg {
    transition: transform 0.18s ease;
}

.hero-cta .btn-primary:hover svg {
    transform: translateX(3px) rotate(180deg);
}

.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;
}

/* Trust bar */
.trust-bar {
    margin-top: 46px;
    display: flex;
    align-items: center;
    gap: 10px 22px;
    flex-wrap: wrap;
    padding-top: 26px;
    border-top: 1px solid var(--border);
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--fg);
    background: var(--card);
    border: 1px solid var(--border);
    padding: 7px 13px;
    border-radius: 999px;
}

.tech-badge b {
    color: var(--midnight);
}

.trust-placeholder {
    font-size: 0.78rem;
    color: var(--fg-muted);
    font-style: italic;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.trust-placeholder .stars {
    color: #e0b100;
    letter-spacing: 2px;
    font-style: normal;
}

/* ---------------- 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 {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.req-ext .exts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.req-ext code {
    font-family: 'SFMono-Regular', ui-monospace, Menlo, monospace;
    font-size: 0.78rem;
    background: var(--bg-alt);
    color: var(--fg);
    padding: 5px 10px;
    border-radius: 7px;
    border: 1px solid var(--border);
}

/* ---------------- 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;
    gap: 8px;
    margin-bottom: 4px;
}

.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);
}

.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);
}

.price-disclaimer {
    text-align: center;
    color: var(--fg-muted);
    font-size: 0.85rem;
    font-style: italic;
    margin-top: 30px;
}

/* ---------------- 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: var(--font-head);
    font-weight: 600;
    font-size: 1.08rem;
    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: 0.98rem;
    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) {
    .hero-grid,
    .feature,
    .feature.reverse {
        grid-template-columns: 1fr;
    }

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

    .hero-media {
        margin-top: 8px;
    }

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

    .req-grid {
        grid-template-columns: repeat(2, 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; buy CTA lives in the hero + mobile menu */
    .nav-actions > .buy {
        display: none;
    }

    .hero h1 {
        font-size: clamp(1.85rem, 8.5vw, 2.6rem);
    }

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

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

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

    .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;
    }
}
