/* =============================================
   STUDIO NOW — Design System
   Based on renderNOW / RenderFlow design tokens
   ============================================= */

/* ---- DESIGN TOKENS ---- */
:root {
    /* Brand — primary yellow from studioNOW logo (#ffbc00) */
    --brand:       #ffbc00;
    --brand-hover: #e5a800;
    --brand-light: rgba(255, 188, 0, 0.10);
    --brand-glow:  rgba(255, 188, 0, 0.22);
    --brand-text:  #c99700; /* darker yellow for text on light bg */
    --pink:        #ff1a8c;
    --pink-hover:  #e6167e;
    --amber:       #f59e0b;

    /* Light mode (default) */
    --bg:            #f2f0e4;
    --bg-alt:        #faf8f0;
    --surface:       rgba(255, 255, 255, 0.4);
    --surface-solid: #f2f0e4;
    --surface-hover: rgba(255, 255, 255, 0.6);
    --border:        rgba(255, 188, 0, 0.10);
    --border-glass:  rgba(0, 0, 0, 0.15);
    --text:          #1a1a0a;
    --text-muted:    #6b6545;
    --text-faint:    #766c4e;  /* AA-compliant 4.6:1 on #f2f0e4 (was #a09878 / 2.5:1) */

    /* Spacing (8px base) */
    --space-xs:  4px;
    --space-sm:  8px;
    --space-md:  16px;
    --space-lg:  24px;
    --space-xl:  32px;
    --space-2xl: 56px;
    --space-3xl: 96px;
    --space-4xl: 128px;

    /* Shadows — warm yellow tint */
    --shadow-sm:  0 1px 3px rgba(0,0,0,0.04);
    --shadow-md:  0 4px 16px rgba(255,188,0,0.08);
    --shadow-lg:  0 12px 40px rgba(255,188,0,0.10);
    --shadow-xl:  0 24px 60px rgba(255,188,0,0.12);
    --shadow-glow:0 0 60px rgba(255,188,0,0.15);

    /* Radius */
    --radius-sm:   8px;
    --radius-md:   14px;
    --radius-lg:   20px;
    --radius-xl:   28px;
    --radius-full: 999px;

    /* Header */
    --header-h: 72px;

    /* Easing */
    --ease:        cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography — matching renderNOW exactly */
    --font-display: "neue-haas-grotesk-display", "Space Grotesk", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:    "neue-haas-grotesk-display", "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono:    'SF Mono', 'Fira Code', 'Consolas', monospace;

    /* ── DS Typography — Type Scale (Web context) ── */
    --text-micro:    0.6875rem;                       /* 11px — meta, mono */
    --text-caption:  0.75rem;                         /* 12px — badges, eyebrows */
    --text-small:    0.875rem;                        /* 14px — labels, buttons */
    --text-body:     1rem;                            /* 16px — body */
    --text-subhead:  1.25rem;                         /* 20px — card titles */
    --text-heading:  clamp(1.5rem, 3vw, 2rem);        /* 24–32px — section h2 */
    --text-display:  clamp(2rem, 4vw, 3rem);          /* 32–48px — stats */
    --text-hero:     clamp(2.5rem, 6vw, 4.5rem);      /* 40–72px — hero h1 */

    /* ── DS Typography — Letter Spacing ── */
    --ls-tight:  -0.02em;   /* bold 18px+ (headings) */
    --ls-normal:  0.01em;   /* body */
    --ls-open:    0.03em;   /* small 10–12px, buttons */
    --ls-caps:    0.08em;   /* uppercase labels */

    /* ── DS Typography — Font Weights (3 only) ── */
    --fw-regular: 400;
    --fw-bold:    700;
    --fw-black:   900;
}

/* Dark mode — class-based */
.dark {
    --bg:            #0e0c06;
    --bg-alt:        #161208;
    --surface:       rgba(24, 20, 8, 0.72);
    --surface-solid: #1a1608;
    --surface-hover: rgba(24, 20, 8, 0.88);
    --border:        rgba(255,255,255,0.06);
    --border-glass:  rgba(255,255,255,0.1);
    --text:          #f8f4e8;
    --text-muted:    #a8a088;
    --text-faint:    #8c8368;  /* AA-compliant 5.1:1 on #0e0c06 (was #706850 / 3.5:1) */
    --brand-text:    #ffbc00; /* full yellow is readable on dark bg */

    --shadow-sm:  0 1px 3px rgba(0,0,0,0.3);
    --shadow-md:  0 4px 16px rgba(0,0,0,0.4);
    --shadow-lg:  0 12px 40px rgba(0,0,0,0.5);
    --shadow-xl:  0 24px 60px rgba(0,0,0,0.6);
    --shadow-glow:0 0 60px rgba(255,188,0,0.2);
}

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

#page-wrap {
    overflow-x: clip;
    position: relative;
    width: 100%;
}

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

body {
    font-family: var(--font-body);
    font-size: var(--text-body);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    letter-spacing: var(--ls-normal);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s var(--ease), color 0.4s var(--ease);
    overflow-x: clip;
}

