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

:root {
    --bg-primary: #09090b;
    --bg-secondary: #111114;
    --bg-card: #16161a;
    --bg-card-hover: #1c1c21;
    --border: #27272a;
    --border-light: #3f3f46;
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;
    --accent-cyan: #22d3ee;
    --gradient-primary: linear-gradient(135deg, #6366f1, #a855f7);
    --gradient-secondary: linear-gradient(135deg, #a855f7, #ec4899);
    --gradient-text: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(99,102,241,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.btn-sm { padding: 8px 20px; font-size: 14px; }
.btn-md { padding: 10px 24px; font-size: 15px; }
.btn-lg { padding: 14px 32px; font-size: 16px; }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 20px rgba(99,102,241,0.3);
}
.btn-primary:hover {
    box-shadow: 0 0 30px rgba(99,102,241,0.5);
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
}
.btn-outline:hover {
    border-color: var(--accent-indigo);
    background: rgba(99,102,241,0.08);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); }

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

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(9,9,11,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
}

.logo-icon { font-size: 24px; }

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

.nav-links a {
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
    font-weight: 450;
}
.nav-links a:hover { color: var(--text-primary); }

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

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,0.3), transparent 70%);
    top: -200px; left: -100px;
}
.orb-2 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 70%);
    top: 50%; right: -150px;
}
.orb-3 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(236,72,153,0.2), transparent 70%);
    bottom: -100px; left: 30%;
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99,102,241,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(99,102,241,0.1);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--accent-indigo);
    margin-bottom: 24px;
    font-weight: 500;
}

.badge-dot {
    width: 6px; height: 6px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-size: clamp(40px, 5.5vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
}

.stat { text-align: center; }

.stat-number {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-mono);
}
.stat-suffix {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-indigo);
}
.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ===== PHONE MOCKUP ===== */
.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-mockup { position: relative; }

.phone-frame {
    width: 280px;
    background: var(--bg-secondary);
    border-radius: 36px;
    border: 2px solid var(--border);
    padding: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.phone-notch {
    width: 100px;
    height: 24px;
    background: var(--bg-primary);
    border-radius: 0 0 16px 16px;
    margin: 0 auto 16px;
}

.phone-screen { padding: 0 8px 16px; }

.phone-glow {
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: -1;
}

.app-header-mock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.app-greeting { font-size: 14px; font-weight: 600; }
.app-name-mock { font-size: 11px; color: var(--accent-indigo); font-weight: 500; }

.timer-mock {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.timer-ring {
    position: relative;
    width: 120px; height: 120px;
}
.timer-ring svg { width: 100%; height: 100%; }

.timer-display {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.timer-time {
    font-size: 22px;
    font-weight: 700;
    font-family: var(--font-mono);
}
.timer-label {
    font-size: 11px;
    color: var(--text-muted);
}

.habit-item-mock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-md);
    margin-bottom: 6px;
    background: rgba(255,255,255,0.02);
    border: 1px solid transparent;
    transition: var(--transition);
}
.habit-item-mock.active {
    border-color: rgba(99,102,241,0.3);
    background: rgba(99,102,241,0.05);
}

.habit-emoji { font-size: 20px; }
.habit-info-mock { flex: 1; }
.habit-name-mock { font-size: 13px; font-weight: 500; display: block; margin-bottom: 4px; }
.habit-progress-mock {
    height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 2px;
    overflow: hidden;
}
.habit-bar-mock {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 2px;
    transition: width 1s ease;
}
.habit-time-mock {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}
.scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, var(--accent-indigo), transparent);
    animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== TRUST BAR ===== */
.trust-bar {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.trust-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
}
.trust-logos {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}
.trust-item {
    font-size: 15px;
    color: var(--text-secondary);
    font-weight: 500;
    opacity: 0.7;
    transition: var(--transition);
}
.trust-item:hover { opacity: 1; }

