/* ═══════════════════════════════════════════════════════════════════════════
   AVERTIR LANDING PAGE - PREMIUM DESIGN SYSTEM
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
    /* Brand Colors */
    --primary: #D32F2F;
    --primary-rgb: 211, 47, 47;
    --primary-light: #FF5252;
    --primary-light-rgb: 255, 82, 82;
    --primary-dark: #B71C1C;
    --accent: #FF8A80;

    /* Neutrals - Main naming */
    --bg-dark: #0A0A0A;
    --bg-card: #121212;
    --bg-elevated: #1A1A1A;
    --bg-hover: #252525;

    /* Neutrals - Alternative naming (for compatibility) */
    --bg-primary: #0A0A0A;
    --bg-secondary: #121212;
    --bg-tertiary: #1A1A1A;
    --surface: #121212;
    --surface-elevated: #1A1A1A;

    /* Borders */
    --border: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    --border-light: rgba(255, 255, 255, 0.05);

    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-disabled: rgba(255, 255, 255, 0.3);

    /* Semantic Colors */
    --success: #4CAF50;
    --success-light: #81C784;
    --warning: #FF9800;
    --warning-light: #FFB74D;
    --error: #F44336;
    --error-light: #E57373;
    --info: #2196F3;
    --info-light: #64B5F6;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #D32F2F 0%, #FF5252 100%);
    --gradient-dark: linear-gradient(180deg, #121212 0%, #0D0D0D 50%, #000000 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(211, 47, 47, 0.15) 0%, transparent 70%);
    --gradient-surface: linear-gradient(180deg, #1A1A1A 0%, #121212 100%);

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(211, 47, 47, 0.3);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-padding: clamp(60px, 10vw, 120px);
    --container-width: 1200px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
}

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    gap: 8px;
    background: var(--bg-elevated);
    padding: 6px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition-fast);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.lang-btn:hover:not(.active) {
    color: var(--text-primary);
    background: var(--bg-hover);
}

/* ═══════════════════════════════════════════════════════════════════════════
   LANGUAGE DISPLAY RULES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Default state: Show English, hide French */
[data-lang="en"] { display: block; }
[data-lang="fr"] { display: none; }

/* Inline elements default */
span[data-lang="en"], a[data-lang="en"] { display: inline; }
span[data-lang="fr"], a[data-lang="fr"] { display: none; }

/* When French is active (via html lang attribute) */
html[lang="fr"] [data-lang="en"] { display: none !important; }
html[lang="fr"] [data-lang="fr"] { display: block !important; }
html[lang="fr"] span[data-lang="fr"],
html[lang="fr"] a[data-lang="fr"] { display: inline !important; }

/* When French is active (via body class) */
body.lang-fr [data-lang="en"] { display: none !important; }
body.lang-fr [data-lang="fr"] { display: block !important; }
body.lang-fr span[data-lang="fr"],
body.lang-fr a[data-lang="fr"] { display: inline !important; }

/* Ensure English shows when explicitly set */
html[lang="en"] [data-lang="en"] { display: block !important; }
html[lang="en"] [data-lang="fr"] { display: none !important; }
html[lang="en"] span[data-lang="en"],
html[lang="en"] a[data-lang="en"] { display: inline !important; }

body.lang-en [data-lang="en"] { display: block !important; }
body.lang-en [data-lang="fr"] { display: none !important; }
body.lang-en span[data-lang="en"],
body.lang-en a[data-lang="en"] { display: inline !important; }

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 20px 0;
    transition: var(--transition-medium);
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

/* Official Avertir Logo - Concentric Rings */
.logo-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 48px;
    height: 48px;
}

.logo-brand {
    display: flex;
    flex-direction: column;
    gap: 0;
    --logo-scale: 1;
}

.logo-text {
    font-family: var(--font-display);
    font-size: calc(1.5rem * var(--logo-scale));
    font-weight: 900;
    letter-spacing: calc(4px * var(--logo-scale));
    color: white;
    line-height: 1;
}

