/* ==================== LANDING 2 - LIGHT MODERN THEME ==================== */

/* ==================== CSS VARIABLES ==================== */
:root {
    /* Light Theme Colors */
    --bg-primary: #fafbfc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f3f4f6;
    --bg-elevated: #ffffff;
    
    /* Text Colors */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #ffffff;
    
    /* Brand Colors - Trading Theme */
    --accent-primary: #0ea5e9;
    --accent-secondary: #06b6d4;
    --accent-gradient: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #14b8a6 100%);
    --accent-glow: rgba(14, 165, 233, 0.4);
    
    /* Success/Error */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --error: #ef4444;
    --warning: #f59e0b;
    
    /* Grid Colors */
    --grid-line: rgba(14, 165, 233, 0.08);
    --grid-point: rgba(14, 165, 233, 0.3);
    --grid-point-active: rgba(14, 165, 233, 0.8);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px var(--accent-glow);
    
    /* Spacing */
    --nav-height: 56px;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

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

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
}

/* Custom cursor elements hidden */
.cursor-main,
.cursor-trail,
.cursor-glow {
    display: none;
}

/* ==================== PARALLAX BACKGROUND ==================== */
#trading-grid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    filter: blur(40px);
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    z-index: 1000;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
}

.navbar.scrolled {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-container {
    max-width: none;
    margin: 0;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform var(--transition-base);
}

.nav-brand:hover {
    transform: translateY(-2px);
}

.brand-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 10px;
    color: white;
    box-shadow: var(--shadow-md), 0 0 20px var(--accent-glow);
    transition: transform var(--transition-spring), box-shadow var(--transition-base);
}

.brand-icon svg {
    width: 24px;
    height: 24px;
}

.nav-brand:hover .brand-icon {
    transform: rotate(-5deg) scale(1.05);
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 8px;
    transition: all var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 2px;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: transform var(--transition-base);
}

.nav-link:hover {
    color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.05);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--accent-primary);
}

.nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

