:root {
    --bg: #0f1117;
    --surface: #1a1d27;
    --surface-2: #242833;
    --text: #e8eaed;
    --text-muted: #9aa0a6;
    --accent: #7c9cff;
    --accent-2: #a78bfa;
    --success: #34d399;
    --danger: #f87171;
    --border: #2d3140;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(0,0,0,0.35);
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.site-header {
    background: rgba(15, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text);
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
    border-radius: 6px; /* optional – remove if you don’t want rounded corners */
}

.main-nav {
    display: flex;
    gap: 0.25rem;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text);
    background: var(--surface-2);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    padding: 4.5rem 0 3.5rem;
    text-align: center;
    background: radial-gradient(ellipse at top, rgba(124, 156, 255, 0.12), transparent 60%);
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 30%, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 156, 255, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(124, 156, 255, 0.45);
}

.btn-secondary {
    background: var(--surface-2);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface);
}

/* Cards & Sections */
.section {
    padding: 3.5rem 0;
}

.section-title {
    font-size: 1.9rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    transition: transform 0.2s, box-shadow 0.2s;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
    color: var(--accent);
    overflow-wrap: break-word;
    word-break: break-word;
}

.card p {
    color: var(--text-muted);
    font-size: 0.98rem;
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

/* Content pages */
.page-header {
    padding: 3rem 0 1.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2.5rem;
}

.page-header h1 {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.content-block {
    max-width: 780px;
}

.content-block h2 {
    font-size: 1.5rem;
    margin: 2.2rem 0 0.8rem;
    color: var(--accent);
}

.content-block p,
.content-block li {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.content-block ul {
    padding-left: 1.4rem;
    margin-bottom: 1.5rem;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.6rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--surface-2);
    color: var(--text);
    border-color: var(--accent);
}

.tab-panel {
    display: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
}

.tab-panel.active {
    display: block;
}

/* Accordion */
.accordion-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-header {
    width: 100%;
    padding: 1.1rem 1.4rem;
    background: none;
    border: none;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header:hover {
    background: var(--surface-2);
}

.accordion-icon {
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.25s;
}

.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.accordion-body-inner {
    padding: 0 1.4rem 1.3rem;
    color: var(--text-muted);
}

/* Quiz */
.quiz-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.quiz-question {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}

.quiz-options label {
    display: block;
    padding: 0.85rem 1.1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: all 0.15s;
}

.quiz-options label:hover {
    border-color: var(--accent);
}

.quiz-options input {
    margin-right: 0.7rem;
}

.quiz-result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    text-align: center;
}

.quiz-result.success {
    background: rgba(52, 211, 153, 0.12);
    border: 1px solid var(--success);
}

.quiz-result.partial {
    background: rgba(124, 156, 255, 0.12);
    border: 1px solid var(--accent);
}

.score-circle {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    margin-top: 3rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-note {
    margin-top: 0.4rem;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }

    .main-nav.open {
        display: flex;
    }

    .hero {
        padding: 3rem 0 2.5rem;
    }
}