a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}

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

.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.sr-only-focusable:focus,
.sr-only-focusable:focus-visible {
    position: fixed; top: 8px; left: 8px; z-index: 9999;
    width: auto; height: auto; padding: 12px 24px;
    clip: auto; white-space: normal; overflow: visible; margin: 0;
    background: var(--brand); color: #fff; border-radius: var(--radius-sm);
    font-weight: var(--fw-bold); text-decoration: none;
}

/* ---- LAYOUT ---- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

@media (min-width: 1440px) {
    .container { max-width: 1320px; }
}

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

.section-fade-top {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg), transparent);
    pointer-events: none;
    z-index: 1;
}

.section-apps { background: var(--bg); }
.section-featured { background: var(--bg-alt); overflow: hidden; position: relative; }
.section-ecosystem { background: var(--bg-alt); position: relative; overflow-x: clip; overflow-y: visible; }
.section-ecosystem > .container { position: relative; z-index: 2; }

.sparkles-deco {
    position: absolute;
    right: -30%;
    top: -40%;
    width: 2000px;
    height: auto;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}
.section-roadmap { background: var(--bg-alt); }
.section-about { background: var(--bg); }

/* Fade-top: gradient from PREVIOUS section's bg into current */
.section-apps .section-fade-top { height: 200px; background: linear-gradient(to bottom, var(--bg), transparent); }
.section-featured .section-fade-top { background: linear-gradient(to bottom, var(--bg), transparent); }
.section-ecosystem .section-fade-top { display: none; }
.section-roadmap .section-fade-top { background: linear-gradient(to bottom, var(--bg-alt), transparent); }
.section-about .section-fade-top { background: linear-gradient(to bottom, var(--bg-alt), transparent); }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    color: var(--text);
}

.section-eyebrow {
    display: inline-block;
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--brand-text);
    margin-bottom: var(--space-sm);
}

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

.section-header h2 {
    font-size: var(--text-heading);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: var(--text-subhead);
    color: var(--text-muted);
    max-width: 55ch;
    margin-inline: auto;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand) 0%, var(--amber) 50%, var(--pink) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-brand { color: var(--brand-text); }
.text-success { color: #10b981; }

.brand-name {
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-tight);
}
.brand-name .brand-studio {
    font-style: normal;
}
.brand-name .brand-now {
    font-style: italic;
    background: linear-gradient(135deg, #ffbc00 0%, #ff1a8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.brand-name .brand-star {
    color: #ff1a8c;
    font-style: normal;
    -webkit-text-fill-color: #ff1a8c;
}

/* ---- BUTTONS (matching renderNOW) ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-open);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s var(--ease);
    text-decoration: none;
    white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.btn [data-lucide] { width: 16px; height: 16px; }

.btn-primary {
    background: var(--pink);
    color: #fff;
    border-color: var(--pink);
}
.btn-primary:hover {
    background: #e6167e;
    border-color: #e6167e;
    transform: translateY(-2px);
}


.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    border-color: var(--brand);
    color: var(--brand);
    transform: translateY(-2px);
}

.btn-glass {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--border-glass);
    color: var(--text);
}
.btn-glass:hover {
    border-color: var(--brand-glow);
    background: var(--surface-solid);
    transform: translateY(-2px);
}

.btn-white {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}
.btn-white:hover {
    background: #f0f4ff;
    transform: translateY(-2px);
}

.btn-ghost-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn-ghost-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    transform: translateY(-2px);
}

.btn-dark {
    background: #1a1a0a;
    color: #ffbc00;
    border-color: #1a1a0a;
}
.btn-dark:hover {
    background: #2a2a1a;
    transform: translateY(-2px);
}

.btn-ghost-dark {
    background: transparent;
    color: #1a1a0a;
    border-color: rgba(26,26,10,0.3);
}
.btn-ghost-dark:hover {
    background: rgba(26,26,10,0.08);
    border-color: rgba(26,26,10,0.5);
    transform: translateY(-2px);
}

.btn-sm  { padding: 7px 16px; font-size: var(--text-small); }
.btn-lg  { padding: 14px 32px; font-size: var(--text-body); }
.btn-full { width: 100%; padding: 14px 24px; }

.btn:disabled, .btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* ---- HEADER ---- */
#header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--header-h);
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}
#header.scrolled,
#header.peek {
    transform: translateY(0);
    box-shadow: var(--shadow-lg);
}
.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    padding: 0 var(--space-lg);
    gap: var(--space-xl);
}
.logo-link {
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
    text-decoration: none;
}
.logo-link:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 4px; }

.header-logo-svg {
    height: 40px;
    width: auto;
    position: relative;
    top: -2px;
}

#main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-left: auto;
}
#main-nav a {
    font-size: var(--text-small);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-open);
    color: var(--text-muted);
    transition: color 0.2s var(--ease);
    position: relative;
}
#main-nav a:hover { color: var(--text); }
#main-nav a.active { color: var(--brand-text); }
#main-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 3px; }

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

