/* Novalon Marketing Website - Dark Theme
   Phase 1: Design tokens aligned with Novalon Studio (Novalon/styles.css).
   Accent: Purple to match the hero background. 8px grid. Inter + Orbitron. */

:root {
    /* Backgrounds — Studio values */
    --bg-primary: #0E1215;
    --bg-secondary: #171A1D;
    --bg-tertiary: #202326;
    --bg-card: var(--bg-secondary);
    --bg-primary-rgb: 14, 18, 21;
    --bg-secondary-rgb: 23, 26, 29;
    --bg-tertiary-rgb: 32, 35, 38;

    /* Borders — refined visibility */
    --border-color: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.1);

    /* Text — Studio */
    --text-primary: #E6EEF3;
    --text-secondary: #A9B2B9;
    --text-muted: #6B7280;
    --text-primary-rgb: 230, 238, 243;
    --text-on-accent: #fff;

    /* Accent — Purple to match the hero background */
    --accent: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #a78bfa 100%);
    --accent-hover: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 50%, #8b5cf6 100%);
    --accent-dark: linear-gradient(135deg, #7c3aed 0%, #6d28d9 50%, #7c3aed 100%);
    --accent-glow: rgba(139, 92, 246, 0.12);
    --accent-solid: #8b5cf6;
    --accent-rgb: 139, 92, 246;
    --accent-hover-solid: #7c3aed;
    --accent-dark-solid: #6d28d9;
    --accent-gradient: var(--accent);
    --accent-text: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 50%, #a78bfa 100%);
    --surface-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.022) 0%, rgba(0, 0, 0, 0.07) 100%);
    --surface-grad-soft: linear-gradient(180deg, rgba(255, 255, 255, 0.016) 0%, rgba(0, 0, 0, 0.045) 100%);
    --accent-glow-soft: rgba(var(--accent-rgb), 0.14);
    --accent-glow-softer: rgba(var(--accent-rgb), 0.08);

    /* Semantic (error/success/warning) — Studio */
    --error: #EF4444;
    --success: #10B981;
    --warning: #F59E0B;

    /* Typography — Studio stack */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-display: 'Orbitron', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'Fira Code', 'JetBrains Mono', Consolas, monospace;

    /* Layout — widescreen (Phase 2) */
    --container-max: 1280px;
    --container-hero-max: 1440px;

    /* Spacing — 8px grid */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Transitions — Studio (Phase 4: 200–300ms for micro-interactions) */
    --transition: all 0.22s ease;
    --transition-slow: all 0.28s ease;
    --transition-fast: all 0.18s ease;

    /* Shadows — Studio layered */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px var(--accent-glow);
}

@keyframes startupRingBreathe {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* Container — widescreen default */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-wide {
    max-width: var(--container-hero-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography — Orbitron for display voice (h1/h2), Inter for structure */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.15;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    color: var(--text-secondary);
}

.accent {
    color: var(--accent-solid);
}

.wordmark {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

/* Phase 5: Respect reduced-motion for transitions (animations already gated above) */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body.startup-active {
    overflow: auto;
}

.startup-overlay {
    display: none !important;
}

.startup-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.startup-overlay.is-ending {
    opacity: 0;
    visibility: hidden;
}

.startup-overlay__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 72% 58% at 50% 46%, rgba(10, 15, 20, 0) 30%, rgba(5, 9, 14, 0.66) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.62));
}

.startup-overlay__aurora {
    position: absolute;
    inset: -18% -10%;
    background:
        conic-gradient(from 25deg at 50% 50%, rgba(var(--accent-rgb), 0.0), rgba(var(--accent-rgb), 0.16), rgba(151, 118, 255, 0.14), rgba(var(--accent-rgb), 0.0));
    filter: blur(56px) saturate(1.1);
    opacity: 0.8;
    animation: startupAuroraDrift 7.2s ease-in-out infinite;
}

.startup-overlay__scanlines {
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 68px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 5px);
    opacity: 0.14;
    mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 78%);
    animation: startupScanlineSweep 3.8s linear infinite;
}

.startup-overlay__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 35%, #000 0%, transparent 75%);
    opacity: 0.26;
    animation: startupGridDrift 7.8s linear infinite;
}

.startup-overlay__inner {
    position: relative;
    display: grid;
    place-items: center;
    gap: 10px;
    width: min(84vw, 520px);
    isolation: isolate;
}

.startup-overlay__halo {
    position: absolute;
    width: clamp(220px, 34vw, 340px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(var(--accent-rgb), 0.34) 0%, rgba(var(--accent-rgb), 0.18) 26%, rgba(151, 118, 255, 0.12) 46%, rgba(var(--accent-rgb), 0) 70%);
    filter: blur(12px);
    opacity: 0;
    transform: scale(0.86);
    animation: startupHaloBloom 1s cubic-bezier(0.22, 1, 0.36, 1) 0.14s forwards;
    pointer-events: none;
}

.startup-overlay__logo-shell {
    position: relative;
    width: clamp(136px, 19vw, 180px);
    height: clamp(136px, 19vw, 180px);
    border-radius: 999px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.2), rgba(var(--bg-secondary-rgb), 0.84) 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.52),
        0 0 55px rgba(var(--accent-rgb), 0.2);
    backdrop-filter: blur(7px);
    animation: startupShellIn 0.72s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards;
    opacity: 0;
    transform: translateY(14px) scale(0.88);
}

.startup-overlay__ring,
.startup-overlay__ring-secondary {
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    pointer-events: none;
}

.startup-overlay__ring {
    border: 1px solid rgba(var(--accent-rgb), 0.44);
    box-shadow: 0 0 30px rgba(var(--accent-rgb), 0.36);
    animation: startupRingSweep 2.2s linear infinite, startupRingBreathe 2.8s ease-in-out infinite;
}

.startup-overlay__ring-secondary {
    inset: -21px;
    border: 1px solid rgba(154, 121, 255, 0.34);
    opacity: 0.58;
    animation: startupRingSweepReverse 3s linear infinite;
}

.startup-overlay__logo {
    width: 70%;
    height: 70%;
    object-fit: contain;
    filter: saturate(1.08) contrast(1.07) brightness(1.02) drop-shadow(0 8px 26px rgba(0, 0, 0, 0.5));
    animation: startupLogoLift 1.2s cubic-bezier(0.2, 0.9, 0.24, 1) 0.24s both;
}

.startup-overlay__wordmark {
    position: relative;
    margin-top: 16px;
    font-family: var(--font-display);
    font-size: clamp(1.64rem, 3.8vw, 3.05rem);
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: transparent;
    background-image:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.95) 50%,
            rgba(255, 255, 255, 0) 70%,
            rgba(255, 255, 255, 0) 100%),
        linear-gradient(135deg, #E6EEF3 0%, #c4b5fd 42%, var(--accent-solid) 100%);
    background-size: 220% 100%, 100% 100%;
    background-position: 220% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 28px rgba(var(--accent-rgb), 0.34);
    opacity: 0;
    animation: startupWordmarkIn 0.58s cubic-bezier(0.22, 1, 0.36, 1) 1.02s forwards, startupWordmarkSweep 1.08s linear 1.2s forwards;
    white-space: nowrap;
}

.startup-overlay__subtitle {
    position: relative;
    margin-top: -1px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: transparent;
    background-image:
        linear-gradient(90deg,
            rgba(255, 255, 255, 0.0) 0%,
            rgba(255, 255, 255, 0.0) 35%,
            rgba(255, 255, 255, 0.88) 50%,
            rgba(255, 255, 255, 0.0) 65%,
            rgba(255, 255, 255, 0.0) 100%),
        linear-gradient(0deg, rgba(212, 222, 230, 0.84), rgba(212, 222, 230, 0.84));
    background-size: 220% 100%, 100% 100%;
    background-position: 220% 0, 0 0;
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation: startupSubtitleIn 0.48s ease 1.26s forwards, startupHookShimmer 2.6s linear 1.6s infinite;
    white-space: nowrap;
}

[data-reveal] {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity 0.56s ease,
        transform 0.56s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: transform, opacity;
}

[data-reveal="left"] {
    transform: translate3d(-24px, 0, 0);
}

