/* =============================================
   SyntaxHero – Landing Page Stylesheet
   (standalone: la landing NO carga styles.css,
   que queda reservado para las páginas legales)
   ============================================= */

/* ===== VARIABLES ===== */
:root {
    --primary: #54F34A;
    --primary-dark: #3dda33;
    --primary-glow: rgba(84, 243, 74, 0.30);
    --primary-subtle: rgba(84, 243, 74, 0.08);
    --accent: #2DD4BF;
    --bg: #0B0E0C;
    --bg-alt: #101410;
    --surface: #161B17;
    --surface-2: #1C221D;
    --border: rgba(255, 255, 255, 0.08);
    --border-primary: rgba(84, 243, 74, 0.18);
    --text: #D1D5DB;
    --text-muted: #9CA3AF;
    --text-white: #ffffff;
    --radius: 1rem;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 76px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

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

h1, h2, h3 { color: var(--text-white); line-height: 1.25; }

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

.section {
    padding: 5.5rem 1.5rem;
    position: relative;
}

.section-inner {
    max-width: 1140px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 3.25rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-subtle);
    border: 1px solid var(--border-primary);
    border-radius: 2rem;
    padding: 0.35rem 0.9rem;
    margin-bottom: 1.1rem;
}

.section-head h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.9rem;
}

.section-head p {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* ===== SCROLL REVEAL =====
   Oculto sólo cuando JS está activo (html.js), para que la página
   sea visible íntegra sin JavaScript. */
.js .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js .reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* ===== NAVBAR ===== */
.navbar {
    background: rgba(11, 14, 12, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
    gap: 1rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--text-white);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.3px;
}

.nav-logo .logo-image {
    height: 30px;
    width: auto;
    border-radius: 7px;
}

.nav-logo span em,
.footer-brand span em {
    font-style: normal;
    color: var(--primary);
}

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

.nav-link {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.875rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background 0.2s ease;
    display: block;
}

.nav-link:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
    background: var(--primary);
    color: #0B0E0C !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 0.5rem 1.1rem;
    border-radius: 0.625rem;
    margin-left: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.45rem 0.6rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-white);
    margin: 4px 0;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    overflow: hidden;
    padding: 5.5rem 1.5rem 6rem;
}

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

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.5;
    animation: blob-drift 16s ease-in-out infinite alternate;
}

.blob-1 {
    width: 480px;
    height: 480px;
    background: rgba(84, 243, 74, 0.16);
    top: -160px;
    left: -120px;
}

.blob-2 {
    width: 420px;
    height: 420px;
    background: rgba(45, 212, 191, 0.10);
    bottom: -180px;
    right: -100px;
    animation-delay: -6s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(84, 243, 74, 0.08);
    top: 30%;
    left: 55%;
    animation-delay: -11s;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

@keyframes blob-drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(60px, 40px) scale(1.15); }
}

.hero-inner {
    position: relative;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 3rem;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-subtle);
    border: 1px solid var(--border-primary);
    color: var(--primary);
    font-size: 0.825rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    margin-bottom: 1.5rem;
    animation: eyebrow-pulse 3s ease-in-out infinite;
}

@keyframes eyebrow-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(84, 243, 74, 0.25); }
    50%      { box-shadow: 0 0 22px 2px rgba(84, 243, 74, 0.18); }
}

.hero h1 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.12;
    margin-bottom: 1.25rem;
}

.text-gradient {
    background: linear-gradient(92deg, var(--primary) 10%, var(--accent) 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2.25rem;
    line-height: 1.75;
}

.hero-subtitle strong { color: var(--text); font-weight: 600; }

/* Store badges */
.store-badges {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    margin-bottom: 1.75rem;
}

.store-badge {
    display: inline-flex;
    border-radius: 0.75rem;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.store-badge svg { display: block; height: 54px; width: auto; }

.store-badge:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(84, 243, 74, 0.22);
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-meta svg { color: var(--primary); }

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

.phone {
    position: relative;
    width: 296px;
    background: #0D110E;
    border: 9px solid #1D2320;
    border-radius: 42px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.55),
        0 0 70px rgba(84, 243, 74, 0.14);
    animation: phone-float 6s ease-in-out infinite;
    z-index: 1;
}

@keyframes phone-float {
    0%, 100% { transform: translateY(0) rotate(1.2deg); }
    50%      { transform: translateY(-14px) rotate(-0.6deg); }
}

.phone::before {
    /* notch */
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 22px;
    background: #1D2320;
    border-radius: 12px;
    z-index: 3;
}

.phone-screen {
    padding: 2.6rem 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    border-radius: 32px;
    overflow: hidden;
    min-height: 480px;
}

.app-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4rem;
}

