/* ============================================
   XPG Landing Page — Synthwave Pixel RPG
   ============================================ */

:root {
    --bg: #0a0a1a;
    --bg2: #0f0f23;
    --card: #1a1a2e;
    --border: #16213e;
    --accent: #e94560;
    --teal: #0f9b8e;
    --orange: #ffb347;
    --purple: #b347ff;
    --blue: #4a9eff;
    --gold: #ffd700;
    --green: #2ecc71;
    --text: #e0e0e0;
    --text-dim: #a0a0b0;
    --text-muted: #6a6a8a;
    --pixel: 'Press Start 2P', monospace;
    --mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-color: var(--accent) var(--bg);
}

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

/* ============================================
   Loader
   ============================================ */

.loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-text {
    font-family: var(--pixel);
    font-size: 2rem;
    color: var(--accent);
    text-shadow: 0 0 40px rgba(233, 69, 96, 0.5);
    animation: loader-pulse 1s ease-in-out infinite alternate;
}

@keyframes loader-pulse {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--border);
    overflow: hidden;
}

.loader-fill {
    height: 100%;
    background: var(--accent);
    animation: loader-progress 1s ease-out forwards;
}

@keyframes loader-progress {
    from { width: 0; }
    to { width: 100%; }
}

/* ============================================
   Scanlines Overlay
   ============================================ */

.scanlines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.03) 2px,
        rgba(0, 0, 0, 0.03) 4px
    );
}

/* ============================================
   Particles
   ============================================ */

.particles {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    animation: float-particle 8s infinite;
}

@keyframes float-particle {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    10% { opacity: 0.6; }
    90% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-10vh) scale(1); }
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 2rem;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 26, 0.8);
    border-bottom: 1px solid rgba(233, 69, 96, 0.1);
    transition: all 0.3s ease;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo-icon {
    font-family: var(--pixel);
    font-size: 1.2rem;
    color: var(--accent);
    text-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-dim);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

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

.nav-cta {
    padding: 0.5rem 1.2rem !important;
    background: var(--accent) !important;
    color: var(--bg) !important;
    border-radius: 0;
    font-weight: 700 !important;
    border: 2px solid var(--accent);
    transition: all 0.2s !important;
}

.nav-cta:hover {
    background: transparent !important;
    color: var(--accent) !important;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: var(--mono);
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.03em;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 0 30px rgba(233, 69, 96, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
    box-shadow: 0 0 40px rgba(233, 69, 96, 0.4);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-dim);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: var(--text-dim);
    color: var(--text);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.1rem 2.8rem;
    font-size: 1.05rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    overflow: hidden;
}

.hero-grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(233, 69, 96, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(233, 69, 96, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.08), transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    animation: hero-glow 8s ease-in-out infinite alternate;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(179, 71, 255, 0.06), transparent 60%);
    border-radius: 50%;
    filter: blur(80px);
    animation: hero-glow 10s ease-in-out infinite alternate-reverse;
    z-index: 0;
}

@keyframes hero-glow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, -20px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--pixel);
    font-size: 0.6rem;
    color: var(--teal);
    background: rgba(15, 155, 142, 0.1);
    border: 1px solid rgba(15, 155, 142, 0.3);
    padding: 0.5rem 1rem;
    margin-bottom: 2rem;
    letter-spacing: 0.15em;
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(15, 155, 142, 0.2); }
    50% { box-shadow: 0 0 20px 5px rgba(15, 155, 142, 0.1); }
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--teal);
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

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

.hero-sprite {
    width: 80px;
    height: 100px;
    margin: 0 auto 1.5rem;
    image-rendering: pixelated;
    filter: drop-shadow(0 0 20px rgba(233, 69, 96, 0.3));
    animation: sprite-float 3s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--pixel);
    line-height: 1.4;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero-title::before {
    content: '';
    position: absolute;
    inset: -40px -60px;
    background: radial-gradient(ellipse at center, rgba(233, 69, 96, 0.08), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.title-line {
    display: block;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    color: var(--text);
    text-shadow: 0 0 40px rgba(224, 224, 224, 0.1);
}

.title-line.accent, .accent {
    color: var(--accent);
    text-shadow: 0 0 60px rgba(233, 69, 96, 0.4);
}

.hero-sub {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-chip {
    font-family: var(--pixel);
    font-size: 0.55rem;
    color: var(--c);
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--c);
    background: rgba(0,0,0,0.3);
    letter-spacing: 0.1em;
    transition: all 0.3s;
    cursor: default;
}

.stat-chip:hover {
    background: var(--c);
    color: var(--bg);
    box-shadow: 0 0 20px var(--c);
    transform: translateY(-3px);
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

/* XP Bar */
.hero-xp-bar {
    max-width: 360px;
    margin: 0 auto 2.5rem;
    width: 100%;
}

.xp-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.4rem;
    font-family: var(--pixel);
    font-size: 0.5rem;
}

.xp-label span:first-child {
    color: var(--gold);
}

.xp-amount {
    color: var(--text-muted);
}

.xp-track {
    height: 6px;
    background: var(--border);
    overflow: hidden;
    position: relative;
}

.xp-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--orange));
    animation: xp-grow 2s 0.5s ease-out forwards;
    position: relative;
    box-shadow: 0 0 10px rgba(233, 69, 96, 0.5);
}

