:root {
  color-scheme: dark;
  --ink: #090b0c;
  --ink-soft: #101413;
  --paper: #eee1c0;
  --muted: #a9aaa1;
  --line: rgba(238, 225, 192, 0.14);
  --gold: #e8af57;
  --mint: #79d19f;
  --coral: #f47c55;
  --max: 1180px;
  --radius: 28px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 9%, rgba(121, 209, 159, 0.08), transparent 25rem),
    radial-gradient(circle at 8% 34%, rgba(232, 175, 87, 0.09), transparent 28rem),
    var(--ink);
  color: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Noto Sans TC", "Noto Sans JP", "Noto Sans KR", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid transparent;
  background: rgba(9, 11, 12, 0.76);
  backdrop-filter: blur(20px) saturate(130%);
  transition: border-color .2s ease;
}

.site-header.is-scrolled { border-color: var(--line); }

.nav-shell {
  width: min(calc(100% - 36px), var(--max));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 760;
  letter-spacing: .02em;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 26px rgba(0,0,0,.32);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: .63rem;
  font-weight: 650;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
}

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: .87rem;
  font-weight: 650;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: rgba(255,255,255,.055);
  color: var(--paper);
}

.language-select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 28px 0 11px;
  background: #101312;
  color: var(--paper);
  font: inherit;
  font-size: .78rem;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
}

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

.hero {
  min-height: calc(100svh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .86fr);
  align-items: center;
  gap: clamp(36px, 7vw, 96px);
  padding: 64px 0 84px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  color: var(--gold);
  font-size: .74rem;
  font-weight: 760;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 25px;
  height: 1px;
  background: currentColor;
  content: "";
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 790px;
  margin-bottom: 26px;
  font-size: clamp(3.2rem, 7.7vw, 7.1rem);
  font-weight: 620;
  letter-spacing: -.075em;
  line-height: .94;
}

.hero-copy {
  max-width: 640px;
  color: #c1c2ba;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 21px;
  font-size: .9rem;
  font-weight: 760;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--gold); color: #17120b; }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.025); color: var(--paper); }
.button.muted { background: rgba(255,255,255,.06); color: var(--muted); cursor: default; }

.hero-note {
  margin: 17px 0 0;
  color: #7e817c;
  font-size: .78rem;
}

.atlas-visual {
  position: relative;
  min-height: 610px;
  isolation: isolate;
}

.map-field {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    linear-gradient(125deg, rgba(232,175,87,.09), transparent 34%),
    #0e1211;
  box-shadow: 0 40px 90px rgba(0,0,0,.38);
}

.map-field::before,
.map-field::after {
  position: absolute;
  inset: -18%;
  content: "";
  border: 1px solid rgba(121,209,159,.12);
  border-radius: 47% 53% 62% 38% / 45% 42% 58% 55%;
  transform: rotate(16deg);
  box-shadow: 0 0 0 48px rgba(121,209,159,.045), 0 0 0 96px rgba(121,209,159,.025);
}

.map-field::after {
  inset: 29% -10% -32% 20%;
  border-color: rgba(232,175,87,.15);
  transform: rotate(-23deg);
  box-shadow: 0 0 0 38px rgba(232,175,87,.038), 0 0 0 76px rgba(232,175,87,.022);
}

.route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: .82;
}

.route-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 5 10;
  animation: trace 18s linear infinite;
}

@keyframes trace { to { stroke-dashoffset: -300; } }

.map-point {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 3px solid #101312;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(121,209,159,.14), 0 0 28px rgba(121,209,159,.36);
}

.map-point::after {
  position: absolute;
  left: 16px;
  top: -9px;
  color: var(--paper);
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .1em;
}

.point-a { left: 20%; top: 68%; }
.point-a::after { content: "A"; }
.point-b { left: 53%; top: 42%; }
.point-b::after { content: "B"; }
.point-c { left: 77%; top: 20%; }
.point-c::after { content: "C"; }

