/* * Nevo Money - Premium Dark Theme
 * "The Architect" Design Language
 */

/* Platform-aware typography: SF Pro on Apple, Inter on everything else */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* NEVO MONEY: APPLE-GRADE SYSTEM */
:root {
    /* 1. The Void: Pure, confident black. No washed-out greys. */
    --bg-body: var(--background-color);
    
    /* 2. The Glass: Used for navbars and overlays. */
    --bg-glass: var(--header-scrolled-bg);
    --blur-strength: 20px;

    /* 3. The Light: Typography hierarchy. */
    --text-hero: var(--text-color);
    --text-body: var(--text-muted);
    --text-link: var(--primary-color);

    /* 4. The Geometry: Apple uses large, pill-shaped radii. */
    --radius-pill: 980px;
    --radius-card: 28px;
    
    /* 5. The Spacing: Apple design breathes. */
    --content-max-width: 1100px; /* Align with container width */
    --nav-height: 54px;
    --cta-text: var(--on-primary-color);
    --cta-bg-top: color-mix(in srgb, var(--primary-color) 88%, white);
    --cta-bg-bottom: color-mix(in srgb, var(--primary-color) 92%, black);

    /* Bridge tokens */
    --bg-surface: var(--surface-color);
    --bg-surface-hover: var(--surface-muted);
    --brand-primary: var(--primary-color);
    --brand-glow: var(--accent-color);
    --nav-border-color: var(--border-color);

    /* Typography - SF Pro on Apple, Inter on everything else */
    --font-display: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
    --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;

    /* Surface recipes */
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --surface-card: color-mix(in srgb, var(--surface-color) 88%, transparent);
    --surface-card-hover: color-mix(in srgb, var(--surface-muted) 86%, transparent);
    --surface-strong: color-mix(in srgb, var(--surface-elevated) 96%, transparent);
    --surface-glass: color-mix(in srgb, var(--surface-color) 60%, transparent);
    --border-subtle: color-mix(in srgb, var(--border-color) 72%, transparent);
    --border-strong: color-mix(in srgb, var(--border-color) 90%, transparent);
    --shadow-soft: 0 28px 70px -50px var(--shadow-color);
    --shadow-card: 0 24px 60px -48px var(--shadow-color);
    --shadow-lift: 0 30px 80px -52px var(--shadow-color);

    /* Glass */
    --glass-bg: color-mix(in srgb, var(--surface-color) 55%, transparent);
    --glass-border: color-mix(in srgb, var(--border-color) 55%, transparent);
    --glass-shadow: 0 22px 60px -50px var(--shadow-color);
}

/* RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    background-color: var(--bg-body);
    background-image:
        radial-gradient(680px 360px at 15% -10%, color-mix(in srgb, var(--primary-color) 28%, transparent), transparent 70%),
        radial-gradient(720px 420px at 85% 0%, color-mix(in srgb, var(--accent-color) 24%, transparent), transparent 68%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-color) 16%, transparent), transparent 45%);
    color: var(--text-hero);
    font-family: var(--font-body);
    /* Apple typography secrets: */
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.015em; 
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    line-height: 1.6;
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

body::before {
    top: -240px;
    left: -160px;
    background: radial-gradient(circle, color-mix(in srgb, var(--primary-color) 55%, transparent), transparent 65%);
}

body::after {
    top: -220px;
    right: -200px;
    background: radial-gradient(circle, color-mix(in srgb, var(--accent-color) 45%, transparent), transparent 70%);
}

