/* ==========================================================================
   Pandoc China Official Website - Shared Stylesheet
   Flat / Modern / Professional Design System
   Brand color based on Pandoc official logo (deep purple)
   ========================================================================== */

/* ---------- 1. Design Tokens ---------- */
:root {
    /* Brand palette - derived from Pandoc logo */
    --brand-primary: #6B5B95;
    --brand-dark: #4A3F66;
    --brand-darker: #2E2641;
    --brand-light: #9B8AB8;
    --brand-lighter: #E5DCED;
    --brand-tint: #F4F1F9;

    /* Neutrals */
    --bg-base: #FFFFFF;
    --bg-soft: #FAFAFA;
    --bg-tint: #F5F3F8;
    --bg-code: #1E1B2E;

    --text-primary: #1F1B2E;
    --text-secondary: #5A5468;
    --text-muted: #8A8595;
    --text-inverse: #FFFFFF;

    --border-soft: #ECEAF1;
    --border-medium: #D8D4E0;

    /* Semantic */
    --success: #4A8A6F;
    --warning: #C68A2F;
    --danger: #B05B5B;

    /* Layout */
    --max-width: 1200px;
    --nav-height: 68px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows - flat & subtle */
    --shadow-sm: 0 1px 2px rgba(31, 27, 46, 0.04);
    --shadow-md: 0 4px 16px rgba(31, 27, 46, 0.06);
    --shadow-lg: 0 12px 32px rgba(31, 27, 46, 0.08);
    --shadow-xl: 0 24px 60px rgba(31, 27, 46, 0.12);

    /* Type */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    --font-mono: "SF Mono", "JetBrains Mono", "Fira Code", "Source Code Pro",
                  Menlo, Consolas, "DejaVu Sans Mono", monospace;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --dur-fast: 150ms;
    --dur-base: 240ms;
    --dur-slow: 360ms;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; margin: 0 0 0.6em; color: var(--text-primary); }
p { margin: 0 0 1em; }
a { color: var(--brand-primary); text-decoration: none; transition: color var(--dur-fast) var(--ease); }
a:hover { color: var(--brand-dark); }
img, svg { max-width: 100%; display: block; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: 0.4em; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- 3. Layout utilities ---------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-tint { background: var(--bg-tint); }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--brand-darker); color: var(--text-inverse); }
.section-dark h2, .section-dark h3 { color: #FFFFFF; }
.section-dark p { color: rgba(255,255,255,0.78); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. Typography ---------- */
.display { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.015em; }
.h2 { font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 700; letter-spacing: -0.01em; }
.h3 { font-size: 1.3rem; font-weight: 700; }
.lead { font-size: 1.125rem; color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--font-mono); }

/* Section header */
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 12px;
    padding: 4px 12px;
    background: var(--brand-lighter);
    border-radius: 999px;
}
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--text-secondary); font-size: 1.05rem; margin: 0; }

/* ---------- 5. Header / Navigation ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(16px);
    -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid var(--border-soft);
    height: var(--nav-height);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand-dark);
}
.brand:hover { color: var(--brand-dark); }
.brand-mark {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}
.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--dur-fast) var(--ease);
}
.nav-links a:hover { color: var(--brand-primary); background: var(--brand-tint); }
.nav-links a.active { color: var(--brand-primary); background: var(--brand-tint); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- 6. Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all var(--dur-base) var(--ease);
    cursor: pointer;
    white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
    background: var(--brand-primary);
    color: #FFFFFF;
    border-color: var(--brand-primary);
}
.btn-primary:hover {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-ghost {
    background: transparent;
    color: var(--brand-dark);
    border-color: var(--border-medium);
}
.btn-ghost:hover { border-color: var(--brand-primary); color: var(--brand-primary); }
.btn-light {
    background: #FFFFFF;
    color: var(--brand-dark);
    border-color: #FFFFFF;
}
.btn-light:hover { background: var(--brand-lighter); color: var(--brand-dark); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- 7. Hero ---------- */
.hero {
    position: relative;
    padding: 96px 0 88px;
    background:
        radial-gradient(ellipse at top right, rgba(155, 138, 184, 0.22), transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(107, 91, 149, 0.16), transparent 50%),
        var(--bg-base);
    overflow: hidden;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: var(--brand-tint);
    border: 1px solid var(--brand-lighter);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-dark);
    margin-bottom: 24px;
}
.hero-eyebrow .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--brand-primary);
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent { color: var(--brand-primary); }
.hero .lead { font-size: 1.18rem; margin-bottom: 32px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border-soft);
    flex-wrap: wrap;
}
.hero-meta .item .num { font-size: 1.6rem; font-weight: 800; color: var(--brand-dark); }
.hero-meta .item .label { font-size: 0.85rem; color: var(--text-muted); }

