:root {
  --bg-page: #f0f4f8;
  --bg-elevated: #ffffff;
  --stroke: rgba(15, 23, 42, 0.09);
  --stroke-strong: rgba(37, 99, 235, 0.22);
  --text: #0f172a;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.1);
  --teal: #0d9488;
  --radius: 18px;
  --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 22px 55px rgba(15, 23, 42, 0.1);
  --font-sans: "DM Sans", "Noto Sans JP", "Noto Sans SC", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: max(16px, env(safe-area-inset-left)) max(16px, env(safe-area-inset-right));
  box-sizing: border-box;
}

/* Background */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(37, 99, 235, 0.09), transparent 52%),
    radial-gradient(ellipse 60% 45% at 100% 0%, rgba(13, 148, 136, 0.06), transparent 45%),
    linear-gradient(180deg, #f8fafc 0%, #f0f4f8 45%, #eef2f7 100%);
}

.bg-grid::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 75% 55% at 50% 25%, black, transparent);
  pointer-events: none;
}

/* Nav */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
}

.site-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: 14px;
  gap: 12px;
  position: relative;
  z-index: 120;
}

.site-nav__panel {
  display: flex;
  flex: 1;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.nav-toggle:hover {
  background: rgba(15, 23, 42, 0.04);
  border-color: rgba(15, 23, 42, 0.12);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle__bars {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}

.site-nav.is-nav-open .nav-toggle__bars {
  box-shadow: none;
  transform: rotate(45deg);
}

.site-nav.is-nav-open .nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(-90deg);
}

.nav-backdrop {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  -webkit-tap-highlight-color: transparent;
}

.nav-backdrop:not([hidden]) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .nav-backdrop {
    display: none !important;
  }
}

@media (max-width: 767.98px) {
  /*
   * backdrop-filter 会在部分内核中为 position:fixed 子元素错误建立包含块，
   * 小屏关闭顶栏 blur，保证抽屉与遮罩贴满视口。
   */
  .site-nav {
    z-index: 200;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.97);
  }

  .site-nav__inner {
    flex-wrap: nowrap;
    padding-top: max(10px, env(safe-area-inset-top));
    padding-bottom: 10px;
  }

  .brand {
    min-width: 0;
    flex: 1;
  }

  .brand span[data-i18n="brand"] {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
    position: relative;
    z-index: 220;
  }

  .site-nav__panel {
    order: 3;
    position: fixed;
    z-index: 210;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(100vw, 380px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: calc(72px + env(safe-area-inset-top)) max(16px, env(safe-area-inset-right))
      max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
    flex: none;
    justify-content: flex-start;
    align-items: stretch;
    background: var(--bg-elevated);
    border-left: 1px solid var(--stroke);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0.28s;
  }

  .site-nav.is-nav-open .site-nav__panel {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 6px;
    width: 100%;
  }

  .nav-links > a:not(.btn) {
    padding: 14px 14px;
    font-size: 1rem;
    border-radius: 12px;
    text-align: left;
  }

  .nav-contact {
    justify-content: center;
    text-align: center !important;
    margin-top: 4px;
  }

  .lang-switch {
    margin-top: 16px;
    margin-left: 0;
    align-self: stretch;
    justify-content: center;
  }

  .lang-btn {
    min-height: 40px;
    padding: 8px 14px;
  }
}

@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
  .site-nav__panel {
    transition: none;
  }

  .nav-backdrop {
    transition: none;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--stroke);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.18);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--stroke);
}

.lang-btn {
  margin: 0;
  padding: 6px 12px;
  border: none;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn[aria-pressed="true"] {
  background: #fff;
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.05);
  text-decoration: none;
}

