:root {
    --bg: #070408;
    --bg2: #0d060f;
    --primary: #e11d48;
    --primary-hover: #be123c;
    --accent: #fb7185;
    --accent2: #f43f5e;
    --gold: #fbbf24;
    --surface: rgba(20, 8, 18, 0.7);
    --surface2: rgba(30, 12, 26, 0.8);
    --border: rgba(255,255,255,0.07);
    --border2: rgba(225,29,72,0.2);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted2: #64748b;
    --radius: 20px;
    --radius-sm: 12px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Particles canvas */
#particles {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ─── HEADER ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(7,4,8,0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-decoration: none;
    color: inherit;
}

.brand-icon { font-size: 1.5rem; }
.brand-name strong { color: var(--primary); }

.header-nav {
    display: flex;
    gap: 24px;
}

.header-nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ─── HERO ─── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 60px;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(225,29,72,0.15) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(244,63,94,0.08) 0%, transparent 60%);
}

.hero-inner {
    max-width: 760px;
}

.hero-badge {
    display: inline-block;
    border: 1px solid var(--border2);
    border-radius: 100px;
    padding: 6px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 32px;
    background: rgba(225,29,72,0.08);
}

.hero-title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 28px;
    background: linear-gradient(135deg, #fff 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title em {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    background: linear-gradient(135deg, var(--accent), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #9f1239);
    color: #fff;
    text-decoration: none;
    padding: 18px 44px;
    border-radius: 100px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(225,29,72,0.35);
    margin-bottom: 60px;
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(225,29,72,0.5);
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 16px 32px;
    gap: 24px;
    backdrop-filter: blur(10px);
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--muted2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

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

/* ─── ABOUT ─── */
.about-section {
    position: relative;
    z-index: 1;
    padding: 80px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.about-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s;
}

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

.about-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* ─── QUIZ CARDS ─── */
.quizzes-section {
    position: relative;
    z-index: 1;
    padding: 60px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--muted);
    font-size: 1rem;
}

.quiz-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.quiz-card {
    position: relative;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: all 0.35s ease;
    overflow: hidden;
}

.quiz-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    opacity: 0;
    transition: opacity 0.3s;
}

.quiz-card--featured::before {
    background: radial-gradient(ellipse at top left, rgba(225,29,72,0.12), transparent 70%);
}

.quiz-card--featured {
    border-color: rgba(225,29,72,0.3);
    box-shadow: 0 0 50px rgba(225,29,72,0.08);
}

.quiz-card--featured:hover {
    transform: translateY(-6px);
    border-color: rgba(225,29,72,0.5);
    box-shadow: 0 20px 60px rgba(225,29,72,0.2);
}

.quiz-card--featured:hover::before { opacity: 1; }

.quiz-card--soon {
    opacity: 0.6;
    cursor: not-allowed;
}

.quiz-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.quiz-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.quiz-badge--hot {
    background: rgba(225,29,72,0.15);
    color: var(--accent);
    border: 1px solid rgba(225,29,72,0.3);
}

.quiz-badge--soon {
    background: rgba(100,116,139,0.2);
    color: var(--muted2);
    border: 1px solid rgba(100,116,139,0.2);
}

.quiz-time {
    font-size: 0.8rem;
    color: var(--muted2);
}

.quiz-card-emoji {
    font-size: 3rem;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}

.quiz-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}

.quiz-card-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 20px;
}

.quiz-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.tag {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 3px 12px;
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 500;
}

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

.quiz-card-footer--soon {
    justify-content: center;
}

.quiz-cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), #9f1239);
    color: #fff;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(225,29,72,0.3);
}

.quiz-card--featured:hover .quiz-cta-btn {
    transform: translateX(4px);
    box-shadow: 0 8px 24px rgba(225,29,72,0.4);
}

.quiz-cta-btn--disabled {
    background: rgba(100,116,139,0.2);
    color: var(--muted2);
    box-shadow: none;
    cursor: not-allowed;
}

.quiz-answer-count {
    font-size: 0.8rem;
    color: var(--muted2);
}

/* ─── EDITORIAL ─── */
.editorial-section {
    position: relative;
    z-index: 1;
    padding: 60px 24px 100px;
    border-top: 1px solid var(--border);
    background: linear-gradient(to bottom, rgba(225,29,72,0.03), transparent);
}

.editorial-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.editorial-feature {
    padding: 10px 0;
}

.editorial-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.editorial-feature h3 {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    color: var(--text);
}

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

/* ─── FOOTER ─── */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 40px 24px;
    text-align: center;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.footer-disclaimer {
    font-size: 0.82rem;
    color: var(--muted2);
    line-height: 1.7;
    margin-bottom: 16px;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--muted2);
    opacity: 0.6;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
    .hero-stats {
        flex-wrap: wrap;
        border-radius: 20px;
        padding: 20px;
        gap: 16px;
    }
    .stat-divider { display: none; }
    .header-nav { display: none; }
    .quiz-cards-grid { grid-template-columns: 1fr; }
}
