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

:root {
    --bg: #0d0f14;
    --bg2: #141720;
    --bg3: #1a1e2a;
    --bg4: #212636;
    --border: rgba(255, 255, 255, 0.07);
    --border2: rgba(255, 255, 255, 0.13);
    --text: #e8eaf0;
    --text2: #8b90a0;
    --text3: #555b6e;
    --gold: #c9a84c;
    --gold2: #e8c96a;
    --teal: #1d9e75;
    --teal2: #25c290;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
}

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

/* HEADER */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(13, 15, 20, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--gold);
}

.logo-mark {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}

.hdr-prog {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text2);
}

.prog-track {
    width: 130px;
    height: 3px;
    background: var(--border2);
    border-radius: 2px;
    overflow: hidden;
}

.prog-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal2));
    width: 0%;
    transition: width 0.5s ease;
}

.prog-pct {
    color: var(--teal2);
    font-weight: 500;
    min-width: 30px;
}

/* HERO */
.hero {
    padding: 5rem 2rem 3rem;
    text-align: center;
    max-width: 740px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201, 168, 76, 0.3);
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 5vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-title em {
    color: var(--gold);
    font-style: italic;
}

.hero-sub {
    font-size: 15px;
    color: var(--text2);
    max-width: 460px;
    margin: 0 auto 2.5rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.stat-num {
    font-family: var(--font-display);
    font-size: 1.9rem;
    color: var(--gold);
    line-height: 1;
}

.stat-lbl {
    font-size: 11px;
    color: var(--text3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 3px;
}

/* PHASE NAV */
.phase-nav-wrap {
    position: sticky;
    top: 60px;
    z-index: 90;
    background: rgba(13, 15, 20, 0.97);
    border-bottom: 1px solid var(--border);
    padding: 0 1.5rem;
}

.phase-nav {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    max-width: 1100px;
    margin: 0 auto;
}

.phase-nav::-webkit-scrollbar {
    display: none;
}

.phase-btn {
    flex-shrink: 0;
    padding: 0 18px;
    height: 48px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text2);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: all var(--ease);
}

.phase-btn:hover {
    color: var(--text);
    background: rgba(201, 168, 76, 0.05);
}

.phase-btn.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
    font-weight: 500;
}

.ph-count {
    font-size: 10px;
    background: var(--border);
    border-radius: 10px;
    padding: 1px 7px;
    color: var(--text3);
}

.phase-btn.active .ph-count {
    background: rgba(201, 168, 76, 0.15);
    color: var(--gold);
}

/* MAIN */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 5rem;
}

.stage-intro {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.75rem;
}

.stage-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    border: 1px solid var(--border2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.stage-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 400;
}

.stage-desc {
    font-size: 13px;
    color: var(--text2);
    margin-top: 3px;
}

/* TOPIC GRID */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.topic-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1rem;
    cursor: pointer;
    transition: all var(--ease);
    position: relative;
    user-select: none;
}

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

.topic-card.active {
    border-color: var(--gold);
    background: var(--bg3);
}

.topic-card.done .done-pip {
    display: block;
}

.done-pip {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal2);
}

.tc-emoji {
    font-size: 22px;
    margin-bottom: 8px;
}

.tc-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 3px;
}

.tc-time {
    font-size: 11px;
    color: var(--text3);
}

.tc-arrow {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 13px;
    color: var(--text3);
    transition: transform var(--ease);
}

.topic-card.active .tc-arrow {
    transform: rotate(180deg);
    color: var(--gold);
}

/* PANEL */
.panel {
    background: var(--bg3);
    border: 1px solid var(--border2);
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    animation: slideIn 0.22s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.panel-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
}

.panel-badge {
    font-size: 10px;
    padding: 3px 9px;
    border-radius: 12px;
}

.panel-meta {
    font-size: 12px;
    color: var(--text3);
}

/* PANEL TABS */
.panel-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    padding: 0 1.25rem;
}