[data-reveal="right"] {
    transform: translate3d(24px, 0, 0);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@keyframes startupShellIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes startupHaloBloom {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes startupLogoLift {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.92) rotate(-3deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

@keyframes startupRingSweep {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes startupRingSweepReverse {
    from {
        transform: rotate(360deg);
    }
    to {
        transform: rotate(0deg);
    }
}

@keyframes startupWordmarkIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes startupWordmarkSweep {
    to {
        background-position: -220% 0, 0 0;
    }
}

@keyframes startupSubtitleIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

@keyframes startupHookShimmer {
    to {
        background-position: -220% 0, 0 0;
    }
}

@media (max-width: 768px) {
    .startup-overlay__inner {
        gap: 8px;
    }

    .startup-overlay__logo-shell {
        width: clamp(124px, 34vw, 156px);
        height: clamp(124px, 34vw, 156px);
    }

    .startup-overlay__wordmark {
        margin-top: 14px;
        font-size: clamp(1.46rem, 6vw, 2.08rem);
        letter-spacing: 0.17em;
    }

    .startup-overlay__subtitle {
        font-size: 10px;
        letter-spacing: 0.14em;
    }
}

/* Buttons — Phase 4: Studio-aligned (radius, accent hover glow, primary vs secondary) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

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

.btn-primary {
    background: var(--accent-solid);
    background-image: none;
    color: #fff;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--accent-hover-solid);
    background-image: none;
    border-color: transparent;
}

.btn-primary:active {
    background: var(--accent-dark-solid);
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--accent-solid);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    background: rgba(var(--accent-rgb), 0.06);
    border-color: rgba(var(--accent-rgb), 0.28);
}

.btn-secondary:focus-visible {
    border-color: var(--accent-solid);
    box-shadow: 0 0 0 1px var(--accent-glow);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: 13px;
}

.btn-lg {
    padding: var(--space-md) var(--space-xl);
    font-size: 15px;
}

/* Navigation — subtle lift (Phase 3) */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(var(--bg-primary-rgb), 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-hover);
}

.nav-container {
    max-width: var(--container-hero-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-shrink: 0;
}

.logo-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #ddd6fe 0%, var(--accent-solid) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    min-width: 0;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    overflow-wrap: anywhere;
}

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

.nav-links a:focus-visible {
    outline: 2px solid var(--accent-solid);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent-solid);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-lg);
    z-index: 999;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.mobile-menu-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: var(--space-sm) 0;
}

.mobile-menu-links a:hover {
    color: var(--text-primary);
}

.mobile-menu-links a:focus-visible {
    outline: 2px solid var(--accent-solid);
    outline-offset: 2px;
    border-radius: 4px;
}


/* Hero Section — widescreen, full-bleed background */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) var(--space-lg);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(8, 12, 24, 0.55) 0%, rgba(8, 12, 24, 0.78) 55%, rgba(14, 18, 21, 0.96) 100%),
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(var(--accent-rgb), 0.14), transparent 55%),
        url('graphics/HeroImage0.1.60.png') center center / cover no-repeat;
    pointer-events: none;
}


.hero-layout {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: var(--space-3xl);
    align-items: center;
    width: 100%;
}

.hero .container {
    max-width: var(--container-hero-max);
    width: 100%;
}

.hero-content {
    position: relative;
    max-width: 680px;
    padding-top: 0;
}


.hero-badge {
    display: inline-block;
    padding: 0 0 0 var(--space-md);
    margin-bottom: var(--space-xl);
    background: transparent;
    border: none;
    border-left: 2px solid var(--accent-solid);
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-transform: none;
    color: var(--text-secondary);
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    transition: color var(--transition-fast);
}

.hero-badge:hover {
    color: var(--text-primary);
}

.hero-title {
    margin-bottom: var(--space-lg);
    text-wrap: balance;
    overflow-wrap: break-word;
    hyphens: none;
}

.hero-title .accent {
    color: var(--accent-solid);
}

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}


.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}


.hero-points {
    list-style: none;
    margin: 0 0 var(--space-xl) 0;
    padding: 0;
    display: grid;
    gap: var(--space-sm);
}

.hero-points li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 0;
    overflow-wrap: break-word;
}


.hero-points li::before {
    content: '';
    width: 6px;
    height: 6px;
    margin-top: 8px;
    border-radius: 50%;
    background: var(--accent-solid);
    flex-shrink: 0;
}


.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.hero-cta-donate .btn {
    min-width: 300px;
    padding-left: var(--space-2xl);
    padding-right: var(--space-2xl);
}

.hero-note {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-muted);
}


.hero-media {
    position: relative;
    min-width: 0;
    overflow: visible;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 40px; /* room for float card below mockup if needed */
}


/* Hero floating card — centered over left agent panel, overlaps chat area above input strip */
.hero-float-card {
    position: absolute;
    left: 14%;
    transform: translateX(-50%);
    bottom: 22%;
    z-index: 4;
    width: min(200px, 26vw);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(180deg, rgba(14, 18, 32, 0.92) 0%, rgba(24, 18, 44, 0.92) 100%);
    border: 1px solid rgba(124, 92, 255, 0.28);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
    isolation: isolate;
}

.hero-float-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
}

.hero-float-card-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.hero-float-card-tabs {
    display: flex;
    gap: var(--space-xs);
}

.hero-float-card-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: var(--space-xs) var(--space-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    border-radius: 6px;
    transition: var(--transition);
    box-shadow: none;
}


.hero-float-card-tab .hero-float-card-tab-icon {
    flex-shrink: 0;
}

.hero-float-card-tab.is-active .hero-float-card-tab-icon {
    stroke: #a78bfa;
}

.hero-float-card-tab.is-active {
    color: #a78bfa;
    background: rgba(139, 92, 246, 0.14);
    box-shadow: none;
}

.hero-float-card-tab .hero-float-card-tab-icon {
    flex-shrink: 0;
}

.hero-float-card-tab.is-active .hero-float-card-tab-icon {
    stroke: #a78bfa;
}




@media (max-width: 1024px) {
    .hero-float-card {
        bottom: 28%;
        width: min(180px, 30vw);
    }
}

@media (max-width: 768px) {
    .hero-float-card {
        display: none;
    }
}


/* Phase 5: Responsive — scale down 3D/depth on small screens */
@media (max-width: 1024px) {
    .device-window .device-screen {
        box-shadow: var(--shadow-md), 0 12px 24px rgba(0, 0, 0, 0.25);
    }
    .device-laptop {
        filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4)) drop-shadow(0 6px 12px rgba(0, 0, 0, 0.3));
    }
}

@media (max-width: 768px) {
    .device-window .device-screen {
        box-shadow: var(--shadow-sm), 0 8px 16px rgba(0, 0, 0, 0.2);
    }
    .device-laptop {
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
    }
    .philosophy-card:hover,
    .feature-card:hover,
    .tier-card:hover {
        transform: none;
    }
}

/* Device mockup — layered depth (Phase 3) */
.device {
    width: 100%;
    max-width: 780px;
    margin-left: auto;
}

.device-window .device-screen {
    position: relative;
    border-radius: 12px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-lg), 0 24px 48px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.device-laptop {
    position: relative;
    filter:
        drop-shadow(0 32px 64px rgba(0, 0, 0, 0.55))
        drop-shadow(0 12px 24px rgba(0, 0, 0, 0.4));
}

.device-laptop .device-screen {
    padding: 12px;
    background: var(--surface-grad);
    box-shadow: var(--shadow-md), 0 0 90px var(--accent-glow-softer);
}

.device-laptop .device-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(var(--accent-rgb), 0.14), transparent 60%);
    pointer-events: none;
}

.device-window .device-screen::before {
    display: none;
}

.device-window .studio-mockup {
    border-radius: 12px;
}

.device-screen-sheen,
.device-window .device-screen-sheen {
    display: none;
}

.device-screen-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    border: 1px solid var(--border-hover);
}

/* Studio mockup — CSS-only, matches Novalon app layout and tokens (no image/logos/model names) */
.studio-mockup {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 340px;
    height: clamp(340px, 40vw, 440px);
    background: var(--bg-primary);
    border-radius: 8px;
    border: 1px solid var(--border-hover);
    overflow: hidden;
    font-family: var(--font-sans);
}

