/* ============================================================
   Frontend in 2 Days — Tutorial Styles
   ============================================================ */

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

/* ---- Custom Properties ---- */
:root {
    --bg:          #0f1117;
    --bg-surface:  #1a1d27;
    --bg-card:     #21242f;
    --bg-code:     #171921;
    --text:        #e0e4ec;
    --text-dim:    #8b90a0;
    --accent:      #6c8cff;
    --accent2:     #a78bfa;
    --accent3:     #34d399;
    --accent4:     #f472b6;
    --border:      #2a2e3b;
    --radius:      10px;
    --radius-sm:   6px;
    --shadow:      0 4px 24px rgba(0,0,0,0.35);
    --font-sans:   "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono:   "JetBrains Mono", "Fira Code", "Cascadia Code", "Consolas", monospace;
    --topbar-h:    56px;
    --max-w:       1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background:  var(--bg);
    color:       var(--text);
    line-height: 1.7;
    padding-top: var(--topbar-h);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: rgba(15, 17, 23, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 1000;
}

.topbar-brand {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--accent);
    letter-spacing: -0.02em;
    text-decoration: none;
    cursor: pointer;
}

.topbar-tabs {
    display: flex;
    gap: 4px;
}

.tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    padding: 6px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: var(--text);
    background: var(--bg-card);
}

.tab-btn.active {
    color: var(--accent);
    background: var(--bg-card);
    border-color: var(--border);
}

/* ============================================================
   PAGE CONTAINER
   ============================================================ */
.page {
    display: none;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 32px 24px 80px;
    animation: fadeIn 0.35s ease-out;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 56px 20px 40px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.hero-sub {
    color: var(--text-dim);
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    max-width: 680px;
    margin: 0 auto;
}

.hero-sub code {
    background: var(--bg-card);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: var(--accent3);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 56px 0 24px;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ============================================================
   ANNOTATED CODE — Left Code + Right Notes
   ============================================================ */
.annotated-code {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    margin-bottom: 32px;
}

.code-side {
    flex: 1 1 55%;
    min-width: 0;
}

.note-side {
    flex: 1 1 40%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 240px;
}

/* ---- Notes ---- */
.note {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-dim);
    transition: all 0.2s ease;
}

.note:hover {
    border-left-color: var(--accent2);
    background: var(--bg-surface);
    color: var(--text);
}

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

.note code {
    background: var(--bg-code);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--accent3);
}

.note-badge {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 4px;
    margin-right: 6px;
    text-transform: uppercase;
    vertical-align: 1px;
}

/* ============================================================
   CODE BLOCKS
   ============================================================ */
pre {
    position: relative;
    background: var(--bg-code);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    overflow-x: auto;
    font-size: 0.84rem;
    line-height: 1.7;
    tab-size: 2;
}

code {
    font-family: var(--font-mono);
    color: var(--text);
}

pre code {
    color: #c9d1d9;
}

/* ---- Syntax highlights ---- */
.kw  { color: #c678dd; }          /* keywords */
.str { color: #98c379; }          /* strings  */
.cmt { color: #5c6370; font-style: italic; } /* comments */
.fn  { color: #61afef; }          /* functions */

/* Marker lines (interactive) */
.marker {
    transition: background 0.15s;
    border-radius: 3px;
}

.marker:hover,
.marker.highlight {
    background: rgba(108, 140, 255, 0.12);
}

/* ============================================================
   CARDS & TWO-COL GRID
   ============================================================ */
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.two-col.triple {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.card:hover {
    border-color: var(--accent);
}

.card h3 {
    font-size: 0.95rem;
    color: var(--accent2);
    margin-bottom: 12px;
    font-weight: 600;
}

.card pre {
    background: var(--bg-code);
    margin: 0;
    border-color: transparent;
}

.card-note {
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
}

/* ============================================================
   INFO BOX
   ============================================================ */
.info-box {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent3);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin: 24px 0;
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.65;
}

.info-box strong {
    color: var(--accent3);
}

.info-box code {
    background: var(--bg-code);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--accent);
}

.info-box.warn {
    border-left-color: #f59e0b;
}

.info-box.warn strong {
    color: #f59e0b;
}

/* ============================================================
   BOX MODEL DEMO
   ============================================================ */
.box-model-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 24px 0 40px;
    position: relative;
}

.bm-margin {
    background: rgba(249, 115, 22, 0.12);
    border: 2px dashed rgba(249, 115, 22, 0.5);
    padding: 24px;
    border-radius: 12px;
    width: 420px;
    max-width: 100%;
}

.bm-border {
    background: rgba(108, 140, 255, 0.12);
    border: 3px solid var(--accent);
    padding: 20px;
    border-radius: 8px;
}

.bm-padding {
    background: rgba(52, 211, 153, 0.12);
    border: 2px dashed rgba(52, 211, 153, 0.5);
    padding: 20px;
    border-radius: 6px;
}

.bm-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 16px 24px;
    border-radius: 4px;
    text-align: center;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text);
}