/* Hero terminal mock */
.hero-visual { position: relative; }
.terminal {
    background: var(--bg-code);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.06);
}
.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-bar .dots { display: flex; gap: 7px; }
.terminal-bar .dots span { width: 12px; height: 12px; border-radius: 50%; }
.terminal-bar .dots span:nth-child(1) { background: #FF6058; }
.terminal-bar .dots span:nth-child(2) { background: #FFBD2E; }
.terminal-bar .dots span:nth-child(3) { background: #28CA42; }
.terminal-bar .title { font-size: 0.85rem; color: rgba(255,255,255,0.55); margin-left: 8px; font-family: var(--font-mono); }
.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 0.92rem;
    line-height: 1.65;
    color: #E6E1F0;
    min-height: 280px;
}
.terminal-body .ln { white-space: pre; }
.terminal-body .prompt { color: #9B8AB8; }
.terminal-body .cmd { color: #FFFFFF; font-weight: 600; }
.terminal-body .flag { color: #B8A6E0; }
.terminal-body .arg { color: #FFBD2E; }
.terminal-body .out { color: #8A8595; }
.terminal-body .ok { color: #4ADE80; }

/* ---------- 8. Cards ---------- */
.card {
    background: var(--bg-base);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--dur-base) var(--ease);
    height: 100%;
}
.card:hover {
    border-color: var(--brand-light);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-tint);
    color: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--text-secondary); margin-bottom: 0; font-size: 0.95rem; }

/* Feature card variants */
.card-feature { padding: 32px; }
.card-feature .card-icon { width: 56px; height: 56px; border-radius: 14px; }
.card-feature .card-icon svg { width: 28px; height: 28px; }

/* Scenario card */
.scenario-card { position: relative; overflow: hidden; }
.scenario-card .tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    background: var(--brand-tint);
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 14px;
}

/* ---------- 9. Testimonials ---------- */
.testimonial {
    background: var(--bg-base);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    height: 100%;
}
.testimonial .quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-primary);
    flex: 1;
}
.testimonial .quote::before {
    content: "\201C";
    font-size: 2.5rem;
    line-height: 0.8;
    color: var(--brand-light);
    margin-right: 4px;
    vertical-align: -0.2em;
    font-family: Georgia, serif;
}
.testimonial .author { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--brand-lighter);
    color: var(--brand-dark);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem;
    flex-shrink: 0;
}
.testimonial .author .name { font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.testimonial .author .role { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- 10. Format chips ---------- */
.format-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}
.format-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: all var(--dur-fast) var(--ease);
}
.format-chip:hover {
    border-color: var(--brand-light);
    background: var(--brand-tint);
    color: var(--brand-dark);
}
.format-chip .fmt-mark {
    width: 28px; height: 28px;
    border-radius: 6px;
    background: var(--brand-tint);
    color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
}

/* ---------- 11. Code block ---------- */
.code-block {
    background: var(--bg-code);
    color: #E6E1F0;
    border-radius: var(--radius-md);
    padding: 20px 24px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.7;
    overflow-x: auto;
    border: 1px solid rgba(255,255,255,0.06);
}
.code-block .cmt { color: #8A8595; }
.code-block .kw { color: #B8A6E0; }
.code-block .str { color: #FFBD2E; }
.code-block .flag { color: #79B8FF; }
.code-block .out { color: #4ADE80; }
.code-inline {
    font-family: var(--font-mono);
    background: var(--bg-tint);
    color: var(--brand-dark);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    border: 1px solid var(--border-soft);
}

/* ---------- 12. Download modal ---------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(31, 27, 46, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--dur-base) var(--ease), visibility var(--dur-base) var(--ease);
}
.modal-overlay.active { opacity: 1; visibility: visible;   left: 0;
  right: 0;
  top: 0;
  bottom: 0;}
  button { outline: none } 
.modal {
    background: var(--bg-base);
    border-radius: var(--radius-xl);
    max-width: 760px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(24px) scale(0.96);
    transition: transform var(--dur-slow) var(--ease-out);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }
.modal-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 28px 32px 0;
}
.modal-head h3 { font-size: 1.5rem; margin-bottom: 6px; }
.modal-head p { color: var(--text-secondary); margin: 0; font-size: 0.95rem; }
.modal-close {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    background: var(--bg-soft);
    transition: all var(--dur-fast) var(--ease);
    flex-shrink: 0;
}
.modal-close:hover { background: var(--brand-tint); color: var(--brand-dark); }
.modal-close svg { width: 18px; height: 18px; }
.modal-body { padding: 28px 32px 32px; }
.qr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.qr-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 24px;
    text-align: center;
    background: var(--bg-soft);
}
.qr-card .qr-img {
    width: 180px; height: 180px;
    margin: 0 auto 16px;
    background: #FFFFFF;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    padding: 8px;
}
.qr-card .qr-img img { width: 100%; height: 100%; }
.qr-card .platform {
    display: inline-flex; align-items: center; gap: 6px;
    font-weight: 700; font-size: 0.95rem; color: var(--brand-dark);
    margin-bottom: 4px;
}
.qr-card .hint { font-size: 0.82rem; color: var(--text-muted); }
.modal-note {
    padding: 14px 16px;
    background: var(--brand-tint);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex; align-items: flex-start; gap: 10px;
}
.modal-note svg { width: 18px; height: 18px; color: var(--brand-primary); flex-shrink: 0; margin-top: 2px; }

/* ---------- 13. Stat strip ---------- */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-item { text-align: center; }
.stat-item .num {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.stat-item .num .suffix { color: var(--brand-light); }
.stat-item .label { color: var(--text-secondary); font-size: 0.95rem; margin-top: 6px; }

/* ---------- 14. Page header (interior) ---------- */
.page-hero {
    background:
        radial-gradient(ellipse at top right, rgba(155, 138, 184, 0.22), transparent 55%),
        var(--bg-base);
    padding: 72px 0 56px;
    border-bottom: 1px solid var(--border-soft);
}
.page-hero .eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 14px;
}
.page-hero h1 { margin-bottom: 18px; }
.page-hero .lead { color: var(--text-secondary); max-width: 720px; margin: 0; }

/* ---------- 15. Download cards (download page) ---------- */
.dl-card {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 32px;
    background: var(--bg-base);
    transition: all var(--dur-base) var(--ease);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dl-card:hover { border-color: var(--brand-light); box-shadow: var(--shadow-md); }
.dl-card .os-mark {
    width: 56px; height: 56px;
    border-radius: 14px;
    background: var(--brand-tint);
    color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
}
.dl-card .os-mark svg { width: 30px; height: 30px; }
.dl-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.dl-card .ver { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.dl-card .req { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 22px; flex: 1; }
.dl-card .actions { display: flex; flex-direction: column; gap: 10px; }

/* ---------- 16. Steps ---------- */
.steps { display: grid; gap: 0; }
.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border-soft);
}
.step:last-child { border-bottom: none; }
.step .num {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #FFFFFF;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
}
.step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; margin: 0; }

/* ---------- 17. Tables ---------- */
.tbl {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-base);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-soft);
}
.tbl th, .tbl td {
    padding: 14px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.tbl th { background: var(--bg-tint); font-weight: 700; font-size: 0.88rem; color: var(--text-primary); }
.tbl td { font-size: 0.92rem; color: var(--text-secondary); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--brand-tint); }

/* ---------- 18. FAQ ---------- */
.faq-item {
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    background: var(--bg-base);
    margin-bottom: 12px;
    overflow: hidden;
}
.faq-q {
    width: 100%;
    text-align: left;
    padding: 18px 22px;
    display: flex; justify-content: space-between; align-items: center;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}
.faq-q .chev { transition: transform var(--dur-base) var(--ease); color: var(--text-muted); }
.faq-q .chev svg { width: 18px; height: 18px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--brand-primary); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--dur-slow) var(--ease);
    color: var(--text-secondary);
}
.faq-item.open .faq-a { max-height: 600px; }
.faq-a-inner { padding: 0 22px 20px; }

/* ---------- 19. Call-to-action band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-dark));
    color: #FFFFFF;
    border-radius: var(--radius-xl);
    padding: 64px 56px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #FFFFFF; font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 16px; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.05rem; max-width: 620px; margin: 0 auto 32px; }
.cta-band .btn-light { color: var(--brand-dark); }

/* ---------- 20. Footer ---------- */
.site-footer {
    background: var(--brand-darker);
    color: rgba(255,255,255,0.72);
    padding: 72px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { color: #FFFFFF; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.7; color: rgba(255,255,255,0.6); margin: 0; }
.footer-col h4 {
    color: #FFFFFF;
    font-size: 0.95rem;
    margin-bottom: 18px;
    letter-spacing: 0.04em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
    color: rgba(255,255,255,0.62);
    font-size: 0.9rem;
    transition: color var(--dur-fast) var(--ease);
}
.footer-col a:hover { color: #FFFFFF; }
.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.65); }

/* ---------- 21. Breadcrumb ---------- */
.breadcrumb {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
    font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb .sep { color: var(--text-muted); }

/* ---------- 22. Tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border-soft); margin-bottom: 28px; flex-wrap: wrap; }
.tab {
    padding: 12px 18px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 0.95rem;
    transition: all var(--dur-fast) var(--ease);
}
.tab:hover { color: var(--brand-primary); }
.tab.active { color: var(--brand-primary); border-bottom-color: var(--brand-primary); }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn var(--dur-slow) var(--ease); }

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

/* ---------- 23. Utilities ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 40px; } .mt-6 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 40px; } .mb-6 { margin-bottom: 56px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.d-block { display: block; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.flex-wrap { flex-wrap: wrap; }
.maxw-720 { max-width: 720px; }
.maxw-560 { max-width: 560px; }

/* ---------- 24. Responsive ---------- */
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0; right: 0;
        background: var(--bg-base);
        flex-direction: column;
        gap: 0;
        padding: 12px 24px 20px;
        border-bottom: 1px solid var(--border-soft);
        box-shadow: var(--shadow-lg);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: all var(--dur-base) var(--ease);
    }
    .nav-links.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav-links a { padding: 14px 12px; border-radius: 8px; }
    .nav-cta .btn-ghost { display: none; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section { padding: 56px 0; }
    .hero { padding: 56px 0 48px; }
    .cta-band { padding: 40px 28px; }
    .qr-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stat-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .footer-grid { grid-template-columns: 1fr; }
    .stat-strip { grid-template-columns: 1fr 1fr; gap: 24px; }
    .hero-meta { gap: 20px; }
    .terminal-body { font-size: 0.8rem; }
}
