/* ═══════════════════════════════════════════════════════════════
   AlterImmersives V2 — Precision Design System
   Rebuilt for strict UI/UX, Color Theory & Heuristic Principles
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts: DM Sans (display) + Inter (body) ────────── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Design Tokens ─────────────────────────────────────────── */
:root {
    /* Surfaces — warm-tinted dark palette for visual harmony */
    --bg-main:   #080807;   /* Slightly warm near-black */
    --bg-card:   #111110;   /* Elevated surface */
    --bg-card-2: #161614;   /* Hover / deeper surface */

    /* Accent — reserved ONLY for CTAs & key data points */
    --accent-primary:   #FF7B45;
    --accent-secondary: #FF4E50;
    --accent-glow:      rgba(255, 123, 69, 0.12);
    --accent-glow-md:   rgba(255, 123, 69, 0.20);

    /* Text hierarchy — 4-tier scale for clear information density */
    --text-primary:   #F5F5F3;   /* Warm white — headlines */
    --text-secondary: #9E9E9A;   /* Mid — body text */
    --text-tertiary:  #5C5C58;   /* Low — captions, labels */
    --text-inverse:   #080807;   /* On-accent buttons */

    /* Borders — ultra-subtle for depth without noise */
    --border-subtle:  rgba(255, 255, 255, 0.055);
    --border-default: rgba(255, 255, 255, 0.09);
    --border-accent:  rgba(255, 123, 69, 0.22);

    /* Border Radii — consistent scale */
    --r-sm:   6px;
    --r-md:   12px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-pill: 999px;

    /* Spacing — 8px base grid */
    --sp-1: 8px;
    --sp-2: 16px;
    --sp-3: 24px;
    --sp-4: 32px;
    --sp-5: 40px;
    --sp-6: 56px;
    --sp-7: 80px;
    --sp-8: 120px;

    /* Easing — premium motion curves */
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out:  cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring:  cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    /* Unified background texture — subtle noise gives organic depth */
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 10%, rgba(255, 123, 69, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 78, 80, 0.04) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 10% 80%, rgba(40, 30, 60, 0.08) 0%, transparent 60%);
    background-attachment: fixed;
}

/* ── Typography System (Modular Scale) ──────────────────────── */
h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text-primary);
}

/* Display heading — DM Sans for premium authority */
h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 5.5vw, 4rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
}

/* Section heading */
h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    letter-spacing: -0.03em;
    line-height: 1.18;
}

/* Card heading */
h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    letter-spacing: -0.015em;
    line-height: 1.3;
}

h4 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* ── Utility Text Classes ───────────────────────────────────── */

/* Eyebrow label — appears above H2 in each section */
.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: var(--sp-2);
}

/* Gradient text — used ONLY on hero H1 accent line */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Body subtitle */
.subtitle {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 1.5vw, 1.05rem);
    line-height: 1.7;
    max-width: 560px;
    margin-inline: auto;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container {
    width: 90%;
    max-width: 1160px;
    margin-inline: auto;
}

section {
    padding: var(--sp-8) 0;
    position: relative;
}

/* Section header block */
.section-header {
    text-align: center;
    margin-bottom: var(--sp-7);
}

.section-header .subtitle {
    margin-top: var(--sp-2);
}

/* ── Global Background Layer ────────────────────────────────── */
/* Ambient glow orbs — fixed anchor points for visual continuity */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 1;
    z-index: -10;
    pointer-events: none;
    animation: glow-drift 18s ease-in-out infinite alternate;
}

@keyframes glow-drift {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(2%, 4%) scale(1.05); }
    66%  { transform: translate(-3%, 2%) scale(0.97); }
    100% { transform: translate(1%, -3%) scale(1.02); }
}

/* Subtle dot grid overlay — signals precision engineering */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -9;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

