/* ==================== BASE ==================== */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* ==================== VARIABLES ==================== */
:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --max-w: 1200px;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.3s ease;
}

[data-theme="dark"] {
    --bg: #000000;
    --bg-alt: #0a0a0a;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.06);
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --text: #f0f0f5;
    --text-secondary: #9898b0;
    --text-muted: #606078;
    --primary: #f97316;
    --primary-rgb: 249, 115, 22;
    --primary-hover: #fb923c;
    --gradient: linear-gradient(135deg, #f97316, #fb923c, #fbbf24);
    --gradient-vivid: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
    --glow-color: rgba(249, 115, 22, 0.15);
    --glow-color-strong: rgba(249, 115, 22, 0.25);
    --card-bg: rgba(255, 255, 255, 0.02);
    --card-border: rgba(255, 255, 255, 0.06);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --badge-yes-bg: rgba(74, 222, 128, 0.12);
    --badge-yes-text: #4ade80;
    --badge-no-bg: rgba(248, 113, 113, 0.12);
    --badge-no-text: #f87171;
    --badge-partial-bg: rgba(251, 191, 36, 0.12);
    --badge-partial-text: #fbbf24;
    --footer-bg: #000000;
    --glow-opacity: 0.5;
}

[data-theme="light"] {
    --bg: #fffaf5;
    --bg-alt: #fff3e8;
    --surface: rgba(0, 0, 0, 0.02);
    --surface-hover: rgba(0, 0, 0, 0.04);
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --text: #111118;
    --text-secondary: #555570;
    --text-muted: #888898;
    --primary: #ea580c;
    --primary-rgb: 234, 88, 12;
    --primary-hover: #c2410c;
    --gradient: linear-gradient(135deg, #ea580c, #f97316, #fb923c);
    --gradient-vivid: linear-gradient(135deg, #c2410c, #ea580c, #f97316);
    --glow-color: rgba(234, 88, 12, 0.08);
    --glow-color-strong: rgba(234, 88, 12, 0.15);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    --badge-yes-bg: rgba(34, 197, 94, 0.1);
    --badge-yes-text: #16a34a;
    --badge-no-bg: rgba(239, 68, 68, 0.1);
    --badge-no-text: #dc2626;
    --badge-partial-bg: rgba(245, 158, 11, 0.1);
    --badge-partial-text: #d97706;
    --footer-bg: #0f0f14;
    --glow-opacity: 0.3;
}

/* ==================== RESET ==================== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ==================== GLASSMORPHISM CARD ==================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.glass-card:hover {
    border-color: rgba(var(--primary-rgb), 0.2);
    box-shadow: var(--glass-shadow), 0 0 40px rgba(var(--primary-rgb), 0.06);
    transform: translateY(-4px);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(var(--primary-rgb), 0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.glass-card:hover .card-glow {
    opacity: 1;
}

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

/* ==================== CLEAN BLINK FADE IN / FADE OUT ==================== */
.gradient-text,
.casino-text,
.kinetic-text,
.blur-focus-text,
.flip-3d-text,
.fade-text {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    color: var(--primary) !important;
    animation: none !important;
    display: block;
    margin-top: 6px;
    cursor: pointer;
    line-height: 1.25;
    opacity: 1;
    will-change: opacity, transform;
    transition: opacity 0.38s ease-in-out, transform 0.38s ease-in-out;
}

.fade-text.fading-out,
.flip-3d-text.fading-out {
    opacity: 0;
    transform: translateY(-3px);
}

.fade-text.fading-in,
.flip-3d-text.fading-in {
    opacity: 0;
    transform: translateY(3px);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: flex;
    border-radius: 8px;
    overflow: hidden;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Theme Toggle & GitHub Profile */
.nav-github-link,
.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.nav-github-link:hover,
.theme-toggle:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
}

[data-theme="dark"] .icon-sun { display: none; }
[data-theme="dark"] .icon-moon { display: block; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
    text-decoration: none;
    white-space: nowrap;
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }

.btn-primary {
    background: var(--gradient-vivid);
    color: white;
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.4);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
    transform: translateY(-2px);
}

.btn.downloading {
    opacity: 0.92;
    transform: none !important;
    pointer-events: none;
}

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

.spin-icon {
    animation: spin 0.85s linear infinite;
}

.profile-link {
    display: inline-flex;
    align-items: center;
    transition: opacity var(--transition);
}

.profile-link:hover {
    opacity: 0.85;
}

/* ==================== HERO ==================== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.15) 0%, transparent 65%);
    pointer-events: none;
    opacity: var(--glow-opacity);
}

.hero-glow-2 {
    position: absolute;
    top: 100px;
    right: -200px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 60%);
    pointer-events: none;
    opacity: var(--glow-opacity);
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(var(--primary-rgb), 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--primary-rgb), 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, black 30%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: inline-flex;
    gap: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 20px 40px;
    box-shadow: var(--glass-shadow);
}

.stat { text-align: center; padding: 0 24px; }

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    background: var(--border);
    align-self: stretch;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-alt {
    background: var(--bg-alt);
}

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

.section-tag {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==================== PROBLEM ==================== */
.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.problem-card {
    padding: 36px 28px;
}

.problem-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.problem-card:hover .problem-icon {
    transform: scale(1.1);
}

.problem-icon-red {
    background: rgba(248, 113, 113, 0.1);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.15);
}

.problem-icon-amber {
    background: rgba(251, 191, 36, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.15);
}

.problem-icon-blue {
    background: rgba(96, 165, 250, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(96, 165, 250, 0.15);
}

.problem-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.problem-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==================== SOLUTION ==================== */
.solution-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.solution-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 16px 0 28px;
    line-height: 1.7;
}

.solution-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.solution-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.check-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.solution-list strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.solution-list span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Visual Card */
.visual-card {
    padding: 0;
}

.visual-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.visual-dots {
    display: flex;
    gap: 6px;
}

.visual-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.visual-dots span:nth-child(1) { background: #f87171; }
.visual-dots span:nth-child(2) { background: #fbbf24; }
.visual-dots span:nth-child(3) { background: #4ade80; }

.visual-body {
    padding: 24px;
}

.visual-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4ade80;
    margin-bottom: 20px;
}

.visual-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
}

.visual-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.visual-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.visual-label { color: var(--text-muted); }
.visual-value { color: var(--text); font-weight: 500; }
.visual-off { color: #4ade80; }

.visual-students {
    display: flex;
    gap: 8px;
}

.visual-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.visual-more {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-muted);
}

/* ==================== FEATURES ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 36px 28px;
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(var(--primary-rgb), 0.1);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-4px) scale(1.08);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ==================== COMPARISON TABLE ==================== */
.compare-table-wrap {
    padding: 0;
    overflow: hidden;
}

.compare-table-wrap:hover {
    transform: none;
}

.compare-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    min-width: 640px;
}

.compare-table th {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 18px 20px;
    text-align: center;
    color: var(--text-muted);
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass-bg);
}