.bm-label {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 6px;
    font-family: var(--font-mono);
}

.bm-dim {
    font-weight: 400;
    color: var(--text-dim);
}

.bm-margin-label { color: #f97316; text-align: center; }
.bm-border-label { color: var(--accent); }
.bm-padding-label { color: var(--accent3); }

/* ============================================================
   DEMO CONTAINER (Live Interactive)
   ============================================================ */
.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.demo-code, .demo-result {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
}

.demo-code h3, .demo-result h3 {
    font-size: 0.85rem;
    color: var(--accent2);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.demo-code pre {
    background: var(--bg-code);
    border-color: transparent;
}

.demo-area {
    padding: 16px;
    min-height: 160px;
}

.demo-area h2 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    transition: color 0.2s;
}

.demo-button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: var(--font-sans);
}

.demo-button:hover {
    background: #5a7af0;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(108, 140, 255, 0.3);
}

.demo-button:active {
    transform: translateY(0);
}

.demo-area ul {
    list-style: none;
    margin-top: 16px;
}

.demo-area li {
    padding: 6px 12px;
    margin: 4px 0;
    background: var(--bg-surface);
    border-radius: 4px;
    font-size: 0.88rem;
    animation: slideIn 0.2s ease-out;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   CHEATSHEET TABLE
   ============================================================ */
.cheatsheet {
    margin: 24px 0 40px;
    overflow-x: auto;
}

.cheatsheet table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.cheatsheet thead {
    background: var(--bg-card);
}

.cheatsheet th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--accent);
    border-bottom: 2px solid var(--border);
}

.cheatsheet td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-dim);
}

.cheatsheet tr:hover td {
    background: var(--bg-surface);
    color: var(--text);
}

.cheatsheet td:first-child {
    font-weight: 600;
    color: var(--accent2);
    white-space: nowrap;
}

.cheatsheet code {
    background: var(--bg-code);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--accent3);
}

/* ============================================================
   BOTTOM NAVIGATION
   ============================================================ */
.nav-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0 20px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    border-color: var(--accent);
    background: var(--bg-surface);
    color: var(--accent);
}