.studio-mockup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0 12px;
    background: var(--surface-grad), var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    border-radius: 0 0 10px 10px;
}

.studio-mockup-header-left {
    display: flex;
    align-items: center;
    gap: 0;
}

.studio-mockup-title {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-solid);
}

.studio-mockup-title-studio {
    font-family: var(--font-display);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-left: 6px;
}

.studio-mockup-header-center {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.studio-mockup-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.studio-mockup-status-indicator.online {
    background: var(--success);
}

.studio-mockup-status-indicator.ready .studio-mockup-status-dot {
    background: var(--success);
}

.studio-mockup-status-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-muted);
}

.studio-mockup-status-indicator.online .studio-mockup-status-dot {
    background: var(--bg-primary);
}

.studio-mockup-status-text {
    font-size: 11px;
    color: var(--text-secondary);
}

.studio-mockup-capability-badge {
    padding: 4px 8px;
    background: rgba(var(--accent-rgb), 0.08);
    border: 1px solid var(--accent-glow-soft);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent-solid);
    margin-left: 8px;
}

.studio-mockup-header-right {
    display: flex;
    align-items: center;
    gap: 0;
}

.studio-mockup-window-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1;
}

.studio-mockup-window-btn:first-of-type {
    margin-left: 0;
}

.studio-mockup-window-btn.close:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.45);
}

.studio-mockup-main {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
    padding-top: 4px;
}