.compare-table th:first-child {
    text-align: left;
}

.compare-table th.compare-highlight {
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.06);
}

.compare-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.88rem;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text);
}

.compare-table td.compare-highlight {
    background: rgba(var(--primary-rgb), 0.03);
}

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

.compare-table tbody tr {
    transition: background 0.2s ease;
}

.compare-table tbody tr:hover {
    background: rgba(var(--primary-rgb), 0.02);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.badge-yes {
    background: var(--badge-yes-bg);
    color: var(--badge-yes-text);
}

.badge-no {
    background: var(--badge-no-bg);
    color: var(--badge-no-text);
}

.badge-partial {
    background: var(--badge-partial-bg);
    color: var(--badge-partial-text);
}

/* ==================== CTA ==================== */
.cta-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(var(--primary-rgb), 0.12) 0%, transparent 60%);
    pointer-events: none;
    opacity: var(--glow-opacity);
}

.cta-glow-2 {
    position: absolute;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
    pointer-events: none;
    opacity: var(--glow-opacity);
}

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

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cta-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--footer-bg);
    color: #9898b0;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-tagline {
    font-size: 0.9rem;
    color: #606078;
    margin-top: 12px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col h4 {
    font-family: var(--font-display);
    color: #f0f0f5;
    font-size: 0.85rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: #606078;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.footer-col a:hover { color: #f0f0f5; }

.footer-bottom {
    padding-top: 24px;
    text-align: center;
    font-size: 0.82rem;
    color: #606078;
}

.footer-bottom strong {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.footer-bottom p + p { margin-top: 4px; }

/* ==================== ANIMATIONS ==================== */

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

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

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

@keyframes glowPulse {
    0%, 100% { opacity: var(--glow-opacity); transform: translateX(-50%) scale(1); }
    50% { opacity: calc(var(--glow-opacity) * 1.4); transform: translateX(-50%) scale(1.04); }
}

/* Hero entrance cascade */
.hero-badge { animation: heroFadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s both; }
.hero-title { animation: heroFadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.25s both; }
.hero-subtitle { animation: heroFadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.4s both; }
.hero-actions { animation: heroFadeUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) 0.55s both; }
.hero-glow { animation: glowPulse 6s ease-in-out infinite; }
.cta-glow { animation: glowPulse 6s ease-in-out 1s infinite; }

/* Floating */
.solution-visual { animation: float 5s ease-in-out infinite; }
.hero-stats { animation: float 6s ease-in-out 0.5s infinite; }
.section-tag { animation: float 5s ease-in-out 0.3s infinite; }

/* Scroll reveal classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.fade-in-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-scale.visible { opacity: 1; transform: scale(1); }

.section-header {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.section-header.visible { opacity: 1; transform: translateY(0); }

.cta-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.cta-content.visible { opacity: 1; transform: translateY(0); }

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }
.delay-6 { transition-delay: 0.6s; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .problem-grid, .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }

    .nav-links.active { display: flex; }
    .hamburger { display: flex; }
    .btn-sm { display: none; }

    .hero { padding: 130px 0 70px; }
    .hero-title { font-size: 2.2rem; }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 24px 32px;
    }

    .stat-divider {
        width: 100%;
        height: 1px;
    }

    .stat { padding: 0; }

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

    .section { padding: 70px 0; }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }

    .compare-table {
        font-size: 0.82rem;
    }

    .compare-table th, .compare-table td {
        padding: 12px 14px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.8rem; }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

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