a { text-decoration: none; color: inherit; transition: 0.2s; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* UTILITY */
.container {
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

/* TYPOGRAPHY */
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; font-family: var(--font-display); }
p { color: var(--text-muted); font-size: 1.1rem; }

.text-gradient {
    background: linear-gradient(180deg, var(--text-hero) 0%, var(--text-body) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- NAVIGATION --- */
.apple-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid transparent;
    transition: background-color 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.apple-nav.is-scrolled {
    background-color: var(--bg-glass);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    border-bottom-color: var(--nav-border-color);
}

.glass-surface {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
}

.nav-content {
    max-width: var(--content-max-width);
    margin: 0 auto;
    height: var(--nav-height); /* Apple standard nav height */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    font-size: 13px; /* Small, understated text */
    gap: 24px;
    white-space: nowrap;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    white-space: nowrap;
}
.brand-mark {
    width: 22px;
    height: 22px;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.brand-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
    font-size: 18px;
    font-family: var(--font-display);
    letter-spacing: -0.015em;
}
.brand-strong {
    font-weight: 800;
    color: var(--text-hero);
}
.brand-light {
    font-weight: 300;
    color: var(--text-hero);
    opacity: 0.75;
}

.nav-logo {
    font-weight: 600;
    color: var(--text-hero);
    text-decoration: none;
}
.nav-items {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}
.nav-items a {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    color: color-mix(in srgb, var(--text-hero) 70%, var(--text-body));
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.nav-items a:hover { color: var(--text-hero); }
.nav-items a[aria-current="page"] {
    color: var(--text-hero);
    background: color-mix(in srgb, var(--surface-muted) 65%, transparent);
    border-radius: 999px;
    padding: 6px 12px;
}
.nav-items a.nav-cta,
.nav-items .nav-cta {
    background: linear-gradient(180deg, var(--cta-bg-top), var(--cta-bg-bottom));
    color: var(--cta-text);
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 600;
    box-shadow: 0 12px 24px -18px color-mix(in srgb, var(--primary-color) 65%, transparent);
}
.nav-items .nav-cta:visited,
.nav-items .nav-cta:focus,
.nav-items .nav-cta:hover {
    color: var(--cta-text);
}
.nav-items .nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px -18px color-mix(in srgb, var(--primary-color) 80%, transparent);
}

.theme-toggle {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    color: var(--text-hero);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover {
    background: color-mix(in srgb, var(--surface-color) 40%, transparent);
    border-color: color-mix(in srgb, var(--border-color) 70%, transparent);
}
.theme-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
.theme-toggle .icon-moon { display: none; }
body.light-mode .theme-toggle .icon-moon { display: inline; }
body.light-mode .theme-toggle .icon-sun { display: none; }

.nav-items .theme-toggle {
    margin-left: 2px;
}

/* =========================================================
   LANGUAGE SWITCHER
   ========================================================= */
.lang-switcher {
    display: flex;
    gap: 4px;
    align-items: center;
    margin-left: 8px;
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid transparent;
    padding: 0;
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    max-width: 26px;
    max-height: 26px;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.45;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
    -webkit-appearance: none;
    appearance: none;
}
.lang-btn img {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    object-fit: cover;
    border-radius: 3px;
    display: block;
    pointer-events: none;
}

.lang-btn:hover {
    opacity: 0.8;
    transform: scale(1.08);
}

.lang-btn.is-active {
    opacity: 1;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

@media (max-width: 734px) {
    .lang-switcher {
        order: -1;
        margin-left: 0;
        margin-bottom: 12px;
    }
}

/* --- HERO SECTION --- */
.apple-hero {
    position: relative;
    padding-top: calc(64px + var(--nav-height)); /* Space for sticky nav */
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
}

.apple-hero::before {
    content: "";
    position: absolute;
    inset: -200px 0 0;
    background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--primary-color) 25%, transparent), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
}

.hero-text-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 20px;
    z-index: 10;
    position: relative;
}

.titan-title {
    font-size: 56px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin-bottom: 20px;
}

/* The Apple "Gradient Text" Trick */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.titan-subtitle {
    font-size: 20px;
    line-height: 1.5;
    color: var(--text-body);
    font-weight: 400;
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* --- BUTTONS --- */
.cta-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.cta-row-compact {
    margin-bottom: 0;
}

/* --- HERO SHOWCASE (Homepage) --- */
.hero-showcase {
    position: relative;
    padding: 0 0 10px;
}
.hero-showcase-inner {
    display: grid;
    gap: 18px;
    justify-items: center;
}
.showcase-media {
    width: auto;
    height: min(78vh, 820px);
    aspect-ratio: 9 / 19.5;
    border-radius: 0;
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
    position: relative;
    display: grid;
    place-items: center;
}
.showcase-media::after {
    display: none;
}
.showcase-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: transparent;
    opacity: 0.98;
    transition: opacity 400ms ease, transform 400ms ease;
    transform: translateZ(0);
}
.showcase-media.is-swapping .showcase-image {
    opacity: 0;
    transform: scale(0.98);
}
.showcase-caption {
    width: min(720px, 100%);
    text-align: center;
    display: grid;
    gap: 6px;
}
.showcase-eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.24em;
    color: color-mix(in srgb, var(--text-body) 78%, transparent);
    font-weight: 700;
}
.showcase-title {
    font-size: 1.1rem;
    font-weight: 650;
    color: color-mix(in srgb, var(--text-hero) 92%, var(--text-body));
    letter-spacing: -0.01em;
}
.showcase-thumbs {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    width: min(1040px, 100%);
}
.showcase-thumb {
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    border-radius: 20px;
    padding: 10px 10px 12px;
    display: grid;
    gap: 10px;
    width: 136px;
    cursor: pointer;
    color: var(--text-hero);
    box-shadow: 0 20px 52px -56px var(--shadow-color);
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.showcase-thumb:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--border-color) 72%, var(--text-hero));
    background: var(--surface-card-hover);
}
.showcase-thumb:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary-color) 85%, transparent);
    outline-offset: 3px;
}
.showcase-thumb.is-active {
    border-color: color-mix(in srgb, var(--primary-color) 85%, var(--border-color));
    box-shadow: 0 26px 70px -60px color-mix(in srgb, var(--primary-color) 45%, var(--shadow-color));
    position: relative;
    overflow: hidden;
}
.showcase-thumb.is-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 20px 20px;
    animation: thumb-progress 5s linear forwards;
    opacity: 0.7;
}
@keyframes thumb-progress {
    from { width: 0; }
    to { width: 100%; }
}
.hero-showcase:hover .showcase-thumb.is-active::after {
    animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
    .showcase-thumb.is-active::after {
        display: none;
    }
}
.thumb-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background:
        radial-gradient(260px 140px at 25% 0%, color-mix(in srgb, var(--primary-color) 14%, transparent), transparent 70%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-muted) 70%, transparent), color-mix(in srgb, var(--surface-color) 85%, transparent));
}
.thumb-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 180ms ease, transform 180ms ease;
}
.thumb-label {
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: -0.01em;
    text-align: left;
    color: color-mix(in srgb, var(--text-hero) 92%, var(--text-body));
}