.studio-mockup-panel {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.studio-mockup-panel-left {
    min-width: 28%;
    flex: 0 0 28%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.studio-mockup-panel-explorer {
    min-width: 20%;
    flex: 0 0 20%;
    background: var(--surface-grad-soft), var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.studio-mockup-panel-editor {
    flex: 1;
    min-width: 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.studio-mockup-resizer {
    width: 4px;
    flex-shrink: 0;
    position: relative;
    background: transparent;
}

.studio-mockup-resizer::before {
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 50%;
    width: 1px;
    transform: translateX(-50%);
    background: var(--border-color);
    border-radius: 999px;
}

/* Left panel: drag handle (matches .panel-drag-handle) */
.studio-mockup-panel-handle {
    height: 28px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-bottom: 1px solid var(--border-color);
    background: var(--surface-grad), var(--bg-secondary);
    flex-shrink: 0;
}

.studio-mockup-panel-chevron {
    font-size: 10px;
    color: var(--text-muted);
    opacity: 0.8;
}

.studio-mockup-panel-handle .studio-mockup-panel-chevron {
    margin-left: auto;
}

.studio-mockup-drag-grip {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 1px dashed var(--border-color);
    position: relative;
    flex-shrink: 0;
    display: inline-block;
}

.studio-mockup-drag-grip::before,
.studio-mockup-drag-grip::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: inherit;
    border-top: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    opacity: 0.6;
}

.studio-mockup-drag-grip.small {
    width: 14px;
    height: 14px;
}

.studio-mockup-drag-grip.small::before,
.studio-mockup-drag-grip.small::after {
    inset: 2px;
}

.studio-mockup-panel-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.studio-mockup-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 0;
}

.studio-mockup-section {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.studio-mockup-section-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}

.studio-mockup-model-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.studio-mockup-model-shell {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 5px;
    height: 24px;
    min-height: 24px;
    box-sizing: border-box;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    flex: 1;
    min-width: 72px;
}

.studio-mockup-model-slot {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color);
    flex-shrink: 0;
}

.studio-mockup-model-slot.active {
    background: var(--accent);
    border-color: var(--accent-solid);
    box-shadow: 0 0 4px var(--accent-glow-soft);
}

.studio-mockup-model-add {
    width: 16px;
    height: 16px;
    border-radius: 3px;
    background: transparent;
    border: 1px dashed var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.studio-mockup-template-toggle {
    flex: 0 0 auto;
    display: flex;
    gap: 2px;
    padding: 2px;
    height: 24px;
    min-height: 24px;
    align-items: center;
    box-sizing: border-box;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.studio-mockup-template-btn {
    padding: 0 5px;
    height: 20px;
    min-width: 28px;
    font-size: 9px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px dashed var(--border-color);
    background: transparent;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.studio-mockup-template-btn.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    border-style: solid;
    box-shadow: 0 0 6px var(--accent-glow-soft);
}

.studio-mockup-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.studio-mockup-collapse-btn {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.studio-mockup-prompt-section {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.studio-mockup-prompt-unified {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    min-height: 0;
    position: relative;
}

.studio-mockup-chat {
    flex: 1;
    overflow: hidden;
    padding: 0;
    min-height: 56px;
    background: var(--bg-primary);
    position: relative;
}

/* Mock conversation — solid rounded bubbles (user left/grey, agent right/teal); continues behind floating strip */
.studio-mockup-chat-bubbles {
    position: absolute;
    inset: 0;
    padding: 8px 10px 52px; /* extra bottom so bubbles extend into area behind floating strip */
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
    z-index: 0;
}

.studio-mockup-bubble {
    height: 12px;
    border-radius: 8px;
    flex-shrink: 0;
}

.studio-mockup-bubble-user {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.08);
    max-width: 85%;
}

.studio-mockup-bubble-agent {
    align-self: flex-end;
    background: rgba(var(--accent-rgb), 0.25);
    max-width: 85%;
}

/* Placeholder lines (same theme as chat) — replace text across mockup */
.studio-mockup-line {
    display: inline-block;
    height: 10px;
    border-radius: 6px;
    vertical-align: middle;
    flex-shrink: 0;
}

.studio-mockup-line-user {
    background: rgba(255, 255, 255, 0.08);
}

.studio-mockup-line-agent {
    background: rgba(var(--accent-rgb), 0.25);
}

.studio-mockup-chat-empty {
    position: absolute;
    inset: 0;
}

.studio-mockup-chat::before,
.studio-mockup-chat::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 24px;
    pointer-events: none;
    z-index: 1;
}

.studio-mockup-chat::before {
    top: 0;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, transparent 100%);
}

.studio-mockup-chat::after {
    bottom: 0;
    background: linear-gradient(to top, var(--bg-primary) 0%, transparent 100%);
}

.studio-mockup-chat-empty {
    height: 100%;
    min-height: 52px;
}

/* Floating input area — overlays bottom of chat so conversation continues behind it */
.studio-mockup-prompt-floating {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    background: var(--surface-grad), var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 5px 6px 6px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.studio-mockup-context-bar {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    pointer-events: none;
}

.studio-mockup-context-track {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.studio-mockup-context-fill {
    display: block;
    height: 100%;
    width: 65%;
    background: var(--accent);
    border-radius: 4px;
}

.studio-mockup-agent-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 3px 6px;
    margin-bottom: 4px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.studio-mockup-agent-tab {
    padding: 2px 8px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 600;
    border-radius: 4px;
    flex-shrink: 0;
}

.studio-mockup-agent-add {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.studio-mockup-prompt-row {
    flex-shrink: 0;
}

.studio-mockup-prompt-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px 6px;
    position: relative;
}

.studio-mockup-prompt-input-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 6px;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.studio-mockup-prompt-placeholder {
    font-size: 11px;
    color: var(--text-muted);
    padding: 2px 0;
    min-height: 16px;
    opacity: 0.85;
}

.studio-mockup-prompt-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.studio-mockup-mode-pills {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 1px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 5px;
}

.studio-mockup-mode-pill {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* hide SVG icons — replaced by blob line */
.studio-mockup-mode-icon {
    display: none;
}

/* blob inside each pill — small circle, override any inline width */
.studio-mockup-mode-pill .studio-mockup-line {
    display: block;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50%;
    flex-shrink: 0;
}

.studio-mockup-mode-pill.active {
    background: var(--accent);
    box-shadow: 0 0 7px var(--accent-glow-soft);
}

/* active pill blob is dark so it reads on teal */
.studio-mockup-mode-pill.active .studio-mockup-line {
    background: rgba(0, 0, 0, 0.25) !important;
}

.studio-mockup-prompt-actions {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* small circle blobs flanking the send button */
.studio-mockup-action-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

/* action buttons — same size/radius as pills, blob inside */
.studio-mockup-prompt-action {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.studio-mockup-prompt-action::after {
    content: '';
    display: block;
    width: 10px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
}

.studio-mockup-send-btn {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: var(--accent);
    box-shadow: 0 0 7px var(--accent-glow-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0; /* hide ↑ arrow text */
}

/* blob inside send button */
.studio-mockup-send-btn::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.25);
}

.studio-mockup-status-line {
    font-size: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
}

.studio-mockup-status-divider {
    opacity: 0.5;
    user-select: none;
}


/* Explorer panel */
.studio-mockup-explorer-header {
    padding: 0 10px;
    height: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    background: var(--surface-grad), var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.studio-mockup-explorer-title {
    flex: 1;
    min-width: 0;
}

.studio-mockup-explorer-header .studio-mockup-panel-chevron {
    flex-shrink: 0;
    margin-right: 4px;
}

.studio-mockup-explorer-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.studio-mockup-explorer-btn {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    background: transparent;
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
}

.studio-mockup-tree {
    flex: 1;
    overflow-y: auto;
    padding: 6px 0;
}

.studio-mockup-tree-item {
    padding: 3px 6px 3px 10px;
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    border-radius: 3px;
}

.studio-mockup-tree-item.folder {
    font-weight: 500;
}

.studio-mockup-tree-item.active {
    background: var(--accent-glow);
    color: var(--text-primary);
    border-left: 2px solid var(--accent-solid);
    padding-left: 6px;
}

.studio-mockup-tree-expand {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.studio-mockup-tree-item.folder .studio-mockup-tree-expand::before {
    content: '›';
    font-size: 12px;
    transform: rotate(0deg);
}

.studio-mockup-tree-item.folder.expanded .studio-mockup-tree-expand::before {
    transform: rotate(90deg);
}

.studio-mockup-tree-expand.file {
    visibility: hidden;
}

.studio-mockup-tree-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.studio-mockup-tree-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.studio-mockup-tree-item.folder .studio-mockup-tree-icon {
    color: var(--text-primary);
}

.studio-mockup-tree-icon-txt {
    color: var(--text-muted);
}

.studio-mockup-tree-name {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-mockup-tree-children {
    position: relative;
    padding-left: 20px;
}

.studio-mockup-tree-children::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border-color);
    opacity: 0.15;
}

.studio-mockup-tree-children .studio-mockup-tree-item {
    position: relative;
    padding-left: 8px;
}

.studio-mockup-tree-children .studio-mockup-tree-item::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 10px;
    width: 10px;
    height: 1px;
    background: var(--border-color);
    opacity: 0.15;
}

.studio-mockup-tree-children .studio-mockup-tree-item:not([data-last="true"])::after {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 1px;
    height: 20px;
    background: var(--border-color);
    opacity: 0.15;
}

.studio-mockup-tree-children .studio-mockup-tree-item[data-last="true"]::after {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 1px;
    height: 10px;
    background: var(--border-color);
    opacity: 0.15;
}

/* Editor panel */
.studio-mockup-editor-chrome {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.studio-mockup-editor-toolbar {
    height: 28px;
    display: flex;
    align-items: center;
    padding: 0 6px;
    gap: 6px;
    background: var(--surface-grad), var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.studio-mockup-editor-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-left: 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.studio-mockup-editor-label-icon {
    flex-shrink: 0;
    opacity: 0.9;
}

.studio-mockup-editor-tabs {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 8px;
    overflow: hidden;
}

.studio-mockup-editor-toolbar .studio-mockup-panel-chevron {
    margin-left: auto;
}

.studio-mockup-tab {
    flex: 0 0 auto;
    max-width: 140px;
    padding: 4px 8px 5px;
    border-radius: 6px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.studio-mockup-tab.active {
    background: var(--bg-tertiary);
    color: var(--accent-solid);
    border-color: var(--border-color);
}

.studio-mockup-tab-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.studio-mockup-tab-icon svg {
    display: block;
    width: 14px;
    height: 14px;
}

.studio-mockup-tab-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.studio-mockup-tab-close {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-muted);
    opacity: 0.8;
    margin-left: 2px;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.studio-mockup-toolbar-right {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
}

.studio-mockup-toolbar-btn {
    width: 24px;
    height: 24px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.04);
    display: inline-block;
}

.studio-mockup-code {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    background: var(--bg-primary);
}

.studio-mockup-code-gutter {
    flex-shrink: 0;
    width: 32px;
    padding: 12px 8px 12px 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: right;
    user-select: none;
    border-right: 1px solid var(--border-color);
    opacity: 0.8;
}

.studio-mockup-code-lines {
    flex: 1;
    padding: 12px 16px;
    overflow: hidden;
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.6;
}

.studio-mockup-code-line {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    min-height: 18px;
}
.studio-mockup-code-line:empty {
    min-height: 18px;
}

/* Syntax highlighting — match Novalon app token colors */
.studio-mockup-code-line .code-kw {
    color: #c792ea;
}

.studio-mockup-code-line .code-fn {
    color: #c084fc;
}

.studio-mockup-code-line .code-param,
.studio-mockup-code-line .code-const {
    color: var(--text-primary);
}

.studio-mockup-code-line .code-str {
    color: #8ce99a;
}

.studio-mockup-code-line .code-tag {
    color: var(--accent-solid);
}

.studio-mockup-code-line.comment {
    color: var(--text-muted);
    font-style: italic;
}

.studio-mockup-status-bar {
    height: 24px;
    background: var(--surface-grad), var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    font-size: 10px;
    color: var(--text-muted);
    flex-shrink: 0;
    gap: 8px;
}

.studio-mockup-status-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.studio-mockup-status-right {
    flex-shrink: 0;
}

.device-base {
    width: 92%;
    height: 18px;
    margin: 12px auto 0;
    border-radius: 0 0 16px 16px;
    background: var(--surface-grad-soft);
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-lg);
}

.device-base::before {
    content: '';
    display: block;
    width: 26%;
    height: 4px;
    margin: 6px auto 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1024px) {
    .device {
        max-width: 700px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .device-screen {
        border-radius: 10px;
        padding: 10px;
    }

    .studio-mockup {
        border-radius: 6px;
        min-height: 280px;
        height: clamp(280px, 50vw, 360px);
    }

    .device-base {
        width: 94%;
        height: 16px;
        margin-top: 10px;
        border-radius: 0 0 14px 14px;
    }
}


.hero-media-frame {
    position: relative;
    border-radius: 18px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

@media (max-width: 768px) {
    .hero-media-frame {
        border-radius: 16px;
    }
}

.hero-media-chrome {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    height: 44px;
    padding: 0 14px;
    background: rgba(var(--bg-primary-rgb), 0.55);
    border-bottom: 1px solid var(--border-hover);
}

.hero-media-dots {
    position: absolute;
    left: 14px;
    display: flex;
    gap: 8px;
}

.hero-media-dots span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--border-hover);
}

.hero-media-dots span:nth-child(1) {
    background: var(--error);
}

.hero-media-dots span:nth-child(2) {
    background: var(--warning);
}

.hero-media-dots span:nth-child(3) {
    background: var(--success);
}

.hero-media-title {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hero-media-title-muted {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.12em;
    color: rgba(var(--text-primary-rgb), 0.7);
}

.hero-media-viewport {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: visible;
    border-radius: 0;
    background: transparent;
}

@media (max-width: 768px) {
    .hero-media-viewport {
        aspect-ratio: 16 / 11;
        border-radius: 0;
    }
}

.hero-media-frame::before {
    content: none;
}

.hero-media-img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
    background: transparent;
}

.hero-media-sheen {
    display: none;
}




/* Philosophy Section */
.philosophy {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.philosophy-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.philosophy-card:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
}

.philosophy-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: var(--space-md);
    color: var(--accent-solid);
}

.philosophy-card h3 {
    font-size: 16px;
    margin-bottom: var(--space-sm);
}

.philosophy-card p {
    font-size: 14px;
    color: var(--text-muted);
}

/* Features Section */
.features {
    padding: var(--space-4xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: 18px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.feature-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 0;
}

.feature-card:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
}

.feature-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr;
    background: var(--bg-card);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
}

.feature-wide {
    grid-column: span 3;
}

@media (max-width: 1024px) {
    .feature-large {
        grid-column: span 2;
    }

    .feature-wide {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .feature-large {
        grid-column: span 1;
    }

    .feature-wide {
        grid-column: span 1;
    }
}

.feature-content {
    max-width: 640px;
    min-width: 0;
}

.feature-badge {
    display: inline-block;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0.02em;
    color: var(--accent-solid);
    margin-bottom: var(--space-md);
}

.feature-badge:hover {
    color: #c4b5fd;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: var(--space-md);
    color: var(--accent-solid);
}

.feature-card h3 {
    font-size: 18px;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-muted);
}

.feature-list {
    list-style: none;
    margin-top: var(--space-lg);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
}

@media (max-width: 768px) {
    .feature-list {
        grid-template-columns: 1fr;
    }
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '→';
    color: var(--accent-solid);
}

/* Download Section */
.download {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.download-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-3xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.download-content h2 {
    margin-bottom: var(--space-md);
}

.download-content > p {
    font-size: 16px;
    margin-bottom: var(--space-xl);
}

.download-buttons {
    margin-bottom: var(--space-xl);
}

.download-btn {
    width: 100%;
    max-width: 320px;
}

.download-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--text-muted);
}

.info-icon {
    font-size: 16px;
}

.download-note {
    font-size: 13px;
    color: var(--text-muted);
}

/* Support Section */
.support {
    padding: var(--space-4xl) 0;
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

@media (max-width: 768px) {
    .support-content {
        grid-template-columns: 1fr;
    }
}

.support-text h3 {
    font-size: 24px;
    margin-bottom: var(--space-lg);
}

.support-text p {
    margin-bottom: var(--space-md);
    font-size: 15px;
    line-height: 1.7;
}

.support-cta {
    margin-top: var(--space-xl);
}

.support-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.support-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.support-card-icon {
    font-size: 20px;
}

.support-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.support-list li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.support-list svg {
    color: var(--accent-solid);
    flex-shrink: 0;
}

/* Contact Section */
.contact {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.contact-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
}

.contact-card h2 {
    margin-bottom: var(--space-md);
}

.contact-card > p {
    margin-bottom: var(--space-xl);
}

.contact-info {
    margin-bottom: var(--space-lg);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--accent-solid);
    transition: var(--transition);
}

.contact-link:hover {
    border-color: var(--accent-solid);
    background: var(--bg-tertiary);
}

.contact-note {
    font-size: 13px;
    color: var(--text-muted);
}

/* Footer — Phase 4: tokens and subtle depth */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, transparent 0%, rgba(var(--bg-primary-rgb), 0.4) 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3xl);
    margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
    }
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo-text {
    display: block;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-3xl);
}

@media (max-width: 768px) {
    .footer-links {
        gap: var(--space-xl);
    }
}

.footer-column h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.footer-column {
    position: relative;
    padding-left: 0;
}

.footer-column::before {
    content: none;
}

.footer-column::after {
    content: none;
}

.footer-column a {
    display: block;
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    min-height: 28px;
    line-height: 1.35;
    display: flex;
    align-items: center;
    padding-left: 0;
    transition: var(--transition);
}

.footer-column a::before {
    content: none;
}

.footer-column a:first-of-type::before,
.footer-column a:last-of-type::after {
    content: none;
}

.footer-column a:first-of-type::before {
    content: none;
}

.footer-column a:last-of-type::after {
    content: none;
}

.footer-column a.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-column a.footer-social svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.footer-column a:hover {
    color: var(--text-primary);
    transform: none;
}

.footer-column a:hover::before {
    content: none;
}

.footer-column a:focus-visible {
    outline: 2px solid var(--accent-solid);
    outline-offset: 2px;
    border-radius: 4px;
}

.footer-column a:focus-visible::before {
    content: none;
}

.footer-column a:first-of-type:hover::before {
    content: none;
}

.footer-column a:last-of-type:hover::after {
    content: none;
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-made-with {
    color: var(--text-secondary);
}

.footer-accent {
    background: var(--accent-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tos-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: rgba(var(--bg-primary-rgb), 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
}

.tos-overlay.active {
    display: flex;
}

body.modal-open {
    overflow: hidden;
}

.tos-modal {
    width: 100%;
    max-width: 820px;
    max-height: min(84vh, 760px);
    display: flex;
    flex-direction: column;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(var(--bg-secondary-rgb), 0.96) 0%, rgba(var(--bg-primary-rgb), 0.92) 100%);
    border: 1px solid var(--border-hover);
    box-shadow: var(--shadow-xl), 0 0 70px var(--accent-glow-softer);
    overflow: hidden;
}

.tos-modal-header {
    padding: var(--space-xl);
    border-bottom: 1px solid var(--border-hover);
    background: rgba(var(--bg-primary-rgb), 0.35);
}

.tos-modal-header h2 {
    margin: 0 0 var(--space-xs) 0;
    font-size: 20px;
}

.tos-modal-header p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.tos-modal-body {
    padding: var(--space-xl);
    overflow: auto;
}

.tos-summary {
    padding: var(--space-lg);
    border-radius: 14px;
    border: 1px solid var(--accent-glow-soft);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.10) 0%, rgba(var(--accent-rgb), 0.06) 100%);
    margin-bottom: var(--space-xl);
}

.tos-summary-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.tos-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
}