.logo-tagline {
    font-size: calc(0.55rem * var(--logo-scale));
    font-weight: 600;
    letter-spacing: calc(2.5px * var(--logo-scale));
    color: var(--primary-light);
    line-height: 1;
    margin-top: calc(6px * var(--logo-scale));
    opacity: 0.9;
}

/* Compact logo on scroll */
.navbar.scrolled .logo-brand {
    --logo-scale: 0.833;
}

.navbar.scrolled .logo-tagline {
    display: none;
}

.navbar.scrolled .logo-icon {
    width: 40px;
    height: 40px;
}

.navbar.scrolled .logo-icon svg {
    width: 40px;
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
    align-items: center;
}

.nav-links li {
    display: flex;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
    padding: 8px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 12px 24px !important;
    background: var(--gradient-primary);
    border-radius: 30px;
    color: white !important;
    font-weight: 600;
    box-shadow: var(--shadow-glow);
    transition: var(--transition-medium);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px rgba(211, 47, 47, 0.5);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: white;
    transition: var(--transition-fast);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.98);
    z-index: 998;
    padding: 100px 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
    text-align: center;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-dark);
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    animation: pulse 4s ease-in-out infinite;
}

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

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero .container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.patent-pending-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 152, 0, 0.1));
    border: 2px solid rgba(255, 193, 7, 0.5);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #FFD54F;
    margin-bottom: 20px;
    animation: fadeInUp 0.5s ease, patentGlow 2s ease-in-out infinite alternate;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.15), inset 0 0 20px rgba(255, 193, 7, 0.05);
}

@keyframes patentGlow {
    from { box-shadow: 0 0 20px rgba(255, 193, 7, 0.15), inset 0 0 20px rgba(255, 193, 7, 0.05); }
    to { box-shadow: 0 0 30px rgba(255, 193, 7, 0.25), inset 0 0 25px rgba(255, 193, 7, 0.08); }
}

.patent-pending-badge svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.footer-patent {
    font-size: 0.75rem;
    opacity: 0.5;
    margin-top: 4px;
    letter-spacing: 0.03em;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease;
}

.hero-badge .badge-icon,
.hero-badge svg {
    width: 18px;
    height: 18px;
}