.nav-contact {
  background: linear-gradient(125deg, #0d9488 0%, #2563eb 52%, #7c3aed 100%) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.25);
}

.nav-contact:hover {
  color: #fff !important;
  background: linear-gradient(125deg, #0f766e 0%, #1d4ed8 52%, #6d28d9 100%) !important;
  filter: brightness(1.03);
  text-decoration: none !important;
}

/* Hero */
.hero {
  padding: 48px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

/* Hero — sci-fi visualization */
.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: calc(var(--radius) + 6px);
}

@media (min-width: 901px) {
  .hero-visual {
    min-height: 380px;
  }
}

.hero-scifi {
  position: relative;
  height: 100%;
  min-height: 320px;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 65% at 50% 18%, rgba(37, 99, 235, 0.22), transparent 58%),
    radial-gradient(ellipse 55% 45% at 85% 75%, rgba(13, 148, 136, 0.2), transparent 52%),
    linear-gradient(165deg, #0b1220 0%, #101b2e 42%, #0a111d 100%);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow:
    var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 -20px 50px rgba(37, 99, 235, 0.15) inset;
}

@media (min-width: 901px) {
  .hero-scifi {
    min-height: 380px;
  }
}

.hero-scifi__glow {
  position: absolute;
  width: 150%;
  height: 70%;
  left: -25%;
  top: -22%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 62%);
  animation: scifi-glow-drift 10s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scifi-glow-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.85;
  }
  50% {
    transform: translate(4%, 5%) scale(1.04);
    opacity: 1;
  }
}

.hero-scifi__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 72% 68% at 50% 48%, black 0%, transparent 74%);
  animation: scifi-grid-pan 24s linear infinite;
  pointer-events: none;
}

@keyframes scifi-grid-pan {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 0 32px, 32px 0;
  }
}

.hero-scifi__scanline {
  position: absolute;
  inset: -20% 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 48%,
    transparent 50%
  );
  background-size: 100% 160px;
  animation: scifi-scan 7s linear infinite;
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

@keyframes scifi-scan {
  0% {
    transform: translateY(-12%);
  }
  100% {
    transform: translateY(12%);
  }
}

.hero-scifi__ring {
  position: absolute;
  left: 50%;
  top: 46%;
  border-radius: 50%;
  border: 1px dashed rgba(125, 211, 252, 0.28);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.hero-scifi__ring--outer {
  width: min(78vw, 340px);
  height: min(78vw, 340px);
  animation: scifi-spin 22s linear infinite;
}

.hero-scifi__ring--inner {
  width: min(58vw, 250px);
  height: min(58vw, 250px);
  border-color: rgba(56, 189, 248, 0.18);
  animation: scifi-spin-rev 28s linear infinite;
}

@keyframes scifi-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes scifi-spin-rev {
  to {
    transform: translate(-50%, -50%) rotate(-360deg);
  }
}

.sci-orbit {
  position: absolute;
  right: 10%;
  top: 10%;
  width: min(38vw, 150px);
  height: min(38vw, 150px);
  z-index: 2;
  pointer-events: none;
}

.sci-orbit__dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.85);
}

.sci-orbit__dot--a {
  top: 0;
  left: 50%;
  transform: translate(-50%, -40%);
  animation: sci-dot-orbit 9s linear infinite;
}

.sci-orbit__dot--b {
  bottom: 12%;
  right: 4%;
  animation: sci-dot-pulse 2.5s ease-in-out infinite;
}

@keyframes sci-dot-orbit {
  0% {
    transform: translate(-50%, -40%) rotate(0deg) translateX(74px) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -40%) rotate(360deg) translateX(74px) rotate(-360deg);
  }
}

@keyframes sci-dot-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.75;
  }
}

.sci-orbit__hub {
  position: absolute;
  inset: 26%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(125, 211, 252, 0.35);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 24px rgba(56, 189, 248, 0.12);
}

.sci-orbit__wifi {
  width: 44%;
  height: auto;
  color: #7dd3fc;
  filter: drop-shadow(0 0 10px rgba(125, 211, 252, 0.55));
}

.sci-transfer {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 22%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 3;
  pointer-events: none;
}

.sci-node {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.sci-node__ring {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  animation: sci-node-breathe 3.2s ease-in-out infinite;
}

.sci-node--right .sci-node__ring {
  animation-delay: 0.6s;
}

@keyframes sci-node-breathe {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 20px 2px rgba(56, 189, 248, 0.22);
  }
}

.sci-node__core {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(145deg, #38bdf8, #2563eb);
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.55);
}

.sci-node__label {
  position: absolute;
  bottom: -22px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(226, 232, 240, 0.85);
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
}