/* ---- THEME BUTTON (inline in header-actions) ---- */
.theme-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s var(--ease);
}
.theme-btn:hover { color: var(--text); border-color: var(--brand); background: var(--brand-light); }
.theme-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.theme-btn [data-lucide] { width: 18px; height: 18px; }

/* ---- MOBILE TOGGLE ---- */
.mobile-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    cursor: pointer;
}
.mobile-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.mobile-btn [data-lucide] { width: 20px; height: 20px; }

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: var(--space-4xl) var(--space-lg);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(14, 12, 6, 0.9) 80%);
    background: radial-gradient(ellipse at center, transparent 0%, color-mix(in srgb, var(--bg) 90%, transparent) 80%);
}

.hero-particles {
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 4;
    text-align: center;
    max-width: 960px;
}

/* Hero logo replaces the badge */
.hero-logo {
    margin-bottom: var(--space-4xl);
    margin-top: calc(var(--space-4xl) * -1);
    animation: levitate 6s ease-in-out infinite;
}

@keyframes levitate {
    0%, 100% { translate: 0 0; rotate: -0.5deg; }
    50% { translate: 4px -14px; rotate: 0.8deg; }
}

.hero-logo-svg {
    height: clamp(115px, 16vw, 180px);
    width: auto;
    max-width: 100%;
    transform: translateX(15px);
}

.logo-text-path {
    fill: var(--text);
    transition: fill 0.4s var(--ease);
}

.header-logo-svg .logo-yellow {
    fill: url(#logo-grad-header);
}

.hero-logo-svg .logo-yellow {
    fill: url(#logo-grad-hero);
}

.logo-pink {
    fill: #ff1a8c;
}

.sparkle {
    transform-origin: center;
    transform-box: fill-box;
}

.sparkle-1 {
    animation: sparklePos1 7s ease-in-out infinite, sparkleRot1 18s ease-in-out infinite;
}

.sparkle-2 {
    animation: sparklePos2 9s ease-in-out infinite, sparkleRot2 22s ease-in-out infinite;
}

.sparkle-3 {
    animation: sparklePos3 6s ease-in-out infinite, sparkleRot3 15s ease-in-out infinite;
}

@keyframes sparklePos1 {
    0%, 100% { translate: 0 0; }
    50% { translate: 5px -7px; }
}
@keyframes sparkleRot1 {
    0%, 100% { rotate: -3deg; }
    50% { rotate: 8deg; }
}

@keyframes sparklePos2 {
    0%, 100% { translate: 0 0; }
    50% { translate: -6px -5px; }
}
@keyframes sparkleRot2 {
    0%, 100% { rotate: 3deg; }
    50% { rotate: -7deg; }
}

@keyframes sparklePos3 {
    0%, 100% { translate: 0 0; }
    50% { translate: 4px 4px; }
}
@keyframes sparkleRot3 {
    0%, 100% { rotate: -2deg; }
    50% { rotate: 6deg; }
}

.hero-title {
    font-size: var(--text-hero);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-tight);
    line-height: 1.08;
    margin-bottom: var(--space-lg);
}

.hero-subtitle {
    font-size: var(--text-subhead);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-tight);
}

.hero-stat-label {
    font-size: var(--text-caption);
    color: var(--text-muted);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
}


.hero-stat-sep {
    width: 1px;
    height: 32px;
    background: var(--border-glass);
}

.hero-scroll-hint {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-faint);
    animation: scrollBounce 2s ease-in-out infinite;
    z-index: 2;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
.hero-scroll-hint:hover {
    color: var(--brand);
}

.hero-scroll-hint i, .hero-scroll-hint svg { width: 24px; height: 24px; }

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

/* ---- APP GRID ---- */
.app-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    border: 2px solid var(--border-glass);
    background: var(--surface);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-family: var(--font-display);
    font-size: var(--text-small);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-open);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s var(--ease);
}

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

.filter-btn.active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

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

/* ═══════ HUB-STYLE CARD (NEW — from hub-mockup) ═══════ */
.app-card.app-card-v2 {
    position: relative;
    background: var(--bg-alt);
    border: none;
    border-top: 3px solid var(--card-accent, var(--border-glass));
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: default;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
.app-card.app-card-v2 > * {
    position: relative;
    z-index: 1;
}
.app-card.app-card-v2:hover {
    transform: none;
    box-shadow: none;
    background-image: none;
    border-color: transparent;
    border-top-color: var(--card-accent, var(--border-glass));
}

/* Accent gradient wash — reveals top-down on hover */
.app-card.app-card-v2::before {
    content: '';
    position: absolute;
    top: -3px; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(to bottom, color-mix(in srgb, var(--card-accent, var(--border-glass)) 15%, transparent), transparent 85%);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s var(--ease);
}
.app-card.app-card-v2:hover::before { clip-path: inset(0 0 0 0); }

/* Accent border reveal — top-down on hover */
.app-card.app-card-v2::after {
    content: '';
    position: absolute;
    top: -3px; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    pointer-events: none;
    padding: 2px;
    background: linear-gradient(to bottom, var(--card-accent, var(--border-glass)), transparent 85%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.4s var(--ease);
    z-index: 2;
}
.app-card.app-card-v2:hover::after { clip-path: inset(0 0 0 0); }

.app-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-md);
    gap: var(--space-md);
}