/* Language Switch */
.language-switch {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 8px;
    padding: 4px;
    margin-left: 16px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lang-btn.active {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    box-shadow: var(--shadow-sm);
}

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

/* ==================== FULLPAGE SECTIONS ==================== */
.fullpage-container {
    height: 100vh;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Hide scrollbar but keep functionality */
.fullpage-container::-webkit-scrollbar {
    width: 0;
    background: transparent;
}

.fp-section {
    min-height: 100vh;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: var(--nav-height) 2rem 2rem;
}

.section-content {
    max-width: 1200px;
    width: 100%;
    z-index: 1;
}

/* Section Dots Navigation */
.section-dots {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

.dot::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--accent-glow);
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(0.8);
}

.dot:hover {
    transform: scale(1.3);
    background: rgba(14, 165, 233, 0.2);
}

.dot:hover::before {
    opacity: 1;
    transform: scale(1);
}

.dot:active {
    transform: scale(1.1);
    transition: transform 0.1s ease;
}

.dot.active {
    background: var(--accent-primary);
    box-shadow: 0 0 12px var(--accent-glow);
}

.dot.active:hover {
    transform: scale(1.2);
}

/* ==================== HERO SECTION ==================== */
.hero-section {
    text-align: center;
    overflow: hidden;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 2px;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeSlideDown 0.8s ease backwards;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-logo {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-primary);
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
}

.badge-logo svg {
    width: 40px;
    height: 40px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge:hover {
    border-radius: 100px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
}

.hero-badge:hover .badge-logo {
    border-radius: 50%;
}

.hero-badge:hover .badge-logo svg {
    transform: scale(1.1) rotate(5deg);
}

.badge-text {
    max-width: 0;
    opacity: 0;
    white-space: nowrap;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-badge:hover .badge-text {
    max-width: 250px;
    opacity: 1;
    padding: 0 20px 0 8px;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.hero-title {
    font-family: 'Urbanist', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    animation: fadeSlideUp 0.8s ease 0.1s backwards;
    overflow: visible;
}

.title-line {
    display: block;
}

.gradient-text {
    --gradient-angle: 90deg;
    --gradient-shift: 0%;
}

/* Liquid Text Effect */
.liquid-text {
    display: inline-flex;
    cursor: default;
    padding: 20px 10px;
    margin: -20px -10px;
    overflow: visible;
}

.liquid-text .char {
    display: inline-block;
    will-change: transform;
    /* Shared gradient ocean across viewport */
    background: linear-gradient(
        90deg,
        #0ea5e9 0%,
        #22d3ee 15%,
        #6366f1 35%,
        #8b5cf6 50%,
        #a855f7 65%,
        #06b6d4 85%,
        #0ea5e9 100%
    );
    background-attachment: fixed;
    background-size: 200vw 100%;
    background-position: var(--gradient-shift, 0) 0;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    overflow: visible;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
    animation: fadeSlideUp 0.8s ease 0.2s backwards;
}

.hero-highlight {
    font-size: 1rem;
    font-weight: 500;
    max-width: 600px;
    margin-bottom: 2rem;
    margin-top: 0.5rem;
    padding: 12px 20px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border: 1px solid rgba(14, 165, 233, 0.25);
    border-radius: 12px;
    animation: fadeSlideUp 0.8s ease 0.35s backwards;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-primary);
}

.hero-highlight .highlight-icon {
    font-size: 1.1rem;
    animation: pulse 2s ease-in-out infinite;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
    animation: fadeSlideUp 0.8s ease 0.3s backwards;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--accent-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2), 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.btn-primary:hover svg {
    transform: translateX(4px);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:active svg {
    transform: translateX(2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    transition: all var(--transition-base);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.btn-outline:hover {
    background: var(--bg-tertiary);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
}

.btn-outline:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

/* Floating Stats */
.floating-stats {
    display: flex;
    gap: 1.5rem;
    animation: fadeSlideUp 0.8s ease 0.4s backwards;
    align-items: flex-start; /* prevent neighbors from stretching vertically */
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-shadow: var(--shadow-md);
    position: relative; /* anchor prompt thinking indicator */
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.3s ease,
                box-shadow 0.3s ease,
                border-color 0.3s ease;
    animation: statFloat 4s ease-in-out infinite;
    width: 140px;
    height: 100px; /* fixed height for all cards */
    flex-shrink: 0;
}

/* Pause float animation when hovering to prevent transform conflicts */
.floating-stats.is-hovering .stat-card {
    animation-play-state: paused;
}

/* Prompt card: slightly wider than neighbors */
.stat-card-prompt {
    width: 210px; /* a bit larger by default so more text fits */
    overflow: hidden;
    height: 115px; /* allow one more preview line without clipping */
}

/* When prompt is expanded */
.stat-card-prompt.is-expanded {
    width: 420px;
    height: 160px; /* grows vertically too */
}

/* Shrink neighbors slightly when prompt is expanded */
.floating-stats.is-hovering .stat-card:not(.stat-card-prompt) {
    width: 120px;
}

.stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.stat-card:nth-child(3) {
    animation-delay: 1s;
}

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

.stat-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg), 0 0 20px var(--accent-glow);
}

/* Override hover transform for prompt card when expanded */
.stat-card-prompt.is-expanded:hover {
    transform: translateY(-4px);
}

.ai-thinking {
    position: absolute;
    top: 12px;
    right: 14px;
    display: inline-flex;
    gap: 4px;
    align-items: center;
    opacity: 0.75;
}

.ai-thinking .dot {
    width: 4px;
    height: 4px;
    border-radius: 999px;
    background: var(--text-muted);
    animation: aiDotPulse 1.1s ease-in-out infinite;
}

.ai-thinking .dot:nth-child(2) { animation-delay: 0.15s; }
.ai-thinking .dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes aiDotPulse {
    0%, 100% { transform: translateY(0); opacity: 0.45; }
    50% { transform: translateY(-2px); opacity: 1; }
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    transition: color 0.3s ease, text-shadow 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    line-height: 1.1;
}

/* Prompt text styling - no line-clamp changes, just overflow hidden on card */
.stat-value.prompt {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.45;
    color: var(--text-secondary);
    white-space: normal; /* override .stat-value nowrap */
    overflow-wrap: anywhere;
    word-break: break-word;
    /* 2-line ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 3; /* show a bit more text by default */
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Prevent the "scale" look on the prompt panel (text scaling feels glitchy) */
.stat-card-prompt:hover {
    transform: translateY(-4px);
}

/* Two-layer prompt text: stable preview + instant full text overlay */
.stat-card-prompt .prompt-text {
    position: relative;
    flex: 1;
    min-height: 0;
}

.stat-card-prompt .prompt-preview {
    opacity: 1;
    transition: opacity 0.12s ease;
}

.stat-card-prompt .prompt-full {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;

    /* full text: no clamp, no ellipsis */
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.stat-card-prompt.is-expanded .prompt-preview {
    opacity: 0;
}

.stat-card-prompt.is-expanded .prompt-full {
    opacity: 1;
}

.stat-value.updating {
    color: var(--accent-primary);
    text-shadow: 0 0 20px var(--accent-glow);
}

.stat-trend {
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    line-height: 1.15;
}

.stat-trend.positive {
    color: var(--success);
}

.stat-trend.negative {
    color: var(--error);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: fadeIn 1s ease 1s backwards;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 8px;
    border-radius: 20px;
}

.scroll-indicator:hover {
    opacity: 0.8;
    transform: translateX(-50%) translateY(-3px);
}

.scroll-indicator:active {
    transform: translateX(-50%) translateY(0);
    opacity: 0.6;
}

.scroll-indicator span {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.scroll-indicator:hover span {
    color: var(--accent-primary);
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-primary), transparent);
    animation: scrollLine 2s ease-in-out infinite;
    transition: height 0.3s ease;
}

.scroll-indicator:hover .scroll-line {
    animation-duration: 1s;
    height: 50px;
}

@keyframes scrollLine {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ==================== FEATURES SECTION ==================== */
.features-section {
    background: var(--bg-tertiary);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.06), 0 -2px 8px rgba(0, 0, 0, 0.03);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.features-section .section-header {
    margin-bottom: 0.75rem;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.feature-card {
    flex: 0 1 calc(33.333% - 0.75rem);
    max-width: calc(33.333% - 0.75rem);
    min-width: 250px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 1.25rem;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
    box-sizing: border-box;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-glow);
    transform: translateY(-5px);
}

.feature-card:active {
    transform: translateY(-2px) scale(0.99);
    transition: transform 0.1s ease;
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    color: var(--accent-primary);
    position: relative;
    overflow: hidden;
}

/* Gradient overlay that fades in smoothly */
.feature-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 14px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    position: relative;
    z-index: 1;
    transition: color 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover .feature-icon {
    box-shadow: 0 8px 24px var(--accent-glow);
    transition: box-shadow 0.5s ease;
}

.feature-card:hover .feature-icon::before {
    opacity: 1;
}

.feature-card:hover .feature-icon svg {
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--accent-primary);
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    transition: color 0.3s ease;
}

.feature-card:hover p {
    color: var(--text-primary);
}

/* Coming Soon Badge */
.feature-card.coming-soon {
    position: relative;
}

.feature-card.coming-soon::before {
    content: 'Coming Soon';
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* i18n: translate pseudo-element content via document language */
html[lang="de"] .feature-card.coming-soon::before {
    content: 'Demnächst';
}

html[lang="en"] .feature-card.coming-soon::before {
    content: 'Coming soon';
}

.feature-card.coming-soon:hover::before {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

/* Feature Card Expandable Indicator */
.feature-card {
    cursor: pointer;
    position: relative;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M17 7H7M17 7V17'/%3E%3C/svg%3E");
    background-size: contain;
    opacity: 0;
    transform: translate(-5px, 5px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover::after {
    opacity: 0.6;
    transform: translate(0, 0);
}

/* ==================== FEATURE MODAL ==================== */
.feature-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
}

.feature-modal {
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    transform: scale(0.9) translateY(30px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(14, 165, 233, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.feature-modal-overlay.active .feature-modal {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.feature-modal-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-modal-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-gradient);
    border-radius: 14px;
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.feature-modal-icon svg {
    width: 24px;
    height: 24px;
}

.feature-modal-title {
    flex: 1;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.feature-modal-close {
    width: 36px;
    height: 36px;
    min-width: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: scale(1.05);
}

.feature-modal-close svg {
    width: 18px;
    height: 18px;
}

.feature-modal-body {
    padding: 1.5rem 2rem 2rem;
    overflow-y: auto;
    max-height: calc(80vh - 150px);
}

.feature-modal-short {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-modal-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.1) 20%, rgba(14, 165, 233, 0.3) 50%, rgba(255, 255, 255, 0.1) 80%, transparent 100%);
    margin-bottom: 1.25rem;
}

.feature-modal-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0;
}

.feature-modal-description strong {
    color: var(--text-primary);
    font-weight: 600;
}

.feature-link {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px dashed rgba(14, 165, 233, 0.4);
    transition: all 0.2s ease;
}

.feature-link:hover {
    color: var(--accent-secondary);
    border-bottom-color: var(--accent-secondary);
    border-bottom-style: solid;
}

.feature-modal-highlights {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-modal-highlight {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-modal-highlight:hover {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.2);
    transform: translateX(5px);
}

.feature-modal-highlight-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--accent-primary);
    margin-top: 2px;
}

.feature-modal-highlight-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Coming Soon Badge in Modal */
.feature-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

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

/* Modal with Prompts - Larger */
.feature-modal.has-prompts {
    max-width: 750px;
}

/* Example Prompts Section */
.feature-modal-prompts {
    margin-top: 1.5rem;
}

.feature-modal-prompts-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-modal-prompts-title svg {
    width: 18px;
    height: 18px;
    color: var(--accent-primary);
}

.feature-modal-prompts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-modal-prompt-card {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.15);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
}

.feature-modal-prompt-card:hover {
    background: rgba(14, 165, 233, 0.08);
    border-color: rgba(14, 165, 233, 0.25);
    transform: translateY(-2px);
}

.feature-modal-prompt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.feature-modal-prompt-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(14, 165, 233, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
}

.feature-modal-prompt-copy {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.feature-modal-prompt-copy:hover {
    background: rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
    color: var(--accent-primary);
    transform: scale(1.05);
}

.feature-modal-prompt-copy.copied {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.3);
    color: #22c55e;
}

.feature-modal-prompt-copy svg {
    width: 16px;
    height: 16px;
}

.feature-modal-prompt-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-style: italic;
    padding-left: 0.75rem;
    border-left: 2px solid rgba(14, 165, 233, 0.3);
}

/* Modal Responsive */
@media (max-width: 600px) {
    .feature-modal-overlay {
        padding: 1rem;
        align-items: flex-end;
    }
    
    .feature-modal {
        max-height: 90vh;
        border-radius: 24px 24px 0 0;
    }
    
    .feature-modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    
    .feature-modal-body {
        padding: 1rem 1.5rem 1.5rem;
    }
    
    .feature-modal-title {
        font-size: 1.25rem;
    }
    
    .feature-modal.has-prompts {
        max-width: 100%;
    }
    
    .feature-modal-prompt-card {
        padding: 0.875rem 1rem;
    }
    
    .feature-modal-prompt-text {
        font-size: 0.85rem;
    }
}

/* ==================== VIDEOS SECTION ==================== */
.videos-section {
    background: var(--bg-primary);
    padding: var(--nav-height) 0 4rem !important;
    overflow: visible;
}

.videos-section .section-content {
    max-width: none;
    width: 100%;
    padding: 0 3rem;
    margin: 0 auto;
    overflow: visible;
}

.videos-section .section-header {
    padding: 0;
    max-width: 1200px;
    margin: 0 auto 3rem;
}

/* Statisches 3-Spalten Grid - Volle Breite */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 2rem 0;
}

.video-card {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    opacity: 1;
    /* Modern layered drop shadow */
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.15),
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: 
        transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
        filter 0.4s ease;
}

/* Hover-Effekt: Video wird größer und hervorgehoben */
.video-card:hover {
    transform: scale(1.05);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.2),
        0 40px 80px rgba(14, 165, 233, 0.2),
        0 60px 120px rgba(14, 165, 233, 0.15),
        0 0 60px rgba(14, 165, 233, 0.1),
        0 0 0 2px rgba(14, 165, 233, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 100;
    position: relative;
}

/* Andere Cards dimmen wenn eine gehovered wird */
.videos-grid:hover .video-card:not(:hover) {
    opacity: 0.6;
    filter: brightness(0.8);
    transform: scale(0.98);
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: transparent;
    border-radius: 0;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--bg-secondary);
    display: block;
    pointer-events: none;
    user-select: none;
}

/* Multi-Quality Video Layering */
.video-wrapper .video-low,
.video-wrapper .video-mid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-out;
}

.video-wrapper .video-low {
    z-index: 1;
    opacity: 1;
}

.video-wrapper .video-mid {
    z-index: 2;
    opacity: 0;
}

/* Hover: Crossfade zu Mid-Quality */
.video-card:hover .video-wrapper .video-low {
    opacity: 0;
}

.video-card:hover .video-wrapper .video-mid {
    opacity: 1;
}

/* Keine Interaktion mit Video erlauben */
.video-wrapper video::-webkit-media-controls {
    display: none !important;
}

.video-wrapper video::-webkit-media-controls-enclosure {
    display: none !important;
}

.video-wrapper.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 16px 16px 0 0;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.video-card:hover .placeholder-content {
    transform: scale(1.1);
    color: rgba(255, 255, 255, 0.6);
}

.placeholder-content svg {
    width: 64px;
    height: 64px;
    opacity: 0.5;
}

.placeholder-content span {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

.video-info {
    padding: 1.25rem 1.5rem;
    transition: padding 0.4s ease;
}

.video-card:hover .video-info {
    padding: 1.5rem 2rem;
}

.video-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--text-primary);
    transition: color 0.3s ease, font-size 0.4s ease;
}

.video-card:hover .video-info h3 {
    color: var(--accent-primary);
    font-size: 1.25rem;
}

.video-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: font-size 0.4s ease;
}