.tos-section {
    margin-top: var(--space-xl);
}

.tos-section h3 {
    font-size: 15px;
    margin: 0 0 var(--space-sm) 0;
}

.tos-section p {
    margin: 0 0 var(--space-sm) 0;
    font-size: 14px;
    line-height: 1.75;
}

.tos-modal-footer {
    padding: var(--space-lg) var(--space-xl);
    border-top: 1px solid var(--border-hover);
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
    background: rgba(var(--bg-primary-rgb), 0.35);
}

.tos-modal-footer .btn {
    min-width: 160px;
}

@media (max-width: 480px) {
    .tos-overlay {
        padding: var(--space-md);
    }

    .tos-modal-header,
    .tos-modal-body,
    .tos-modal-footer {
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }

    .tos-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .tos-modal-footer .btn {
        width: 100%;
    }
}

.page {
    padding-top: 64px;
}

.page-hero {
    position: relative;
    padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
    overflow: hidden;
}

.page-hero-content {
    position: relative;
    max-width: 820px;
}

.page-hero-content h1 {
    margin-bottom: var(--space-sm);
}

.page-lede {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xl);
}

.page-section {
    padding: var(--space-4xl) 0;
}

.page-section-alt {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.section-header.left {
    text-align: left;
    margin: 0 0 var(--space-3xl);
    max-width: 760px;
}

.section-header.left p {
    margin: 0;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
}

@media (max-width: 1024px) {
    .three-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .three-col {
        grid-template-columns: 1fr;
    }
    .two-col {
        grid-template-columns: 1fr;
    }
}

.card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: var(--space-sm);
}

.card p {
    font-size: 14px;
    color: var(--text-muted);
}

.callout {
    margin-top: var(--space-2xl);
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.callout-title {
    padding: var(--space-lg) var(--space-xl);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-hover);
    background: var(--bg-tertiary);
}

.callout-body {
    padding: var(--space-xl);
}

.callout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

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

.callout-item {
    padding: var(--space-md);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-hover);
    border-radius: 10px;
}

.callout-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.callout-value {
    font-size: 14px;
    color: var(--text-secondary);
}

.page-section-compact {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

.support-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    max-width: 920px;
}

.support-stack .section-header.left {
    margin: 0;
}

.cta-band-attached {
    margin-top: 0;
}

.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-top: var(--space-3xl);
    min-width: 0;
}

.cta-band-text {
    min-width: 0;
}

.cta-band-text p {
    font-size: 14px;
    color: var(--text-secondary);
    overflow-wrap: anywhere;
}

.cta-band-actions {
    display: flex;
    gap: var(--space-md);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }

    .cta-band-actions {
        width: 100%;
    }

    .cta-band-actions .btn {
        width: 100%;
    }
}

.trust-strip {
    margin-top: var(--space-xl);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

@media (max-width: 768px) {
    .trust-strip {
        grid-template-columns: 1fr;
    }
}

.trust-item {
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    font-size: 13px;
    color: var(--text-secondary);
    min-width: 0;
    overflow-wrap: anywhere;
    transition: var(--transition);
}

.trust-item:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm), 0 2px 8px rgba(0, 0, 0, 0.15);
}