.app-icon-v2 {
    width: 68px;
    height: 68px;
    border-radius: 17px;
    background: var(--bg-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.app-icon-v2 img,
.app-icon-v2 svg {
    width: 100%;
    height: 100%;
    border-radius: 17px;
    object-fit: contain;
}
.app-icon-v2-placeholder {
    background: var(--brand-light);
    color: var(--card-accent, var(--brand-text));
}
.app-icon-v2-placeholder i,
.app-icon-v2-placeholder svg,
.app-icon-v2-placeholder [data-lucide] {
    width: 32px !important;
    height: 32px !important;
    opacity: 0.7;
    border-radius: 0;
}

.app-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    white-space: nowrap;
    border: none;
}
.app-badge.badge-available { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.app-badge.badge-coming    { background: rgba(255, 188, 0, 0.12);  color: var(--brand-text); }
.app-badge.badge-concept   { background: rgba(148, 152, 179, 0.14); color: var(--text-faint); }

.app-desc {
    font-size: var(--text-small);
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: var(--space-md);
    flex: 1;
}

.app-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: var(--space-md);
}
.app-tags .app-version { margin-right: auto; }

.app-version {
    font-family: var(--font-mono);
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    color: var(--card-accent, var(--text-faint));
    letter-spacing: var(--ls-open);
}

.app-tag {
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    letter-spacing: var(--ls-open);
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
    margin-bottom: -8px;
    gap: var(--space-md);
}
.app-logo {
    display: flex;
    align-items: center;
    color: var(--text);
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}
.app-logo svg {
    height: 30px;
    width: auto;
    max-width: 100%;
}

.app-logo-text {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    color: var(--text);
    line-height: 1;
    white-space: nowrap;
}
.app-logo-text-accent {
    color: var(--card-accent, var(--brand-text));
}

/* ═══════ OLD CARD (keep for non-refactored cards) ═══════ */
.app-card {
    position: relative;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                background-image 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    overflow: hidden;
}

.app-card { cursor: pointer; }
.app-card:hover {

    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
    background-image: linear-gradient(to top, rgba(255,188,0,0.15) 0%, transparent 60%);
}

.app-card-featured {
    border-color: var(--pink);
    background: rgba(255, 26, 140, 0.08);
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 26, 140, 0.15);
}

.app-card-featured::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,26,140,0.1) 0%, rgba(255,26,140,0.03) 100%);
    pointer-events: none;
}

.app-card-featured:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    background-image: linear-gradient(to top, rgba(255,26,140,0.15) 0%, transparent 60%);
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

.app-card-featured::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: conic-gradient(from var(--border-angle), #ffbc00, #ff1a8c, #ffbc00);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
    animation: border-spin 3s linear infinite;
    animation-play-state: paused;
}

@keyframes border-spin {
    to { --border-angle: 360deg; }
}

.app-card-featured:hover::after {
    opacity: 1;
    animation-play-state: running;
}

.app-card:not(.app-card-v2)[data-status="coming-soon"] {
    border-color: var(--brand);
}

.app-card.hidden {
    display: none;
}

.app-card-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
}

.badge-available {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

.badge-coming {
    background: rgba(255, 188, 0, 0.12);
    color: var(--brand-text);
}

.badge-concept {
    background: rgba(148, 152, 179, 0.12);
    color: var(--text-faint);
}

.app-card-icon {
    width: 72px;
    height: 72px;
    margin-bottom: var(--space-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

.app-card-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.app-card-icon-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-light);
    border: 1.5px solid var(--border);
}

.placeholder-icon {
    width: 32px;
    height: 32px;
    color: var(--brand-text);
}

.app-card-body {
    flex: 1;
    margin-bottom: var(--space-md);
}

.app-card-title {
    font-family: var(--font-display);
    font-size: var(--text-subhead);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-sm);
}

.app-card-desc {
    font-size: var(--text-small);
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: var(--space-md);
}

.app-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag {
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    background: var(--brand-light);
    color: var(--brand-text);
    letter-spacing: var(--ls-open);
}

.app-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-md);
    border-top: 1px solid var(--border);
}

/* ---- DOWNLOAD DROPDOWN ---- */
.download-dropdown {
    position: relative;
}

.download-open {
    display: none;
    gap: var(--space-xs);
}

.download-dropdown.open .download-closed {
    display: none;
}

.download-dropdown.open .download-open {
    display: flex;
}

/* Chevron rotation on Get App button */
.download-toggle .chevron {
    width: 14px;
    height: 14px;
    transition: transform 180ms ease;
}
.download-dropdown.open .download-toggle .chevron {
    transform: rotate(180deg);
}