.video-card:hover .video-info p {
    font-size: 1rem;
}

/* Responsive Videos - Statisches Grid */
@media (max-width: 1200px) {
    .videos-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    /* Drittes Video zentriert */
    .videos-grid .video-card:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        justify-self: center;
    }
}

@media (max-width: 768px) {
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1rem 0;
    }
    
    .videos-grid .video-card:nth-child(3) {
        max-width: 100%;
    }
    
    .videos-section .section-content {
        padding: 0 1rem;
    }
    
    .video-card:hover {
        transform: scale(1.02);
    }
    
    .videos-grid:hover .video-card:not(:hover) {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* ==================== VIDEO FULLSCREEN ==================== */

.video-fullscreen-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    overflow: auto;
}

.video-fullscreen-overlay.active {
    opacity: 1;
}

.video-fullscreen-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
}

.video-fullscreen-close {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10001;
}

.video-fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.video-fullscreen-close svg {
    width: 20px;
    height: 20px;
}

.video-fullscreen-content {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.video-fullscreen-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

.video-fullscreen-info {
    margin-top: 1.5rem;
    text-align: center;
    color: white;
}

.video-fullscreen-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.video-fullscreen-info p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Cursor hint on video cards */
.video-card {
    cursor: pointer;
}

.video-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(0, 0, 0, 0.3) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    border-radius: 16px;
}