.app-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.22rem 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-white);
    white-space: nowrap;
}

.app-chip.streak { color: #FCA5A5; border-color: rgba(251, 146, 60, 0.3); }
.app-chip.xp     { color: var(--primary); border-color: var(--border-primary); }

.lesson-progress {
    height: 8px;
    background: var(--surface);
    border-radius: 6px;
    overflow: hidden;
}

.lesson-progress-fill {
    height: 100%;
    width: 20%;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.quiz-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-white);
    margin-top: 0.15rem;
}

.mini-code {
    background: #0A0D0B;
    border: 1px solid var(--border);
    border-radius: 0.7rem;
    overflow: hidden;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.74rem;
}

.mini-code-bar {
    display: flex;
    gap: 5px;
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid var(--border);
}

.mini-code-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3A423C;
}

.mini-code-bar i:first-child { background: #EF4444aa; }
.mini-code-bar i:nth-child(2) { background: #F59E0Baa; }
.mini-code-bar i:nth-child(3) { background: #22C55Eaa; }

.mini-code pre {
    padding: 0.6rem 0.7rem;
    color: #A7F3D0;
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.55;
}

.mini-code .caret {
    display: inline-block;
    width: 7px;
    height: 0.95em;
    background: var(--primary);
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: caret-blink 1s steps(1) infinite;
}

@keyframes caret-blink {
    0%, 55% { opacity: 1; }
    56%, 100% { opacity: 0; }
}

.quiz-options {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quiz-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 0.7rem;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}

.quiz-option .tick {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.6rem;
    transition: all 0.3s ease;
}

.quiz-option.is-selected {
    border-color: var(--primary);
    background: var(--primary-subtle);
    transform: scale(1.02);
}

.quiz-option.is-correct {
    border-color: var(--primary);
    background: rgba(84, 243, 74, 0.14);
    color: var(--text-white);
    animation: option-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.quiz-option.is-correct .tick {
    background: var(--primary);
    border-color: var(--primary);
    color: #0B0E0C;
}

@keyframes option-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.06); }
    100% { transform: scale(1.02); }
}

.btn-check {
    margin-top: 0.2rem;
    background: var(--primary);
    color: #0B0E0C;
    text-align: center;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 0.75rem;
    padding: 0.65rem;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(84, 243, 74, 0.25);
}

.xp-toast {
    position: absolute;
    bottom: 76px;
    left: 50%;
    transform: translate(-50%, 16px) scale(0.9);
    background: #10160F;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 0.45rem 1rem;
    border-radius: 2rem;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 26px rgba(84, 243, 74, 0.3);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 4;
    white-space: nowrap;
}

.xp-toast.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

/* Floating chips around the phone */
.float-chip {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(22, 27, 23, 0.92);
    border: 1px solid var(--border-primary);
    border-radius: 0.8rem;
    padding: 0.5rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    animation: chip-float 5s ease-in-out infinite;
    z-index: 2;
}

.float-chip .dot {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
}

.chip-js    { top: 8%;  left: -6%;  animation-delay: -1s; }
.chip-py    { top: 38%; right: -10%; animation-delay: -2.5s; }
.chip-algo  { bottom: 10%; left: -10%; animation-delay: -4s; }

.chip-js .dot   { background: #F7DF1E; color: #111; }
.chip-py .dot   { background: #3776AB; color: #FFD43B; }
.chip-algo .dot { background: var(--primary-subtle); color: var(--primary); border: 1px solid var(--border-primary); }

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

/* ===== STATS STRIP ===== */
.stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-alt);
    padding: 2.5rem 1.5rem;
}

.stats-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    text-align: center;
}

.stat-value {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    font-weight: 900;
    color: var(--text-white);
    letter-spacing: -1px;
    line-height: 1.1;
}

.stat-value .stat-accent { color: var(--primary); }

.stat-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 0.3rem;
}

/* ===== PATHS SECTION ===== */
.paths { background: var(--bg); }

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

.path-card {
    background: linear-gradient(170deg, var(--surface) 0%, var(--bg-alt) 100%);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.path-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--path-color, var(--primary)), transparent);
    opacity: 0.85;
}