/* ---- DOWNLOAD MENU (popover variant) ---- */
.download-dropdown-menu {
    position: relative;
}
/* Popover variant keeps the trigger button visible when open */
.download-dropdown-menu.open .download-closed {
    display: block;
}
.download-dropdown-menu .download-menu {
    position: absolute;
    bottom: calc(100% + 10px);
    right: 0;
    min-width: 280px;
    padding: 10px;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: none;
    flex-direction: column;
    gap: 12px;
    z-index: 40;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 180ms ease, transform 180ms ease;
}
.download-dropdown-menu.open .download-menu {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.download-menu-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.download-menu-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 6px;
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--text-faint);
}
.download-menu-heading i {
    width: 12px;
    height: 12px;
}
.download-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    color: var(--text);
    text-decoration: none;
    transition: background 150ms ease;
    cursor: pointer;
}
.download-menu-item:hover,
.download-menu-item:focus-visible {
    background: var(--brand-light);
    outline: none;
}
.download-menu-item.is-disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.download-menu-item-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--brand-text);
}
.download-menu-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.download-menu-item-title {
    font-size: var(--text-small);
    font-weight: var(--fw-bold);
    color: var(--text);
    line-height: 1.2;
}
.download-menu-item-meta {
    font-size: var(--text-caption);
    color: var(--text-muted);
    font-family: var(--font-mono, inherit);
    letter-spacing: var(--ls-open);
}

/* Mobile: open downwards instead of upwards if card is near top */
@media (max-width: 640px) {
    .download-dropdown-menu .download-menu {
        right: auto;
        left: 0;
        min-width: 260px;
    }
}

.app-card-version {
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    color: var(--text-faint);
    font-family: var(--font-mono);
    letter-spacing: var(--ls-open);
}

/* ---- FEATURED SHOWCASE ---- */
.featured-showcase {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-2xl);
    position: relative;
    z-index: 1;
    align-items: center;
}

.featured-visual {
    position: relative;
}

.featured-screen {
    background: var(--surface-solid);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.screen-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.screen-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-glass);
}

.screen-dot:first-child { background: #ff5f57; }
.screen-dot:nth-child(2) { background: #ffbd2e; }
.screen-dot:nth-child(3) { background: #28c840; }

.screen-title {
    font-size: var(--text-caption);
    color: var(--text-faint);
    margin-left: auto;
    font-family: var(--font-mono);
}

.screen-body {
    display: flex;
    min-height: 280px;
}

.screen-sidebar {
    width: 52px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 12px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.screen-sidebar-item {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    transition: all 0.2s var(--ease);
}

.screen-sidebar-item i, .screen-sidebar-item svg { width: 18px; height: 18px; }

.screen-sidebar-item.active {
    background: var(--brand-light);
    color: var(--brand-text);
}

.screen-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.screen-card-row {
    display: flex;
    gap: 12px;
}

.screen-mini-card {
    flex: 1;
    padding: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.screen-mini-label {
    font-size: var(--text-caption);
    color: var(--text-faint);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-caps);
    text-transform: uppercase;
}

.screen-mini-value {
    font-family: var(--font-display);
    font-size: var(--text-heading);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-tight);
}

.screen-progress {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.screen-progress-bar {
    height: 100%;
    width: 68%;
    background: linear-gradient(90deg, var(--brand), var(--amber));
    border-radius: 4px;
    animation: progressPulse 3s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.screen-timeline {
    display: flex;
    gap: 8px;
    flex: 1;
    align-items: flex-end;
}

.screen-timeline-block {
    flex: 1;
    height: 40%;
    background: var(--border);
    border-radius: var(--radius-sm);
    opacity: 0.5;
}

.screen-timeline-block:nth-child(1) { height: 55%; }
.screen-timeline-block:nth-child(3) { height: 75%; }
.screen-timeline-block:nth-child(4) { height: 30%; }

.screen-timeline-block.active {
    background: linear-gradient(to top, var(--brand), var(--amber));
    opacity: 1;
}

.featured-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-lg);
}

.featured-highlight {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.featured-highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-text);
    flex-shrink: 0;
}

.featured-highlight-icon i, .featured-highlight-icon svg { width: 22px; height: 22px; }

.featured-highlight h4 {
    font-size: var(--text-subhead);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    margin-bottom: 4px;
}

.featured-highlight p {
    font-size: var(--text-small);
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- ECOSYSTEM ---- */
.ecosystem-hero {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 2;
    margin-bottom: var(--space-lg);
}

.ecosystem-compact {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
    position: relative;
    z-index: 2;
}

/* Hero cards — bigger padding, bigger icon */
.eco-card-hero {
    padding: var(--space-xl) !important;
}

.eco-card-hero h3 {
    font-size: var(--text-heading) !important;
    font-weight: var(--fw-black) !important;
    letter-spacing: var(--ls-tight) !important;
    margin-bottom: var(--space-md) !important;
}

.eco-card-hero p {
    font-size: var(--text-body) !important;
    line-height: 1.6 !important;
}

.eco-icon-hero {
    width: 64px !important;
    height: 64px !important;
    margin-bottom: var(--space-lg) !important;
}

.eco-icon-hero i, .eco-icon-hero svg {
    width: 28px !important;
    height: 28px !important;
}

/* Legacy — keep for back-compat / responsive reference */
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    position: relative;
    z-index: 2;
}

.eco-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                background-image 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.eco-card { cursor: pointer; }
.eco-card:hover {

    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
    background-image: linear-gradient(to top, rgba(255,188,0,0.15) 0%, transparent 60%);
}

.eco-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--brand-light), rgba(245,158,11,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-text);
    margin-bottom: var(--space-md);
}