.coordinate-slip {
  position: absolute;
  right: 7%;
  bottom: 7%;
  z-index: 3;
  width: min(82%, 370px);
  border: 1px solid rgba(238,225,192,.2);
  border-radius: 24px;
  padding: 22px;
  background: rgba(13,17,16,.88);
  box-shadow: 0 20px 50px rgba(0,0,0,.38);
  backdrop-filter: blur(18px);
}

.slip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pulse {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--mint);
}

.pulse::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 4px rgba(121,209,159,.1);
  content: "";
}

.coordinate-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: .75rem;
}

.coordinate-row strong { color: var(--gold); }
.coordinate-row span:last-child { color: var(--muted); }

.icon-float {
  position: absolute;
  top: 7%;
  left: -9%;
  z-index: 5;
  width: 102px;
  height: 102px;
  border-radius: 25px;
  box-shadow: 0 25px 58px rgba(0,0,0,.48);
  transform: rotate(-5deg);
}

.stat-line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  min-height: 164px;
  padding: 30px 4vw 30px 0;
}

.stat + .stat {
  border-left: 1px solid var(--line);
  padding-left: 4vw;
}

.stat strong {
  display: block;
  margin-bottom: 7px;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 4.1rem);
  font-weight: 560;
  letter-spacing: -.05em;
  line-height: 1;
}

.stat span { color: var(--muted); font-size: .88rem; }

.section { padding: clamp(90px, 13vw, 170px) 0; }

.section-head {
  display: grid;
  grid-template-columns: .66fr 1.34fr;
  gap: 50px;
  margin-bottom: clamp(45px, 7vw, 90px);
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(2.25rem, 5.4vw, 5.1rem);
  font-weight: 590;
  letter-spacing: -.06em;
  line-height: .98;
}

.section-intro { max-width: 670px; color: var(--muted); font-size: 1.08rem; }

.journey {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--line);
}

.journey-step {
  min-height: 390px;
  padding: 36px;
  background: var(--ink);
}

.step-no {
  display: block;
  margin-bottom: 110px;
  color: var(--gold);
  font-family: ui-monospace, monospace;
  font-size: .76rem;
}

.journey-step h3 { font-size: 1.45rem; letter-spacing: -.025em; }
.journey-step p { color: var(--muted); font-size: .92rem; }

.atlas-section {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: clamp(45px, 9vw, 120px);
}

.book-stack {
  position: relative;
  min-height: 560px;
  overflow: hidden;
}

.book-page {
  position: absolute;
  inset: 8% 3%;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 34px;
  background: #111614;
  box-shadow: 0 30px 90px rgba(0,0,0,.34);
}

.book-page:nth-child(1) { transform: rotate(-7deg) translate(-7%, 4%); opacity: .42; }
.book-page:nth-child(2) { transform: rotate(5deg) translate(7%, 1%); opacity: .64; }
.book-page:nth-child(3) { transform: rotate(-1deg); }

.book-page h3 { font-size: 1.5rem; }
.book-meta { color: var(--muted); font-size: .78rem; }

.book-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 32px;
}

.feature-mark {
  min-height: 105px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px;
  background: rgba(255,255,255,.025);
}

.feature-mark b { display: block; margin-bottom: 25px; color: var(--mint); }
.feature-mark span { color: var(--muted); font-family: ui-monospace, monospace; font-size: .69rem; }

.check-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 15px 0 15px 31px;
  border-bottom: 1px solid var(--line);
  color: #c4c4bb;
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--mint);
  content: "⌁";
}

.calibration-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(232,175,87,.2);
  border-radius: 36px;
  padding: clamp(38px, 7vw, 80px);
  background: linear-gradient(125deg, rgba(232,175,87,.11), rgba(121,209,159,.045) 56%, transparent);
}

.calibration-band::after {
  position: absolute;
  right: -130px;
  top: -160px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(238,225,192,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(238,225,192,.025), 0 0 0 108px rgba(238,225,192,.014);
  content: "";
}

.calibration-copy { position: relative; z-index: 1; max-width: 720px; }

.privacy-callout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 36px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}

