:root {
    --bg: #0d0d1a;
    --bg-alt: #111127;
    --card: #1a1a2e;
    --card-border: #2d2d4e;
    --text: #e0e0e0;
    --text-muted: #888;
    --accent: #4361ee;
    --accent-light: #6b8cff;
    --success: #2ecc71;
    --warning: #d97706;
    --danger: #dc2626;
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* ── Nav ── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(13,13,26,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    transition: border-color 0.3s;
}
.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    font-size: 20px;
    font-weight: 700;
}
.logo-icon { font-size: 28px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-btn {
    background: var(--accent) !important;
    color: #fff !important;
    padding: 6px 16px;
    border-radius: 6px;
}
.nav-btn:hover { opacity: 0.9; }

/* ── Hero ── */
.hero { padding: 120px 0 80px; }
.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
}
h1 {
    font-size: 48px;
    line-height: 1.15;
    font-weight: 800;
}
.gradient-text {
    background: linear-gradient(135deg, var(--accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 18px;
    color: var(--text-muted);
    margin: 20px 0 32px;
    max-width: 520px;
}
.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}
.hero-cta { display: flex; gap: 12px; }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #3451de; transform: translateY(-1px); }
.btn-secondary {
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--card-border);
}
.btn-secondary:hover { border-color: var(--accent); }
.btn-lg { padding: 14px 28px; font-size: 16px; }

/* ── Mascot ── */
.mascot-wrapper { display: flex; justify-content: center; }
.mascot {
    width: 100%;
    max-width: 350px;
    animation: float 4s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(67,97,238,0.2));
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-15px); }
}

/* ── Sections ── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}
.section-sub {
    text-align: center;
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 48px;
}

/* ── Features ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.feature-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* ── Categories ── */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}
.cat-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all 0.2s;
}
.cat-card:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}
.cat-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
}
.cat-card h4 { font-size: 14px; margin-bottom: 4px; }
.cat-card p { font-size: 12px; color: var(--text-muted); }

/* ── Levels ── */
.levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}
.level-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
}
.level-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    margin: 0 auto 12px;
}
.level-card h3 { margin-bottom: 8px; }
.level-card p { color: var(--text-muted); font-size: 14px; }

/* ── Comparison ── */
.comparison-table { overflow-x: auto; }
.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}
.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid var(--card-border);
}
.comparison-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 14px;
}
.comparison-table td:first-child {
    text-align: left;
    color: var(--text-muted);
}
.comparison-table .highlight {
    color: var(--accent);
    font-weight: 700;
}
.comparison-table thead .highlight {
    background: rgba(67,97,238,0.1);
    border-radius: 8px 8px 0 0;
}

/* ── Pricing ── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 48px auto 0;
}
.price-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    position: relative;
}
.price-pro { border-color: var(--accent); }
.pro-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.price {
    font-size: 48px;
    font-weight: 800;
    margin: 16px 0;
}
.price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}
.price-card ul {
    list-style: none;
    text-align: left;
    margin: 24px 0;
}
.price-card li {
    padding: 8px 0;
    color: var(--text-muted);
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.price-card li::before {
    content: "\2713\00a0";
    color: var(--success);
}

/* ── Footer ── */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--card-border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
}
.footer-tagline {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 6px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

/* ── Responsive ── */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .hero-inner { grid-template-columns: 1fr; text-align: center; }
    h1 { font-size: 32px; }
    .hero-sub { margin: 16px auto 24px; }
    .hero-stats { justify-content: center; }
    .hero-cta { justify-content: center; flex-wrap: wrap; }
    .hero-visual { order: -1; }
    .mascot { max-width: 220px; }
    .features-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .levels-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .nav-links a:not(.nav-btn) { display: none; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .section-title { font-size: 28px; }
}

@media (max-width: 480px) {
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { flex-wrap: wrap; gap: 20px; }
    .btn-lg { padding: 12px 20px; font-size: 15px; }
}
