/* ============================================
   NeanderCoder - "Cave Code" Dark Theme
   A caveman doing vibe coding.
   Stone-age textures meet neon terminal glow.
   ============================================ */

/* ============================================
   CAVE CODE THEME (Dark Default)
   ============================================ */
:root,
.theme-white {
    /* Primary Colors — Fire / Amber */
    --color-primary: #f59e0b;
    --color-primary-dark: #d97706;
    --color-primary-light: #fbbf24;
    --color-primary-rgb: 245, 158, 11;

    /* Secondary Colors — Deep Purple (cave amethyst) */
    --color-secondary: #7c3aed;
    --color-secondary-light: #a78bfa;
    --color-secondary-rgb: 124, 58, 237;

    /* Accent Colors — Terminal Green */
    --color-accent: #10b981;
    --color-accent-light: #34d399;
    --color-accent-rgb: 16, 185, 129;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-success-light: #34d399;
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-error: #ef4444;
    --color-error-light: rgba(239, 68, 68, 0.15);
    --color-info: #3b82f6;
    --color-info-light: #60a5fa;

    /* Background Colors — Deep cave */
    --bg-primary: #0a0a14;
    --bg-secondary: #0d0d1a;
    --bg-tertiary: #111120;
    --bg-elevated: #14142a;
    --bg-overlay: rgba(0, 0, 0, 0.6);

    /* Surface Colors */
    --surface-card: rgba(255, 255, 255, 0.03);
    --surface-card-hover: rgba(255, 255, 255, 0.06);
    --surface-input: rgba(255, 255, 255, 0.03);
    --surface-highlight: rgba(245, 158, 11, 0.08);

    /* Text Colors */
    --text-primary: #f0f0f5;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    --text-on-primary: #0a0a14;
    --text-on-dark: #f0f0f5;
    --text-link: #f59e0b;
    --text-link-hover: #fbbf24;

    /* Border Colors */
    --border-default: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.04);
    --border-focus: #f59e0b;
    --border-error: #ef4444;

    /* Shadow Colors */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(245, 158, 11, 0.2);
    --shadow-glow-lg: 0 0 60px rgba(245, 158, 11, 0.3);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #10b981 100%);
    --gradient-hero: linear-gradient(180deg, #0a0a14 0%, #0d0d1a 100%);
    --gradient-card: linear-gradient(135deg, rgba(245, 158, 11, 0.04) 0%, rgba(124, 58, 237, 0.04) 100%);
    --gradient-shine: linear-gradient(90deg, transparent 0%, rgba(245, 158, 11, 0.15) 50%, transparent 100%);

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Typography — Sora: geometric, modern but with character */
    --font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    --font-size-6xl: 3.75rem;

    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;

    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--text-primary);
    background-color: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Cave texture overlay — applied to body */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* ============================================
   LAYOUT
   ============================================ */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.main-content {
    flex: 1;
    overflow-x: hidden;
}

.main-content > section {
    visibility: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-sm { max-width: 640px; }
.container-md { max-width: 768px; }
.container-lg { max-width: 1024px; }

.section {
    padding: var(--space-4xl) 0;
    position: relative;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-lg {
    padding: calc(var(--space-4xl) * 1.5) 0;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
}

h1 { font-size: var(--font-size-5xl); }
h2 { font-size: var(--font-size-4xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

a {
    color: var(--text-link);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--text-link-hover);
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    line-height: 1;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-on-primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow-lg);
    color: var(--text-on-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1.5px solid var(--border-default);
}

.btn-secondary:hover {
    border-color: var(--color-primary);
    background: var(--surface-highlight);
    color: var(--color-primary);
}

.btn-accent {
    background: var(--color-accent);
    color: var(--text-on-primary);
}

.btn-accent:hover {
    background: var(--color-accent-light);
}

.btn-outline {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--text-on-primary);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    background: var(--surface-highlight);
    color: var(--text-primary);
}

.btn-lg {
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-xl);
}

.btn-sm {
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
    border-radius: var(--radius-md);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border-radius: var(--radius-lg);
}

.login-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
}

.login-btn svg {
    flex-shrink: 0;
}