.video-card:hover::after {
    opacity: 1;
}


@media (max-width: 700px) {
    .video-fullscreen-overlay {
        padding: 1rem;
    }
    
    .video-fullscreen-close {
        top: -45px;
        right: 0;
    }
    
    .video-fullscreen-info h3 {
        font-size: 1.2rem;
    }
}

/* ==================== PROCESS SECTION (Legacy) ==================== */
.process-section {
    background: var(--bg-primary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
}

/* Connection line between cards */
.process-timeline::before {
    content: '';
    position: absolute;
    top: 60px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--accent-primary) 20%, 
        var(--accent-secondary) 50%, 
        var(--accent-primary) 80%, 
        transparent 100%
    );
    opacity: 0.3;
    z-index: 0;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 2rem 1.5rem;
    border: 1px solid transparent;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 1;
}

.process-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.process-step:hover {
    transform: translateY(-8px);
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: var(--shadow-lg);
}

.step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.process-step:hover .step-number {
    background: var(--accent-gradient);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 8px 24px var(--accent-glow);
}

.step-content {
    margin-bottom: 1.5rem;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.process-step:hover .step-content h3 {
    color: var(--accent-primary);
}

.step-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.step-visual {
    width: 100%;
    display: flex;
    justify-content: center;
}

.code-preview {
    background: var(--text-primary);
    border-radius: 12px;
    padding: 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: var(--shadow-md);
    text-align: left;
    width: 100%;
    transition: all 0.3s ease;
}

.process-step:hover .code-preview {
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.code-line {
    color: #94a3b8;
}

.code-key {
    color: var(--accent-secondary);
}

.trigger-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    width: 100%;
}

.chip {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
    cursor: default;
}

.chip:hover {
    border-color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.08);
    color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.result-preview {
    width: 100%;
}

.result-bar {
    height: 44px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    transition: all 0.3s ease;
}

.process-step:hover .result-bar {
    box-shadow: var(--shadow-md);
    transform: scale(1.02);
}

.result-bar::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--width);
    background: var(--accent-gradient);
    border-radius: 12px;
    animation: fillBar 1.5s ease forwards;
}