.trust-strong {
    color: var(--text-primary);
}

.donation-tiers {
    margin-top: var(--space-3xl);
}

.donation-tiers .section-header.left {
    margin-bottom: var(--space-2xl);
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: var(--space-lg);
}

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

.tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: var(--space-xl);
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--border-hover);
    background: var(--bg-card);
    transition: var(--transition);
}

.tier-card:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
}

.tier-featured {
    border-color: rgba(var(--accent-rgb), 0.28);
    box-shadow: var(--shadow-md);
    overflow: visible;
}

.tier-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: radial-gradient(ellipse 90% 70% at 50% 0%, rgba(var(--accent-rgb), 0.16), transparent 60%);
    pointer-events: none;
}

.tier-card > * {
    position: relative;
    z-index: 1;
}

.tier-badge {
    position: absolute;
    top: 0;
    right: var(--space-lg);
    transform: translateY(-50%);
    padding: var(--space-xs) var(--space-md);
    border-radius: 999px;
    border: 1px solid var(--accent-glow-soft);
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    box-shadow: var(--shadow-md);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-solid);
    white-space: nowrap;
    z-index: 2;
    transition: var(--transition);
}

.tier-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-md);
    margin: 0 0 var(--space-md);
}

.tier-featured .tier-head {
    padding-right: 0;
}

.cta-band-later {
    background: linear-gradient(135deg, rgba(var(--bg-secondary-rgb), 0.92) 0%, rgba(var(--bg-tertiary-rgb), 0.75) 100%);
    border-color: var(--border-hover);
}

.cta-band-later .cta-band-text h3 {
    margin-bottom: var(--space-xs);
}

.cta-band-later .cta-band-text p {
    max-width: 56ch;
}

.tier-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.tier-price {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.06em;
    background: var(--accent-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tier-body {
    display: grid;
    gap: var(--space-md);
}

.tier-body p {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.tier-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-sm);
}

.tier-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.tier-list li::before {
    content: '→';
    color: var(--accent-solid);
    flex-shrink: 0;
    margin-top: 1px;
}

.tier-actions {
    margin-top: auto;
    padding-top: var(--space-lg);
}

.tier-actions .btn {
    width: 100%;
}

.donation-tiers .cta-band {
    margin-top: var(--space-2xl);
}

.cta-band-feedback {
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.10) 0%, rgba(var(--accent-rgb), 0.06) 45%, rgba(var(--bg-primary-rgb), 0.55) 100%);
    border-color: var(--accent-glow-soft);
}

.cta-band-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.cta-band-feedback .cta-band-text h3 {
    margin-bottom: var(--space-xs);
}

.cta-band-feedback .cta-band-text p {
    max-width: 68ch;
}

.faq {
    display: grid;
    gap: var(--space-md);
    max-width: 920px;
}

.faq-item {
    background: linear-gradient(135deg, rgba(var(--bg-secondary-rgb), 0.85) 0%, rgba(var(--bg-tertiary-rgb), 0.55) 100%);
    border: 1px solid var(--border-hover);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.faq-item[open] {
    border-color: var(--accent-glow-soft);
    box-shadow: var(--shadow-lg);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    cursor: pointer;
    padding: var(--space-lg) var(--space-xl);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
}

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

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent-glow-soft);
    outline-offset: 4px;
    border-radius: 12px;
}

.faq-item summary::after {
    content: '›';
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    color: var(--accent-solid);
    transform: rotate(90deg);
    transition: transform 180ms ease;
    flex-shrink: 0;
}

.faq-item[open] summary {
    border-bottom: 1px solid var(--border-color);
}

.faq-item[open] summary::after {
    transform: rotate(-90deg);
}

.faq-body {
    padding: var(--space-md) var(--space-xl) var(--space-xl);
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.home-next {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.step {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--accent-gradient);
    color: var(--text-on-accent);
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 16px;
    margin-bottom: var(--space-xs);
}

.step-content p {
    font-size: 14px;
    color: var(--text-muted);
}

.fineprint {
    margin-top: var(--space-xl);
    font-size: 13px;
    color: var(--text-muted);
}

.download-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-top: var(--space-lg);
}

.support-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

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

.support-item {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.support-dot {
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 999px;
    background: var(--accent-gradient);
    flex-shrink: 0;
}

.support-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.support-item-body {
    font-size: 13px;
    color: var(--text-muted);
}

.bullets {
    margin: 0;
    padding-left: 18px;
    color: var(--text-secondary);
}

.bullets li {
    margin-bottom: var(--space-sm);
}

.nav-links a[aria-current="page"],
.mobile-menu-links a[aria-current="page"] {
    color: var(--text-primary);
}

.nav-links a[aria-current="page"] {
    position: relative;
}

.nav-links a[aria-current="page"]::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: var(--accent-gradient);
}

/* Use Cases Section */
.use-cases {
    padding: var(--space-4xl) 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
}

@media (max-width: 768px) {
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

.use-case-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    min-width: 0;
}

.use-case-card:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
}

.use-case-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.use-case-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid rgba(var(--accent-rgb), 0.22);
    color: var(--accent-solid);
}

.use-case-icon svg {
    display: block;
    width: 18px;
    height: 18px;
}

/* Chat = circle; Agent = rounded square — both match card background */
.use-case-icon-chat {
    border-radius: 50%;
}

.use-case-icon-agent {
    border-radius: 10px;
}

.use-case-header h3 {
    font-size: 18px;
    margin: 0;
}

.use-case-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.use-case-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
}

.use-case-list li {
    font-size: 13px;
    color: var(--text-muted);
    padding: var(--space-xs) 0;
    padding-left: var(--space-md);
    border-left: 2px solid var(--border-color);
    margin-bottom: var(--space-xs);
}

.use-case-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-solid);
    padding: var(--space-xs) var(--space-sm);
    background: rgba(var(--accent-rgb), 0.1);
    border: 1px solid var(--accent-glow-soft);
    border-radius: 6px;
    display: inline-block;
    transition: var(--transition);
}

.use-case-tag:hover {
    background: rgba(var(--accent-rgb), 0.14);
    border-color: rgba(var(--accent-rgb), 0.28);
}

/* Extensions Section */
.extensions {
    padding: var(--space-4xl) 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.extensions-content {
    max-width: 1100px;
    margin: 0 auto;
}

.extensions-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

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

.extensions-copy {
    min-width: 0;
}

.extensions-head {
    margin-bottom: var(--space-xl);
}

.extensions-head h2 {
    margin-bottom: var(--space-sm);
}

.extensions-head p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.extensions-copy p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

.extensions-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.extensions-bullets li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--text-secondary);
    min-width: 0;
    overflow-wrap: anywhere;
}

.extensions-bullets li::before {
    content: '→';
    color: var(--accent-solid);
}

.extensions-cards {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
}

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

.extensions-card-wide {
    grid-column: 1 / -1;
}

.extensions-card {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    min-width: 0;
    transition: var(--transition);
}

.extensions-card-wip {
    border-style: dashed;
    border-color: rgba(var(--accent-rgb), 0.22);
}

.extensions-card-wip .extensions-card-icon {
    opacity: 0.75;
}

.card-status {
    display: inline-block;
    margin-bottom: var(--space-sm);
    padding-left: var(--space-sm);
    border-left: 2px solid rgba(var(--accent-rgb), 0.5);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--accent-solid);
}

.extensions-card:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
}

.extensions-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--accent-glow-softer);
    border: 1px solid var(--accent-glow-soft);
    color: var(--accent-solid);
    margin-bottom: var(--space-md);
}

.extensions-card h3 {
    font-size: 16px;
    margin-bottom: var(--space-sm);
}

.extensions-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0;
}

.extensions-note {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 14px;
    color: var(--accent-solid);
    padding: var(--space-md);
    background: var(--accent-glow-softer);
    border-radius: 8px;
    border-left: 3px solid var(--accent-solid);
    max-width: 100%;
    overflow-wrap: anywhere;
    margin-top: var(--space-xl);
}

.extensions-note .note-icon {
    font-weight: 600;
}

/* Extensions page — library listing, sort/filter, cards (future: upload with title, description, 2–3 images, file, GitHub link) */
.ext-listing-section {
    padding-top: var(--space-2xl);
}