.privacy-callout p { max-width: 680px; color: var(--muted); }
.privacy-callout .hero-actions { justify-content: flex-end; }

.page-hero {
  padding: clamp(75px, 12vw, 145px) 0 70px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 { max-width: 950px; font-size: clamp(3.15rem, 7vw, 6.5rem); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.08rem; }

.support-layout,
.policy-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  justify-content: space-between;
  gap: clamp(50px, 8vw, 120px);
  padding: 80px 0 130px;
}

.side-index {
  position: sticky;
  top: 105px;
  align-self: start;
  display: grid;
  gap: 8px;
}

.side-index a {
  border-left: 1px solid var(--line);
  padding: 6px 0 6px 16px;
  color: var(--muted);
  font-size: .84rem;
  text-decoration: none;
}

.side-index a:hover { border-color: var(--gold); color: var(--paper); }

.content-section {
  padding: 0 0 62px;
  scroll-margin-top: 110px;
}

.content-section + .content-section {
  border-top: 1px solid var(--line);
  padding-top: 62px;
}

.content-section h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
.content-section h3 { margin: 34px 0 10px; font-size: 1.13rem; }
.content-section p,
.content-section li { color: #b9bbb3; }
.content-section ul,
.content-section ol { padding-left: 1.35rem; }
.content-section li { margin: 9px 0; }

.quick-steps { counter-reset: support-step; padding: 0; list-style: none; }
.quick-steps li {
  position: relative;
  min-height: 72px;
  margin: 0;
  padding: 18px 0 18px 58px;
  border-top: 1px solid var(--line);
  counter-increment: support-step;
}
.quick-steps li::before {
  position: absolute;
  left: 0;
  top: 17px;
  color: var(--gold);
  font: 700 .78rem ui-monospace, monospace;
  content: "0" counter(support-step);
}

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 680;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { color: var(--gold); content: "+"; font-size: 1.4rem; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 40px 22px 0; }

.contact-panel {
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 30px;
  background: rgba(255,255,255,.025);
}

.policy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  font-size: .73rem;
}

.policy-note {
  border-left: 2px solid var(--mint);
  padding: 2px 0 2px 19px;
  color: var(--paper) !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
}

.footer-title { margin-bottom: 5px; font-size: 1.12rem; font-weight: 720; }
.footer-note { margin: 0; color: #777a75; font-size: .76rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a { color: var(--muted); font-size: .82rem; text-decoration: none; }
.footer-links a:hover { color: var(--paper); }

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 880px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    position: absolute;
    top: 70px;
    left: 18px;
    right: 18px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #111413;
    box-shadow: 0 20px 50px rgba(0,0,0,.4);
  }
  .nav-links.is-open { display: grid; }
  .nav-links a { padding: 12px 14px; }
  .language-select { width: 100%; min-height: 44px; margin-top: 5px; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 80px; }
  .atlas-visual { min-height: 500px; width: min(100%, 600px); margin: 20px auto 0; }
  .icon-float { left: -1%; width: 82px; height: 82px; }
  .section-head, .atlas-section, .privacy-callout { grid-template-columns: 1fr; }
  .journey { grid-template-columns: 1fr; }
  .journey-step { min-height: 0; }
  .step-no { margin-bottom: 60px; }
  .privacy-callout .hero-actions { justify-content: flex-start; }
  .support-layout, .policy-layout { grid-template-columns: 1fr; }
  .side-index { position: static; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .shell { width: min(calc(100% - 28px), var(--max)); }
  .nav-shell { width: min(calc(100% - 24px), var(--max)); }
  h1 { font-size: clamp(3rem, 15vw, 4.9rem); }
  .hero { padding-top: 58px; }
  .atlas-visual { min-height: 430px; }
  .coordinate-slip { right: 4%; bottom: 4%; width: 88%; padding: 17px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat { min-height: 0; padding: 26px 0; }
  .stat + .stat { border-top: 1px solid var(--line); border-left: 0; padding-left: 0; }
  .book-stack { min-height: 490px; }
  .book-page { padding: 25px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