.result-bar span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 16px;
    font-size: 13px;
    font-weight: 600;
    color: white;
    font-family: 'JetBrains Mono', monospace;
}

@keyframes fillBar {
    from { width: 0; }
}

/* ==================== PRICING SECTION ==================== */
.pricing-section {
    background: var(--bg-tertiary);
}

/* Billing Toggle - Segmented Control */
.billing-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    background: var(--bg-secondary);
    border-radius: 14px;
    padding: 5px;
    position: relative;
    box-shadow: var(--shadow-sm), inset 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.billing-option {
    position: relative;
    z-index: 1;
    padding: 10px 28px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: color var(--transition-base);
}

.billing-option:hover:not(.active) {
    color: var(--text-secondary);
}

.billing-option.active {
    color: white;
}

.billing-slider {
    position: absolute;
    top: 5px;
    bottom: 5px;
    left: 5px;
    width: calc(50% - 5px);
    background: var(--accent-gradient);
    border-radius: 10px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.billing-toggle[data-active="annually"] .billing-slider {
    transform: translateX(100%);
}

/* ==================== PROMO CODE INPUT ==================== */
.promo-code-wrapper {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.promo-code-input-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 4px;
    box-shadow: var(--shadow-sm), inset 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--transition-base);
}

.promo-code-input-group:focus-within {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-sm), 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.promo-code-input-group.valid {
    border-color: var(--success);
    box-shadow: var(--shadow-sm), 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.promo-code-input-group.invalid {
    border-color: var(--error);
    box-shadow: var(--shadow-sm), 0 0 0 3px rgba(239, 68, 68, 0.15);
}

#promoCodeInput {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    background: transparent;
    border: none;
    outline: none;
    min-width: 180px;
    text-transform: uppercase;
}