@media (max-width: 734px) {
    .showcase-media {
        height: min(78vh, 740px);
        aspect-ratio: 9 / 19.5;
        border-radius: 0;
    }
    .showcase-thumbs {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 8px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .showcase-thumbs::-webkit-scrollbar {
        display: none;
    }
    .showcase-thumb {
        flex: 0 0 auto;
        width: 150px;
    }
}

/* INSTALL */
/* Register the variable so we can animate it */
@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.install-card {
  /* Layout */
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  margin: 32px auto 20px;
  
  /* Shape & Style */
  border-radius: var(--radius-card);
  background: var(--surface-card); /* Put the background back on the main card */
  
  /* Stacking Context */
  isolation: isolate;
  cursor: pointer;
}

/* THE TRACER (Fixed: Guaranteed Hollow Ring) */
.install-card::before {
  content: "";
  position: absolute;
  inset: -2px; 
  z-index: -1; 
  border-radius: inherit; 
  
  /* 1. Force the box model so padding calculations work */
  box-sizing: border-box;
  
  /* 2. Define the border thickness here */
  padding: 2px; 
  
  background: conic-gradient(
    from var(--angle),
    transparent 70%,
    var(--primary-color) 85%,
    var(--accent-color) 95%, 
    transparent 100%
  );
  
  animation: spin 3s linear infinite;
  
  /* --- MASK FIX --- */
  /* We use two opaque gradients. 
     One clipped to the 'content-box' (inner), one to 'border-box' (outer). */
  
  mask-image: 
    linear-gradient(#000, #000), 
    linear-gradient(#000, #000);
  mask-clip: content-box, border-box;
  mask-composite: exclude;
  
  /* WebKit (Chrome/Safari) specific syntax is required here */
  -webkit-mask-image: 
    linear-gradient(#000, #000), 
    linear-gradient(#000, #000);
  -webkit-mask-clip: content-box, border-box;
  /* 'xor' is the magic keyword in WebKit that creates the hole */
  -webkit-mask-composite: xor; 
}

/* Keyframes */
@keyframes spin {
  from {
    --angle: 0deg;
  }
  to {
    --angle: 360deg;
  }
}

/* Mobile/Performance Optimization */
@media (prefers-reduced-motion: reduce) {
  .install-card::before {
    animation: none;
    background: var(--border-subtle);
  }
}

.install-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
}
.install-logo .brand-mark {
    width: 28px;
    height: 28px;
}
.install-app-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-hero);
    margin-bottom: 4px;
}
.install-app-tagline {
    color: var(--text-body);
    font-size: 0.95rem;
}
.store-badges {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin: 18px auto 8px;
    max-width: 560px;
}
.store-badge {
    width: 100%;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-color) 75%, transparent);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    color: var(--text-hero);
}
.store-badge:disabled {
    cursor: not-allowed;
    opacity: 0.85;
}
.badge-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-hero);
}
.badge-icon svg {
    width: 100%;
    height: 100%;
}
.badge-meta {
    text-align: left;
}
.badge-subtitle {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-body) 75%, transparent);
}
.badge-title {
    font-size: 1.05rem;
    font-weight: 600;
}
.badge-status {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-body) 70%, transparent);
}

.btn-apple-primary {
    background: linear-gradient(180deg, var(--cta-bg-top), var(--cta-bg-bottom));
    color: var(--cta-text);
    padding: 12px 26px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 16px 36px -26px color-mix(in srgb, var(--primary-color) 70%, transparent);
    transition: transform 0.2s ease, background-color 0.2s;
}

.btn-apple-primary:hover {
    background: linear-gradient(180deg, color-mix(in srgb, var(--cta-bg-top) 92%, #ffffff), color-mix(in srgb, var(--cta-bg-bottom) 90%, #000000));
    transform: scale(1.02);
}

.btn-apple-link {
    color: var(--text-link);
    font-size: 15px;
    text-decoration: none;
}
.btn-apple-link:hover { text-decoration: underline; }

/* Filled button - solid primary without gradient, for secondary actions */
/* PrimaryButton - matches Flutter PrimaryButton spec:
   height 50, border-radius 20, font-size 16, 3-tone vertical gradient,
   1px outline-variant border at 60% opacity, zero elevation */
.btn-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 28px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    color: var(--primary-color);
    background: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--surface-color) 85%, white),
        var(--surface-color),
        color-mix(in srgb, var(--surface-color) 90%, black)
    );
    border: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
    cursor: pointer;
    transition: transform 0.2s ease, filter 0.2s ease;
    box-shadow: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.btn-filled:hover {
    filter: brightness(1.06);
    transform: scale(1.015);
}
.btn-filled:active {
    filter: brightness(0.96);
    transform: scale(0.985);
}
.btn-filled:visited,
.btn-filled:focus { color: var(--primary-color); }
.btn-filled.small { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 16px; }

/* --- VISUALS --- */
.hero-visual {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    /* Apple fade-in animation */
    animation: fadeUp 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

.product-shot {
    width: 100%;
    height: auto;
    border-radius: 12px;
    /* The subtle premium reflection */
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--border-color) 60%, transparent), 0 40px 80px var(--shadow-color);
}

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

@media (max-width: 734px) {
    .titan-title { font-size: 40px; }
    .titan-subtitle { font-size: 18px; }
    .hero-visual { padding: 0 16px; }
    .section { padding: 60px 0; }
    .callout-card { padding: 48px 28px; }
}

@media (max-width: 900px) {
    .nav-items { gap: 12px; }
    .nav-items a { font-size: 11px; }
}

@media (max-width: 720px) {
    .nav-items a:not(.nav-cta) { display: none; }
    .nav-cta { padding: 6px 12px; }
}