.hero h1 {
    margin-bottom: 24px;
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border: none;
    transition: var(--transition-medium);
    text-decoration: none;
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 80px rgba(211, 47, 47, 0.6);
    color: white;
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

.stat {
    text-align: left;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Phone Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    animation: fadeInRight 0.8s ease 0.3s backwards;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 620px;
    background: var(--bg-card);
    border-radius: 40px;
    border: 4px solid #333;
    box-shadow: var(--shadow-lg), 0 0 100px rgba(211, 47, 47, 0.2);
    overflow: hidden;
}

.phone-screen {
    position: absolute;
    inset: 12px;
    background: var(--gradient-dark);
    border-radius: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.phone-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 30px;
    background: #000;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.app-logo {
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.app-logo svg {
    width: 60px;
    height: 60px;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.app-name {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 8px;
    color: white;
}

.app-tagline {
    font-size: 10px;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

.app-status {
    width: 100%;
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background: #4CAF50;
    border-radius: 50%;
    animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(76, 175, 80, 0); }
}

.status-text {
    font-size: 14px;
    font-weight: 600;
    color: #4CAF50;
}

.status-details {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

/* Floating elements around phone */
.floating-card {
    position: absolute;
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
    animation: floatCard 4s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 80px;
    right: -60px;
    animation-delay: 0s;
}

.floating-card.card-2 {
    bottom: 120px;
    left: -80px;
    animation-delay: 1s;
}

.floating-card.card-3 {
    top: 200px;
    left: -40px;
    animation-delay: 2s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.card-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

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

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

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

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PROBLEM / SOLUTION SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.problem-section {
    padding: var(--section-padding) 0;
    background: var(--bg-card);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.section-label {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-header h2 {
    margin-bottom: 20px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--bg-elevated);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
}

.problem-card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: var(--shadow-glow);
}

.problem-icon {
    width: 60px;
    height: 60px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.problem-icon svg {
    width: 32px;
    height: 32px;
    color: var(--primary-light);
}

.problem-card h4 {
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.features-section {
    padding: var(--section-padding) 0;
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.feature-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-medium);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, var(--bg-card) 100%);
    border-color: rgba(211, 47, 47, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-list li::before {
    content: '\2713';
    color: var(--primary);
    font-weight: bold;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TECHNOLOGY SECTION - 9-LAYER DEEP INTELLIGENCE
   ═══════════════════════════════════════════════════════════════════════════ */

.tech-section {
    padding: var(--section-padding) 0;
    background: var(--bg-card);
    position: relative;
    overflow: hidden;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: var(--gradient-glow);
    pointer-events: none;
}

.tech-content {
    position: relative;
    z-index: 1;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.2) 0%, rgba(255, 82, 82, 0.1) 100%);
    border: 1px solid rgba(211, 47, 47, 0.3);
    border-radius: 50px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.tech-badge svg {
    width: 24px;
    height: 24px;
    color: var(--primary-light);
}

.layers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.layer-card {
    background: var(--bg-elevated);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition-medium);
}

.layer-card:hover {
    border-color: rgba(211, 47, 47, 0.3);
    transform: translateY(-5px);
}

.layer-number {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 18px;
    color: white;
}

.layer-card h4 {
    margin-top: 10px;
    margin-bottom: 12px;
    font-size: 16px;
}

.layer-card p {
    font-size: 14px;
    line-height: 1.5;
}

.tech-highlight {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    padding: 40px;
    background: var(--bg-elevated);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.highlight-item {
    text-align: center;
}

.highlight-value {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-label {
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   HOW IT WORKS SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.how-section {
    padding: var(--section-padding) 0;
}

.steps-container {
    display: flex;
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    margin: 0 auto 24px;
    position: relative;
    z-index: 1;
    color: var(--text-primary);
}

.step h4 {
    margin-bottom: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   USE CASES / WHO IT'S FOR
   ═══════════════════════════════════════════════════════════════════════════ */

.usecases-section {
    padding: var(--section-padding) 0;
    background: var(--bg-card);
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.usecase-card {
    background: var(--bg-elevated);
    border-radius: 20px;
    padding: 30px 24px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-medium);
}

.usecase-card:hover {
    transform: translateY(-8px);
    border-color: rgba(211, 47, 47, 0.3);
    box-shadow: var(--shadow-glow);
}

.usecase-icon {
    width: 70px;
    height: 70px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.usecase-icon svg {
    width: 36px;
    height: 36px;
    color: var(--primary-light);
}

.usecase-card h4 {
    margin-bottom: 8px;
    font-size: 18px;
}

.usecase-card p {
    font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════════════════════════════════════ */

.testimonials-section {
    padding: var(--section-padding) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
}

.testimonial-stars svg {
    width: 20px;
    height: 20px;
    color: #FFD700;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    color: white;
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-section {
    padding: var(--section-padding) 0;
    background: var(--bg-card);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-elevated);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-question {
    width: 100%;
    padding: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    font-family: var(--font-main);
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    font-weight: 300;
    transition: var(--transition-fast);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 24px;
    font-size: 15px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.cta-section {
    padding: var(--section-padding) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.5;
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    transition: var(--transition-medium);
    text-decoration: none;
    color: var(--text-primary);
}

.store-btn:hover {
    background: var(--bg-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
    color: var(--text-primary);
}

.store-btn svg {
    width: 32px;
    height: 32px;
}

.store-btn-text {
    text-align: left;
}

.store-btn-text span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
}

.store-btn-text strong {
    font-size: 18px;
    color: var(--text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════════ */

.footer {
    padding: 60px 0 30px;
    background: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 14px;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--bg-elevated);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
}

.footer-social svg {
    width: 20px;
    height: 20px;
}

.footer-column h5 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
    color: var(--text-muted);
}

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

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    font-size: 15px;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 14px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    color: var(--text-muted);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 60px;
    }

    .floating-card {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card.featured {
        grid-column: span 1;
    }

    .layers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .usecases-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu {
        display: block;
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .layers-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
    }

    .steps-container::before {
        display: none;
    }

    .usecases-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .tech-highlight {
        flex-direction: column;
        gap: 30px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .lang-switcher {
        top: 10px;
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat {
        text-align: center;
    }

    .phone-mockup {
        width: 260px;
        height: 540px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    .patent-pending-badge {
        font-size: 11px;
        padding: 8px 14px;
        letter-spacing: 0.08em;
    }

    .hero-badge {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   LEGAL PAGES STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.legal-page {
    padding-top: 120px;
    padding-bottom: var(--section-padding);
}

.legal-page .container {
    max-width: 900px;
}

.legal-header {
    margin-bottom: 60px;
    text-align: center;
}

.legal-header h1 {
    margin-bottom: 16px;
}

.legal-meta {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.legal-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-meta svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.legal-body {
    max-width: 900px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 48px;
    border: 1px solid var(--border);
}

.legal-toc {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 24px 32px;
    margin-bottom: 48px;
    border: 1px solid var(--border);
}

.legal-toc h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-toc ol {
    columns: 2;
    column-gap: 32px;
    padding-left: 20px;
}

.legal-toc li {
    margin-bottom: 8px;
    break-inside: avoid;
}

.legal-toc a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.legal-toc a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.legal-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 100px;
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-section h2 .section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    flex-shrink: 0;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.legal-section p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.legal-section ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.legal-content h2 {
    margin-top: 48px;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-content h3 {
    margin-top: 32px;
    margin-bottom: 16px;
}

.legal-content p {
    margin-bottom: 16px;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.legal-content a {
    color: var(--primary-light);
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 40px;
}

.legal-intro {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 24px 30px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary);
}

.legal-intro p {
    margin-bottom: 0;
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-section-content {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.legal-section-content:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.legal-section-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.legal-section-content h3 {
    font-size: 1.15rem;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.legal-section-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.legal-section-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.legal-section-content li {
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
}

.legal-table th,
.legal-table td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-table th {
    background: var(--bg-elevated);
    font-weight: 600;
}

.legal-table td {
    color: var(--text-secondary);
}

/* Cookie Table - for cookie policy page */
.cookie-table {
    margin: 24px 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.cookie-table th,
.cookie-table td {
    padding: 14px 16px;
    text-align: left;
    border: 1px solid var(--border);
}

.cookie-table thead {
    background: var(--bg-elevated);
}

.cookie-table th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.cookie-table tbody tr {
    background: var(--bg-dark);
}

.cookie-table tbody tr:hover {
    background: var(--bg-elevated);
}

.cookie-table td {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.cookie-table td:first-child {
    font-family: 'Courier New', monospace;
    color: var(--primary-light);
}

/* section.legal-section as page wrapper (for cookies, etc.) */
section.legal-section {
    padding: 140px 0 80px;
    background: var(--bg-dark);
    min-height: 100vh;
}

section.legal-section > .container {
    max-width: 900px;
}

section.legal-section .legal-content {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 48px;
    border: 1px solid var(--border);
}

.info-box {
    background: var(--bg-elevated);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
}

.warning-box {
    background: rgba(211, 47, 47, 0.1);
    border-left: 4px solid var(--primary);
    padding: 20px 24px;
    margin: 24px 0;
    border-radius: 0 12px 12px 0;
}

.warning-box strong {
    color: var(--primary-light);
}

/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HEADER (for secondary pages)
   ═══════════════════════════════════════════════════════════════════════════ */

.page-header {
    position: relative;
    padding: 160px 0 80px;
    text-align: center;
    overflow: hidden;
}

.page-header .hero-bg,
.page-header .hero-glow {
    position: absolute;
    inset: 0;
}

.page-header .hero-bg {
    background: var(--gradient-dark);
}

.page-header .hero-glow {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: var(--gradient-glow);
    animation: pulse 4s ease-in-out infinite;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.page-header h1 span {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header .hero-description {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   CONTACT PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.contact-section {
    padding: 80px 0;
    background: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-card h4 {
    margin-bottom: 16px;
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   GUIDE/TROUBLESHOOTING PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.guide-nav {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 20px;
    margin-bottom: 40px;
}

.guide-nav h4 {
    margin-bottom: 16px;
}

.guide-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.guide-nav a {
    display: inline-block;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
}

.guide-nav a:hover {
    background: var(--primary);
    color: white;
}

.guide-section {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 24px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.guide-section h2 {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.step-list {
    counter-reset: step;
}

.step-list li {
    position: relative;
    padding-left: 50px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.step-list li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    width: 36px;
    height: 36px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

/* Table of Contents Section */
.toc-section {
    padding: 60px 0;
    background: var(--bg-dark);
}

.toc-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid var(--border);
}

.toc-card h3 {
    margin-bottom: 24px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.toc-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    padding-left: 24px;
}

.toc-list li {
    margin-bottom: 8px;
}

.toc-list a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

.toc-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* Guide Article Styles */
.guide-article {
    display: flex;
    gap: 30px;
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--border);
}

.guide-number {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background: var(--gradient-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: white;
}

.guide-content {
    flex: 1;
}

.guide-content h2 {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.guide-content h3 {
    margin: 24px 0 12px;
    color: var(--text-primary);
    font-size: 1.15rem;
}

.guide-content p {
    margin-bottom: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.guide-content ol,
.guide-content ul {
    margin: 16px 0;
    padding-left: 24px;
}

.guide-content li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.guide-content li strong {
    color: var(--text-primary);
}

.note {
    background: var(--bg-elevated);
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    margin: 20px 0;
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.note strong {
    color: var(--primary-light);
}

@media (max-width: 768px) {
    .guide-article {
        flex-direction: column;
        gap: 20px;
    }

    .guide-number {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 24px;
    }

    .toc-list {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   TROUBLESHOOTING PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.troubleshooting-section {
    padding: 60px 0 100px;
    background: var(--bg-dark);
}

.troubleshooting-article {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    scroll-margin-top: 100px;
}

.issue-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.issue-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.issue-icon svg {
    width: 28px;
    height: 28px;
}

.issue-icon.error {
    background: rgba(244, 67, 54, 0.15);
    color: #F44336;
}

.issue-icon.warning {
    background: rgba(255, 152, 0, 0.15);
    color: #FF9800;
}

.issue-icon.info {
    background: rgba(33, 150, 243, 0.15);
    color: #2196F3;
}

.issue-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.issue-description {
    color: var(--text-secondary);
    font-size: 1rem;
    margin: 0;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.solution-card {
    background: var(--bg-elevated);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--border);
    position: relative;
}

.solution-step {
    position: absolute;
    top: -12px;
    left: 24px;
    width: 32px;
    height: 32px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
}

.solution-card h4 {
    margin-bottom: 16px;
    padding-top: 8px;
    color: var(--text-primary);
}

.solution-card ol,
.solution-card ul {
    padding-left: 20px;
    margin: 0;
}

.solution-card li {
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.solution-card li strong {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .issue-header {
        flex-direction: column;
        gap: 16px;
    }

    .issue-icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRICING PAGE STYLES
   ═══════════════════════════════════════════════════════════════════════════ */

.pricing-hero {
    padding: 160px 0 60px;
    background: var(--gradient-dark);
    position: relative;
    text-align: center;
}

.pricing-hero .section-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.pricing-section {
    padding: 60px 0 100px;
    background: var(--bg-dark);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 60px auto;
}

.pricing-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition-medium);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
}

.pricing-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(211, 47, 47, 0.1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.pricing-header h2 {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 4px;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured::before {
    content: 'RECOMMENDED';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-name {
    font-size: 24px;
    margin-bottom: 8px;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.pricing-price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-description {
    margin-bottom: 30px;
    color: var(--text-secondary);
}

.pricing-badge.premium {
    background: var(--gradient-primary);
    color: white;
}

.pricing-features {
    margin-bottom: 30px;
    list-style: none;
    padding: 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Included features - green checkmark */
.pricing-features li.included svg {
    color: #4CAF50;
}

.pricing-features li.included span {
    color: var(--text-primary);
}

/* Not included features - red X, muted text */
.pricing-features li.not-included svg {
    color: rgba(255, 255, 255, 0.3);
}

.pricing-features li.not-included span {
    color: var(--text-muted);
    text-decoration: line-through;
    text-decoration-color: rgba(255, 255, 255, 0.2);
}

/* Highlight - emphasized feature */
.pricing-features li.highlight {
    background: rgba(211, 47, 47, 0.1);
    margin: 0 -20px;
    padding: 14px 20px;
    border-radius: 8px;
    border-bottom: none;
}

.pricing-features li.highlight span {
    font-weight: 600;
    color: var(--primary-light);
}

/* Premium feature - subtle highlight */
.pricing-features li.premium-feature svg {
    color: var(--primary-light);
}

.pricing-features li.premium-feature span {
    color: var(--text-primary);
}

/* Pricing CTA button */
.pricing-cta {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.pricing-card.featured .pricing-cta {
    background: var(--gradient-primary);
    color: white;
    border: none;
}

.pricing-card.featured .pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

    .pricing-features li.highlight {
        margin: 0 -16px;
        padding: 14px 16px;
    }
}

/* No Subscription Highlight Section */
.no-subscription-section {
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0.1) 0%, var(--bg-dark) 100%);
}

.no-sub-content {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.no-sub-icon {
    width: 100px;
    height: 100px;
    min-width: 100px;
    background: var(--gradient-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.no-sub-icon svg {
    width: 56px;
    height: 56px;
    color: white;
}

.no-sub-text h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.no-sub-text p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .no-sub-content {
        flex-direction: column;
        text-align: center;
    }

    .no-sub-icon {
        width: 80px;
        height: 80px;
        min-width: 80px;
    }

    .no-sub-icon svg {
        width: 44px;
        height: 44px;
    }
}

/* Comparison Table Section */
.comparison-section {
    padding: 80px 0;
    background: var(--bg-card);
}

.comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.comparison-table thead {
    background: var(--bg-elevated);
}

.comparison-table th {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.comparison-table th:not(:first-child) {
    text-align: center;
}

.comparison-table td:not(:first-child) {
    text-align: center;
}

.comparison-table tbody tr {
    background: var(--bg-dark);
    transition: var(--transition-fast);
}

.comparison-table tbody tr:hover {
    background: var(--bg-elevated);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table .category-row {
    background: var(--bg-elevated) !important;
}

.comparison-table .category-row td {
    font-weight: 600;
    color: var(--primary-light);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px 20px;
}

.comparison-table td.check svg,
.comparison-table td.cross svg {
    width: 24px;
    height: 24px;
}

.comparison-table td.check svg {
    color: #4CAF50;
}

.comparison-table td.cross svg {
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .comparison-table th,
    .comparison-table td {
        padding: 12px 14px;
        font-size: 0.9rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMATION CLASSES
   ═══════════════════════════════════════════════════════════════════════════ */

/* Scroll Animation Classes (used by JavaScript) */
.animate-hidden {
    opacity: 0;
    transform: translateY(30px);
}

.animate-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up {
    animation: fadeInUp 0.6s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
