:root {
    --primary: #7c3aed;
    --primary-light: #a78bfa;
    --accent: #f59e0b;
    --bg: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-elevated: #232342;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --border: #2d2d4a;
    --success: #10b981;
    --radius: 12px;
    --max-width: 1200px;
}

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

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

a { color: var(--primary-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
    position: sticky; top: 0; z-index: 100;
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}
.nav-container {
    max-width: var(--max-width); margin: 0 auto; padding: 0 20px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; color: var(--text); }
.logo-accent { color: var(--accent); }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--accent); }
.nav-toggle { display: none; background: none; border: none; color: var(--text); font-size: 24px; cursor: pointer; }

/* Hero */
.hero {
    position: relative; padding: 100px 20px 80px; text-align: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center top, rgba(124, 58, 237, 0.15) 0%, transparent 70%),
                radial-gradient(ellipse at 80% 50%, rgba(245, 158, 11, 0.08) 0%, transparent 50%);
}
.hero-content { position: relative; max-width: 800px; margin: 0 auto; }
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-sub { font-size: clamp(18px, 3vw, 28px); font-weight: 400; color: var(--primary-light); }
.hero-desc { font-size: 18px; color: var(--text-muted); margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 16px;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4); }
.btn-primary:hover { color: #fff; box-shadow: 0 6px 30px rgba(124, 58, 237, 0.6); }
.btn-secondary { background: var(--bg-card); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { color: var(--accent); border-color: var(--accent); }

/* Sections */
.featured-section, .guides-grid, .info-section {
    margin: 60px auto; max-width: var(--max-width); padding: 0 20px;
}
section h2 { font-size: 24px; font-weight: 700; margin-bottom: 24px; }

/* Code Cards */
.codes-preview { display: grid; gap: 16px; }
.code-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px 24px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.code-badge {
    background: var(--accent); color: #000; font-size: 11px; font-weight: 700;
    padding: 2px 8px; border-radius: 4px; text-transform: uppercase;
}
.code-card code {
    background: var(--bg-elevated); padding: 6px 14px; border-radius: 6px;
    font-size: 16px; font-weight: 600; color: var(--accent); letter-spacing: 1px;
    border: 1px solid var(--border);
}
.code-card p { flex: 1; color: var(--text-muted); font-size: 14px; min-width: 200px; }
.code-status { font-size: 13px; font-weight: 600; }
.code-status.valid { color: var(--success); }
.code-status.expired { color: #ef4444; text-decoration: line-through; }

.link-more { display: inline-block; margin-top: 16px; font-weight: 600; color: var(--primary-light); }

/* Guide Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.guide-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: transform 0.2s, border-color 0.2s;
}
.guide-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.guide-icon { font-size: 32px; margin-bottom: 12px; }
.guide-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.guide-card p { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* Info */
.info-section p { color: var(--text-muted); margin-bottom: 12px; max-width: 800px; }

/* Footer */
.footer { margin-top: 80px; border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-card); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--text); }
.footer-col p { font-size: 14px; color: var(--text-muted); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); font-size: 14px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom p { font-size: 12px; color: var(--text-muted); text-align: center; }

/* Mobile */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg); padding: 20px; border-bottom: 1px solid var(--border); gap: 16px; }
    .nav-toggle { display: block; }
    .hero { padding: 60px 20px 50px; }
    .grid { grid-template-columns: 1fr; }
    .code-card { flex-direction: column; align-items: flex-start; }
}