.sci-beam {
  flex: 1;
  position: relative;
  height: 4px;
  margin: 0 4px;
  align-self: center;
}

.sci-beam__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(56, 189, 248, 0),
    rgba(56, 189, 248, 0.45) 20%,
    rgba(129, 140, 248, 0.55) 50%,
    rgba(56, 189, 248, 0.45) 80%,
    rgba(56, 189, 248, 0)
  );
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.35);
}

.sci-beam__packet {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  margin-left: -6px;
  border-radius: 4px;
  background: rgba(248, 250, 252, 0.95);
  box-shadow:
    0 0 16px rgba(56, 189, 248, 0.95),
    0 0 32px rgba(99, 102, 241, 0.45);
  animation: sci-packet 2.8s ease-in-out infinite;
}

.sci-beam__packet--1 {
  animation-delay: 0s;
}

.sci-beam__packet--2 {
  animation-delay: 0.55s;
  opacity: 0.85;
}

.sci-beam__packet--3 {
  animation-delay: 1.1s;
  opacity: 0.65;
}

@keyframes sci-packet {
  0% {
    left: 0%;
    opacity: 0;
    transform: scale(0.75);
  }
  12% {
    opacity: 1;
    transform: scale(1);
  }
  88% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    left: 100%;
    opacity: 0;
    transform: scale(0.85);
  }
}

.sci-chips {
  position: absolute;
  left: 8%;
  top: 16%;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 4;
  pointer-events: none;
}

.sci-chip {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 8px;
  text-transform: uppercase;
  color: #0a0f1a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  animation: sci-chip-float 4.5s ease-in-out infinite;
}

.sci-chip--a {
  background: linear-gradient(135deg, #fde68a, #f59e0b);
  animation-delay: 0s;
}
.sci-chip--b {
  background: linear-gradient(135deg, #93c5fd, #3b82f6);
  animation-delay: 0.25s;
}
.sci-chip--c {
  background: linear-gradient(135deg, #6ee7b7, #14b8a6);
  animation-delay: 0.5s;
}

@keyframes sci-chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.sci-hud {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 11%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(10px);
  z-index: 5;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
  font-size: 11px;
  line-height: 1.4;
}

.sci-hud__line {
  color: rgba(125, 211, 252, 0.95);
  text-shadow: 0 0 18px rgba(56, 189, 248, 0.35);
}

.sci-hud__stat {
  color: rgba(226, 232, 240, 0.88);
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .hero-scifi__glow,
  .hero-scifi__grid,
  .hero-scifi__scanline,
  .hero-scifi__ring--outer,
  .hero-scifi__ring--inner,
  .sci-orbit__dot--a,
  .sci-orbit__dot--b,
  .sci-node__ring,
  .sci-beam__packet,
  .sci-chip {
    animation: none !important;
  }

  .hero-scifi__glow {
    transform: none;
    opacity: 0.7;
  }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--stroke);
  margin-bottom: 18px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

h1 {
  font-size: clamp(2.05rem, 4vw, 3rem);
  line-height: 1.14;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lead {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 52ch;
}

.lead strong {
  color: var(--text);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.32);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8, #1e40af);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.38);
}

.btn-ghost {
  background: #fff;
  color: var(--text);
  border-color: var(--stroke);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.12);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: var(--muted);
}

.hero-meta strong {
  color: var(--text);
}

/* Sections */
section {
  padding: 44px 0;
}

#features,
#guide,
#download,
#privacy,
#terms,
#contact {
  scroll-margin-top: 88px;
}

@media (max-width: 767.98px) {
  #features,
  #guide,
  #download,
  #privacy,
  #terms,
  #contact {
    scroll-margin-top: 72px;
  }

  .hero {
    padding: 28px 0 44px;
  }

  h1 {
    font-size: clamp(1.6rem, 7vw, 2.1rem);
  }

  .lead {
    font-size: 1rem;
    max-width: none;
  }

  .cta-row .btn {
    min-height: 48px;
    padding-left: 20px;
    padding-right: 20px;
  }

  section {
    padding: 32px 0;
  }

  .section-desc {
    margin-bottom: 22px;
  }

  .section-desc code {
    word-break: break-all;
    max-width: 100%;
  }

  .contact-inner {
    padding-top: 32px;
    padding-bottom: max(36px, env(safe-area-inset-bottom));
  }

  .contact-email {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
    white-space: normal;
    text-align: center;
  }

  .hero-visual {
    min-height: 280px;
  }

  .hero-scifi {
    min-height: 280px;
  }
}