.eco-icon i, .eco-icon svg { width: 22px; height: 22px; }

.eco-card h3 {
    font-size: var(--text-subhead);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-sm);
}

.eco-card p {
    font-size: var(--text-small);
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- ROADMAP ---- */
.roadmap-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--space-xl) 0;
}

.roadmap-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-glass);
    transform: translateX(-50%);
}

.roadmap-item {
    position: relative;
    display: flex;
    margin-bottom: var(--space-xl);
}

.roadmap-item[data-side="left"] {
    justify-content: flex-start;
    padding-right: calc(50% + 32px);
}

.roadmap-item[data-side="right"] {
    justify-content: flex-end;
    padding-left: calc(50% + 32px);
}

.roadmap-dot {
    position: absolute;
    left: 50%;
    top: 24px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--surface-solid);
    border: 3px solid var(--border-glass);
    transform: translateX(-50%);
    z-index: 2;
    transition: all 0.3s var(--ease);
}

.roadmap-dot.active {
    background: var(--brand);
    border-color: var(--brand);
    box-shadow: 0 0 0 6px var(--brand-glow);
}

.roadmap-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                background-image 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    width: 100%;
}

.roadmap-card { cursor: pointer; }
.roadmap-card:hover {

    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
    background-image: linear-gradient(to top, rgba(255,188,0,0.15) 0%, transparent 60%);
}

.roadmap-date {
    font-size: var(--text-caption);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: var(--brand-text);
    margin-bottom: var(--space-sm);
    display: block;
}

.roadmap-card h3 {
    font-size: var(--text-subhead);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    margin-bottom: var(--space-sm);
}

.roadmap-card p {
    font-size: var(--text-small);
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- ABOUT ---- */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.about-text {
    max-width: 65ch;
}

.about-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.about-lead {
    font-size: var(--text-subhead);
    color: var(--text) !important;
    line-height: 1.5;
}

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

.value-card {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                box-shadow 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                border-color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1),
                background-image 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.value-card { cursor: pointer; }
.value-card:hover {

    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
    background-image: linear-gradient(to top, rgba(255,188,0,0.15) 0%, transparent 60%);
}

.value-number {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-tight);
    color: var(--brand-text);
    opacity: 0.06;
    position: absolute;
    top: 8px;
    right: 16px;
    line-height: 1;
}

.value-card h4 {
    font-size: var(--text-subhead);
    font-weight: var(--fw-bold);
    letter-spacing: var(--ls-tight);
    margin-bottom: 4px;
    color: var(--brand-text);
}

.value-card p {
    font-size: var(--text-small);
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- CTA STRIP ---- */
.section-cta {
    background: #ffbc00;
    position: relative;
    overflow: hidden;
    padding: var(--space-4xl) 0;
}

.cta-blobs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
}

.cta-blob-1 {
    width: 500px;
    height: 500px;
    background: var(--pink);
    top: -30%;
    left: -10%;
    animation: ctaBlobMove1 16s ease-in-out infinite;
}

.cta-blob-2 {
    width: 450px;
    height: 450px;
    background: var(--pink);
    bottom: -25%;
    right: 5%;
    animation: ctaBlobMove2 14s ease-in-out infinite;
}

.cta-blob-3 {
    width: 400px;
    height: 400px;
    background: #ff69b4;
    top: 5%;
    right: -15%;
    animation: ctaBlobMove3 18s ease-in-out infinite;
}

@keyframes ctaBlobMove1 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 50%; opacity: 0.7; }
    25%  { transform: translate(120px, -60px) scale(1.3) rotate(25deg); border-radius: 25% 75% 65% 35%; opacity: 1; }
    50%  { transform: translate(180px, 80px) scale(0.85) rotate(70deg); border-radius: 70% 30% 20% 80%; opacity: 0.5; }
    75%  { transform: translate(-50px, 100px) scale(1.25) rotate(110deg); border-radius: 35% 65% 75% 25%; opacity: 0.9; }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 50%; opacity: 0.7; }
}

@keyframes ctaBlobMove2 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 50%; opacity: 0.6; }
    20%  { transform: translate(-100px, 60px) scale(1.3) rotate(-20deg); border-radius: 75% 25% 35% 65%; opacity: 1; }
    40%  { transform: translate(-160px, -50px) scale(0.8) rotate(-50deg); border-radius: 30% 70% 80% 20%; opacity: 0.4; }
    60%  { transform: translate(70px, -80px) scale(1.2) rotate(-80deg); border-radius: 65% 35% 25% 75%; opacity: 0.9; }
    80%  { transform: translate(110px, 50px) scale(1.35) rotate(-120deg); border-radius: 20% 80% 70% 30%; opacity: 0.6; }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 50%; opacity: 0.6; }
}