#promoCodeInput::placeholder {
    color: var(--text-muted);
    text-transform: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: normal;
}

#promoCodeBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: white;
    background: var(--accent-gradient);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

#promoCodeBtn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

#promoCodeBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

#promoCodeBtn .promo-spinner {
    display: none;
    width: 16px;
    height: 16px;
    animation: spin 1s linear infinite;
}

#promoCodeBtn.loading span {
    display: none;
}

#promoCodeBtn.loading .promo-spinner {
    display: block;
}

/* Promo Clear Button */
.promo-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: var(--error);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.promo-clear-btn svg {
    width: 16px;
    height: 16px;
    stroke: white;
}

.promo-clear-btn:hover {
    background: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.promo-code-wrapper.has-active-code .promo-clear-btn {
    display: flex;
}

.promo-code-wrapper.has-active-code #promoCodeInput {
    background: rgba(16, 185, 129, 0.05);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.promo-code-message {
    font-size: 13px;
    font-weight: 500;
    min-height: 20px;
    transition: all var(--transition-base);
}

.promo-code-message.success {
    color: var(--success);
}

.promo-code-message.error {
    color: var(--error);
}

.promo-code-message .promo-icon {
    margin-right: 6px;
}

/* Discounted price styling */
.price-amount.discounted {
    position: relative;
}

.price-original {
    display: block;
    font-size: 0.5em;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 2px;
    font-weight: 400;
}

.price-discounted {
    color: var(--success);
}

.discount-badge {
    position: absolute;
    top: -8px;
    right: -45px;
    padding: 3px 8px;
    background: var(--success);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-card .save-badge {
    position: absolute;
    top: -10px;
    right: 16px;
    padding: 4px 10px;
    background: var(--success);
    color: white;
    font-size: 10px;
    font-weight: 700;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 3px 10px rgba(16, 185, 129, 0.35);
    transition: all 0.3s ease;
    z-index: 2;
}

.pricing-card .save-badge.hidden {
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
}


/* Pricing Wrapper - Contains Free Plan + Main Grid */
.pricing-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.pricing-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    border-color: rgba(14, 165, 233, 0.2);
    box-shadow: var(--shadow-lg);
    transform: translateY(-8px);
}

.pricing-card.featured {
    border: 2px solid var(--accent-primary);
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.03) 0%, var(--bg-secondary) 100%);
    box-shadow: var(--shadow-lg), 0 0 40px var(--accent-glow);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.featured.visible {
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: var(--shadow-xl), 0 0 60px var(--accent-glow);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--accent-gradient);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 100px;
    box-shadow: 0 4px 16px var(--accent-glow);
}

/* ==================== FREE TIER CARD ==================== */
.pricing-wrapper > .pricing-card.free-tier {
    position: absolute;
    left: -320px;
    top: 16px;
    width: 300px;
    background: linear-gradient(145deg, 
        rgba(241, 245, 249, 0.95) 0%, 
        rgba(226, 232, 240, 0.6) 100%);
    border: 2px dashed rgba(148, 163, 184, 0.5);
}