/* ── Navigation ─────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1160px;
    z-index: 1000;

    background: rgba(8, 8, 7, 0.72);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-pill);
    padding: 10px 10px 10px 28px;

    box-shadow:
        0 1px 0 rgba(255,255,255,0.06) inset,
        0 24px 48px -12px rgba(0, 0, 0, 0.6);

    transition: background 0.3s var(--ease-in-out);
}

.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--sp-3);
}

.header-inner .logo { justify-self: start; }
.header-inner .btn { justify-self: end; }

.logo {
    display: flex;
    align-items: baseline;
    gap: 3px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.025em;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: var(--sp-5);
    align-items: center;
}

.nav-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.005em;
    transition: color 0.2s var(--ease-in-out);
    white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 12px rgba(255, 123, 69, 0.4);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: var(--r-pill);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.25s var(--ease-out);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 123, 69, 0.30);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(255, 123, 69, 0.40);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--border-accent);
    color: var(--accent-primary);
    background: rgba(255, 123, 69, 0.08);
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding-top: 220px;
    padding-bottom: 120px;
    position: relative;
    overflow: hidden;
}

/* Hero badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px 5px 5px;
    background: rgba(255, 123, 69, 0.08);
    border: 1px solid rgba(255, 123, 69, 0.2);
    border-radius: var(--r-pill);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 40px;
    letter-spacing: 0.01em;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.75); }
}

.hero h1 {
    max-width: 820px;
    margin-bottom: 32px;
}

.hero .subtitle {
    margin-bottom: 56px;
    max-width: 520px;
}

/* CTA row */
.hero-cta {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 80px;
}

/* Stats strip */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl);
    overflow: hidden;
    background: rgba(255,255,255,0.025);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    max-width: 760px;
    width: 100%;
    margin-inline: auto;
}

.hero-stat {
    padding: 20px 24px;
    text-align: center;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat + .hero-stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    height: 64%;
    width: 1px;
    background: var(--border-subtle);
}

.hero-stat-value {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.hero-stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-primary);
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero-stat-desc {
    display: block;
    font-size: 0.68rem;
    color: var(--text-tertiary);
    line-height: 1.3;
    margin-top: 2px;
}

/* Spatial Portal (Hero Visual) */
.hero-portal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

.portal-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid;
}

.portal-ring-1 {
    width: 800px;
    height: 800px;
    border-color: rgba(255, 123, 69, 0.08);
    animation: ring-rotate 40s linear infinite;
}

.portal-ring-2 {
    width: 580px;
    height: 580px;
    border-color: rgba(255, 123, 69, 0.14);
    animation: ring-rotate 28s linear infinite reverse;
}

.portal-ring-3 {
    width: 380px;
    height: 380px;
    border-color: rgba(255, 123, 69, 0.22);
    animation: ring-rotate 18s linear infinite;
}

.portal-ring-4 {
    width: 220px;
    height: 220px;
    border-color: rgba(255, 123, 69, 0.35);
    animation: ring-rotate 10s linear infinite reverse;
}

/* Tick marks on rings */
.portal-ring-1::before,
.portal-ring-2::before,
.portal-ring-3::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 50%;
    width: 5px;
    height: 5px;
    background: var(--accent-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 8px 2px rgba(255, 123, 69, 0.6);
}

.portal-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: radial-gradient(circle, rgba(255,123,69,0.5) 0%, rgba(255,78,80,0.2) 50%, transparent 100%);
    border-radius: 50%;
    animation: core-pulse 3s ease-in-out infinite;
}

.portal-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 123, 69, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes ring-rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes core-pulse {
    0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
    50%       { opacity: 1;   transform: translate(-50%, -50%) scale(1.2); }
}

/* ── Scroll Reveal Animations ───────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}

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

/* Staggered children */
.reveal-group > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
}

.reveal-group.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.reveal-group.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 80ms; }
.reveal-group.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 160ms; }
.reveal-group.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 240ms; }

/* ── Card System ─────────────────────────────────────────────── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl);
    padding: var(--sp-4);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

/* Top-edge highlight — simulates surface light */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35),
                0 0 0 1px rgba(255, 123, 69, 0.08) inset;
}

.card h3 {
    margin-bottom: var(--sp-1);
    color: var(--text-primary);
}

.card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
    flex-grow: 1;
}

/* ── Card Icon ───────────────────────────────────────────────── */
.card-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--sp-3);
    color: var(--text-primary);
    flex-shrink: 0;
}