@keyframes ctaBlobMove3 {
    0%   { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 50%; opacity: 0.8; }
    25%  { transform: translate(-80px, -90px) scale(1.2) rotate(35deg); border-radius: 70% 30% 40% 60%; opacity: 0.5; }
    50%  { transform: translate(100px, 60px) scale(0.85) rotate(80deg); border-radius: 25% 75% 65% 35%; opacity: 1; }
    75%  { transform: translate(140px, -40px) scale(1.3) rotate(120deg); border-radius: 80% 20% 30% 70%; opacity: 0.6; }
    100% { transform: translate(0, 0) scale(1) rotate(0deg); border-radius: 50%; opacity: 0.8; }
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #1a1a0a;
}

.cta-content h2 {
    font-size: var(--text-display);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-tight);
    color: #1a1a0a;
    margin-bottom: var(--space-md);
}

.cta-content p {
    font-size: var(--text-subhead);
    color: rgba(26,26,10,0.7);
    margin-bottom: var(--space-xl);
    max-width: 55ch;
    margin-inline: auto;
}

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

/* ---- FOOTER ---- */
#footer {
    background: #1a1608;
    padding: var(--space-2xl) 0;
    color: rgba(255, 255, 255, 0.75);
}

.light #footer {
    background: #e8e4d4;
    color: rgba(26, 26, 10, 0.7);  /* was 0.5 — too faint for AA */
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-logo-svg {
    height: 18px;
    width: auto;
    max-width: 100%;
}

.footer-inline-logo {
    height: 14px;
    width: auto;
    vertical-align: -1px;
    display: inline;
}

.footer-brand p {
    font-size: var(--text-small);
    color: inherit;
    opacity: 0.7;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.footer-nav a {
    font-size: var(--text-small);
    color: inherit;
    transition: color 0.2s var(--ease);
}

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

.footer-nav a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
    border-radius: 3px;
}

.footer-link-disabled {
    font-size: var(--text-small);
    color: inherit;
    opacity: 0.4;
    cursor: not-allowed;
    user-select: none;
}

/* ---- REVEAL ANIMATION ---- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- FOCUS STYLES ---- */
:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

/* ---- REDUCED MOTION ---- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 1024px) {
    .app-grid { grid-template-columns: repeat(2, 1fr); }
    .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
    .ecosystem-compact { grid-template-columns: repeat(2, 1fr); }
    .featured-showcase { grid-template-columns: 1fr; gap: var(--space-xl); }
}

@media (max-width: 768px) {
    /* Spacing scales fluid: bigger on 768px, smaller on 320px */
    :root {
        --space-3xl: clamp(48px, 10vw, 64px);
        --space-4xl: clamp(56px, 12vw, 80px);
    }

    .section { padding: clamp(40px, 8vw, 64px) 0; }
    .container { padding: 0 clamp(12px, 4vw, 24px); }

    /* ---- Header ---- */
    #header { top: 0; left: 0; right: 0; }
    #main-nav {
        display: none;
        position: fixed;
        inset: calc(var(--header-h) + 8px) 8px auto 8px;
        background: var(--surface-solid);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid var(--border-glass);
        border-radius: var(--radius-lg);
        flex-direction: column;
        padding: var(--space-xl);
        gap: var(--space-lg);
        z-index: 99;
        box-shadow: var(--shadow-xl);
    }
    #main-nav.nav-open { display: flex; }
    #main-nav a { font-size: 1.125rem; }
    .mobile-btn { display: flex; }
    .header-actions { margin-left: auto; }
    .header-actions .btn-primary { display: none; }

    /* ---- Hero ---- */
    .hero {
        min-height: 100vh; min-height: 100dvh;
        padding: calc(var(--header-h) + 24px) var(--space-md) var(--space-lg);
    }
    .hero-particles { display: none; }
    .hero-logo { margin-top: 0; margin-bottom: var(--space-xl); }
    .hero-logo-svg { transform: none; max-width: clamp(280px, 70vw, 420px); width: 100%; }
    .hero-content {
        max-width: 100%; display: flex; flex-direction: column;
        align-items: center; flex: 1; justify-content: center;
        padding-bottom: var(--space-3xl);
    }
    /* Hero-title needs sharper reduction on mobile than DS clamp */
    .hero-title { margin-bottom: var(--space-sm); }
    .hero-subtitle { line-height: 1.5; margin-bottom: var(--space-lg); }
    .hero-actions { flex-direction: column; align-items: center; gap: var(--space-sm); }
    .hero-stats {
        flex-direction: row;
        gap: clamp(8px, 2.5vw, 16px);
        margin-top: var(--space-lg);
    }
    .hero-stat-sep { width: 1px; height: 24px; }

    /* ---- App Library ---- */
    .app-grid { grid-template-columns: 1fr; }
    .filter-btn { padding: clamp(5px, 1.2vw, 8px) clamp(12px, 3vw, 20px); }
    .app-card { padding: clamp(12px, 3vw, 24px); }
    .app-card-icon {
        width: clamp(48px, 12vw, 72px);
        height: clamp(48px, 12vw, 72px);
    }

    /* ---- Featured ---- */
    .featured-info { align-items: center; }
    .screen-card-row { gap: clamp(6px, 1.5vw, 12px); }
    .screen-content { padding: clamp(10px, 3vw, 20px); }
    .screen-body { min-height: clamp(200px, 40vw, 280px); }
    .featured-highlight-icon {
        width: clamp(36px, 8vw, 48px);
        height: clamp(36px, 8vw, 48px);
        min-width: clamp(36px, 8vw, 48px);
    }

    /* ---- Ecosystem ---- */
    .ecosystem-grid { grid-template-columns: 1fr; }
    .ecosystem-hero { grid-template-columns: 1fr; }
    .ecosystem-compact { grid-template-columns: 1fr; }
    .eco-card { padding: clamp(16px, 4vw, 32px); }

    /* ---- About ---- */
    .about-content { grid-template-columns: 1fr; }
    .value-card { padding: clamp(12px, 3vw, 24px); }

    /* ---- Roadmap (hidden on mobile) ---- */
    .section-roadmap { display: none; }
    .roadmap-line { left: 16px; }
    .roadmap-item[data-side="left"],
    .roadmap-item[data-side="right"] {
        padding-left: 48px;
        padding-right: 0;
        justify-content: flex-start;
    }
    .roadmap-dot { left: 16px; }

    /* ---- CTA ---- */
    .cta-blobs { display: none; }
    .section-cta {
        background:
            radial-gradient(ellipse at 15% 20%, rgba(255, 26, 140, 0.6) 0%, transparent 50%),
            radial-gradient(ellipse at 85% 80%, rgba(255, 26, 140, 0.5) 0%, transparent 45%),
            radial-gradient(ellipse at 60% 10%, rgba(255, 105, 180, 0.4) 0%, transparent 40%),
            #ffbc00;
    }
    .cta-actions { flex-direction: column; align-items: center; }

    /* ---- Footer ---- */
    .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: var(--space-lg); }
    .footer-logo-svg { height: clamp(14px, 3.5vw, 18px); }
    .footer-nav { gap: clamp(16px, 4vw, 32px); justify-content: center; }
}