.xp-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 20px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3));
}

@keyframes xp-grow {
    to { width: 81%; }
}

.hero-social-proof {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.proof-avatars {
    display: flex;
}

.proof-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    margin-left: -8px;
}

.proof-avatar:first-child {
    margin-left: 0;
}

.proof-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Phone Mockup
   ============================================ */

.hero-phone {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%) rotate(5deg);
    z-index: 5;
    display: none;
}

@media (min-width: 1200px) {
    .hero {
        justify-content: flex-start;
        padding-left: 10%;
    }
    .hero-content {
        text-align: left;
        max-width: 600px;
    }
    .hero-stats {
        justify-content: flex-start;
    }
    .hero-ctas {
        justify-content: flex-start;
    }
    .hero-social-proof {
        justify-content: flex-start;
    }
    .hero-xp-bar {
        margin-left: 0;
    }
    .hero-phone {
        display: block;
        right: 8%;
    }
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: #111;
    border-radius: 36px;
    padding: 12px;
    border: 2px solid #333;
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 25px 80px rgba(0,0,0,0.6),
        0 0 60px rgba(233, 69, 96, 0.15);
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 24px;
    background: #111;
    border-radius: 0 0 16px 16px;
    z-index: 10;
}

.phone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: var(--bg2);
}

.phone-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.phone-img-active {
    opacity: 1;
}

.phone-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(ellipse at center, rgba(233, 69, 96, 0.15), transparent 60%);
    z-index: -1;
    animation: phone-glow 4s ease-in-out infinite;
}