.card-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--text-secondary);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.card-eyebrow {
    font-family: 'Syne', sans-serif;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: var(--sp-2);
    display: block;
}

/* ── Tech Tag Chips ──────────────────────────────────────────── */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: var(--sp-3);
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid var(--border-default);
    border-radius: var(--r-pill);
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-tertiary);
    letter-spacing: 0.01em;
}

/* ── Grid Layouts ────────────────────────────────────────────── */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-4);
}

.bento-grid .card-wide {
    grid-column: span 2;
}

.bento-grid .card,
.grid-2 .card,
.grid-3 .card,
.grid-4 .card {
    height: 100%;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
}

/* ── Feature List (Pricing) ──────────────────────────────────── */
.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: var(--sp-3) 0 var(--sp-4);
    text-align: left;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 123, 69, 0.12);
    border: 1px solid rgba(255, 123, 69, 0.3);
    flex-shrink: 0;
    margin-top: 1px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 8l2.5 2.5L12 5.5' stroke='%23FF7B45' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: contain;
}

/* ── Pricing Card Highlight ──────────────────────────────────── */
.card-featured {
    border-color: var(--border-accent) !important;
    background: var(--bg-card-2);
    overflow: visible !important;
}

.card-featured::before {
    background: linear-gradient(90deg, transparent, rgba(255, 123, 69, 0.2), transparent) !important;
}

.price-tag {
    font-family: 'DM Sans', sans-serif;
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
    margin: var(--sp-2) 0 4px;
}

.price-tag.accent {
    color: var(--accent-primary);
}

.price-note {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-bottom: var(--sp-3);
}

.plan-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

/* ── Timeline ────────────────────────────────────────────────── */
.timeline {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 24px;
    bottom: 24px;
    left: 23px;
    width: 1px;
    background: linear-gradient(180deg, var(--border-accent), var(--border-subtle), transparent);
}

.timeline-item {
    position: relative;
    padding-left: 68px;
    margin-bottom: var(--sp-3);
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 46px;
    height: 46px;
    background: var(--bg-card);
    border: 1px solid var(--border-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 1;
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.timeline-content:hover {
    border-color: var(--border-accent);
    transform: translateX(4px);
}

.timeline-content h3 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    line-height: 1.7;
}

/* ── Stats / Results Section ─────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl);
    overflow: hidden;
}

.stat-cell {
    background: var(--bg-card);
    padding: var(--sp-5) var(--sp-4);
    text-align: center;
    transition: background 0.2s;
}

.stat-cell:hover {
    background: var(--bg-card-2);
}

.stat-number {
    display: block;
    font-family: 'DM Sans', sans-serif;
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.stat-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--text-tertiary);
    margin-top: 4px;
    line-height: 1.4;
}

/* ── Testimonials ────────────────────────────────────────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-3);
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl);
    padding: var(--sp-5);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s, transform 0.3s var(--ease-out);
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.testimonial-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
}

.stars {
    display: flex;
    gap: 3px;
    margin-bottom: var(--sp-2);
    color: var(--accent-primary);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.testimonial-text {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: var(--sp-3);
    font-style: italic;
}

.author-info h4 {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.author-info p {
    color: var(--text-tertiary);
    font-size: 0.8rem;
    margin-top: 2px;
}

/* ── Video Section ───────────────────────────────────────────── */
.video-wrapper {
    border-radius: var(--r-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    position: relative;
    background: var(--bg-card);
}

.video-wrapper iframe {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    opacity: 0.85;
    pointer-events: auto;
}

.video-controls {
    position: absolute;
    bottom: var(--sp-4);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    background: rgba(8, 8, 7, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-default);
    border-radius: var(--r-pill);
    padding: 10px 20px;
}

.video-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 50%;
    transition: color 0.2s;
}

.video-btn:hover { color: var(--text-primary); }

.video-btn-play {
    width: 44px;
    height: 44px;
    background: var(--accent-primary);
    color: #fff;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(255, 123, 69, 0.35);
}

.video-btn-play:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(255, 123, 69, 0.5);
}

/* ── Segmented Control ───────────────────────────────────────── */
.toggle-instruction {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-primary);
    margin-top: 24px;
    margin-bottom: 40px;
    padding: 8px 24px;
    border-radius: var(--r-pill);
    position: relative;
    z-index: 1;
}