/* ============================================
   CARDS — Stone Tablet Style
   ============================================ */
.card {
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    transition: all var(--transition-normal);
    position: relative;
}

.card:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.15);
}

.card-elevated {
    box-shadow: var(--shadow-md);
    border: none;
}

.card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.card-gradient {
    background: var(--gradient-card);
    border: 1px solid rgba(245, 158, 11, 0.08);
}

.card-feature {
    padding: var(--space-2xl);
    text-align: center;
}

.card-feature .icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(245, 158, 11, 0.05) 100%);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-xl);
    font-size: 1.75rem;
}

.card-feature h3 {
    margin-bottom: var(--space-md);
}

/* ============================================
   NAVIGATION — Cave Entrance
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: all var(--transition-normal);
}

.navbar-scrolled {
    box-shadow: var(--shadow-md), 0 0 40px rgba(245, 158, 11, 0.05);
    border-bottom-color: rgba(245, 158, 11, 0.1);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.navbar-logo {
    height: 5.5rem;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.navbar-link {
    color: var(--text-secondary);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-sm);
    letter-spacing: 0.02em;
    transition: color var(--transition-fast);
    padding: var(--space-sm) 0;
    position: relative;
}

.navbar-link:hover,
.navbar-link.active {
    color: var(--color-primary);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-normal);
    border-radius: 1px;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.4);
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.navbar-mobile-menu {
    display: none;
}

.navbar-toggle span {
    display: block;
    width: 1.5rem;
    height: 2px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: all var(--transition-fast);
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block;
    }

    .navbar-links {
        display: none !important;
    }

    .navbar-actions {
        display: none !important;
    }

    .navbar-mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-primary);
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--border-default);
        z-index: var(--z-dropdown);
        text-align: center;
    }

    .navbar-mobile-menu.open {
        display: flex;
    }

    .navbar-mobile-menu .language-selector {
        position: static;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .navbar-mobile-menu .language-dropdown {
        position: static;
        box-shadow: none;
        border: 1px solid var(--border-default);
        margin-top: var(--space-sm);
    }
}

/* ============================================
   HERO SECTION — Cave Entrance
   ============================================ */
.hero {
    padding: calc(var(--space-4xl) * 2) 0 var(--space-4xl);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

/* Firelight glow */
.hero::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 70%;
    height: 140%;
    background: radial-gradient(ellipse, rgba(245, 158, 11, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

/* Secondary glow */
.hero::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 50%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr auto;
    gap: 0 var(--space-4xl);
    align-items: center;
}

.hero-content .hero-text {
    grid-column: 1;
    grid-row: 1;
}

.hero-content .hero-actions {
    grid-column: 1;
    grid-row: 2;
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-content .hero-image {
    grid-column: 2;
    grid-row: 1 / 3;
}

.hero-text {
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, var(--font-size-6xl));
    font-weight: var(--font-weight-extrabold);
    margin-bottom: var(--space-lg);
    line-height: 1.1;
    outline: none;
    letter-spacing: -0.03em;
}

.hero-title:focus,
.hero-title *:focus,
.text-gradient:focus {
    outline: none;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    line-height: var(--line-height-relaxed);
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video {
    max-width: 100%;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl), var(--shadow-glow-lg);
}

.hero-floating {
    position: absolute;
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    animation: float 3s ease-in-out infinite;
}

.hero-floating-1 {
    top: 10%;
    right: -10%;
}

.hero-floating-2 {
    bottom: 15%;
    left: -5%;
    animation-delay: -1.5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@media (max-width: 968px) {
    .hero {
        padding: var(--space-4xl) 0 var(--space-xl);
    }

    .hero-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        text-align: center;
        gap: var(--space-lg);
    }

    .hero-content .hero-text {
        grid-column: 1;
        grid-row: auto;
        order: 1;
        max-width: 100%;
    }

    .hero-content .hero-image {
        grid-column: 1;
        grid-row: auto;
        order: 2;
        max-width: 95%;
        margin: 0 auto;
    }

    .hero-content .hero-actions {
        grid-column: 1;
        grid-row: auto;
        order: 3;
        justify-content: center;
    }

    .hero-badge {
        margin-bottom: var(--space-sm);
    }

    .hero-title {
        margin-bottom: var(--space-sm);
    }

    .hero-subtitle {
        margin-bottom: 0;
    }

    .hero-image video {
        max-height: 400px;
        width: auto;
    }
}

/* ============================================
   FEATURE SECTIONS
   ============================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.features-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.features-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 968px) {
    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .features-grid,
    .features-grid-3,
    .features-grid-4 {
        grid-template-columns: 1fr;
    }
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
    align-items: center;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-showcase-content h2 {
    margin-bottom: var(--space-lg);
}

.feature-showcase-content p {
    margin-bottom: var(--space-xl);
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    color: var(--text-secondary);
}

.feature-list li::before {
    content: '\2713';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    flex-shrink: 0;
}

.feature-showcase-image {
    position: relative;
}

.feature-showcase-image img {
    width: 100%;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .feature-showcase {
        grid-template-columns: 1fr;
    }

    .feature-showcase.reverse {
        direction: ltr;
    }
}

/* ============================================
   PRICING — Stone Tablets
   ============================================ */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    position: relative;
    padding: var(--space-2xl);
}

.pricing-card.featured {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--text-on-primary);
    transform: scale(1.05);
    overflow: visible;
    border-color: transparent;
}