.section-title {
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
  margin: 0 0 10px;
  color: var(--text);
}

.section-desc {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 60ch;
}

.section-desc code {
  font-size: 0.92em;
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.15);
  color: #1e40af;
  font-family: ui-monospace, "Cascadia Code", "Consolas", monospace;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.info-card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.info-card:hover {
  border-color: var(--stroke-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.info-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--stroke);
}

.info-card-icon--cyan {
  background: rgba(6, 182, 212, 0.12);
  color: #0891b2;
  border-color: rgba(6, 182, 212, 0.25);
}

.info-card-icon--blue {
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  border-color: rgba(37, 99, 235, 0.22);
}

.info-card-icon--violet {
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border-color: rgba(139, 92, 246, 0.22);
}

.info-card-icon--amber {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.28);
}

.info-card-icon--rose {
  background: rgba(244, 63, 94, 0.09);
  color: #e11d48;
  border-color: rgba(244, 63, 94, 0.2);
}

.info-card-icon--teal {
  background: rgba(13, 148, 136, 0.11);
  color: #0f766e;
  border-color: rgba(13, 148, 136, 0.25);
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--text);
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* Downloads */
#download {
  padding-bottom: 64px;
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

@media (min-width: 960px) {
  .dl-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 560px) {
  .dl-grid {
    grid-template-columns: 1fr;
  }
}

.dl-card {
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dl-card:hover {
  border-color: var(--stroke-strong);
  transform: translateY(-2px);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.1);
}

.dl-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  border: 1px solid var(--stroke);
  color: var(--text);
}

.dl-card h3 {
  margin: 0;
  font-size: 1.15rem;
  color: var(--text);
}

.dl-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.dl-card .btn {
  width: 100%;
  margin-top: auto;
}

/* Guide & legal */
.guide-panel,
.notice-card {
  background: var(--bg-elevated);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 26px 28px;
  box-shadow: var(--shadow-md);
}

.prose-block {
  font-size: 0.96875rem;
  line-height: 1.75;
  color: var(--text);
}

.prose-block h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  color: var(--text);
  letter-spacing: -0.01em;
}

.prose-block h3:not(:first-child) {
  margin-top: 22px;
}

.prose-block p {
  margin: 0 0 12px;
  color: var(--muted);
}

.prose-block p:last-child {
  margin-bottom: 0;
}

.prose-block ul,
.prose-block ol {
  margin: 0 0 12px;
  padding-left: 1.2em;
  color: var(--muted);
}

.prose-block li {
  margin-bottom: 8px;
}

.prose-block li:last-child {
  margin-bottom: 0;
}

.prose-block strong {
  color: var(--text);
  font-weight: 600;
}

.prose-block .tip {
  margin-top: 14px !important;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid var(--stroke);
  border-left-width: 3px;
  border-left-color: rgba(15, 23, 42, 0.2);
  color: var(--muted) !important;
}

/* Contact strip */
.contact-strip {
  margin-top: 8px;
  background: linear-gradient(135deg, #1e3a8a 0%, #0f766e 48%, #312e81 100%);
  color: #f8fafc;
}

.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  padding: 40px 0 48px;
}

@media (min-width: 720px) {
  .contact-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.contact-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 700;
}

.contact-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  opacity: 0.94;
  max-width: 52ch;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}

.contact-email:hover {
  background: rgba(255, 255, 255, 0.24);
  text-decoration: none !important;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 28px 0 max(36px, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.5);
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
}

.footer-grid {
  width: 100%;
}

#footer-main {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.footer-line {
  margin: 0 0 10px;
}

.footer-contact {
  margin: 0;
  font-size: 13px;
}

.footer-contact a {
  font-weight: 600;
}