/* ===== SECTION COMMON ===== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-indigo);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
    padding: 120px 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.feature-card:hover {
    border-color: rgba(99,102,241,0.3);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.feature-card-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    padding: 48px;
}

.feature-icon-wrap { margin-bottom: 16px; }
.feature-icon {
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: rgba(99,102,241,0.1);
    border-radius: var(--radius-md);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timer-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.mini-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.mini-timer-circle {
    width: 120px; height: 120px;
    border-radius: 50%;
    border: 4px solid rgba(99,102,241,0.2);
    border-top-color: var(--accent-indigo);
    animation: spin 3s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mini-timer-text {
    font-size: 32px;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.steps {
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.step-number {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
}
.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

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

.step-card-mock {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    width: 100%;
    max-width: 260px;
}
.mock-input {
    padding: 10px 12px;
    background: rgba(255,255,255,0.03);
    border-radius: var(--radius-sm);
    font-size: 13px;
    margin-bottom: 8px;
    border: 1px solid var(--border);
}
.mock-input.dim { color: var(--text-muted); border-style: dashed; }

.step-timer-mock {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}
.step-timer-display {
    font-size: 36px;
    font-weight: 700;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}
.step-timer-controls { display: flex; justify-content: center; gap: 12px; }
.step-btn-mock {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 16px;
}
.step-btn-mock.pause { background: rgba(99,102,241,0.2); }
.step-btn-mock.stop { background: rgba(239,68,68,0.2); }

.step-insights-mock {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 280px;
}
.insight-bubble {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
}
.insight-bubble.accent {
    border-color: rgba(168,85,247,0.3);
    background: rgba(168,85,247,0.05);
}

/* ===== AI SECTION ===== */
.ai-section {
    padding: 120px 0;
}

.ai-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ai-features-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.ai-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.ai-feature-icon {
    width: 44px; height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: rgba(99,102,241,0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}
.ai-feature h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}
.ai-feature p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.credit-cost {
    display: inline-block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--accent-purple);
    font-family: var(--font-mono);
    font-weight: 500;
}

/* Chat Mockup */
.chat-mockup {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.chat-header-mock {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
}
.chat-avatar { font-size: 20px; }
.chat-status {
    margin-left: auto;
    font-size: 11px;
    color: #22c55e;
    font-weight: 500;
}

.chat-messages { padding: 20px; display: flex; flex-direction: column; gap: 12px; }

.chat-msg {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    line-height: 1.6;
}
.chat-msg.bot {
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}
.chat-msg.user {
    background: var(--gradient-primary);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-msg.typing { padding: 12px 20px; }
.typing-dots { display: flex; gap: 4px; }
.typing-dots span {
    width: 6px; height: 6px;
    background: var(--accent-indigo);
    border-radius: 50%;
    animation: typing-bounce 1.4s infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.chat-input-mock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}
.chat-send {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    color: white;
    font-size: 14px;
}

/* ===== GAMIFICATION ===== */
.gamification {
    padding: 120px 0;
    background: var(--bg-secondary);
}

.gamification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}
.game-card:hover {
    border-color: rgba(99,102,241,0.3);
    box-shadow: var(--shadow-glow);
}

.game-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.game-card-header h3 { font-size: 18px; font-weight: 600; }

.game-badge-sm {
    font-size: 11px;
    padding: 4px 10px;
    background: rgba(99,102,241,0.1);
    color: var(--accent-indigo);
    border-radius: var(--radius-full);
    font-weight: 500;
}

.xp-visual { display: flex; align-items: center; gap: 24px; }

.level-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}
.level-number {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.level-label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.xp-bar-container { flex: 1; }
.xp-bar {
    height: 12px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 8px;
}
.xp-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1.5s ease;
}
.xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

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

.badges-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.badge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
    opacity: 0.4;
}
.badge-item.earned {
    opacity: 1;
    border-color: rgba(99,102,241,0.3);
    background: rgba(99,102,241,0.05);
}
.badge-icon { font-size: 28px; }
.badge-name { font-size: 11px; color: var(--text-secondary); text-align: center; }

.streak-visual { text-align: center; }
.streak-days {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}
.streak-day {
    width: 40px; height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
}
.streak-day.done {
    background: rgba(99,102,241,0.15);
    border-color: rgba(99,102,241,0.3);
    color: var(--accent-indigo);
}
.streak-day.grace {
    background: rgba(234,179,8,0.1);
    border-color: rgba(234,179,8,0.3);
    color: #eab308;
}
.streak-day.today {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.3);
    color: #22c55e;
}