.pricing-card.featured p,
.pricing-card.featured .pricing-feature {
    color: rgba(10, 10, 20, 0.7);
}

.pricing-card.featured .pricing-price {
    color: var(--text-on-primary);
}

.pricing-badge {
    display: flex;
    justify-content: center;
    margin: calc(-1 * var(--space-xl)) auto var(--space-md);
    width: fit-content;
    padding: var(--space-xs) var(--space-md);
    background: #10b981;
    color: white;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-semibold);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.pricing-price {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--text-primary);
}

.pricing-price span {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-normal);
    opacity: 0.7;
}

.pricing-features {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.pricing-feature:last-child {
    border-bottom: none;
}

.pricing-card.featured .pricing-feature {
    border-bottom-color: rgba(10, 10, 20, 0.15);
}

.pricing-card.featured .btn {
    background: var(--bg-primary);
    color: var(--color-primary);
}

/* ============================================
   TESTIMONIALS
   ============================================ */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.testimonial-card {
    padding: var(--space-2xl);
}

.testimonial-content {
    font-size: var(--font-size-lg);
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-relaxed);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.testimonial-name {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
}

.testimonial-role {
    font-size: var(--font-size-sm);
    color: var(--text-muted);
}

/* ============================================
   STATS — Fire Numbers
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-extrabold);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--space-sm);
    filter: drop-shadow(0 0 12px rgba(245, 158, 11, 0.3));
}

.stat-label {
    color: var(--text-muted);
    font-weight: var(--font-weight-medium);
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSE TIME CARDS (Contact page)
   ============================================ */
.response-time-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    max-width: 800px;
    margin: 0 auto;
}

.response-time-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xl) var(--space-lg);
    background: var(--surface-card);
    border: 1px solid var(--border-default);
    border-radius: 16px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.response-time-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 20px rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.15);
}

.response-time-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.response-time-value {
    font-size: var(--font-size-3xl, 1.875rem);
    font-weight: var(--font-weight-extrabold, 800);
    line-height: 1.1;
}

.response-time-label {
    color: var(--text-muted);
    font-size: var(--font-size-sm, 0.875rem);
    font-weight: var(--font-weight-medium, 500);
}

@media (max-width: 640px) {
    .response-time-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
}

/* ============================================
   CTA SECTION — Fire Portal
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: var(--text-on-primary);
    text-align: center;
    padding: var(--space-4xl);
    border-radius: var(--radius-2xl);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: var(--text-on-primary);
    margin-bottom: var(--space-md);
}

.cta-section p {
    color: rgba(10, 10, 20, 0.7);
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.cta-section .btn {
    background: var(--bg-primary);
    color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-section .btn:hover {
    background: var(--bg-secondary);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
}

/* ============================================
   FOOTER — Deep Cave
   ============================================ */
.footer {
    background: #060610;
    border-top: 1px solid var(--border-default);
    padding: var(--space-4xl) 0 var(--space-xl);
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: var(--space-4xl);
    margin-bottom: var(--space-3xl);
}