.pricing-card.free-tier::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(100, 116, 139, 0.4) 20%,
        rgba(100, 116, 139, 0.6) 50%,
        rgba(100, 116, 139, 0.4) 80%,
        transparent 100%);
    border-radius: 24px 24px 0 0;
}

.pricing-card.free-tier.visible {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card.free-tier:hover {
    border-color: rgba(100, 116, 139, 0.6);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(100, 116, 139, 0.1);
    transform: translateY(-8px);
}

.free-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 14px;
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    border-radius: 100px;
    box-shadow: 0 3px 10px rgba(100, 116, 139, 0.3);
    white-space: nowrap;
}

.pricing-card.free-tier .plan-icon {
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.2) 0%, rgba(100, 116, 139, 0.1) 100%);
    color: #64748b;
}

.pricing-card.free-tier:hover .plan-icon {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(100, 116, 139, 0.25);
}

.pricing-card.free-tier .plan-name {
    color: #475569;
}

.pricing-card.free-tier:hover .plan-name {
    color: #334155;
}

.pricing-card.free-tier .price-amount {
    color: #64748b;
    font-size: 2.25rem;
}

.pricing-card.free-tier .price-period {
    color: #94a3b8;
}

.pricing-card.free-tier .plan-features {
    font-size: 0.9rem;
    gap: 0.6rem;
}

.plan-cta.free {
    background: linear-gradient(135deg, #64748b 0%, #94a3b8 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 14px rgba(100, 116, 139, 0.25);
}

.plan-cta.free:hover {
    background: linear-gradient(135deg, #475569 0%, #64748b 100%);
    box-shadow: 0 6px 20px rgba(100, 116, 139, 0.35);
    transform: translateY(-2px);
}

.plan-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.plan-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 16px;
    margin: 0 auto 1rem;
    color: var(--accent-primary);
    transition: all var(--transition-base);
}

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

.pricing-card:hover .plan-icon {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
    transform: scale(1.1) rotate(-5deg);
}

.pricing-card.featured .plan-icon {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 24px var(--accent-glow);
}

.plan-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
    transition: color var(--transition-base);
}

.pricing-card:hover .plan-name {
    color: var(--accent-primary);
}

.pricing-card.featured .plan-name {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.plan-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.plan-price {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--bg-tertiary);
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 700;
    font-family: 'Inter', 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.03em;
    display: inline-block;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.pricing-card.featured .price-amount {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Reset text-fill-color for discount elements in featured card */
.pricing-card.featured .price-amount.discounted {
    background: none;
    -webkit-text-fill-color: inherit;
}

.pricing-card.featured .price-original {
    -webkit-text-fill-color: var(--text-muted);
}

.pricing-card.featured .price-discounted {
    -webkit-text-fill-color: var(--success);
}

.pricing-card.featured .discount-badge {
    -webkit-text-fill-color: white;
}

.price-period {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    transition: color var(--transition-base);
}

.plan-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--success);
}

.plan-features li.disabled {
    opacity: 0.5;
}

.plan-features li.disabled svg {
    color: var(--text-muted);
}

.pricing-card:hover .plan-features li:not(.disabled) {
    color: var(--text-primary);
}

.infinity-symbol {
    font-size: 1.3em;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    top: -1px;
}

.plan-cta {
    width: 100%;
    padding: 14px 24px;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.plan-cta:hover {
    background: var(--text-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plan-cta:active {
    transform: translateY(0) scale(0.98);
}

.plan-cta.featured {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.plan-cta.featured:hover {
    box-shadow: 0 8px 30px var(--accent-glow);
    transform: translateY(-3px);
}

.plan-cta.featured svg {
    width: 18px;
    height: 18px;
    transition: transform var(--transition-base);
}

.plan-cta.featured:hover svg {
    transform: translateX(4px);
}

.plan-cta.outline {
    background: transparent;
    border: 2px solid var(--bg-tertiary);
}

.plan-cta.outline:hover {
    border-color: var(--accent-primary);
    background: rgba(14, 165, 233, 0.05);
    color: var(--accent-primary);
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(180deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 0;
}

.cta-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--success-light);
    border: 1px solid var(--success);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--success);
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

.cta-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.cta-title .highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.cta-form-wrapper {
    margin-bottom: 2rem;
}

.inline-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 1rem;
}

.inline-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--bg-tertiary);
    border-radius: 12px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.inline-form input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    transform: translateY(-1px);
}

