:root {
  --bg: #07111f;
  --bg-deep: #050c16;
  --surface: #0d1d30;
  --surface-2: #122a42;
  --surface-3: #183650;
  --text: #f5f8fc;
  --muted: #b9c8d8;
  --line: #294761;
  --cyan: #64e5f2;
  --violet: #a79bff;
  --coral: #ff957f;
  --warning: #ffd27c;
  --focus: #a7f4ff;
  --max: 1220px;
  --read: 790px;
  --radius: 22px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .3);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 2%, rgba(100, 229, 242, .07), transparent 25rem),
    radial-gradient(circle at 95% 18%, rgba(167, 155, 255, .08), transparent 28rem),
    var(--bg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration-thickness: .09em; text-underline-offset: .2em; }
a:hover { color: #aaf5fb; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
p { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.35em; }
li + li { margin-top: .45em; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 5.2vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.65rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.38rem); }
strong { color: #fff; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 999; transform: translateY(-150%); padding: 10px 14px; color: var(--bg); background: var(--focus); border-radius: 8px; }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 90; border-bottom: 1px solid rgba(100, 229, 242, .15); background: rgba(5, 12, 22, .93); backdrop-filter: blur(16px); }
.header-inner { width: min(calc(100% - 40px), var(--max)); min-height: 70px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; flex: 0 0 auto; align-items: baseline; color: #fff; font-size: 1.8rem; font-weight: 800; letter-spacing: -.08em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--cyan); }
.primary-menu, .footer-menu { margin: 0; padding: 0; list-style: none; }
.primary-menu { display: flex; flex: 0 0 auto; align-items: center; gap: 4px; }
.primary-menu li { flex: 0 0 auto; }
.primary-menu a { display: flex; align-items: center; min-height: 48px; padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: .92rem; font-weight: 650; text-decoration: none; overflow-wrap: normal; white-space: nowrap; }
.primary-menu a:hover, .primary-menu .current-menu-item > a, .primary-menu .current_page_item > a { color: #fff; background: var(--surface-2); }
.primary-menu .current-menu-item > a::before, .primary-menu .current_page_item > a::before { content: ""; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--coral); }
.menu-toggle { position: relative; display: none; flex: 0 0 auto; width: auto; min-width: 48px; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; color: #fff; background: var(--surface); align-items: center; gap: 9px; padding: 8px 12px; font: inherit; font-weight: 700; }
.menu-toggle-lines { display: none; }
.menu-toggle::after { content: ""; position: absolute; left: 13px; top: 22px; width: 20px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }

.site-main { min-height: 60vh; }
.content-shell { width: min(calc(100% - 40px), var(--read)); margin: 0 auto; padding: 88px 0 110px; }
.page-section, .page-hero, .trust-strip { scroll-margin-top: 90px; }
.page-section { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: clamp(68px, 7vw, 104px) 0; }
.page-section.narrow { width: min(calc(100% - 40px), var(--read)); }
.page-section + .page-section { border-top: 1px solid rgba(41, 71, 97, .62); }
.section-head { max-width: 790px; margin-bottom: 34px; }
.section-head h2 { margin-bottom: 16px; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.lede { color: #d9e5f0; font-size: clamp(1.05rem, 1.7vw, 1.25rem); line-height: 1.65; }

.page-hero { position: relative; overflow: clip; width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: clamp(62px, 8vw, 112px) 0 70px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(320px, 5fr); align-items: center; gap: clamp(34px, 6vw, 78px); }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 840px; }
.hero-copy .lede { max-width: 760px; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 11px 20px; border: 1px solid transparent; border-radius: 12px; color: var(--bg-deep); background: var(--cyan); font-weight: 780; text-decoration: none; transition: transform .18s ease, background .18s ease; }
.button:hover { color: var(--bg-deep); background: #aaf5fb; transform: translateY(-2px); }
.button.secondary { color: #fff; background: transparent; border-color: var(--line); }
.button.secondary:hover { color: #fff; background: var(--surface-2); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual::before { content: ""; position: absolute; inset: -16px 12% -16px -16px; z-index: -1; border: 1px solid rgba(100, 229, 242, .2); border-radius: 28px; background: linear-gradient(145deg, rgba(100,229,242,.08), rgba(167,155,255,.08)); transform: rotate(-3deg); }
.hero-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.hero-note { margin: 12px 0 0; color: var(--muted); font-size: .79rem; line-height: 1.5; }

.trust-strip { border-block: 1px solid var(--line); background: rgba(13, 29, 48, .78); }
.trust-inner { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 22px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.trust-item { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.trust-item::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; margin-top: 7px; border: 3px solid var(--cyan); border-radius: 50%; }
.trust-item strong { display: block; }

.atlas-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px; }
.atlas-card { min-width: 0; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(18,42,66,.96), rgba(13,29,48,.96)); box-shadow: 0 16px 42px rgba(0,0,0,.16); }
.atlas-card.span-4 { grid-column: span 4; }
.atlas-card.span-6 { grid-column: span 6; }
.atlas-card.span-8 { grid-column: span 8; }
.atlas-card.span-12 { grid-column: 1 / -1; }
.atlas-card.accent { border-color: rgba(100,229,242,.45); background: linear-gradient(145deg, rgba(21,60,78,.9), rgba(13,29,48,.96)); }
.atlas-card h3 { margin-bottom: 12px; }
.atlas-card p:last-child, .atlas-card ul:last-child { margin-bottom: 0; }
.card-index { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; margin-bottom: 18px; border: 1px solid rgba(100,229,242,.5); border-radius: 10px; color: var(--cyan); background: rgba(100,229,242,.08); font-size: .75rem; font-weight: 850; }

.media-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: clamp(34px, 6vw, 72px); align-items: center; }
.media-block.reverse .media-copy { order: 2; }
.media-block.reverse .section-figure { order: 1; }
.media-copy { min-width: 0; }
.section-figure { margin: 0; min-width: 0; }
.section-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.section-figure figcaption { margin-top: 10px; color: var(--muted); font-size: .78rem; }

.fact-table-wrap { overflow-x: auto; margin: 28px 0; border: 1px solid var(--line); border-radius: 16px; }
table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--surface); }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: #fff; background: var(--surface-2); font-size: .86rem; }
td { color: #d7e2ed; }
tr:last-child td { border-bottom: 0; }

.task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 30px 0; padding: 0; list-style: none; }
.task-list li { margin: 0; padding: 20px; border-left: 3px solid var(--violet); border-radius: 0 14px 14px 0; background: var(--surface); }
.task-list li strong { display: block; margin-bottom: 5px; }
.numbered-steps { counter-reset: step; margin: 28px 0; padding: 0; list-style: none; }
.numbered-steps li { counter-increment: step; position: relative; min-height: 54px; margin: 0; padding: 0 0 24px 62px; }
.numbered-steps li::before { content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(100,229,242,.5); border-radius: 12px; color: var(--cyan); background: var(--surface-2); font-weight: 800; }
.numbered-steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 46px; bottom: 4px; width: 1px; background: var(--line); }
.checklist { margin: 28px 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.checklist li { position: relative; margin: 0; padding: 14px 16px 14px 48px; border: 1px solid var(--line); border-radius: 12px; background: rgba(18,42,66,.62); }
.checklist li::before { content: "✓"; position: absolute; left: 16px; top: 13px; color: var(--cyan); font-weight: 900; }
.notice { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--warning); border-radius: 0 14px 14px 0; color: #f5e9ce; background: rgba(240,181,90,.1); }
.notice.info { border-color: var(--cyan); color: #dcf6f8; background: rgba(100,229,242,.08); }

.faq-list { display: grid; gap: 14px; max-width: 900px; }
.faq-list details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq-list summary { min-height: 54px; padding: 16px 52px 16px 20px; cursor: pointer; color: #fff; font-weight: 760; list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 12px; color: var(--cyan); font-size: 1.55rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-answer { padding: 0 20px 20px; color: #d6e1ec; }
.faq-answer p:last-child { margin-bottom: 0; }

.page-task .page-hero { padding-bottom: 48px; }
.page-task .hero-grid { grid-template-columns: minmax(0, 6.5fr) minmax(320px, 5.5fr); }
.page-task .hero-visual img { aspect-ratio: 3 / 2; }
.article-body { width: min(calc(100% - 40px), var(--read)); margin: 0 auto; padding: 34px 0 100px; }
.article-body h2 { margin: 72px 0 18px; }
.article-body h3 { margin: 42px 0 12px; }
.article-body > p:first-child { font-size: 1.1rem; color: #dce8f2; }
.article-body .section-figure { width: min(100%, 900px); margin: 34px auto 50px; }
.article-body .section-figure img { aspect-ratio: 16 / 9; }
.home-link-panel { margin-top: 62px; padding: 24px; border: 1px solid rgba(100,229,242,.4); border-radius: 16px; background: rgba(100,229,242,.07); }

.site-core-hero { width: min(calc(100% - 40px), var(--read)); margin: 0 auto; padding: 92px 0 30px; }
.site-core-hero h1 { font-size: clamp(2.3rem, 4.4vw, 3.8rem); }
.site-core-body { width: min(calc(100% - 40px), var(--read)); margin: 0 auto; padding: 22px 0 110px; }
.site-core-body > p:first-child { font-size: 1.15rem; color: #dbe7f1; }
.contact-box { margin: 34px 0; padding: 28px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-2); }
.contact-box a { font-size: clamp(1.25rem, 4vw, 2rem); font-weight: 800; }

.site-footer { border-top: 1px solid var(--line); background: var(--bg-deep); }
.footer-inner { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 64px 0 48px; display: grid; grid-template-columns: 1.15fr 1.5fr .9fr; gap: 48px; }
.footer-brand p, .footer-contact p { color: var(--muted); font-size: .9rem; }
.footer-brand .wordmark { margin-bottom: 16px; }
.footer-note { max-width: 330px; }
.footer-menu { columns: 2; column-gap: 30px; }
.footer-menu li { margin: 0 0 9px; break-inside: avoid; }
.footer-menu a { color: var(--muted); font-size: .9rem; text-decoration: none; }
.footer-menu a:hover { color: #fff; text-decoration: underline; }
.footer-label { color: #fff !important; font-weight: 800; }
.footer-email { color: var(--cyan) !important; font-weight: 750; }
.footer-base { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 22px 0; border-top: 1px solid rgba(41,71,97,.65); color: var(--muted); font-size: .8rem; }
.footer-base p { margin: 0; }
.archive-card { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.archive-card h2 { font-size: 1.45rem; }
.error-page { text-align: center; }
.error-page .button { margin-top: 18px; }

@media (max-width: 1023px) {
  .atlas-card.span-4 { grid-column: span 6; }
  .hero-grid, .page-task .hero-grid, .media-block { grid-template-columns: 1fr; }
  .hero-visual { max-width: 780px; }
  .hero-visual img { aspect-ratio: 16 / 9; }
  .media-block.reverse .media-copy, .media-block.reverse .section-figure { order: initial; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-contact { grid-column: 1 / -1; }
}

@media (max-width: 959px) {
  .menu-toggle { display: inline-flex; }
  .primary-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; max-height: calc(100vh - 70px); overflow-y: auto; padding: 14px 20px 24px; border-bottom: 1px solid var(--line); background: var(--bg-deep); }
  .menu-open .primary-nav { display: block; }
  .primary-menu { align-items: stretch; flex-direction: column; }
  .primary-menu a { min-height: 50px; padding-inline: 16px; }
}

@media (max-width: 767px) {
  body { font-size: 16px; }
  .header-inner, .page-hero, .page-section, .article-body, .site-core-hero, .site-core-body, .content-shell, .footer-inner, .footer-base { width: min(calc(100% - 32px), var(--max)); }
  .header-inner { gap: 12px; }
  .menu-toggle { width: 48px; padding: 8px; justify-content: center; }
  .menu-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .page-hero { padding: 52px 0 48px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .trust-inner { width: min(calc(100% - 32px), var(--max)); grid-template-columns: 1fr; gap: 14px; }
  .atlas-grid { grid-template-columns: 1fr; gap: 16px; }
  .atlas-card.span-4, .atlas-card.span-6, .atlas-card.span-8, .atlas-card.span-12 { grid-column: 1; }
  .task-list { grid-template-columns: 1fr; }
  .page-section { padding: 56px 0; }
  .article-body { padding-bottom: 76px; }
  .article-body h2 { margin-top: 56px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-contact { grid-column: auto; }
  .footer-menu { columns: 1; }
}

@media (max-width: 389px) {
  .header-inner, .page-hero, .page-section, .article-body, .site-core-hero, .site-core-body, .content-shell, .footer-inner, .footer-base { width: min(calc(100% - 28px), var(--max)); }
  .atlas-card { padding: 22px; border-radius: 16px; }
  h1 { font-size: 2.18rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