/* ===================== PRICING ===================== */
.section-pricing { background: var(--bg-alt); scroll-margin-top: calc(var(--header-h) + 24px); }
.section-pricing .section-fade-top { display: none; }

.pricing-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    margin: 0 auto var(--space-2xl);
    background: var(--surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-full);
    width: fit-content;
    margin-inline: auto;
}
.pricing-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 9px 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: var(--text-small);
    font-weight: var(--fw-bold);
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.pricing-toggle-btn.active {
    background: var(--text);
    color: var(--bg-alt);
}
.pricing-save {
    font-size: var(--text-micro);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: var(--ls-open);
    color: var(--pink);
    background: rgba(255, 26, 140, 0.12);
    padding: 2px 7px;
    border-radius: var(--radius-full);
}
.pricing-toggle-btn.active .pricing-save { color: var(--pink); background: rgba(255, 26, 140, 0.22); }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 360px));
    gap: var(--space-lg);
    justify-content: center;
    align-items: stretch;
}

.pricing-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid var(--border-glass);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand);
}
.pricing-featured {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    position: relative;
    background-image: linear-gradient(to bottom, rgba(255,188,0,0.08) 0%, transparent 40%);
}
.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-micro);
    font-weight: var(--fw-black);
    text-transform: uppercase;
    letter-spacing: var(--ls-caps);
    color: #1a1a0a;
    background: linear-gradient(135deg, var(--brand), var(--amber));
    padding: 5px 14px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}
.pricing-tier {
    font-family: var(--font-display);
    font-size: var(--text-subhead);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-tight);
    color: var(--text);
}
.pricing-desc {
    font-size: var(--text-small);
    color: var(--text-muted);
    margin-top: var(--space-xs);
    margin-bottom: var(--space-lg);
    min-height: 2.6em;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--border-glass);
}
.pricing-amount {
    font-family: var(--font-display);
    font-size: var(--text-display);
    font-weight: var(--fw-black);
    letter-spacing: var(--ls-tight);
    color: var(--text);
}
.pricing-period {
    font-size: var(--text-small);
    color: var(--text-faint);
    font-weight: var(--fw-bold);
}
.pricing-features {
    list-style: none;
    margin: 0 0 var(--space-xl);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    flex: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-small);
    color: var(--text-muted);
    line-height: 1.4;
}
.pricing-features li i,
.pricing-features li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--brand-text);
    margin-top: 2px;
}
.pricing-buy { margin-top: auto; }

.pricing-note {
    text-align: center;
    font-size: var(--text-small);
    color: var(--text-faint);
    margin-top: var(--space-2xl);
}

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: minmax(0, 360px); }
    .pricing-desc { min-height: 0; }
}