@keyframes phone-glow {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ============================================
   Marquee
   ============================================ */

.marquee {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    overflow: hidden;
    background: rgba(26, 26, 46, 0.3);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: scroll-marquee 30s linear infinite;
    width: max-content;
}

.marquee-track span {
    font-family: var(--pixel);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 0.2em;
    white-space: nowrap;
}

.marquee-track .dot {
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ============================================
   Section Shared
   ============================================ */

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-tag {
    font-family: var(--pixel);
    font-size: 0.55rem;
    color: var(--accent);
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-family: var(--pixel);
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1.6;
    color: var(--text);
}

.section-sub {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-dim);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Features Section
   ============================================ */

.features {
    padding: 8rem 0;
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

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

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

.feature-card {
    background: linear-gradient(135deg, var(--card), rgba(15, 15, 35, 0.8));
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(233, 69, 96, 0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 30px rgba(233, 69, 96, 0.05);
}

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

.feature-card-lg {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .feature-card-lg {
        grid-column: span 1;
    }
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    color: var(--glow);
    filter: drop-shadow(0 0 10px var(--glow));
}

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

.feature-card h3 {
    font-family: var(--pixel);
    font-size: 0.7rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

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

/* Stat bars in feature card */
.feature-stat-bars {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-bar {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mini-bar label {
    font-family: var(--pixel);
    font-size: 0.45rem;
    color: var(--text-muted);
    width: 28px;
    letter-spacing: 0.1em;
}

.mini-bar span {
    height: 4px;
    border-radius: 0;
    display: block;
    flex: 1;
    max-width: var(--w, 100%);
    position: relative;
    animation: bar-fill 1.5s ease-out forwards;
    transform-origin: left;
}

@keyframes bar-fill {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

/* Dungeon preview */
.dungeon-preview {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0,0,0,0.3);
    border: 1px solid var(--border);
}

.dungeon-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 3px;
    aspect-ratio: 1;
    max-width: 360px;
    margin: 0 auto;
}

.dungeon-cell {
    aspect-ratio: 1;
    border: 1px solid rgba(74, 158, 255, 0.1);
    transition: all 0.3s;
}

.dungeon-cell.player {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.dungeon-cell.enemy {
    background: var(--purple);
    box-shadow: 0 0 8px var(--purple);
}

.dungeon-cell.floor {
    background: rgba(26, 26, 46, 0.6);
}

.dungeon-cell.wall {
    background: var(--border);
}

/* ============================================
   Classes Section
   ============================================ */

.classes {
    padding: 8rem 0;
    background:
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(233, 69, 96, 0.04), transparent),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(179, 71, 255, 0.04), transparent);
}

.class-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .class-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .class-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

.class-card {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.9), rgba(15, 15, 35, 0.95));
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
}

.class-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(233, 69, 96, 0.05), transparent 60%);
    pointer-events: none;
}

.class-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.class-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.class-card:hover::after {
    opacity: 0.5;
}

.class-sprite {
    width: 56px;
    height: 70px;
    margin: 0 auto 1.2rem;
    image-rendering: pixelated;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

.class-name {
    font-family: var(--pixel);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    margin-bottom: 0.3rem;
}

.class-stats {
    font-family: var(--pixel);
    font-size: 0.5rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.class-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.class-bar {
    height: 3px;
    background: var(--border);
    overflow: hidden;
}

.class-bar span {
    display: block;
    height: 100%;
    animation: bar-fill 2s ease-out forwards;
    transform-origin: left;
}

/* ============================================
   How It Works
   ============================================ */

.how-it-works {
    padding: 8rem 0;
    border-top: 1px solid var(--border);
}

.steps {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.step-num {
    font-family: var(--pixel);
    font-size: 1.5rem;
    color: var(--accent);
    text-shadow: 0 0 30px rgba(233, 69, 96, 0.4);
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(233, 69, 96, 0.2);
    background: rgba(233, 69, 96, 0.05);
}

.step-content h3 {
    font-family: var(--pixel);
    font-size: 0.7rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

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

.step-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    margin: 0.5rem 0 0.5rem 30px;
}

/* ============================================
   App Preview
   ============================================ */

.app-preview {
    padding: 8rem 0;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.preview-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (max-width: 800px) {
    .preview-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .preview-features {
        grid-template-columns: 1fr;
    }
}

.preview-item {
    background: var(--card);
    border: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s;
}

.preview-item:hover {
    border-color: rgba(233, 69, 96, 0.3);
    transform: translateY(-3px);
}

.preview-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    filter: grayscale(0.2);
}

.preview-item h4 {
    font-family: var(--pixel);
    font-size: 0.55rem;
    margin-bottom: 0.6rem;
    letter-spacing: 0.05em;
}

.preview-item p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ============================================
   Numbers
   ============================================ */

.numbers {
    padding: 6rem 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

@media (max-width: 700px) {
    .numbers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.number-card {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--border);
    background: var(--card);
    position: relative;
}

.number-card::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.number-val {
    font-family: var(--pixel);
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--accent);
    text-shadow: 0 0 40px rgba(233, 69, 96, 0.3);
    margin-bottom: 0.5rem;
}

.number-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ============================================
   Final CTA
   ============================================ */

.final-cta {
    padding: 8rem 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(233, 69, 96, 0.06), transparent);
    border-top: 1px solid var(--border);
}

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

.cta-sprite {
    width: 64px;
    height: 80px;
    margin: 0 auto 2rem;
    image-rendering: pixelated;
}

.cta-title {
    font-family: var(--pixel);
    font-size: clamp(1rem, 3vw, 1.8rem);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cta-sub {
    font-size: 1rem;
    color: var(--text-dim);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--pixel);
    font-size: 0.9rem;
    color: var(--accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================
   Scroll Animations
   ============================================ */

.feature-card,
.class-card,
.step,
.preview-item,
.number-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.feature-card.visible,
.class-card.visible,
.step.visible,
.preview-item.visible,
.number-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }
.feature-card:nth-child(4) { transition-delay: 0.3s; }
.feature-card:nth-child(5) { transition-delay: 0.4s; }
.feature-card:nth-child(6) { transition-delay: 0.5s; }
.feature-card:nth-child(7) { transition-delay: 0.6s; }
.feature-card:nth-child(8) { transition-delay: 0.7s; }

.class-card:nth-child(1) { transition-delay: 0s; }
.class-card:nth-child(2) { transition-delay: 0.1s; }
.class-card:nth-child(3) { transition-delay: 0.15s; }
.class-card:nth-child(4) { transition-delay: 0.2s; }
.class-card:nth-child(5) { transition-delay: 0.25s; }
.class-card:nth-child(6) { transition-delay: 0.3s; }

/* ============================================
   Selection / Highlight
   ============================================ */

::selection {
    background: var(--accent);
    color: #fff;
}

/* ============================================
   Mobile polish
   ============================================ */

@media (max-width: 600px) {
    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .hero {
        padding: 7rem 1.5rem 3rem;
    }

    .hero-title .title-line {
        font-size: 1.5rem;
    }

    .section-inner {
        padding: 0 1.5rem;
    }

    .step {
        gap: 1rem;
    }

    .step-num {
        font-size: 1rem;
        width: 40px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