/* LOGO: The "Nevo" Spec */
.footer-brand {
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    display: inline-flex;
    align-items: center;
}
.logo-nevo {
    font-weight: 800; /* Extra Bold */
    color: var(--text-hero);
}
.logo-money {
    font-weight: 300; /* Light */
    color: var(--text-hero);
    opacity: 0.9;
    margin-left: 1px; /* Tightkerning */
}

/* NAVBAR */
.navbar {
    padding: 24px 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); }
.nav-links a:hover { color: var(--text-hero); }

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary-color) 85%, transparent);
    outline-offset: 2px;
}
.btn.block { width: 100%; }
.btn.large { padding: 14px 30px; font-size: 1rem; }

.btn-primary {
    background: linear-gradient(180deg, var(--cta-bg-top), var(--cta-bg-bottom));
    color: var(--cta-text);
    box-shadow: 0 16px 34px -26px color-mix(in srgb, var(--primary-color) 70%, transparent);
}
.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px -26px color-mix(in srgb, var(--primary-color) 80%, transparent);
}
.btn-primary.small { padding: 8px 20px; font-size: 0.9rem; }

.btn-outline {
    background: transparent;
    color: var(--text-hero);
    border-color: var(--border-subtle);
}
.btn-outline:hover {
    border-color: color-mix(in srgb, var(--border-color) 80%, var(--text-hero));
    transform: translateY(-1px);
    box-shadow: 0 12px 26px -24px var(--shadow-color);
}

.btn-ghost {
    background: color-mix(in srgb, var(--surface-color) 35%, transparent);
    color: var(--text-hero);
    border-color: transparent;
}

/* HERO */
.hero {
    position: relative;
    padding-top: calc(var(--nav-height) + 96px);
    padding-bottom: 96px;
    text-align: center;
    overflow: hidden;
    background: var(--background-color);
}
.hero-title {
    font-size: clamp(2.6rem, 2.1rem + 2.6vw, 3.9rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-hero);
    letter-spacing: -0.02em;
}
.hero-subtitle {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-body);
}
.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin-bottom: 80px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -120px 0 0;
    background: radial-gradient(520px 260px at 50% 0%, color-mix(in srgb, var(--primary-color) 22%, transparent), transparent 70%);
    opacity: 0.65;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-color) 45%, transparent), transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
    padding: 0 24px;
}
.link-secondary { color: var(--text-muted); font-size: 0.95rem; }
.link-secondary:hover { color: var(--text-hero); }

/* Hero Background Glow */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--brand-glow) 0%, rgba(0,0,0,0) 70%);
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
}

/* HERO IMAGE */
.hero-image-wrapper {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    overflow: hidden;
    box-shadow: 0 20px 80px -20px rgba(0,0,0,0.8);
}
.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0.9; /* Slight dim for mood */
}
/* A reflection glow under the image */
.screenshot-glow {
    position: absolute;
    bottom: -50px;
    left: 10%;
    right: 10%;
    height: 100px;
    background: var(--brand-primary);
    filter: blur(80px);
    opacity: 0.2;
    z-index: -1;
}

/* FEATURES */
.section {
    padding: 80px 0;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}
.section + .section {
    border-top: 1px solid color-mix(in srgb, var(--border-color) 65%, transparent);
}
.section-header {
    text-align: center;
    margin-bottom: 64px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.section-header h2 { font-size: 2.5rem; margin-bottom: 16px; }

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.7rem;
    font-weight: 600;
    color: color-mix(in srgb, var(--text-body) 80%, transparent);
    margin-bottom: 12px;
}

.section-title {
    font-size: clamp(2.2rem, 1.6rem + 2vw, 3rem);
    letter-spacing: -0.02em;
    color: var(--text-hero);
    margin-bottom: 14px;
}

.section-subtitle {
    color: var(--text-body);
    font-size: 1.15rem;
    line-height: 1.6;
}

.section-lead {
    color: var(--text-body);
    font-size: 1.12rem;
    line-height: 1.65;
    margin-bottom: 28px;
}

.section-note {
    color: color-mix(in srgb, var(--text-body) 80%, transparent);
    font-size: 0.95rem;
    margin-top: 8px;
}

/* --- LEGAL PAGES --- */
.legal-shell {
    position: relative;
    padding-top: 80px;
    padding-bottom: 140px;
}
.legal-container {
    max-width: 56rem;
}
.legal-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    padding: clamp(28px, 4vw, 56px);
    border-radius: var(--radius-card);
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--surface-elevated) 92%, var(--primary-color) 8%) 0%,
        var(--surface-color) 55%,
        var(--surface-color) 100%);
    box-shadow: 0 28px 70px -40px var(--shadow-color);
}
.legal-card > p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
}
.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-body) 85%, transparent);
}
.legal-card > p,
.legal-card > .legal-meta {
    grid-column: 1 / -1;
}
.legal-toc {
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--border-color) 65%, transparent);
    background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
    padding: 20px 20px 18px;
}
.legal-toc h2 {
    font-size: 0.7rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-body) 80%, transparent);
    margin-bottom: 12px;
}
.legal-toc ul {
    list-style: none;
    display: grid;
    gap: 8px;
}
.legal-toc a {
    color: var(--text-hero);
    font-size: 0.95rem;
}
.legal-toc a:hover {
    color: var(--primary-color);
}
.legal-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--text-body);
}
.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 28px;
    color: var(--text-hero);
}
.legal-content h2:first-of-type {
    margin-top: 0;
}
.legal-content p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-body);
}
.legal-content ul {
    list-style: disc;
    padding-left: 20px;
    display: grid;
    gap: 10px;
    color: var(--text-body);
}
.legal-content li {
    line-height: 1.6;
}
.legal-content strong {
    color: var(--text-hero);
}
.legal-content a {
    color: var(--primary-color);
}
.legal-content a:hover {
    color: color-mix(in srgb, var(--primary-color) 70%, var(--text-hero));
}