.streak-count { display: flex; align-items: center; justify-content: center; gap: 8px; }
.streak-number {
    font-size: 36px;
    font-weight: 800;
    font-family: var(--font-mono);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.streak-text { font-size: 16px; color: var(--text-secondary); }

/* ===== HEATMAP ===== */
.heatmap-section {
    padding: 120px 0;
}

.heatmap-container {
    max-width: 900px;
    margin: 0 auto;
}

.heatmap-grid {
    display: grid;
    grid-template-columns: repeat(52, 1fr);
    gap: 3px;
    margin-bottom: 16px;
}

.heatmap-cell {
    aspect-ratio: 1;
    border-radius: 2px;
    min-width: 10px;
}
.heatmap-cell.level-0 { background: rgba(255,255,255,0.04); }
.heatmap-cell.level-1 { background: rgba(99,102,241,0.2); }
.heatmap-cell.level-2 { background: rgba(99,102,241,0.4); }
.heatmap-cell.level-3 { background: rgba(99,102,241,0.6); }
.heatmap-cell.level-4 { background: rgba(99,102,241,0.9); }

.heatmap-legend {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
}
.heatmap-legend .heatmap-cell {
    width: 12px; height: 12px;
    min-width: 12px;
}

/* ===== PRICING ===== */
.pricing {
    padding: 120px 0;
    background: var(--bg-secondary);
}

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

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    position: relative;
    transition: var(--transition);
}
.pricing-card:hover {
    border-color: rgba(99,102,241,0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.pricing-card.featured {
    border-color: rgba(99,102,241,0.4);
    background: linear-gradient(135deg, rgba(99,102,241,0.05), rgba(168,85,247,0.05));
    box-shadow: var(--shadow-glow);
}

.pricing-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 16px;
    background: var(--gradient-primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.pricing-header {
    margin-bottom: 32px;
}
.pricing-header h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}
.pricing-amount { display: flex; align-items: baseline; gap: 4px; }
.price {
    font-size: 48px;
    font-weight: 800;
    font-family: var(--font-mono);
}
.period { font-size: 16px; color: var(--text-muted); }

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}
.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}
.check { color: #22c55e; font-weight: 600; }
.check.accent { color: var(--accent-indigo); }
.check.dim { color: var(--text-muted); }

/* ===== CTA ===== */
.cta-section {
    padding: 120px 0;
}

.cta-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.cta-bg-effects {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}
.cta-orb-1 {
    width: 400px; height: 400px;
    background: rgba(99,102,241,0.15);
    top: -200px; left: -100px;
}
.cta-orb-2 {
    width: 300px; height: 300px;
    background: rgba(168,85,247,0.1);
    bottom: -150px; right: -50px;
}

.cta-card h2 {
    font-size: clamp(28px, 3.5vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    position: relative;
}
.cta-card p {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
}
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    position: relative;
}

/* ===== FOOTER ===== */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

.footer-social {
    display: flex;
    gap: 16px;
}
.footer-social a {
    width: 36px; height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    font-size: 14px;
    transition: var(--transition);
}
.footer-social a:hover {
    border-color: var(--accent-indigo);
    background: rgba(99,102,241,0.1);
}

/* ===== ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 48px;
    }
    .hero-subtitle { margin: 0 auto 36px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }

    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card-large {
        grid-column: span 2;
        grid-template-columns: 1fr;
        text-align: center;
    }

    .ai-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .ai-section .section-header { text-align: center; }

    .step {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
    .step-visual { display: none; }

    .gamification-grid { grid-template-columns: 1fr; }
    .badges-card { grid-column: span 1; }
    .badges-grid { grid-template-columns: repeat(3, 1fr); }

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

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(9,9,11,0.95);
        backdrop-filter: blur(20px);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
    }
    .mobile-toggle { display: flex; }
    .nav-actions .btn { display: none; }

    .hero { padding: 100px 0 60px; }
    .hero-title { font-size: 36px; }

    .features-grid { grid-template-columns: 1fr; }
    .feature-card-large { grid-column: span 1; }

    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }

    .cta-card { padding: 48px 24px; }
    .cta-buttons { flex-direction: column; align-items: center; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }

    .heatmap-grid { grid-template-columns: repeat(26, 1fr); }

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

    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-divider { display: none; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .hero-title { font-size: 30px; }
    .section-title { font-size: 28px; }
    .step { grid-template-columns: 1fr; }
    .step-number { font-size: 32px; }
    .heatmap-grid { grid-template-columns: repeat(13, 1fr); }
}