.footer-brand p {
    margin-top: var(--space-md);
    max-width: 300px;
}

.footer-title {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-link {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-link:hover {
    color: var(--color-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--border-default);
}

.footer-copyright {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* ============================================
   LANGUAGE SELECTOR
   ============================================ */
.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.language-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: var(--space-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    z-index: var(--z-dropdown);
    display: none;
}

.language-dropdown.open {
    display: block;
}

.language-option {
    display: block;
    width: 100%;
    padding: var(--space-md);
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.language-option:hover {
    background: var(--surface-highlight);
    color: var(--color-primary);
}

.language-option.active {
    color: var(--color-primary);
    font-weight: var(--font-weight-medium);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.hidden { display: none !important; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.grid { display: grid; }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }
.mb-3xl { margin-bottom: var(--space-3xl); }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Fire flicker for accents */
@keyframes fireFlicker {
    0%, 100% { opacity: 1; filter: brightness(1); }
    25% { opacity: 0.9; filter: brightness(1.1); }
    50% { opacity: 1; filter: brightness(0.95); }
    75% { opacity: 0.95; filter: brightness(1.05); }
}

/* Ember float */
@keyframes emberFloat {
    0% { transform: translateY(0) scale(1); opacity: 0.6; }
    50% { transform: translateY(-30px) scale(0.8); opacity: 1; }
    100% { transform: translateY(-60px) scale(0.4); opacity: 0; }
}

.animate-fade-in { animation: fadeIn 0.5s ease forwards; }
.animate-slide-in { animation: slideIn 0.5s ease forwards; }
.animate-fire { animation: fireFlicker 3s ease-in-out infinite; }

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-3xl);
}

.section-header h2 {
    margin-bottom: var(--space-md);
}

.section-header p {
    font-size: var(--font-size-lg);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    line-height: var(--line-height-relaxed);
}

/* ============================================
   RESPONSIVE VISIBILITY
   ============================================ */
@media (max-width: 640px) {
    .hide-mobile { display: none !important; }
}

@media (min-width: 641px) {
    .show-mobile { display: none !important; }
}

/* ============================================
   SCROLL EFFECTS
   ============================================ */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.js-ready .scroll-reveal:not(.revealed) {
    opacity: 0;
    transform: translateY(30px);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PRICE STRIKETHROUGH
   ============================================ */
.price-strikethrough {
    position: relative;
    display: inline-block;
    color: rgba(255, 255, 255, 0.5);
}

.price-strikethrough::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #ef4444 10%, #ef4444 90%, transparent 100%);
    transform: rotate(-12deg);
    transform-origin: center;
}

/* ============================================
   LEGAL CONTENT STYLING
   ============================================ */
.legal-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: var(--font-size-base);
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.legal-content p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.legal-content ul,
.legal-content ol {
    margin-bottom: var(--space-lg);
    padding-left: var(--space-xl);
}

.legal-content li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
}

.legal-content li::marker {
    color: var(--color-primary);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.legal-content a:hover {
    color: var(--color-primary-light);
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-lg) 0;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.legal-content th,
.legal-content td {
    padding: var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--border-default);
}

.legal-content th {
    background: rgba(245, 158, 11, 0.08);
    color: var(--text-primary);
    font-weight: 600;
}

.legal-content tr:last-child td {
    border-bottom: none;
}

.legal-content tr:hover td {
    background: rgba(245, 158, 11, 0.03);
}

/* Non-English notice styling */
.legal-content .non-english-notice {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(245, 158, 11, 0.03));
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.legal-content .non-english-notice h3 {
    margin-top: 0;
    color: var(--color-primary);
}

/* Protected email links */
.protected-email {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.protected-email:hover {
    color: var(--color-primary-light);
    text-decoration: underline;
}

/* ============================================
   CAVE DECORATIONS — Reusable
   ============================================ */

/* Subtle grid overlay for dark sections */
.cave-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Glow orb decoration */
.cave-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
}

.cave-glow--amber {
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
}

.cave-glow--purple {
    background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
}

/* Ember particles container */
#cave-embers {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