@media (min-width: 980px) {
    .legal-card {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
        gap: 40px;
    }
    .legal-toc {
        position: sticky;
        top: 120px;
        align-self: start;
    }
}

@media (max-width: 720px) {
    .legal-card {
        padding: 26px 22px;
        gap: 24px;
    }
    .legal-content h2 {
        font-size: 1.35rem;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.features-grid,
.about-grid,
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.pricing-grid {
    align-items: stretch;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .install-trace rect {
        animation: none;
    }
}

.feature-card {
    background: var(--surface-card);
    padding: 36px;
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    transition: transform 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}
.feature-card:hover {
    background: var(--surface-card-hover);
    transform: translateY(-6px);
    border-color: color-mix(in srgb, var(--border-color) 70%, var(--text-hero));
}
.icon-wrapper {
    width: 48px;
    height: 48px;
    background: color-mix(in srgb, var(--text-hero) 8%, transparent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--text-hero);
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 12px; font-weight: 600; }
.feature-card p { font-size: 1rem; color: var(--text-muted); }

.feature-card > i,
.about-item > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--text-hero) 8%, transparent);
    color: var(--text-hero);
    margin-bottom: 18px;
}

.step-card {
    background: var(--surface-card);
    border-radius: var(--radius-card);
    padding: 36px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}
.step-number {
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 600;
    color: color-mix(in srgb, var(--text-body) 80%, transparent);
    margin-bottom: 14px;
}
.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.step-card p {
    color: var(--text-muted);
}

.about-item {
    background: var(--surface-card);
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
}
.about-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.about-item p {
    color: var(--text-muted);
}

.titan-callout {
    padding: 80px 0 100px;
}

.callout-card {
    text-align: center;
    padding: 64px 48px;
    border-radius: calc(var(--radius-card) + 6px);
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface-color) 85%, transparent), color-mix(in srgb, var(--surface-muted) 75%, transparent));
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    box-shadow: 0 30px 80px -60px var(--shadow-color);
}

/* SECTION VARIANTS */
.section-tonal {
    background: color-mix(in srgb, var(--surface-color) 60%, transparent);
}

/* CTA */
.cta {
    position: relative;
    padding: 96px 0;
    text-align: center;
    color: var(--cta-text);
    background: linear-gradient(160deg, color-mix(in srgb, var(--primary-color) 92%, var(--surface-elevated)), var(--primary-color));
    overflow: hidden;
}
.cta::before {
    content: "";
    position: absolute;
    inset: -120px 0 0;
    background: radial-gradient(520px 260px at 50% 0%, color-mix(in srgb, var(--accent-color) 25%, transparent), transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}
.cta-container {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    display: grid;
    gap: 18px;
    padding: 0 24px;
}
.cta p {
    color: color-mix(in srgb, var(--cta-text) 85%, transparent);
}
.cta .btn-outline {
    color: var(--cta-text);
    border-color: color-mix(in srgb, var(--cta-text) 60%, transparent);
}
.cta .btn-outline:hover {
    border-color: color-mix(in srgb, var(--cta-text) 75%, transparent);
}

/* PRICING */
.plans .section-lead {
    max-width: 720px;
}
.plan-card {
    position: relative;
    background: var(--surface-card);
    border-radius: var(--radius-card);
    padding: 32px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.plan-card.popular {
    border-color: color-mix(in srgb, var(--primary-color) 60%, var(--border-color));
    box-shadow: var(--shadow-lift);
    padding-top: 52px;
}
.plan-badge {
    position: absolute;
    top: 16px;
    left: 24px;
    background: var(--primary-color);
    color: var(--on-primary-color);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 999px;
}
.plan-header {
    display: grid;
    gap: 6px;
}
.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
}
.plan-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.price-amount {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.price-cycle {
    font-size: 1rem;
    color: var(--text-body);
}
.plan-billing-note {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.plan-features {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}
.plan-features li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--text-body);
    font-size: 0.98rem;
}
.plan-features .plan-check {
    color: var(--primary-color);
    margin-top: 3px;
    flex: 0 0 auto;
    line-height: 0;
}
.plan-features .plan-check svg {
    display: block;
}
.plan-actions {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.pricing-grid {
    margin-top: 26px;
}

/* FAQ */
.faq-list {
    display: grid;
    gap: 16px;
}
.faq-item {
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    padding: 20px 24px;
    box-shadow: var(--shadow-card);
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-hero);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--surface-muted) 55%, transparent);
    color: var(--text-hero);
    font-weight: 600;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
    transform: rotate(45deg);
}
.faq-item p {
    margin-top: 12px;
    color: var(--text-body);
}

/* Why Nevo - competitive comparison */
.why-card {
    display: flex;
    flex-direction: column;
}
.why-compare {
    margin-top: auto;
    padding-top: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.01em;
}