.next-btn {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.next-btn:hover {
    background: #5a7af0;
    border-color: #5a7af0;
    color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    text-align: center;
    padding: 32px 0 16px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.footer p + p {
    margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .topbar-tabs {
        gap: 2px;
    }

    .tab-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    .topbar-brand {
        font-size: 0.9rem;
    }

    .annotated-code {
        flex-direction: column;
    }

    .note-side {
        min-width: 0;
    }

    .demo-container {
        grid-template-columns: 1fr;
    }

    .two-col {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 36px 12px 28px;
    }

    .section-title {
        margin: 40px 0 16px;
    }

    .bm-margin {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .topbar {
        padding: 0 12px;
        flex-wrap: wrap;
        height: auto;
        padding: 8px 12px;
    }

    .topbar-tabs {
        width: 100%;
        justify-content: center;
    }

    body {
        padding-top: 88px;
    }

    .page {
        padding: 16px 12px 60px;
    }

    pre {
        font-size: 0.78rem;
        padding: 12px 14px;
    }
}

/* ============================================================
   LIGHT THEME
   ============================================================ */
[data-theme="light"] {
    --bg:          #f5f7fa;
    --bg-surface:  #ffffff;
    --bg-card:     #ffffff;
    --bg-code:     #f0f2f5;
    --text:        #1a1a2e;
    --text-dim:    #555;
    --border:      #d1d5db;
    --shadow:      0 4px 24px rgba(0,0,0,0.08);
}

[data-theme="light"] .topbar {
    background: rgba(245, 247, 250, 0.9);
}

[data-theme="light"] pre code { color: #24292e; }
[data-theme="light"] .kw { color: #8b008b; }
[data-theme="light"] .str { color: #22863a; }
[data-theme="light"] .cmt { color: #6a737d; }
[data-theme="light"] .fn { color: #005cc5; }

/* ============================================================
   PROGRESS BAR
   ============================================================ */
.progress-bar {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    height: 3px;
    background: var(--bg-surface);
    z-index: 999;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    width: 25%;
    transition: width 0.4s ease;
    border-radius: 0 2px 2px 0;
}

/* ============================================================
   TOPBAR ACTIONS
   ============================================================ */
.topbar-actions {
    display: flex;
    gap: 4px;
}

.topbar-icon-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-dim);
    font-size: 1.1rem;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.topbar-icon-btn:hover {
    background: var(--bg-card);
    color: var(--text);
    border-color: var(--border);
}

/* ============================================================
   TABLE OF CONTENTS SIDEBAR
   ============================================================ */
.toc-panel {
    position: fixed;
    top: calc(var(--topbar-h) + 3px);
    right: 0;
    width: 280px;
    max-height: calc(100vh - var(--topbar-h) - 3px);
    overflow-y: auto;
    background: var(--bg-surface);
    border-left: 1px solid var(--border);
    padding: 20px;
    z-index: 998;
    transition: transform 0.3s ease;
}

.toc-panel.hidden {
    transform: translateX(100%);
}

.toc-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

#toc-list {
    list-style: none;
}

#toc-list li {
    margin-bottom: 6px;
}

#toc-list a {
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
    display: block;
    padding: 4px 0;
}

#toc-list a:hover {
    color: var(--accent);
}

/* ============================================================
   COPY BUTTON
   ============================================================ */
.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-dim);
    font-family: var(--font-sans);
    font-size: 0.72rem;
    padding: 3px 10px;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    z-index: 2;
}

pre:hover .copy-btn { opacity: 1; }

.copy-btn:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.copy-btn.copied {
    background: var(--accent3);
    border-color: var(--accent3);
    color: #fff;
    opacity: 1;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.quiz-container {
    max-width: 700px;
}

.quiz-question {
    margin-bottom: 24px;
}

.quiz-prompt {
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.quiz-prompt code {
    background: var(--bg-code);
    padding: 1px 5px;
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.85em;
    color: var(--accent3);
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.quiz-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    transition: border-color 0.2s, background 0.2s;
}

.quiz-option:hover {
    border-color: var(--accent);
}

.quiz-option input[type="radio"] {
    accent-color: var(--accent);
}

.quiz-option.quiz-correct {
    border-color: var(--accent3);
    background: rgba(52, 211, 153, 0.1);
}

.quiz-option.quiz-wrong {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.quiz-feedback {
    margin-top: 6px;
    font-size: 0.82rem;
    min-height: 1.2em;
}

.quiz-fb-correct { color: var(--accent3); }
.quiz-fb-wrong { color: #ef4444; }

.quiz-submit-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 8px;
}

.quiz-submit-btn:hover { background: #5a7af0; }

.quiz-score {
    margin-top: 12px;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text);
}

.quiz-perfect { color: var(--accent3); }

/* ============================================================
   CSS LIVE PREVIEW
   ============================================================ */
.css-preview-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0;
}

.css-preview-editor label {
    display: block;
    font-size: 0.88rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.css-preview-editor textarea {
    width: 100%;
    background: var(--bg-code);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    font-family: var(--font-mono);
    font-size: 0.84rem;
    line-height: 1.6;
    resize: vertical;
}

.css-preview-result {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    min-height: 200px;
    padding: 20px;
}

.preview-box {
    padding: 1.5rem 2rem;
    background: var(--bg-surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .css-preview-container { grid-template-columns: 1fr; }
    .toc-panel { width: 100%; }
}

/* ============================================================
   PRINT STYLESHEET
   ============================================================ */
@media print {
    .topbar, .progress-bar, .toc-panel, .nav-bottom,
    .footer, .copy-btn, .quiz-submit-btn, .topbar-actions,
    #toc-toggle, #theme-toggle { display: none !important; }

    body { padding-top: 0; background: #fff; color: #000; }
    .page { display: block !important; max-width: 100%; }
    pre { border: 1px solid #ccc; }
    .card { break-inside: avoid; border: 1px solid #ccc; }
    .note { border: 1px solid #ccc; }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 24px 40px;
}

.landing-hero {
    text-align: center;
    padding: 60px 0 48px;
}

.landing-title {
    font-size: clamp(2.2rem, 6vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    letter-spacing: -0.02em;
}

.landing-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-subtitle {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.landing-cta {
    display: inline-block;
    margin-top: 32px;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(108, 140, 255, 0.3);
}

.landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(108, 140, 255, 0.45);
}

.landing-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    margin-top: 48px;
}

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.landing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-sans);
}

.landing-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(108, 140, 255, 0.15);
}

.landing-card-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.landing-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.landing-card-desc {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.5;
}

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

.landing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
}

.landing-feature-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.landing-feature-desc {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.landing-footer-note {
    text-align: center;
    margin-top: 48px;
    color: var(--text-dim);
    font-size: 0.85rem;
    opacity: 0.7;
}
