:root {
    --navy-950: #081728;
    --navy-900: #0b1f3a;
    --navy-800: #13345f;
    --blue-700: #1f5fbf;
    --blue-600: #2c6ed0;
    --blue-100: #eaf2ff;
    --slate-900: #172033;
    --slate-700: #465269;
    --slate-600: #627087;
    --slate-300: #ced6e2;
    --slate-200: #e3e8ef;
    --slate-100: #f4f7fa;
    --white: #ffffff;
    --success: #1d6f42;
    --danger: #a53434;
    --radius: 18px;
    --shadow: 0 18px 50px rgba(8, 23, 40, .08);
    --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; color: var(--slate-900); background: var(--white); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--blue-700); }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.narrow { width: min(calc(100% - 40px), 820px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-muted { background: var(--slate-100); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: 12px; z-index: 9999; background: var(--navy-950); color: #fff; padding: 10px 14px; border-radius: 8px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--slate-200); backdrop-filter: blur(12px); }
.header-inner { min-height: 76px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; min-width: max-content; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: var(--navy-900); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .08em; }

.brand-logo-image { display: block; width: auto; height: 42px; max-width: 180px; object-fit: contain; flex: 0 0 auto; }
.footer-brand .brand-logo-image { height: 40px; max-width: 170px; }
.brand-copy { display: grid; line-height: 1.15; gap: 4px; }
.brand-copy strong { font-size: 15px; letter-spacing: -.01em; }
.brand-copy small { color: var(--slate-600); font-size: 11px; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.primary-nav a { padding: 9px 10px; text-decoration: none; color: var(--slate-700); font-size: 14px; font-weight: 650; border-radius: 8px; }
.primary-nav a:hover, .primary-nav a.active { color: var(--navy-900); background: var(--slate-100); }
.header-cta { margin-left: 4px; }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--slate-200); background: #fff; border-radius: 10px; padding: 10px; cursor: pointer; }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; background: var(--navy-900); margin: 4px 0; border-radius: 2px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 18px; border: 1px solid var(--navy-900); border-radius: 10px; background: var(--navy-900); color: #fff; font-weight: 750; font-size: 14px; line-height: 1.2; text-decoration: none; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { color: #fff; background: var(--navy-800); box-shadow: 0 8px 20px rgba(11,31,58,.16); transform: translateY(-1px); }
.button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid rgba(44,110,208,.28); outline-offset: 3px; }
.button-small { min-height: 40px; padding: 10px 14px; }
.button-outline { background: transparent; color: var(--navy-900); border-color: var(--slate-300); }
.button-outline:hover { background: var(--slate-100); color: var(--navy-900); box-shadow: none; }
.button-light { background: #fff; border-color: #fff; color: var(--navy-900); }
.button-light:hover { color: var(--navy-900); background: var(--blue-100); }
.text-link, .card-link { color: var(--blue-700); font-weight: 750; text-decoration: none; }

.hero { padding: 96px 0 86px; background: linear-gradient(180deg, #fff 0%, #f7faff 100%); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 70px; }
.eyebrow { display: inline-block; margin-bottom: 14px; color: var(--blue-700); font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 780px; margin: 0 0 22px; font-size: clamp(42px, 5vw, 68px); line-height: 1.04; letter-spacing: -.045em; color: var(--navy-950); }
.hero-lead { max-width: 700px; margin: 0; font-size: 19px; color: var(--slate-700); line-height: 1.7; }
.hero-actions { margin-top: 30px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.hero-note { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; color: var(--slate-600); font-size: 12px; font-weight: 700; }
.hero-note span { padding: 7px 10px; background: #fff; border: 1px solid var(--slate-200); border-radius: 999px; }
.hero-panel { position: relative; padding: 32px; border: 1px solid #dbe4f0; border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; width: 140px; height: 140px; right: -36px; top: -36px; border-radius: 50%; background: var(--blue-100); z-index: -1; }
.panel-kicker { color: var(--blue-700); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-panel h2 { margin: 10px 0 10px; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; }
.hero-panel > p { color: var(--slate-600); margin-bottom: 24px; }
.metric-row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 13px 0; border-top: 1px solid var(--slate-200); }
.metric-row strong { color: var(--navy-900); }
.metric-row span { color: var(--slate-600); font-size: 14px; }

.section-heading { max-width: 720px; margin-bottom: 38px; }
.section-heading h2, .editorial-intro h2, .trust-card h2, .cta-card h2, .inner-hero h1 { margin: 0 0 14px; color: var(--navy-950); font-size: clamp(31px, 3.5vw, 46px); line-height: 1.12; letter-spacing: -.035em; }
.section-heading p, .editorial-intro > p { margin: 0; color: var(--slate-600); font-size: 17px; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr 420px; gap: 60px; align-items: end; }

.topic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.topic-card { padding: 28px; min-height: 300px; display: flex; flex-direction: column; border: 1px solid var(--slate-200); background: #fff; border-radius: var(--radius); }
.topic-card:hover { border-color: #b9c8de; box-shadow: 0 14px 34px rgba(8,23,40,.06); }
.topic-number { color: var(--blue-700); font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.topic-card h3 { margin: 34px 0 10px; font-size: 21px; line-height: 1.25; letter-spacing: -.02em; }
.topic-card p { margin: 0 0 24px; color: var(--slate-600); font-size: 14px; }
.topic-card .card-link { margin-top: auto; font-size: 14px; }

.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { padding: 28px; border: 1px solid var(--slate-200); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 350px; background: #fff; }
.guide-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.badge { display: inline-flex; width: fit-content; padding: 6px 9px; border-radius: 999px; background: var(--blue-100); color: var(--blue-700); font-size: 11px; font-weight: 800; }
.badge-subtle { background: var(--slate-100); color: var(--slate-700); }
.read-time { font-size: 12px; color: var(--slate-600); white-space: nowrap; }
.guide-card h3 { margin: 24px 0 12px; font-size: 22px; line-height: 1.25; letter-spacing: -.02em; }
.guide-card h3 a { text-decoration: none; }
.guide-card p { color: var(--slate-600); font-size: 14px; margin: 0 0 24px; }
.guide-card .button { margin-top: auto; align-self: flex-start; }

.editorial-section { border-top: 1px solid var(--slate-200); border-bottom: 1px solid var(--slate-200); }
.editorial-grid { display: grid; grid-template-columns: minmax(280px, .72fr) minmax(0, 1.28fr); gap: 80px; align-items: start; }
.editorial-intro { position: sticky; top: 116px; }
.prose { color: var(--slate-700); font-size: 16px; }
.prose p { margin: 0 0 22px; }
.prose h2 { color: var(--navy-950); margin: 38px 0 12px; font-size: 27px; line-height: 1.25; letter-spacing: -.025em; }
.prose a { color: var(--blue-700); }
.prose-large { font-size: 17px; }

.latest-list { border-top: 1px solid var(--slate-300); }
.latest-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding: 28px 0; border-bottom: 1px solid var(--slate-300); }
.latest-item h3 { margin: 9px 0 6px; font-size: 22px; letter-spacing: -.02em; }
.latest-item p { margin: 0; color: var(--slate-600); max-width: 760px; }
.latest-item .card-link { white-space: nowrap; }

.trust-section { padding-top: 64px; padding-bottom: 64px; }
.trust-card { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; padding: 42px; border: 1px solid var(--slate-200); border-radius: 24px; }
.trust-card h2 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 0; }
.trust-card p { margin: 0; color: var(--slate-600); font-size: 17px; }

.final-cta { padding-top: 12px; }
.cta-card { padding: 58px; border-radius: 28px; background: var(--navy-900); color: #fff; text-align: center; }
.cta-card h2 { color: #fff; max-width: 780px; margin-inline: auto; }
.cta-card p { max-width: 720px; margin: 0 auto 26px; color: #d7e2f0; font-size: 17px; }
.eyebrow-light { color: #9bc1ff; }

.inner-main { min-height: 60vh; }
.inner-hero { padding: 74px 0 48px; background: var(--slate-100); border-bottom: 1px solid var(--slate-200); }
.inner-hero p { margin: 0; color: var(--slate-600); font-size: 18px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: start; max-width: 1040px; }
.form-card { padding: 30px; border: 1px solid var(--slate-200); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(8,23,40,.05); }
.form-card form { display: grid; gap: 9px; }
.form-card label { margin-top: 8px; font-weight: 750; font-size: 13px; }
.form-card input, .form-card textarea { width: 100%; border: 1px solid var(--slate-300); border-radius: 9px; padding: 12px 13px; background: #fff; color: var(--slate-900); }
.form-card textarea { resize: vertical; min-height: 150px; }
.form-card .button { margin-top: 10px; justify-self: start; }
.form-help { color: var(--slate-600); font-size: 12px; margin: 10px 0 0; }
.form-help code { background: var(--slate-100); padding: 2px 5px; border-radius: 4px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.notice { padding: 13px 15px; border-radius: 9px; margin-bottom: 16px; font-size: 14px; }
.notice.success { background: #edf8f1; color: var(--success); border: 1px solid #b9ddc8; }
.notice.error { background: #fff1f1; color: var(--danger); border: 1px solid #efc8c8; }
.notice ul { margin: 6px 0 0 18px; padding: 0; }

.site-footer { margin-top: 88px; padding: 60px 0 26px; background: var(--navy-950); color: #c7d1de; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 52px; }
.footer-grid > div:first-child p { max-width: 360px; color: #93a2b7; font-size: 13px; }
.footer-brand .brand-mark { background: #fff; color: var(--navy-950); }
.footer-brand .brand-copy strong { color: #fff; }
.footer-brand .brand-copy small { color: #9bacbf; }
.footer-title { margin: 0 0 14px; color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a { color: #b8c4d3; text-decoration: none; font-size: 13px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; margin-top: 42px; padding-top: 24px; border-top: 1px solid #24364d; color: #7f90a6; font-size: 12px; }
.footer-bottom a { color: #aab7c7; text-decoration: none; }

@media (max-width: 1100px) {
    .header-inner { gap: 14px; }
    .brand-copy small { display: none; }
    .primary-nav a { padding-inline: 7px; font-size: 13px; }
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
    .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .container { width: min(calc(100% - 32px), var(--container)); }
    .section { padding: 68px 0; }
    .header-inner { min-height: 68px; }
    .brand { margin-right: auto; }
    .nav-toggle { display: block; order: 2; }
    .header-cta { order: 1; margin-left: 0; }
    .primary-nav { position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); display: none; padding: 10px; background: #fff; border: 1px solid var(--slate-200); border-radius: 14px; box-shadow: var(--shadow); }
    .primary-nav.open { display: grid; }
    .primary-nav a { padding: 11px 12px; font-size: 14px; }
    .hero { padding-top: 74px; }
    .hero-grid, .editorial-grid, .trust-card, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
    .hero-panel { max-width: 680px; }
    .split-heading { grid-template-columns: 1fr; gap: 10px; }
    .editorial-intro { position: static; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 640px) {
    .container, .narrow { width: min(calc(100% - 28px), var(--container)); }
    .site-header { position: sticky; }
    .header-inner { min-height: 64px; }
    .header-cta { display: none; }
    .brand-logo-image { height: 36px; max-width: 130px; }
    .footer-brand .brand-logo-image { height: 36px; max-width: 145px; }
    .hero { padding: 58px 0 60px; }
    .hero h1 { font-size: clamp(38px, 12vw, 54px); }
    .hero-lead { font-size: 17px; }
    .hero-actions { align-items: stretch; }
    .hero-actions .button { width: 100%; }
    .hero-actions .text-link { text-align: center; padding: 8px 0; }
    .hero-panel { padding: 24px; }
    .topic-grid, .guide-grid { grid-template-columns: 1fr; }
    .topic-card { min-height: 0; }
    .guide-card { min-height: 0; }
    .latest-item { grid-template-columns: 1fr; gap: 14px; }
    .trust-card { padding: 28px; }
    .cta-card { padding: 42px 24px; border-radius: 22px; }
    .inner-hero { padding: 54px 0 38px; }
    .form-card { padding: 22px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 24px; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .footer-grid > div:last-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
    .container, .narrow { width: min(calc(100% - 24px), var(--container)); }
    .brand-copy strong { font-size: 14px; }
    .brand-mark { width: 36px; height: 36px; }
    .hero h1 { font-size: 37px; }
    .section { padding: 58px 0; }
    .topic-card, .guide-card { padding: 23px; }
    .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