.path-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-primary);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.path-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.path-card.js     { --path-color: #F7DF1E; }
.path-card.python { --path-color: #4B8BBE; }
.path-card.algo   { --path-color: #54F34A; }

.path-card.js .path-icon     { background: #F7DF1E; color: #111; }
.path-card.python .path-icon { background: #3776AB; color: #FFD43B; }
.path-card.algo .path-icon   { background: var(--primary-subtle); color: var(--primary); border: 1px solid var(--border-primary); }

.path-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.path-card p {
    color: var(--text-muted);
    font-size: 0.925rem;
    margin-bottom: 1.25rem;
}

.path-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 2rem;
    padding: 0.3rem 0.8rem;
}

.path-tag svg { color: var(--primary); }

/* ===== FEATURES ===== */
.features { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

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

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    padding: 1.75rem 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-primary);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.feature-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--primary-subtle);
    border: 1px solid var(--border-primary);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.feature-card h3 {
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

/* ===== HOW IT WORKS ===== */
.how-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.mascot-figure {
    position: relative;
    display: flex;
    justify-content: center;
}

.mascot-figure img {
    width: min(400px, 90%);
    height: auto;
    border-radius: 2rem;
    mask-image: radial-gradient(ellipse 82% 82% at 50% 50%, #000 58%, transparent 96%);
    -webkit-mask-image: radial-gradient(ellipse 82% 82% at 50% 50%, #000 58%, transparent 96%);
    animation: mascot-float 7s ease-in-out infinite;
}

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

.mascot-glow::after {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(84, 243, 74, 0.14) 0%, transparent 70%);
    z-index: -1;
}

.steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
    counter-reset: step;
}

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

.step-num {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
    color: #0B0E0C;
    font-weight: 900;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px var(--primary-glow);
}

.step h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.step p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== GAMIFICATION ===== */
.gamify { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.gamify-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3.5rem;
    align-items: center;
    max-width: 1140px;
    margin: 0 auto;
}

.gamify-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem;
}

.gamify-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 1.1rem;
    padding: 1.4rem 1.3rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.gamify-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-primary);
}

.gamify-card .g-icon {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    display: block;
    line-height: 1;
}

.gamify-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.gamify-card p {
    color: var(--text-muted);
    font-size: 0.84rem;
    line-height: 1.6;
}

.gamify-copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.gamify-copy > p {
    color: var(--text-muted);
    font-size: 1.02rem;
    margin-bottom: 1.5rem;
}

/* ===== FINAL CTA ===== */
.cta-final {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 6.5rem 1.5rem;
}

.cta-final::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 70% at 50% 100%, rgba(84, 243, 74, 0.13) 0%, transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    z-index: 1;
}

.cta-final h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

.cta-final p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.25rem;
}

.cta-final .store-badges {
    justify-content: center;
    margin-bottom: 0;
}

/* ===== FOOTER ===== */
.footer {
    background: #070907;
    color: var(--text-muted);
    padding: 3.5rem 1.5rem 2.5rem;
    border-top: 1px solid var(--border-primary);
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-white);
    font-weight: 800;
    font-size: 1.1rem;
}

.footer-brand img { height: 28px; border-radius: 6px; }

.footer-links {
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    list-style: none;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    transition: color 0.2s ease, background 0.2s ease;
}

.footer-links a:hover {
    color: var(--text-white);
    background: rgba(255, 255, 255, 0.06);
}

.footer-copyright {
    color: #6B7280;
    font-size: 0.825rem;
    line-height: 1.7;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }

    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .store-badges { justify-content: center; }
    .hero-meta { justify-content: center; }

    .chip-js   { left: 4%; }
    .chip-py   { right: 2%; }
    .chip-algo { left: 2%; }

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

    .how-inner, .gamify-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .gamify-inner .gamify-cards { order: 2; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .nav-toggle { display: block; }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(11, 14, 12, 0.98);
        border-bottom: 1px solid var(--border-primary);
        padding: 0.75rem 1.5rem 1.25rem;
        gap: 0.25rem;
    }

    .nav-links.open { display: flex; }

    .nav-links .nav-link { padding: 0.7rem 0.875rem; }
    .nav-cta { margin-left: 0; text-align: center; }

    .hero { padding: 3.5rem 1.25rem 4.5rem; }

    .phone { width: 272px; }
    .phone-screen { min-height: 460px; }

    .float-chip { display: none; }

    .app-chip { font-size: 0.66rem; padding: 0.2rem 0.5rem; gap: 0.2rem; }
    .app-topbar { gap: 0.3rem; }

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

    .section { padding: 4rem 1.25rem; }

    .store-badge svg { height: 48px; }

    .gamify-cards { grid-template-columns: 1fr; }
}