.ext-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.ext-toolbar-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-right: var(--space-xs);
}

.ext-sort,
.ext-filter {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ext-control-shell {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(var(--bg-secondary-rgb), 0.92) 0%, rgba(var(--bg-tertiary-rgb), 0.82) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 8px 18px rgba(0, 0, 0, 0.16);
}

.ext-result-count {
    margin-left: auto;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.ext-grid-heading {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 var(--space-sm);
    letter-spacing: 0.02em;
}

.ext-grid-intro {
    margin: 0 0 var(--space-lg);
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.6;
    max-width: 62ch;
}

[hidden] {
    display: none !important;
}

.ext-loading,
.ext-empty {
    margin: 0 0 var(--space-xl);
    padding: var(--space-2xl);
    text-align: center;
    font-size: 15px;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.ext-pill {
    padding: 0 14px;
    min-height: 32px;
    box-sizing: border-box;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-sans);
}

.ext-pill:hover {
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.ext-pill.active,
.ext-pill[aria-pressed="true"] {
    color: var(--bg-primary);
    background: var(--accent);
    border-color: rgba(var(--accent-rgb), 0.38);
}

.ext-pill:focus-visible {
    outline: 2px solid var(--accent-solid);
    outline-offset: 2px;
}

.ext-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.ext-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(var(--bg-tertiary-rgb), 0.75) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.ext-card:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
}

.ext-card:focus-within {
    border-color: var(--accent-glow-soft);
    box-shadow: 0 0 0 1px var(--accent-glow-soft);
}

.ext-card-images {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-md);
    background: rgba(var(--bg-primary-rgb), 0.4);
    border-bottom: 1px solid var(--border-color);
    min-height: 120px;
    align-items: stretch;
}

.ext-card-img-slot {
    flex: 1;
    min-height: 88px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.ext-card-img-slot img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ext-card-img-slot-lg {
    flex: 1;
}

.ext-card-img-slot-sm {
    flex: 0 0 60px;
    min-width: 60px;
}

.ext-card-guide {
    border-color: rgba(var(--accent-rgb), 0.28);
}

.ext-image-missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-height: inherit;
    padding: var(--space-sm);
    text-align: center;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
}

.ext-image-missing svg {
    width: 22px;
    height: 22px;
    opacity: 0.2;
    flex-shrink: 0;
}

.ext-card-img-slot-sm .ext-image-missing {
    font-size: 9px;
    gap: 4px;
    padding: 4px;
}

.ext-card-img-slot-sm .ext-image-missing svg {
    width: 14px;
    height: 14px;
}

.ext-card-img-placeholder {
    flex: 1;
    min-height: 88px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.ext-card-img-placeholder:first-child {
    position: relative;
}

.ext-card-img-placeholder:first-child::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E") center no-repeat;
    background-size: 24px 24px;
    opacity: 0.18;
    pointer-events: none;
}

.ext-card-img-placeholder-sm {
    flex: 0 0 60px;
    min-width: 60px;
    min-height: 88px;
}

.ext-card-body {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
    min-width: 0;
}

.ext-card-title {
    font-family: var(--font-sans);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.ext-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ext-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-xs);
    font-size: 12px;
    color: var(--text-muted);
}

.ext-card-meta-leading {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ext-card-author {
    font-style: italic;
}

.ext-card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-secondary);
    font-weight: 600;
}

.ext-card-rating-value {
    letter-spacing: 0.01em;
}

.ext-card-rating-muted {
    color: var(--text-muted);
    font-weight: 500;
}

.ext-rating-star {
    color: var(--accent-solid);
    line-height: 1;
}

.ext-card-github {
    color: var(--accent-solid);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.ext-card-github:hover {
    color: var(--accent-hover-solid);
    text-decoration: underline;
}

.ext-card-github:focus-visible {
    outline: 2px solid var(--accent-solid);
    outline-offset: 2px;
    border-radius: 2px;
}

.ext-card-external,
.ext-btn-external {
    opacity: 0.85;
    font-size: 0.9em;
    margin-left: 2px;
}

.ext-card-actions {
    margin-top: var(--space-sm);
    padding-top: var(--space-xs);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.ext-card-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 38px;
    border-radius: 10px;
}

.ext-card-actions .btn .ext-btn-external {
    margin-left: 4px;
}

.ext-upload-cta {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0.04) 100%);
    border: 1px solid var(--accent-glow-soft);
    border-radius: 14px;
}

.ext-upload-cta-inner {
    max-width: 640px;
    position: relative;
}

.ext-upload-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.ext-repo-tree {
    margin: 0 0 var(--space-lg);
    padding: var(--space-md) var(--space-lg);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow-x: auto;
}

.ext-repo-tree code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre;
}

.ext-upload-cta-inner code,
.ext-detail-panel code,
.page-lede code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

.ext-upload-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-solid);
    background: rgba(var(--accent-rgb), 0.12);
    border: 1px solid var(--accent-glow-soft);
    border-radius: 6px;
    margin-bottom: var(--space-md);
}

.ext-upload-cta-inner h3 {
    font-size: 18px;
    margin: 0 0 var(--space-sm);
}

.ext-upload-cta-inner p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0 0 var(--space-lg);
}

.ext-upload-cta-inner .btn {
    margin-top: 0;
}

.ext-upload-cta-actions .btn {
    margin-top: 0;
}


.ext-detail-section {
    padding: var(--space-xl) 0 var(--space-4xl);
}