/* CHECKOUT + UTILITY */
.checkout-shell,
.utility-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 120px 0 80px;
}
.checkout-card,
.utility-card {
    background: var(--surface-strong);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-lift);
    padding: 40px 36px;
    display: grid;
    gap: 16px;
    text-align: center;
    width: min(560px, 92vw);
    margin: 0 auto;
}
.checkout-brand,
.utility-brand {
    font-size: 0.85rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-body) 75%, transparent);
    font-weight: 600;
}
.checkout-pill,
.utility-pill {
    display: inline-flex;
    align-self: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-hero);
    background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
}
.checkout-pill-success {
    background: color-mix(in srgb, var(--secondary-color) 20%, transparent);
    color: color-mix(in srgb, var(--secondary-color) 90%, var(--text-hero));
}
.checkout-pill-warning {
    background: color-mix(in srgb, var(--accent-color) 25%, transparent);
    color: color-mix(in srgb, var(--accent-color) 90%, var(--text-hero));
}
.checkout-title,
.utility-title {
    font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem);
    letter-spacing: -0.02em;
    color: var(--text-hero);
}
.checkout-text,
.utility-text {
    color: var(--text-body);
    font-size: 1.05rem;
}
.checkout-actions,
.utility-actions {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}
.checkout-hint,
.utility-hint {
    font-size: 0.9rem;
    color: color-mix(in srgb, var(--text-body) 80%, transparent);
}
.checkout-meta {
    margin-top: 8px;
    display: grid;
    gap: 6px;
    text-align: left;
}
.checkout-meta-label {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-body) 70%, transparent);
}
.checkout-meta code {
    padding: 6px 10px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-muted) 65%, transparent);
    color: var(--text-hero);
}

/* COOKIE CONSENT */
body.cookie-consent-open {
    overflow: hidden;
}
.cookie-banner {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    padding-left: calc(24px + env(safe-area-inset-left));
    padding-right: calc(24px + env(safe-area-inset-right));
    z-index: 1200;
}
.cookie-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--neutral-dark) 70%, transparent);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.cookie-card {
    position: relative;
    z-index: 1;
    max-width: 520px;
    width: min(520px, 92vw);
    background: color-mix(in srgb, var(--surface-color) 75%, transparent);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    padding: 20px 22px;
    display: grid;
    gap: 16px;
    backdrop-filter: blur(var(--blur-strength));
    -webkit-backdrop-filter: blur(var(--blur-strength));
    text-align: left;
}
.cookie-text {
    color: var(--text-body);
    font-size: 0.98rem;
}
.cookie-text a {
    color: var(--text-hero);
    text-decoration: underline;
}
.cookie-actions {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.cookie-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cookie-btn:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary-color) 85%, transparent);
    outline-offset: 2px;
}
.cookie-primary {
    background: linear-gradient(180deg, var(--cta-bg-top), var(--cta-bg-bottom));
    color: var(--cta-text);
    box-shadow: 0 14px 30px -24px color-mix(in srgb, var(--primary-color) 70%, transparent);
}
.cookie-secondary {
    background: transparent;
    color: var(--text-hero);
    border-color: var(--border-subtle);
}
.cookie-btn:hover {
    transform: translateY(-1px);
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0;
    margin-top: 60px;
}
.footer .container,
.footer .footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-brand p { font-size: 0.85rem; margin-top: 8px; }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 0.9rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text-hero); }
.footer-nav {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}
.footer-nav a {
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-nav a:hover {
    color: var(--text-hero);
}
.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* MOBILE */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; /* Add hamburger menu if needed */ }
    .hero-actions { flex-direction: column; }
    .cta-row { flex-direction: column; }
    .cta { padding: 80px 0; }
    .install-card { width: 100%; justify-content: center; text-align: center; }
    .store-badges { grid-template-columns: 1fr; }
    .checkout-card,
    .utility-card { padding: 32px 24px; }
    .cookie-card { border-radius: var(--radius-md); }
    .footer .container,
    .footer .footer-container { flex-direction: column; gap: 30px; text-align: center; }
}

/* =========================================================
   HOME V2 (Apple-style hero + scroll-scrub sections)
   ========================================================= */

/* Accessible skip link */
.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 2000;
    padding: 10px 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--surface-color) 85%, transparent);
    border: 1px solid var(--border-subtle);
    color: var(--text-hero);
    box-shadow: var(--shadow-card);
}
.skip-link:focus {
    left: 12px;
}

/* Theme toggle icon correctness when html has .theme-light */
.theme-light .theme-toggle .icon-moon { display: inline; }
.theme-light .theme-toggle .icon-sun { display: none; }

/* Hero v2 overrides (bigger H1 + proof row + media card) */
.hero-v2 {
    padding-bottom: 64px;
}

.hero-eyebrow {
    font-size: 0.72rem;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-body) 78%, transparent);
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-v2 .titan-title {
    font-size: clamp(3.1rem, 2.2rem + 4.2vw, 5.4rem);
    letter-spacing: -0.02em;
    line-height: 1.03;
    margin-bottom: 18px;
}

.hero-v2 .titan-subtitle {
    max-width: 640px;
}

.hero-proof {
    width: min(920px, 100%);
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.proof-item {
    text-align: left;
    padding: 12px 14px;
    border-radius: 18px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-card);
    box-shadow: 0 18px 52px -58px var(--shadow-color);
}

.proof-top {
    font-size: 0.98rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    color: color-mix(in srgb, var(--text-hero) 96%, var(--text-body));
}

.proof-bottom {
    margin-top: 2px;
    font-size: 0.88rem;
    color: color-mix(in srgb, var(--text-body) 92%, transparent);
}

.hero-platform-note {
    margin-top: 14px;
    font-size: 0.98rem;
    color: color-mix(in srgb, var(--text-body) 90%, transparent);
}

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