.ptab {
    padding: 0 16px;
    height: 40px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text2);
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--ease);
}

.ptab:hover {
    color: var(--text);
}

.ptab.active {
    color: var(--gold);
    border-bottom-color: var(--gold);
}

/* RESOURCES */
.res-body {
    padding: 1rem 1.25rem;
}

.res-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: var(--bg4);
    text-decoration: none;
    margin-bottom: 8px;
    transition: all var(--ease);
}

.res-row:last-child {
    margin-bottom: 0;
}

.res-row:hover {
    border-color: var(--border2);
    background: var(--bg2);
    transform: translateX(3px);
}

.rtype {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}

.rt-course {
    background: rgba(29, 158, 117, 0.15);
    color: #25c290;
}

.rt-docs {
    background: rgba(58, 123, 213, 0.15);
    color: #5a9cf5;
}

.rt-video {
    background: rgba(184, 78, 111, 0.15);
    color: #e06a8a;
}

.rt-practice {
    background: rgba(201, 168, 76, 0.15);
    color: #e8c96a;
}

.rname {
    font-size: 13px;
    color: var(--text);
    flex: 1;
}

.rarrow {
    font-size: 13px;
    color: var(--text3);
}

/* CONCEPTS */
.con-body {
    padding: 1rem 1.25rem;
}

.con-intro {
    font-size: 12px;
    color: var(--text3);
    margin-bottom: 10px;
}

.con-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.cpill {
    font-size: 12px;
    padding: 5px 13px;
    border-radius: 20px;
    border: 1px solid var(--border2);
    background: var(--bg4);
    color: var(--text2);
    cursor: pointer;
    font-family: var(--font-body);
    transition: all var(--ease);
}

.cpill:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(201, 168, 76, 0.08);
}

.cpill.active {
    background: rgba(201, 168, 76, 0.12);
    border-color: var(--gold);
    color: var(--gold2);
    font-weight: 500;
}

.con-explain {
    display: none;
    background: var(--bg2);
    border: 1px solid var(--border2);
    border-left: 3px solid var(--gold);
    border-radius: 0 9px 9px 0;
    padding: 12px 14px;
    font-size: 13px;
    color: var(--text2);
    line-height: 1.75;
}

.con-explain.open {
    display: block;
    animation: fadeIn 0.18s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.con-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* PANEL FOOTER */
.panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 8px;
}

.panel-hint {
    font-size: 11px;
    color: var(--text3);
}

.mark-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 20px;
    border: 1px solid var(--border2);
    background: none;
    color: var(--text2);
    font-family: var(--font-body);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--ease);
}

.mark-btn:hover {
    border-color: var(--teal);
    color: var(--teal2);
    background: rgba(29, 158, 117, 0.08);
}

.mark-btn.done {
    background: rgba(29, 158, 117, 0.12);
    border-color: var(--teal);
    color: var(--teal2);
}

.mark-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid currentColor;
    flex-shrink: 0;
}

.mark-btn.done .mark-dot {
    background: var(--teal2);
}

/* QUICK ACTIONS */
.qa-section {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

.qa-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 1rem;
}

.qa-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.qa-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text2);
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ease);
}

.qa-btn:hover {
    border-color: var(--border2);
    color: var(--text);
    background: var(--bg3);
    transform: translateY(-1px);
}

.qa-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.qa-sub {
    font-size: 11px;
    color: var(--text3);
    margin-top: 1px;
}

/* FOOTER */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem;
    text-align: center;
    font-size: 11px;
    color: var(--text3);
}

.site-footer a {
    color: var(--gold);
    text-decoration: none;
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--border2);
    border-radius: 10px;
}

@media (max-width: 600px) {
    .header {
        padding: 0 1rem;
    }

    .hero {
        padding: 3rem 1rem 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .main {
        padding: 1.5rem 1rem 3rem;
    }

    .prog-track {
        width: 70px;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}