:root {
    --bg: #efe9dc;
    --cream: #f4eee2;
    --ink: #0d1326;
    --muted: #5f6b80;
    --line: #e2dccd;
    --card: #ffffff;
    --dark: #0c1326;
    --dark-soft: #131a31;
    --dark-line: rgba(255, 255, 255, 0.09);
    --green: #1fd0a3;
    --green-dark: #15a983;
    --green-ink: #052218;
    --amber: #ffa845;
    --blue: #4a7dff;
    --red: #ff5b66;
    --radius-lg: 40px;
    --radius-md: 26px;
    --radius-sm: 18px;
    --shadow-card: 0 20px 60px rgba(13, 19, 38, 0.08);
    --shadow-dark: 0 40px 90px rgba(13, 19, 38, 0.25);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    max-width: 100%;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 30;
    border-radius: 999px;
    background: var(--green);
    color: var(--green-ink);
    font-weight: 800;
    padding: 10px 16px;
}

.skip-link:focus {
    top: 16px;
}

.notice-bar {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    padding: 9px 16px;
    text-align: center;
}

.notice-bar strong {
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(239, 233, 220, 0.88);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(13, 19, 38, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    min-width: 260px;
}

.brand-mark {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: var(--ink);
    color: var(--green);
    font-size: 0.9rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    box-shadow: 0 14px 28px rgba(13, 19, 38, 0.18);
}

.brand-name {
    display: block;
    font-weight: 850;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.brand-tagline {
    display: block;
    color: rgba(13, 19, 38, 0.55);
    font-size: 0.78rem;
    line-height: 1.25;
}

.primary-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.primary-nav a {
    border: 1px solid transparent;
    border-radius: 999px;
    color: rgba(13, 19, 38, 0.6);
    font-size: 0.9rem;
    font-weight: 750;
    padding: 8px 12px;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.primary-nav a:hover,
.primary-nav a.active {
    border-color: rgba(13, 19, 38, 0.12);
    background: rgba(13, 19, 38, 0.04);
    color: var(--ink);
}

.menu-toggle {
    display: none;
    border: 1px solid rgba(13, 19, 38, 0.14);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    padding: 9px 14px;
}

.hero {
    position: relative;
    padding: 36px 0 64px;
}

.hero-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 8% 12%, rgba(31, 208, 163, 0.18), transparent 32rem),
        radial-gradient(circle at 92% 88%, rgba(74, 125, 255, 0.18), transparent 32rem),
        linear-gradient(160deg, #0e1530 0%, #0a1024 100%);
    box-shadow: var(--shadow-dark);
    color: #fff;
    padding: 64px 56px 56px;
}

.shape {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.shape-orange {
    right: -80px;
    bottom: -110px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: var(--amber);
}

.shape-blue {
    left: -90px;
    bottom: -55px;
    width: 240px;
    height: 110px;
    border-radius: 999px;
    background: var(--blue);
    opacity: 0.95;
}

.shape-green {
    right: 24%;
    bottom: -70px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: var(--green);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 56px;
    align-items: center;
}

.eyebrow,
.card-label {
    display: inline-block;
    color: var(--green);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 720px;
    margin-bottom: 18px;
    font-size: clamp(2.6rem, 4.6vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.06em;
}

h2 {
    margin-bottom: 12px;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

h3 {
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.hero-copy {
    max-width: 540px;
    color: rgba(255, 255, 255, 0.7);
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: var(--green);
    color: var(--green-ink);
    font-weight: 850;
    font-size: 0.95rem;
    padding: 12px 22px;
    box-shadow: 0 16px 34px rgba(31, 208, 163, 0.32);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.button:hover {
    background: #2ee0b3;
    transform: translateY(-1px);
}

.button.secondary {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    box-shadow: none;
}

.button.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-card {
    position: relative;
    border: 1px solid var(--dark-line);
    border-radius: var(--radius-md);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015));
    padding: 26px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.dashboard-card {
    min-height: 360px;
}

.dashboard-top {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
}

.dashboard-top span {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.dashboard-top span:nth-child(1) { background: #ff6b6b; }
.dashboard-top span:nth-child(2) { background: #ffd166; }
.dashboard-top span:nth-child(3) { background: var(--green); }

.audit-list {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.audit-list > div {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "label value"
        "bar   bar";
    gap: 8px 12px;
    align-items: center;
}

.audit-list > div > span {
    grid-area: label;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.audit-list > div > strong {
    grid-area: value;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    text-align: right;
}

.audit-list > div > .bar {
    grid-area: bar;
}

.bar {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    font-style: normal;
}

.bar i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background:
        repeating-linear-gradient(
            45deg,
            rgba(255, 255, 255, 0.18) 0 8px,
            transparent 8px 16px
        ),
        currentColor;
}

.bar-red { color: var(--red); }
.bar-amber { color: var(--amber); }
.bar-green { color: var(--green); }

.dashboard-foot {
    display: flex;
    align-items: center;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 18px;
}

.dashboard-foot strong {
    color: #fff;
    font-size: 2rem;
    letter-spacing: -0.06em;
    line-height: 1;
}

.dashboard-foot span:last-child {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 700;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.3);
}

.dot-green {
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(31, 208, 163, 0.2);
}

.trust-strip {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-align: center;
}

.guide-hero {
    padding-bottom: 100px;
}

.guide-hero .hero-shell {
    padding: 56px 52px;
}

.guide-hero .check-list li {
    color: rgba(255, 255, 255, 0.78);
}

.intent-note {
    display: inline-flex;
    max-width: 720px;
    border: 1px solid rgba(255, 168, 69, 0.3);
    border-radius: 18px;
    background: rgba(255, 168, 69, 0.12);
    color: #ffd9aa;
    font-weight: 700;
    padding: 12px 16px;
}

.check-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
}

.check-list li::before {
    position: absolute;
    left: 0;
    top: 0.18rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(31, 208, 163, 0.18);
    color: var(--green);
    content: "✓";
    display: grid;
    font-size: 0.75rem;
    font-weight: 900;
    place-items: center;
}

.reading-time {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    font-weight: 800;
}

.section {
    padding: 64px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.section-heading .eyebrow {
    color: var(--green-dark);
}

.section-heading p {
    max-width: 600px;
    color: var(--muted);
}

.guide-grid,
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.guide-card,
.feature-card,
.article-card,
.panel-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--card);
    box-shadow: var(--shadow-card);
}

.guide-card,
.feature-card {
    padding: 26px;
}

.guide-card {
    position: relative;
    display: grid;
    gap: 12px;
    min-height: 220px;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.guide-card::after {
    position: absolute;
    right: 22px;
    top: 22px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(31, 208, 163, 0.14);
    color: var(--green-dark);
    content: "→";
    display: grid;
    font-weight: 900;
    place-items: center;
    transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.guide-card:hover {
    transform: translateY(-4px);
    border-color: rgba(31, 208, 163, 0.45);
    box-shadow: 0 26px 60px rgba(13, 19, 38, 0.12);
}

.guide-card:hover::after {
    background: var(--green);
    color: var(--green-ink);
    transform: translateX(4px);
}

.guide-card span,
.related-list span {
    color: var(--green-dark);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.guide-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.guide-card p,
.feature-card p,
.panel-card p,
.content-section p {
    color: var(--muted);
}

.feature-card {
    position: relative;
    background: var(--cream);
    padding-right: 70px;
}

.feature-card::after {
    position: absolute;
    right: 22px;
    top: 22px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--green);
    color: var(--green-ink);
    content: "✓";
    display: grid;
    font-weight: 900;
    place-items: center;
}

.stat-strip {
    background: var(--dark);
    border-radius: var(--radius-lg);
    padding: 36px;
    color: #fff;
}

.stat-grid {
    margin: 0;
}

.stat-card {
    background: transparent;
    border: none;
    padding: 8px 14px;
    text-align: left;
}

.stat-card + .stat-card {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card strong {
    display: block;
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: -0.06em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-card p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
    margin: 0;
}

.content-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    padding: 0 0 72px;
    align-items: start;
}

.article-card {
    margin-top: -70px;
    padding: clamp(24px, 5vw, 46px);
    background: #fff;
}

.content-section + .content-section {
    border-top: 1px solid var(--line);
    margin-top: 30px;
    padding-top: 30px;
}

.side-panel {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 116px;
    margin-top: -70px;
}

.panel-card {
    padding: 24px;
}

.panel-card h2 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.panel-card .button.secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--ink);
    box-shadow: none;
    min-height: 42px;
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: 12px;
}

.panel-card .button.secondary:hover {
    border-color: rgba(31, 208, 163, 0.45);
    background: #f1fbf6;
}

.related-list {
    display: grid;
    gap: 10px;
}

.related-list a {
    display: grid;
    gap: 3px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fafafa;
    padding: 14px;
    transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.related-list a:hover {
    border-color: rgba(31, 208, 163, 0.45);
    background: #f1fbf6;
    transform: translateY(-1px);
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 680px;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 15px 16px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f7f4ec;
    color: var(--ink);
    font-size: 0.88rem;
}

tr:last-child td {
    border-bottom: 0;
}

.faq-list {
    display: grid;
    gap: 12px;
}

details {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fbfaf5;
    padding: 16px 18px;
    transition: border-color 0.22s ease, background 0.22s ease;
}

details[open] {
    background: #fff;
    border-color: rgba(31, 208, 163, 0.4);
}

summary {
    cursor: pointer;
    font-weight: 850;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    float: right;
    content: "+";
    color: var(--green-dark);
    font-weight: 900;
    transition: transform 0.22s ease;
}

details[open] summary::after {
    content: "−";
}

details p {
    margin: 12px 0 0;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 14%, rgba(31, 208, 163, 0.16), transparent 22rem),
        var(--dark);
    color: rgba(255, 255, 255, 0.62);
    padding: 64px 0;
    margin-top: 24px;
}

.site-footer::before {
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: var(--amber);
    content: "";
    opacity: 0.95;
}

.site-footer::after {
    position: absolute;
    left: -50px;
    bottom: -40px;
    width: 160px;
    height: 80px;
    border-radius: 999px;
    background: var(--green);
    content: "";
    opacity: 0.85;
}

.footer-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.site-footer h2 {
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.small {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.footer-links a {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 7px 12px;
    transition: background 0.18s ease, border-color 0.18s ease;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

code {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7f4ec;
    color: #334155;
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.84em;
    padding: 2px 5px;
    word-break: break-all;
}

@media (max-width: 1080px) {
    .hero-shell {
        padding: 48px 36px 40px;
    }

    .hero-grid {
        gap: 36px;
    }
}

@media (max-width: 980px) {
    .hero-grid,
    .content-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .guide-grid,
    .feature-grid,
    .stat-grid,
    .trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .article-card,
    .side-panel {
        margin-top: 0;
    }

    .side-panel {
        position: static;
    }

    .stat-card + .stat-card {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 18px;
        margin-top: 18px;
    }
}

@media (max-width: 780px) {
    .notice-bar {
        font-size: 0.76rem;
    }

    .header-inner {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .primary-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        order: 3;
    }

    .primary-nav.open {
        display: flex;
    }

    .primary-nav a {
        border: 1px solid rgba(13, 19, 38, 0.12);
        border-radius: 14px;
        background: #fff;
    }

    .brand {
        min-width: 0;
        flex: 1;
    }

    .brand-tagline {
        display: none;
    }

    .hero {
        padding-top: 20px;
    }

    .hero-shell {
        padding: 40px 24px 36px;
        border-radius: 28px;
    }

    .shape-orange { width: 140px; height: 140px; right: -60px; bottom: 30px; }
    .shape-blue { width: 180px; height: 90px; left: -80px; bottom: -50px; }
    .shape-green { width: 90px; height: 90px; right: 14%; bottom: -40px; }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dashboard-card {
        min-height: auto;
    }

    .guide-grid,
    .feature-grid,
    .stat-grid,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .trust-strip {
        gap: 10px;
    }

    .section-heading {
        display: block;
    }

    .stat-strip {
        padding: 26px;
    }
}
