/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a26;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text: #e4e4ec;
    --text-dim: #8888a0;
    --text-muted: #55556a;
    --accent: #6366f1;
    --accent-glow: rgba(99,102,241,0.15);
    --green: #22c55e;
    --red: #ef4444;
    --yellow: #f59e0b;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', monospace;
}

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
    font-family: var(--mono);
    font-size: 0.85em;
    background: rgba(99,102,241,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    color: #a5b4fc;
}

kbd {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.75em;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
    padding: 2px 6px;
    color: var(--text);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

/* ── Nav ──────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    background: rgba(10,10,15,0.8);
    border-bottom: 1px solid var(--border);
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
}

.nav-icon { font-size: 20px; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
}

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

.nav-discord {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(88,101,242,0.12);
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid rgba(88,101,242,0.2);
    transition: all 0.15s;
}

.nav-discord:hover {
    background: rgba(88,101,242,0.2);
    border-color: rgba(88,101,242,0.35);
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
    position: relative;
    padding: 140px 0 80px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--green);
    background: rgba(34,197,94,0.08);
    border: 1px solid rgba(34,197,94,0.15);
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #818cf8, #6366f1, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 17px;
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 auto 36px;
    line-height: 1.7;
}

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

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.stat { text-align: center; }

.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #5457e5;
    box-shadow: 0 0 30px rgba(99,102,241,0.25);
    transform: translateY(-1px);
    text-decoration: none;
}

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

.btn-outline:hover {
    border-color: var(--border-hover);
    color: var(--text);
    text-decoration: none;
}

.btn-lg {
    font-size: 16px;
    padding: 14px 32px;
}

/* ── Features ─────────────────────────────────────────────────── */
.features {
    padding: 80px 0;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 15px;
    max-width: 480px;
    margin: 0 auto 48px;
}

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

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.2s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99,102,241,0.08);
    border-radius: 10px;
    margin-bottom: 16px;
    color: var(--accent, #6366f1);
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.65;
    margin-bottom: 12px;
}

.feature-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 4px;
}

/* ── Apps ──────────────────────────────────────────────────────── */
.apps-section {
    padding: 60px 0 80px;
}

.app-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.app-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: all 0.15s;
}

.app-chip:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.app-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── How It Works ─────────────────────────────────────────────── */
.how-section {
    padding: 60px 0 80px;
}

.steps {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.15);
    border-radius: 10px;
}

.step-content h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ── Download ─────────────────────────────────────────────────── */
.download-section {
    padding: 60px 0 100px;
}

.download-card {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 56px 32px;
    position: relative;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 300px;
    background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
    pointer-events: none;
}

.download-icon {
    font-size: 48px;
    margin-bottom: 16px;
    position: relative;
}

.download-card h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px;
    position: relative;
}

.download-card > p {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 24px;
    position: relative;
}

.download-card .btn {
    position: relative;
    margin-bottom: 16px;
}

.download-note {
    font-size: 12px;
    color: var(--text-muted);
    position: relative;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    text-decoration: none;
}

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

/* ── Test Page ────────────────────────────────────────────────── */
.test-hero {
    padding: 100px 0 40px;
    text-align: center;
}

.test-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.test-hero p {
    color: var(--text-dim);
    font-size: 15px;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding-bottom: 80px;
}

.test-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color 0.2s;
}

.test-card.pass { border-color: rgba(34,197,94,0.3); }
.test-card.fail { border-color: rgba(239,68,68,0.3); }

.test-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.test-name {
    font-size: 13px;
    font-weight: 600;
}

.test-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
}

.test-badge.pending {
    color: var(--text-muted);
    background: rgba(255,255,255,0.04);
}

.test-badge.pass {
    color: var(--green);
    background: rgba(34,197,94,0.08);
}

.test-badge.fail {
    color: var(--red);
    background: rgba(239,68,68,0.08);
}

.test-detail {
    font-size: 11px;
    font-family: var(--mono);
    color: var(--text-muted);
    word-break: break-all;
}

.test-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 32px 0;
}

.test-summary {
    text-align: center;
    margin: 24px 0 36px;
}

.test-summary-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 14px;
    font-weight: 600;
}

.test-summary-bar .pass-count { color: var(--green); }
.test-summary-bar .fail-count { color: var(--red); }

/* ── Tutorial Page ────────────────────────────────────────────── */
.tutorial-hero {
    padding: 100px 0 40px;
    text-align: center;
}

.tutorial-hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 8px;
}

.tutorial-hero p {
    color: var(--text-dim);
    font-size: 15px;
}

.tutorial-content {
    max-width: 640px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.tutorial-step {
    margin-bottom: 40px;
}

.tutorial-step h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tutorial-step h2 .step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    background: rgba(99,102,241,0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.tutorial-step p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 8px;
}

.tutorial-step ul {
    list-style: none;
    padding: 0;
}

.tutorial-step ul li {
    font-size: 14px;
    color: var(--text-dim);
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.tutorial-step ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
}

.tutorial-note {
    background: rgba(99,102,241,0.06);
    border: 1px solid rgba(99,102,241,0.12);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 12px 0;
}

.tutorial-note p {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0;
}

.tutorial-note strong {
    color: var(--text);
}

.tutorial-cmd {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    margin: 12px 0;
    overflow-x: auto;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 600px) {
    .nav-links { gap: 16px; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 22px; }
    .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}