.hero-media-card {
    width: auto;
    height: min(88vh, 1080px);
    aspect-ratio: 9 / 19.5;
    margin: 0 auto;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
}

.hero-media-card::after {
    display: none;
}

.hero-video,
.hero-fallback-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: transparent;
    transition: opacity 400ms ease, transform 400ms ease;
}

.hero-fallback-image {
    z-index: 2;
    opacity: 1;
}

.hero-media-card.is-video-ready .hero-fallback-image {
    opacity: 0;
}

.hero-media-card.is-swapping .hero-video,
.hero-media-card.is-swapping .hero-fallback-image {
    opacity: 0;
    transform: scale(0.98);
}

/* Prevent the hero from looking "short" on tall screens */
@media (min-height: 820px) and (min-width: 900px) {
    .hero-v2 {
        padding-top: calc(76px + var(--nav-height));
    }
}

/* Signature scroll sections */
.scroll-story {
    padding: 80px 0;
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.scroll-story + .scroll-story {
    border-top: 1px solid color-mix(in srgb, var(--border-color) 65%, transparent);
}

.scroll-story-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
    gap: 60px;
    align-items: start;
}

.scroll-copy {
    padding-top: 22px;
    max-width: 560px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 16px;
    display: grid;
    gap: 10px;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    font-size: 1.05rem;
    color: var(--text-body);
}

.check-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--primary-color);
    font-weight: 800;
}

.scroll-media {
    position: relative;
    display: grid;
    justify-items: end;
}

.scroll-sticky {
    position: sticky;
    top: calc(var(--nav-height) + 34px);
    width: auto;
    height: min(86vh, 1040px);
    aspect-ratio: 9 / 19.5;
    border-radius: 0;
    overflow: visible;
    border: none;
    box-shadow: none;
    background: transparent;
    isolation: isolate;
}

.scroll-canvas,
.scroll-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: transparent;
    transition: opacity 400ms ease, transform 400ms ease;
}

.scroll-canvas {
    z-index: 1;
    opacity: 0;
}

.scroll-fallback {
    z-index: 2;
    opacity: 1;
}

.scroll-sticky.is-swapping .scroll-canvas,
.scroll-sticky.is-swapping .scroll-fallback {
    opacity: 0;
    transform: scale(0.98);
}

.scroll-sticky.is-seq-ready .scroll-canvas {
    opacity: 1;
}

.scroll-sticky.is-seq-ready .scroll-fallback {
    opacity: 0;
}

/* If no frames are present yet, keep the fallback image visible */
.scroll-sticky.seq-missing .scroll-canvas {
    opacity: 0;
}

/* Coming soon badge on feature cards */
.feature-card {
    position: relative; /* enables absolute badge positioning */
}

.card-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: color-mix(in srgb, var(--text-hero) 90%, var(--text-body));
    background: color-mix(in srgb, var(--accent-color) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent-color) 26%, transparent);
}

/* Responsive adjustments */
@media (max-width: 980px) {
    .hero-proof {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .scroll-story-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .scroll-sticky {
        position: relative;
        top: auto;
    }

    .scroll-media {
        justify-items: center;
    }
}

@media (max-width: 734px) {
    .hero-v2 .titan-title {
        font-size: clamp(2.45rem, 1.95rem + 4.2vw, 3.4rem);
    }
}

/* Reduced motion: keep everything static & crisp */
@media (prefers-reduced-motion: reduce) {
    .hero-media-card.is-video-ready .hero-fallback-image {
        opacity: 1;
    }
    .scroll-canvas {
        display: none !important;
    }
    .scroll-fallback {
        position: relative;
        opacity: 1 !important;
    }
    .scroll-sticky {
        aspect-ratio: auto;
        min-height: auto;
        height: auto;
    }
}

/* =========================================================
   PHONE FRAME (Rotato-exported device mockups)
   Images already include the iPhone frame, bezel, and shadow.
   We just handle sizing, layout, and positioning.
   ========================================================= */
.phone-frame {
    position: relative;
    width: auto;
    max-width: 440px;
    margin: 0 auto;
}
.phone-frame img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent;
    display: block;
}

/* Ambient glow behind phone frames */
.phone-frame::after {
    content: "";
    position: absolute;
    inset: 15% 8%;
    z-index: -1;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        color-mix(in srgb, var(--primary-color) 30%, transparent) 0%,
        color-mix(in srgb, var(--accent-color) 15%, transparent) 40%,
        transparent 70%
    );
    filter: blur(50px);
    opacity: 0.6;
    pointer-events: none;
}

/* Hero phone - slightly larger */
.hero-phone {
    max-width: 480px;
}

/* Scroll section phone */
.scroll-phone {
    position: sticky;
    top: calc(var(--nav-height) + 34px);
    max-width: 420px;
}

@media (max-width: 980px) {
    .scroll-phone {
        position: relative;
        top: auto;
        margin: 0 auto;
    }
}

@media (max-width: 734px) {
    .phone-frame {
        max-width: 340px;
    }
    .hero-phone {
        max-width: 360px;
    }
}

/* =========================================================
   FEATURE DETAIL SECTIONS (Apple-style alternating)
   ========================================================= */
.feature-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 60px;
    align-items: center;
    padding: 64px 0;
}

.feature-detail + .feature-detail {
    border-top: 1px solid color-mix(in srgb, var(--border-color) 50%, transparent);
}

.feature-detail.reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.feature-detail.reverse .feature-detail-copy {
    order: 2;
}

