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

:root {
    --bg: #f2f2f7;
    --surface: #f8fbff;
    --surface-strong: #ffffff;
    --ink: #1c1c1e;
    --muted: #4a4a4f;
    --subtle: #8e8e93;
    --line: rgba(60, 60, 67, 0.14);
    --primary: #0a84ff;
    --primary-dark: #0062d6;
    --accent: #18a9f5;
    --accent-soft: #d9f4ff;
    --blue-soft: #eaf4ff;
    --shadow: 0 18px 50px rgba(10, 20, 40, 0.1);
    --shadow-soft: 0 10px 30px rgba(10, 20, 40, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1120px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(10, 132, 255, 0.14), transparent 34rem),
        linear-gradient(180deg, #f7fbff 0%, var(--bg) 52%, #ebebf0 100%);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(100% - 40px, var(--container));
    margin: 0 auto;
}

.narrow {
    width: min(100% - 40px, 820px);
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 243, 0.84);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.nav-container {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient(145deg, var(--primary), var(--primary-dark));
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--ink);
    background: rgba(10, 132, 255, 0.1);
}

.nav-menu .nav-cta {
    color: #fff;
    background: var(--primary);
}

.nav-menu .nav-cta:hover {
    color: #fff;
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 999px;
}

.hero {
    padding: 92px 0 72px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 56px;
    align-items: center;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.12;
    letter-spacing: -0.045em;
}

h1 {
    max-width: 820px;
    font-size: clamp(3rem, 7vw, 5.9rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
    font-size: 1.25rem;
}

.hero-subtitle,
.lead,
.page-hero p,
.section-heading p {
    color: var(--muted);
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-subtitle {
    max-width: 720px;
    margin: 24px 0 0;
}

.hero-actions,
.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-primary {
    color: #fff;
    background: linear-gradient(180deg, #0a84ff 0%, #007aff 100%);
    box-shadow: 0 12px 26px rgba(0, 122, 255, 0.24);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--line);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 560px;
    gap: 12px;
    margin-top: 42px;
}

.hero-metrics div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 250, 243, 0.72);
}

.hero-metrics dt {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-metrics dd {
    color: var(--muted);
    font-size: 0.92rem;
}

.app-panel {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 36px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 250, 243, 0.68));
    box-shadow: var(--shadow);
}

.panel-topbar,
.lesson-card,
.task-item,
.progress-card {
    border: 1px solid var(--line);
    background: var(--surface-strong);
}

.panel-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-radius: 22px;
    color: var(--muted);
}

.panel-topbar span:first-child {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.panel-topbar span:last-child {
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--primary);
    background: var(--blue-soft);
    font-weight: 800;
}

.lesson-card {
    margin-top: 14px;
    padding: 24px;
    border-radius: 26px;
}

.lesson-card.active {
    color: #fff;
    border: 0;
    background: linear-gradient(145deg, #0a84ff, #007aff);
}

.lesson-kicker {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.85rem;
    font-weight: 700;
}

.lesson-card h2 {
    font-size: 1.7rem;
}

.lesson-card p:last-child {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.76);
}

.task-list {
    display: grid;
    gap: 10px;
    margin: 14px 0;
}

.task-item {
    display: grid;
    grid-template-columns: 16px 1fr;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
}

.task-item > span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--subtle);
}

.task-item.done > span {
    background: var(--primary);
}

.task-item.current {
    border-color: rgba(10, 132, 255, 0.35);
    background: #f3f9ff;
}

.task-item.current > span {
    background: var(--accent);
}

.task-item p,
.progress-card p {
    color: var(--muted);
    font-size: 0.9rem;
}

.progress-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px;
    border-radius: 22px;
}

.progress-ring {
    width: 62px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--primary-dark);
    background: conic-gradient(var(--accent) 72%, var(--accent-soft) 0);
    font-weight: 800;
}

.section,
.page-hero {
    padding: 84px 0;
}

.page-hero {
    text-align: center;
}

.page-hero p {
    max-width: 760px;
    margin: 22px auto 0;
}

.muted {
    background: rgba(255, 255, 255, 0.36);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 36px;
}

.section-heading.center {
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.section-heading p {
    margin-top: 14px;
}

.value-grid,
.skill-grid,
.practice-matrix,
.system-map {
    display: grid;
    gap: 18px;
}

.value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.skill-grid,
.practice-matrix {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.system-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.value-card,
.skill-card,
.practice-matrix article,
.system-map article {
    min-height: 210px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 243, 0.8);
    box-shadow: var(--shadow-soft);
}

.value-card p,
.skill-card p,
.practice-matrix p,
.system-map p,
.audience-list p {
    margin-top: 12px;
    color: var(--muted);
}

.system-map article span {
    display: inline-flex;
    margin-bottom: 28px;
    color: var(--accent);
    font-weight: 800;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: start;
}

.flow-list,
.audience-list {
    display: grid;
    gap: 14px;
}

.flow-step,
.audience-list > div {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.62);
}

.audience-list > div {
    grid-template-columns: 1fr;
}

.flow-step span {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--primary-dark);
    background: var(--blue-soft);
    font-weight: 800;
}

.language-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.language-strip span {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary-dark);
    background: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

.policy-card {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 243, 0.84);
    box-shadow: var(--shadow-soft);
}

.policy-card h2 {
    margin-top: 34px;
    font-size: 1.65rem;
}

.policy-card h2:first-child {
    margin-top: 0;
}

.policy-card h3 {
    margin-top: 22px;
    font-size: 1.1rem;
}

.policy-card p,
.policy-card li {
    color: var(--muted);
}

.policy-card ul {
    margin: 12px 0 0 1.2rem;
}

.policy-card li + li {
    margin-top: 8px;
}

.policy-card a {
    color: var(--primary);
    font-weight: 700;
}

.policy-updated {
    margin-top: 28px;
    color: var(--subtle);
}

.download-section {
    padding: 72px 0;
}

.download-section.compact {
    padding-top: 0;
}

.download-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 36px;
    border-radius: 34px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 24rem),
        linear-gradient(145deg, #0062d6, #007aff);
    box-shadow: var(--shadow);
}

.download-card .eyebrow,
.download-card p {
    color: rgba(255, 255, 255, 0.74);
}

.download-card h2 {
    max-width: 720px;
}

.download-card .btn-primary {
    color: var(--primary-dark);
    background: #fff;
}

.download-card .btn-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.footer {
    padding: 56px 0 28px;
    color: rgba(255, 255, 255, 0.72);
    background: #151918;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 28px;
}

.footer h3,
.footer-brand {
    color: #fff;
}

.footer a {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.72);
}

.footer a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
}

@media (max-width: 960px) {
    .hero-grid,
    .split-section {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 72px;
    }

    .app-panel {
        max-width: 560px;
    }

    .value-grid,
    .skill-grid,
    .practice-matrix,
    .system-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .download-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .container,
    .narrow {
        width: min(100% - 28px, var(--container));
    }

    .nav-toggle {
        display: inline-block;
    }

    .nav-menu {
        position: fixed;
        top: 76px;
        right: 14px;
        left: 14px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: rgba(255, 250, 243, 0.96);
        box-shadow: var(--shadow);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu a {
        justify-content: center;
    }

    .hero-metrics,
    .value-grid,
    .skill-grid,
    .practice-matrix,
    .system-map,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .page-hero {
        padding: 60px 0;
    }

    .flow-step {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: 2.65rem;
    }

    .hero-actions,
    .download-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .download-card {
        padding: 26px;
        border-radius: 26px;
    }
}