.inline-form input:focus::placeholder {
    opacity: 0.5;
}

.inline-form input::placeholder {
    color: var(--text-muted);
}

.inline-form button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    background: var(--accent-gradient);
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.inline-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.inline-form button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px var(--accent-glow);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.inline-form button:hover svg {
    transform: translateX(3px);
    transition: transform 0.2s ease;
}

.inline-form button:active svg {
    transform: translateX(1px);
}

.inline-form button svg {
    width: 18px;
    height: 18px;
}

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

.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    transition: all 0.2s ease;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: default;
}

.trust-item:hover {
    color: var(--text-secondary);
    background: rgba(16, 185, 129, 0.08);
}

.trust-item svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    transition: transform 0.2s ease;
}

.trust-item:hover svg {
    transform: scale(1.15);
}

/* Footer */
.footer {
    width: 100%;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid var(--bg-tertiary);
    margin-top: auto;
}

.footer p {
    font-size: 14px;
    color: var(--text-muted);
}

/* ==================== MODAL ==================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease, backdrop-filter 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 2.5rem;
    max-width: 440px;
    width: 90%;
    position: relative;
    transform: scale(0.85) translateY(30px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    box-shadow: var(--shadow-xl), 0 0 60px rgba(14, 165, 233, 0.1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.modal-close:hover {
    background: var(--error);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    border-radius: 16px;
    margin: 0 auto 1.25rem;
    color: var(--accent-primary);
}

.modal-icon svg {
    width: 32px;
    height: 32px;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input {
    padding: 14px 16px;
    background: var(--bg-tertiary);
    border: 2px solid transparent;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    color: var(--text-primary);
    transition: all var(--transition-base);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: var(--bg-secondary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    transform: translateY(-1px);
}

.form-group input:focus::placeholder {
    opacity: 0.5;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: var(--accent-gradient);
    color: white;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 0.5rem;
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-submit:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px var(--accent-glow);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s ease;
}

.btn-submit:hover svg {
    transform: translateX(3px);
}

.btn-submit:active svg {
    transform: translateX(1px);
}

/* Success State */
.success-state {
    display: none;
    text-align: center;
}

.success-state.active {
    display: block;
    animation: fadeSlideUp 0.5s ease forwards;
}

.success-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-light);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    color: var(--success);
    animation: successPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards;
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-icon svg {
    width: 40px;
    height: 40px;
    animation: checkDraw 0.4s ease 0.4s backwards;
}

@keyframes checkDraw {
    from {
        stroke-dashoffset: 100;
        opacity: 0;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

.success-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeSlideUp 0.4s ease 0.3s backwards;
}

.success-state p {
    color: var(--text-secondary);
    animation: fadeSlideUp 0.4s ease 0.4s backwards;
}

/* ==================== LOADING SPINNER ==================== */
.loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Disabled state for form elements */
.inline-form input:disabled,
.form-group input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.inline-form button:disabled,
.btn-submit:disabled {
    cursor: not-allowed;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes fadeSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1450px) {
    .pricing-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .pricing-wrapper > .pricing-card.free-tier {
        position: static;
        width: 100%;
        max-width: 500px;
        order: -1;
    }
}

@media (max-width: 1024px) {
    .feature-card {
        flex: 0 1 calc(50% - 1rem);
        max-width: calc(50% - 1rem);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured.visible {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .feature-card {
        flex: 0 1 100%;
        max-width: 100%;
    }
    
    .process-timeline {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .process-timeline::before {
        display: none;
    }
    
    .pricing-wrapper > .pricing-card.free-tier {
        max-width: 340px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: none;
        order: -1;
    }
    
    .pricing-card.featured.visible {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .section-dots {
        right: 1rem;
    }
    
    .floating-stats {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-card {
        width: 100%;
        max-width: 280px;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-primary,
    .btn-outline {
        justify-content: center;
    }
    
    .process-timeline {
        gap: 1.5rem;
    }
    
    .process-step {
        padding: 1.5rem 1.25rem;
    }
    
    .inline-form {
        flex-direction: column;
    }
    
    .inline-form button {
        justify-content: center;
    }
    
    .trust-badges {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .fp-section {
        padding: 5rem 1rem 2rem;
    }
    
    .nav-link {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .language-switch {
        margin-left: 8px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 12px;
    }
}