.feature-detail.reverse .feature-detail-media {
    order: 1;
}

.feature-detail-copy {
    max-width: 520px;
}

.feature-detail-copy .section-eyebrow {
    margin-bottom: 14px;
}

.feature-detail-copy .section-title {
    font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem);
    margin-bottom: 16px;
}

.feature-detail-copy .section-lead {
    margin-bottom: 24px;
}

.feature-detail-copy .check-list {
    margin: 0 0 20px;
}

.feature-detail-media {
    display: grid;
    justify-items: center;
}

.feature-detail-media .phone-frame {
    max-width: 420px;
}

@media (max-width: 980px) {
    .feature-detail,
    .feature-detail.reverse {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 48px 0;
    }
    .feature-detail.reverse .feature-detail-copy,
    .feature-detail.reverse .feature-detail-media {
        order: unset;
    }
    .feature-detail-copy {
        max-width: 100%;
        text-align: center;
    }
    .feature-detail-copy .check-list {
        text-align: left;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 734px) {
    .feature-detail-media .phone-frame {
        max-width: 320px;
    }
}

/* =========================================================
   FEATURE TESTIMONIAL BLOCK
   ========================================================= */
.feature-testimonial {
    margin: 56px auto 0;
    max-width: 740px;
    text-align: center;
    position: relative;
    padding: 36px 40px;
    border-radius: var(--radius-card);
    background: var(--surface-card);
    border: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
}
.feature-testimonial::before {
    content: '\201C';
    position: absolute;
    top: -8px;
    left: 28px;
    font-size: 4rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.5;
    font-family: Georgia, serif;
}
.feature-testimonial p {
    font-size: clamp(1rem, 0.9rem + 0.4vw, 1.15rem);
    line-height: 1.7;
    font-style: italic;
    color: var(--text-hero);
    margin: 0;
}
.feature-testimonial .testimonial-attr {
    margin-top: 16px;
    font-size: 0.85rem;
    font-style: normal;
    color: var(--text-body);
    opacity: 0.7;
}
@media (max-width: 734px) {
    .feature-testimonial {
        padding: 28px 24px;
        margin: 40px auto 0;
    }
}

/* =========================================================
   TESTIMONIAL SHOWCASE (3-column quotes + screenshots)
   ========================================================= */
.testimonial-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.testimonial-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.testimonial-quote-card {
    position: relative;
    padding: 28px 24px;
    border-radius: var(--radius-card);
    background: var(--surface-card);
    border: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.testimonial-quote-card::before {
    content: '\201C';
    position: absolute;
    top: -6px;
    left: 20px;
    font-size: 3.2rem;
    line-height: 1;
    color: var(--primary-color);
    opacity: 0.45;
    font-family: Georgia, serif;
}
.testimonial-quote-card p {
    font-size: 0.95rem;
    line-height: 1.7;
    font-style: italic;
    color: var(--text-hero);
    margin: 0;
}
.testimonial-quote-card .testimonial-attr {
    margin-top: 14px;
    font-size: 0.8rem;
    font-style: normal;
    color: var(--text-body);
    opacity: 0.65;
}
.testimonial-col .phone-frame {
    max-width: 320px;
}

@media (max-width: 980px) {
    .testimonial-showcase {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
    .testimonial-col .phone-frame {
        max-width: 360px;
    }
}
@media (max-width: 734px) {
    .testimonial-col .phone-frame {
        max-width: 300px;
    }
}

/* =========================================================
   VS COMPARISON STRIP
   ========================================================= */
.vs-strip {
    margin-top: 56px;
}
.vs-strip-title {
    text-align: center;
    font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--text-body);
}
.vs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.vs-card {
    padding: 28px 24px;
    border-radius: var(--radius-card);
    border: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
}
.vs-card.vs-them {
    background: color-mix(in srgb, var(--surface-color) 50%, transparent);
    opacity: 0.7;
}
.vs-card.vs-nevo {
    background: color-mix(in srgb, var(--primary-color) 8%, var(--surface-card));
    border-color: color-mix(in srgb, var(--primary-color) 30%, transparent);
}
.vs-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--text-body);
}
.vs-card.vs-nevo .vs-label {
    color: var(--primary-color);
}
.vs-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.vs-card li {
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--text-hero);
    padding-left: 22px;
    position: relative;
}
.vs-card.vs-them li::before {
    content: '\2013';
    position: absolute;
    left: 0;
    color: var(--text-body);
    opacity: 0.5;
}
.vs-card.vs-nevo li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
}
@media (max-width: 734px) {
    .vs-grid {
        grid-template-columns: 1fr;
    }
    .vs-strip {
        margin-top: 40px;
    }
}

/* =========================================================
   FEATURES PAGE HERO (enhanced)
   ========================================================= */
.features-hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 60px;
    text-align: center;
}

.features-hero .hero-title {
    font-size: clamp(2.4rem, 1.8rem + 2.8vw, 3.8rem);
}

.features-hero .hero-subtitle {
    max-width: 680px;
}

/* Features count strip */
.features-count {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.features-count-item {
    text-align: center;
}

.features-count-number {
    font-size: 1.5rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--text-hero);
    font-family: var(--font-display);
}

.features-count-label {
    font-size: 0.85rem;
    color: color-mix(in srgb, var(--text-body) 85%, transparent);
    margin-top: 2px;
}

/* Feature highlight badge */
.feature-highlight {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 12%, transparent);
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.feature-highlight svg {
    width: 14px;
    height: 14px;
}