.ext-detail-back {
    display: inline-block;
    margin-bottom: var(--space-lg);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.ext-detail-back:hover {
    color: var(--accent-solid);
}

.ext-detail-layout {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    grid-template-areas:
        "header gallery"
        "body gallery";
    gap: var(--space-2xl) var(--space-3xl);
    align-items: start;
}

.ext-detail-header {
    grid-area: header;
}

.ext-detail-header .hero-badge {
    margin-bottom: var(--space-lg);
}

.ext-detail-header h1 {
    margin: 0 0 var(--space-md);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.15;
    letter-spacing: 0.02em;
}

.ext-detail-summary {
    margin: 0 0 var(--space-xl);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ext-detail-facts {
    display: grid;
    gap: var(--space-md);
    margin: 0 0 var(--space-xl);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.ext-detail-fact {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: var(--space-sm);
    align-items: baseline;
}

.ext-detail-fact dt {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ext-detail-fact dd {
    margin: 0;
    font-size: 14px;
    color: var(--text-primary);
}

.ext-detail-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.ext-detail-actions .btn {
    min-height: 44px;
    width: 100%;
    justify-content: center;
}

.ext-detail-gallery {
    grid-area: gallery;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    min-width: 0;
}

.ext-detail-body {
    grid-area: body;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.ext-detail-panel {
    padding: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
}

.ext-detail-panel h2 {
    margin: 0 0 var(--space-md);
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ext-detail-overview {
    margin: 0 0 var(--space-lg);
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.ext-detail-highlights {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.ext-detail-highlights li {
    position: relative;
    padding-left: var(--space-md);
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.ext-detail-highlights li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-solid);
}

.ext-detail-repo-intro {
    margin: 0 0 var(--space-md);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ext-detail-repo-rules {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.ext-detail-repo-rules li {
    position: relative;
    padding-left: var(--space-md);
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.ext-detail-repo-rules li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-solid);
}

.ext-detail-repo-panel .ext-repo-tree {
    margin: 0 0 var(--space-lg);
}

.ext-detail-repo-submit,
.ext-detail-repo-future {
    margin: var(--space-lg) 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ext-detail-repo-submit a,
.ext-upload-cta-inner p a {
    color: var(--accent-solid);
    font-weight: 500;
    text-decoration: none;
}

.ext-detail-repo-submit a:hover,
.ext-upload-cta-inner p a:hover {
    text-decoration: underline;
}

.ext-upload-cta-actions .btn-primary {
    color: #fff;
    text-decoration: none;
}

.ext-detail-repo-future {
    margin-top: var(--space-sm);
    color: var(--text-muted);
    font-size: 13px;
}

.ext-detail-install-intro {
    margin: 0 0 var(--space-lg);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.ext-detail-install-meta {
    display: grid;
    gap: var(--space-md);
    margin: 0 0 var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-color);
}

.ext-detail-install-meta-item dt {
    margin: 0 0 var(--space-xs);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.ext-detail-install-meta-item dd {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.ext-detail-preview {
    margin: 0;
}

.ext-detail-preview-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 240px;
    border-radius: 14px;
    border: 1px solid var(--border-hover);
    background: var(--bg-card);
    overflow: hidden;
}

.ext-detail-preview-featured .ext-detail-preview-frame {
    aspect-ratio: 16 / 9;
    min-height: 320px;
}

.ext-detail-preview-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ext-detail-preview-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
}

.ext-detail-preview-frame .ext-image-missing {
    min-height: 240px;
    font-size: 13px;
}

.ext-detail-preview-featured .ext-detail-preview-frame .ext-image-missing {
    min-height: 320px;
}

.ext-detail-preview-placeholder svg {
    width: 40px;
    height: 40px;
    opacity: 0.2;
}

.ext-detail-preview-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.ext-detail-preview-caption {
    margin-top: var(--space-sm);
    font-size: 14px;
    color: var(--text-muted);
}

.ext-detail-steps {
    margin: 0;
    padding-left: 1.35rem;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.75;
}

.ext-detail-steps li + li {
    margin-top: var(--space-sm);
}

.ext-detail-steps li::marker {
    color: var(--accent-solid);
    font-weight: 600;
}

@media (max-width: 1024px) {
    .ext-detail-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "gallery"
            "body";
        gap: var(--space-2xl);
    }

    .ext-detail-preview-featured .ext-detail-preview-frame {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .ext-detail-fact {
        grid-template-columns: 76px 1fr;
    }

    .ext-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .ext-control-shell {
        width: 100%;
    }
    .ext-result-count {
        margin-left: 0;
        padding-top: var(--space-xs);
        border-top: 1px solid var(--border-color);
        width: 100%;
        margin-top: var(--space-sm);
    }
    .ext-grid-heading {
        margin-bottom: var(--space-md);
    }
    .ext-grid {
        grid-template-columns: 1fr;
    }
    .ext-card:hover {
        transform: translateY(-1px);
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }
    
    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-large {
        grid-column: span 2;
    }

    .feature-wide {
        grid-column: span 2;
    }
    
    .feature-list {
        grid-template-columns: 1fr;
    }

    .extensions-layout {
        grid-template-columns: 1fr;
    }

    .extensions-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero {
        min-height: auto;
        padding: calc(64px + var(--space-3xl)) 0 var(--space-3xl);
    }
 
    .hero-layout {
        gap: var(--space-xl);
    }
     
    .hero-content {
        padding-top: 0;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-large {
        grid-column: span 1;
    }

    .feature-wide {
        grid-column: span 1;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .two-col {
        grid-template-columns: 1fr;
    }
    
    .support-grid {
        grid-template-columns: 1fr;
    }
    
    .callout-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cta-band-actions {
        width: 100%;
    }
    
    .cta-band-actions .btn {
        width: 100%;
    }
    
    .trust-strip {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-xl);
    }
    
    .footer-links {
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .container,
    .container-wide,
    .nav-container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .download-info {
        flex-direction: column;
        align-items: stretch;
    }

    .ext-pill {
        flex: 1 1 calc(50% - 6px);
        min-width: 0;
    }

    .ext-card-img-slot-sm {
        flex: 0 0 48px;
        min-width: 48px;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeIn 0.6s ease-out;
}

.js-motion-ready .hero-content {
    animation: none;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-hover);
}

/* Selection */
::selection {
    background: rgba(var(--accent-rgb), 0.35);
    color: var(--text-primary);
}

/* =============================================================================
   Sci-fi luxury refinement — controlled purple, solid surfaces, quiet motion
   ============================================================================= */

.page-hero-content h1,
.hero-title {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.section-header h2,
.extensions-head h2 {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.section-header p {
    font-size: 17px;
    color: var(--text-muted);
}

.page-lede {
    font-size: 17px;
    max-width: 42rem;
}

.use-case-tag {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--text-muted);
    padding: 0 0 0 var(--space-sm);
    background: transparent;
    border: none;
    border-left: 2px solid rgba(var(--accent-rgb), 0.45);
    border-radius: 0;
}

.use-case-tag:hover {
    color: var(--text-secondary);
    background: transparent;
}

.use-case-list li {
    border-left-color: rgba(var(--accent-rgb), 0.25);
}

[data-reveal] {
    opacity: 1;
    transform: none;
}

.cta-band {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.trust-item:hover {
    border-color: rgba(var(--accent-rgb), 0.22);
    box-shadow: var(--shadow-sm);
}

.card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.card:hover {
    border-color: rgba(var(--accent-rgb), 0.2);
}

.download-meta {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.info-item {
    color: var(--text-secondary);
}

.info-item::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-solid);
    flex-shrink: 0;
}

.hero-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: var(--space-lg);
}

.ext-grid-heading {
    font-family: var(--font-display);
    letter-spacing: 0.04em;
}

.ext-upload-badge {
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: 0.04em;
}

.callout-title {
    font-family: var(--font-sans);
    text-transform: none;
    letter-spacing: 0.04em;
    font-size: 14px;
    font-weight: 600;
}

.footer-column h4 {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Mobile polish — containers, alignment, and full-width controls only */
@media (max-width: 768px) {
    .container,
    .container-wide,
    .nav-container {
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    .mobile-menu {
        padding: var(--space-md) var(--space-md) var(--space-lg);
    }

    .page-hero {
        padding-top: calc(64px + var(--space-2xl));
        padding-bottom: var(--space-2xl);
    }

    .page-section {
        padding: var(--space-3xl) 0;
    }

    .page-hero-content h1 {
        font-size: clamp(1.6rem, 7vw, 2.15rem);
    }

    .hero-title {
        font-size: clamp(1.65rem, 8vw, 2.25rem);
        margin-bottom: var(--space-md);
    }

    .hero-description,
    .page-lede {
        font-size: 16px;
        line-height: 1.65;
        margin-bottom: var(--space-lg);
    }

    .hero-media {
        padding-bottom: 0;
        margin-top: var(--space-sm);
    }

    .device {
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .page-hero-content .hero-cta,
    .hero-cta {
        width: 100%;
        align-items: stretch;
    }

    .hero-cta-donate .btn {
        width: 100%;
        min-width: 0;
        max-width: none;
    }

    .hero-cta .btn-lg,
    .page-hero-content .btn-lg {
        width: 100%;
        min-width: 0;
    }

    .download-meta {
        flex-direction: column;
        align-items: stretch;
        gap: var(--space-sm);
        margin-top: var(--space-md);
    }

    .download-meta .info-item {
        width: 100%;
    }

    .callout-body {
        padding: var(--space-lg);
    }

    .cta-band {
        align-items: stretch;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }

    .cta-band-text {
        width: 100%;
    }

    .cta-band-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .cta-band-actions .btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .ext-sort,
    .ext-filter {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: var(--space-xs);
    }

    .ext-control-shell {
        width: 100%;
        justify-content: center;
    }

    .ext-upload-cta {
        padding: var(--space-lg);
    }

    .ext-upload-cta-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .ext-upload-cta-actions .btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }

    .ext-detail-section {
        padding: var(--space-lg) 0 var(--space-3xl);
    }

    .ext-detail-panel {
        padding: var(--space-lg);
    }

    .ext-detail-fact {
        grid-template-columns: 72px 1fr;
    }

    .tier-card {
        padding: var(--space-lg);
    }

    .tier-badge {
        right: var(--space-md);
        max-width: calc(100% - 2rem);
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }

    .step,
    .support-item,
    .card {
        padding: var(--space-lg);
    }

    .section-header.left {
        margin-bottom: var(--space-2xl);
    }

    .faq-item summary {
        padding: var(--space-md) var(--space-lg);
    }

    .faq-body {
        padding: var(--space-sm) var(--space-lg) var(--space-lg);
    }

    .home-next {
        padding: var(--space-3xl) 0;
    }

    .footer-content {
        align-items: flex-start;
    }

    .footer-brand,
    .footer-links {
        width: 100%;
    }

    .philosophy,
    .features,
    .use-cases,
    .extensions {
        padding: var(--space-3xl) 0;
    }
}
