:root {
  --bg: #07111f;
  --blue: #0876f9;
  --blue-deep: #055ec8;
  --teal: #1ec8c0;
  --text: #f5f8fc;
  --muted: #b4c2d4;
  --ink: #14233c;
  --body: #3e4e64;
  --soft: #61728a;
  --card: #ffffff;
  --line: rgba(255, 255, 255, 0.14);
  --chip: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(3, 10, 24, 0.35);
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", "PingFang SC", "Hiragino Sans", "Noto Sans JP", sans-serif;
  color: var(--text);
  background:
    radial-gradient(880px 480px at 88% -8%, rgba(8, 118, 249, 0.42), transparent 62%),
    radial-gradient(640px 380px at -8% 18%, rgba(30, 200, 192, 0.16), transparent 58%),
    linear-gradient(180deg, #081426 0%, #0a1730 42%, #07101c 100%);
  line-height: 1.55;
  min-height: 100vh;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  background: white;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 20;
}

.skip:focus { top: 12px; }

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(7, 17, 31, 0.72);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.desktop-nav a:hover, .footer-links a:hover { color: white; }

/* Language picker: compact dropdown in the header, stacked list in the mobile panel. */
.lang-menu {
  position: relative;
  margin-left: auto;
  flex: 0 0 auto;
}

.lang-menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--chip);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang-menu > summary::-webkit-details-marker { display: none; }

.lang-menu > summary:hover {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
}

.lang-menu .globe { color: var(--teal); }

.lang-menu .chev {
  flex: 0 0 auto;
  transition: transform 0.18s ease;
}

.lang-menu[open] .chev { transform: rotate(180deg); }

.lang-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 172px;
  padding: 6px;
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10203a;
  box-shadow: var(--shadow);
}

.lang-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

.lang-menu a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: white;
}

.lang-menu a[aria-current="page"] {
  color: white;
  font-weight: 650;
}

.lang-menu .tick, .lang-block .tick {
  flex: 0 0 auto;
  opacity: 0;
  color: var(--teal);
}

.lang-menu a[aria-current="page"] .tick,
.lang-block a[aria-current="page"] .tick { opacity: 1; }

.lang-menu > summary:focus-visible,
.lang-menu a:focus-visible,
.lang-block a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.lang-block { display: none; }

.btn, .badge {
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  background: var(--blue);
  color: white;
  font-weight: 650;
  font-size: 14px;
  box-shadow: 0 8px 20px rgba(8, 118, 249, 0.35);
}

.btn:hover { background: var(--blue-deep); }

.header-btn { flex: 0 0 auto; }

.mobile-nav { display: none; margin-left: auto; }

.mobile-nav summary {
  list-style: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.mobile-nav summary::-webkit-details-marker { display: none; }

.burger, .burger::before, .burger::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: white;
  position: relative;
}

.burger::before, .burger::after {
  content: "";
  position: absolute;
  left: 0;
}

.burger::before { top: -5px; }
.burger::after { top: 5px; }

.nav-panel {
  position: absolute;
  right: 20px;
  top: 68px;
  width: min(320px, calc(100vw - 40px));
  padding: 16px;
  border-radius: 16px;
  background: #10203a;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
}

.nav-panel a { text-decoration: none; color: var(--text); padding: 8px 4px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 42px;
  align-items: center;
  padding: 64px 0 36px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #9fd0ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.hero h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  text-wrap: balance;
}

.prose h1 {
  font-size: clamp(32px, 4vw, 44px);
  color: var(--ink);
}

.lead {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 38rem;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

.cta .btn { min-height: 48px; padding: 0 18px; font-size: 15px; }

.badge {
  display: inline-flex;
  border-radius: 10px;
  overflow: hidden;
  line-height: 0;
}

.badge img { height: 52px; width: auto; }

.badge-fallback {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  color: white;
  font-weight: 650;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.facts li {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--chip);
  border: 1px solid var(--line);
  color: #d5e2f0;
  font-size: 13px;
}

.shot {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.shot img { width: 100%; height: auto; max-width: 100%; }

section { padding: 28px 0 8px; }

.section-head { max-width: 40rem; margin-bottom: 22px; }

h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.section-head p, .panel p { color: var(--muted); }

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card, .panel, .step {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(4, 12, 28, 0.12);
}

.card, .step { padding: 22px; }

.card h3, .step h3, .panel h2, .panel h3 { letter-spacing: -0.03em; }

.card h3, .step h3 { margin: 14px 0 8px; font-size: 18px; }

.card p, .step p, .prose p, .prose li { color: var(--body); }

.card p, .step p { margin: 0; }

.icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e7f2ff;
  color: var(--blue);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.step span {
  color: var(--blue);
  font-weight: 750;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.band {
  margin: 36px 0;
  padding: 28px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 28px;
}

.band ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }

.band li {
  padding-left: 28px;
  position: relative;
  color: #d7e3f1;
}

.band a { color: #b7e4ff; font-weight: 650; }

.band li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--teal);
  position: absolute;
  left: 6px;
  top: 0.55em;
}

.reqs { display: grid; gap: 10px; align-content: start; }

.reqs div {
  background: rgba(7, 17, 31, 0.35);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.reqs strong { display: block; margin-bottom: 4px; }
.reqs span { color: var(--muted); font-size: 14px; }

.page {
  padding: 42px 0 64px;
}

.panel {
  padding: 36px 40px 28px;
  color-scheme: light;
}

.kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e7f6f5;
  color: #0e6f6a;
  font-size: 13px;
  font-weight: 700;
}

.prose h2 { font-size: 22px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 16px; }
.prose ul { margin: 8px 0 0; padding-left: 1.2rem; }
.prose a { color: var(--blue-deep); }

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; }

:focus-visible {
  outline: 2px solid #8ec5ff;
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .desktop-nav, .lang-menu, .header-btn { display: none; }
  .mobile-nav { display: block; }
  .wrap { width: min(var(--max), calc(100% - 32px)); }
  .hero, .grid, .steps, .band { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 36px; }
  .panel { padding: 24px 20px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .facts { max-width: 100%; }

  .nav-panel .lang-block {
    display: grid;
    gap: 2px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
  }

  .nav-panel .lang-block a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 4px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
  }

  .nav-panel .lang-block a:hover { color: white; }

  .nav-panel .lang-block a[aria-current="page"] {
    color: white;
    font-weight: 650;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