.toggle-instruction::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: radial-gradient(ellipse at center, rgba(255, 123, 69, 0.8) 0%, transparent 80%);
    box-shadow: 0 4px 16px 2px rgba(255, 123, 69, 0.35);
}

.segment-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: var(--sp-7);
}

.slider-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color 0.3s;
}

.slider-label.active {
    color: #fff;
}

.switch-slider {
    width: 64px;
    height: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: 32px;
    position: relative;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4) inset;
    transition: background 0.3s;
}

.switch-knob {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 4px;
    transition: transform 0.4s var(--ease-spring);
    box-shadow: 0 4px 12px rgba(255,123,69,0.5);
}

.switch-slider.toggled .switch-knob {
    transform: translateX(30px);
}

/* ── CTA Section ─────────────────────────────────────────────── */
.cta-section {
    text-align: center;
    padding: var(--sp-8) 0;
}

.cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--r-xl);
    padding: var(--sp-7) var(--sp-5);
    position: relative;
    overflow: hidden;
    max-width: 800px;
    margin: 0 auto;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 123, 69, 0.4), transparent);
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 123, 69, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: var(--sp-7) 0 var(--sp-5);
    margin-top: var(--sp-7);
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-7);
    margin-bottom: var(--sp-7);
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 0.88rem;
    margin-top: var(--sp-2);
    max-width: 280px;
    line-height: 1.6;
}

.footer-links h4 {
    color: var(--text-secondary);
    margin-bottom: var(--sp-3);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--sp-3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

/* ── Fade-In (initial page load) ────────────────────────────── */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fade-in-up 0.7s var(--ease-out) both;
}

/* ── Section Divider ─────────────────────────────────────────── */
.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
    margin: 0;
}

/* ── Bento Grid ──────────────────────────────────────────────── */
.bento-grid {
    display: grid;
    gap: var(--sp-4);
    grid-template-columns: repeat(2, 1fr);
}

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

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* ── Responsive Grids ── */
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-grid .card-wide { grid-column: span 2; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root { --sp-8: 80px; }
    
    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    
    .header-btn {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        background: rgba(8, 8, 7, 0.95);
        border-top: 1px solid var(--border-subtle);
        margin-top: 15px;
        border-radius: 0 0 16px 16px;
        position: absolute;
        top: 100%;
        left: 0;
    }

    .nav-open .nav-links {
        display: flex;
    }

    .nav-open .menu-toggle span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .nav-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }
    .nav-open .menu-toggle span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .grid-3,
    .grid-2 { grid-template-columns: 1fr; }
    /* Stack everything on mobile */
    .grid-3,
    .bento-grid,
    .grid-2,
    .grid-4,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .bento-grid .card-wide { grid-column: span 1; grid-row: span 1; }
    .footer-grid { gap: var(--sp-5); }
    
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    
    .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        border-radius: var(--r-xl);
    }

    .hero-stat {
        padding: var(--sp-3) var(--sp-3);
    }
    
    .hero-stat:nth-child(3)::before {
        display: none;
    }

    .hero-portal { width: 360px; height: 360px; }
    .portal-ring-1 { width: 320px; height: 320px; }
    .portal-ring-2 { width: 220px; height: 220px; }
    .portal-ring-3 { width: 140px; height: 140px; }
    .portal-ring-4 { width: 70px; height: 70px; }
}

@media (max-width: 480px) {
    .hero-stat {
        flex: 0 0 100%;
    }

    .hero-stat + .hero-stat::before { display: none; }
    
    .cta-section .btn { width: 100%; }
}

/* Background Waves (Global) */
.bg-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -20;
    overflow: hidden;
    pointer-events: none;
}
.bg-waves svg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    min-width: 1440px;
    height: auto;
}

/* Partner Logos */
.partner-logo {
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1) opacity(0.6);
    transition: filter 0.4s ease, transform 0.4s ease, opacity 0.4s ease;
}

.partner-logo:hover {
    filter: brightness(0) invert(1) opacity(1);
    transform: translateY(-3px);
}
