/* router — static localized landing pages. Dependency-free and CSP-safe. */

:root {
  color-scheme: light dark;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --surface-3: #edf2f9;
  --text: #091322;
  --text-soft: #26344a;
  --muted: #5a677c;
  --line: #dfe6f0;
  --line-strong: #c8d3e2;
  --accent: #2457e6;
  --accent-strong: #1743c7;
  --accent-contrast: #ffffff;
  --accent-soft: #e9efff;
  --teal: #0f9f95;
  --success: #0c7a47;
  --ink: #07101f;
  --ink-2: #0c1729;
  --ink-text: #eef4ff;
  --ink-muted: #9dabc2;
  --ink-line: rgba(148, 175, 214, 0.18);
  --shadow: 0 2px 4px rgba(9, 19, 34, 0.04), 0 24px 64px -34px rgba(9, 19, 34, 0.34);
  --shadow-lift: 0 4px 10px rgba(9, 19, 34, 0.05), 0 32px 72px -36px rgba(9, 19, 34, 0.42);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans SC",
    "Noto Sans JP", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas,
    "Liberation Mono", monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --shell: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070c15;
    --surface: #0d1624;
    --surface-2: #111c2c;
    --surface-3: #162336;
    --text: #e9eff9;
    --text-soft: #cfd9e9;
    --muted: #9aa8bd;
    --line: #223047;
    --line-strong: #33455f;
    --accent: #6f9eff;
    --accent-strong: #8db3ff;
    --accent-contrast: #06122c;
    --accent-soft: rgba(85, 135, 255, 0.14);
    --teal: #45d3c6;
    --success: #4ad18d;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 64px -34px rgba(0, 0, 0, 0.7);
    --shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.35), 0 32px 72px -36px rgba(0, 0, 0, 0.8);
  }
}

:root[data-theme="dark"] {
  --bg: #070c15;
  --surface: #0d1624;
  --surface-2: #111c2c;
  --surface-3: #162336;
  --text: #e9eff9;
  --text-soft: #cfd9e9;
  --muted: #9aa8bd;
  --line: #223047;
  --line-strong: #33455f;
  --accent: #6f9eff;
  --accent-strong: #8db3ff;
  --accent-contrast: #06122c;
  --accent-soft: rgba(85, 135, 255, 0.14);
  --teal: #45d3c6;
  --success: #4ad18d;
  --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 64px -34px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 4px 10px rgba(0, 0, 0, 0.35), 0 32px 72px -36px rgba(0, 0, 0, 0.8);
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 720;
}

h1 {
  font-size: clamp(2.35rem, 5.2vw, 4rem);
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0;
}

code,
pre {
  font-family: var(--mono);
}

.wrap {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-weight: 650;
  text-decoration: none;
  transition: top 150ms var(--ease);
}

.skip:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Header */

.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  padding-bottom: 2px;
}

.brand-word {
  font-size: 1.16rem;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.92rem;
  font-weight: 520;
}

.head-nav a,
.foot-col a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms var(--ease);
}

.head-nav a:hover,
.foot-col a:hover {
  color: var(--text);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 0.68rem 1.1rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 620;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 150ms var(--ease), border-color 150ms var(--ease),
    transform 150ms var(--ease), box-shadow 150ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

.button.primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 24px -14px var(--accent);
}

.button.primary:hover {
  background: var(--accent-strong);
}

.button.ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text-soft);
}

.button.ghost:hover {
  border-color: var(--accent);
  color: var(--text);
}

.button.small {
  padding: 0.52rem 0.86rem;
  font-size: 0.85rem;
  border-radius: 9px;
}

.button.large {
  padding: 0.86rem 1.35rem;
  font-size: 0.98rem;
}

.button.full {
  width: 100%;
}

/* Hero */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 6vw, 76px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 420px at 12% -10%, var(--accent-soft), transparent 68%),
    linear-gradient(180deg, transparent, var(--bg));
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.35;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

.hero .lead {
  max-width: 60ch;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.5vw, 1.16rem);
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.note {
  display: flex;
  gap: 9px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.note::before {
  content: "◆";
  color: var(--accent);
  font-size: 0.7rem;
  line-height: 1.9;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 36px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.facts dt {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1;
}

.facts dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

/* Hero panel */

.hero-panel {
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  color: var(--ink-text);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: rotate(0.6deg);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink-line);
  color: var(--ink-muted);
  font-size: 0.74rem;
}

.dots {
  display: inline-flex;
  gap: 5px;
}

.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(148, 175, 214, 0.3);
}

.panel-address {
  font-family: var(--mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #7ee2b0;
  white-space: nowrap;
}

.panel-live i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ad18d;
  box-shadow: 0 0 0 3px rgba(74, 209, 141, 0.16);
}

.panel-body {
  padding: 10px 16px 18px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: 0.86rem;
}

.panel-key {
  color: var(--ink-muted);
}

.panel-value {
  font-family: var(--mono);
  font-size: 0.82rem;
}

.panel-value.ok {
  color: #7ee2b0;
}

.panel-code {
  margin-top: 16px;
  padding: 12px 13px;
  border: 1px solid var(--ink-line);
  border-radius: 9px;
  background: rgba(5, 10, 18, 0.55);
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prompt {
  color: #7ea6ff;
  user-select: none;
}

.panel-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  color: #7ee2b0;
  font-size: 0.75rem;
}

/* Sections */

.section {
  padding: clamp(64px, 8vw, 96px) 0;
}

.section.dark {
  background: var(--ink);
  color: var(--ink-text);
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 52px);
}

.section-head .lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.65;
}

.section.dark .section-head .lead {
  color: var(--ink-muted);
}

.section.dark .eyebrow {
  color: #8db3ff;
}

.section-head.compact {
  max-width: 680px;
}

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

.card {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-mark {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.card p {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-line);
}

.step-num {
  color: #7ea6ff;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
  padding-top: 3px;
}

.steps h3 {
  color: var(--ink-text);
}

.steps p {
  margin-top: 9px;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.steps code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(148, 175, 214, 0.14);
  color: #b9cdff;
  font-size: 0.82em;
  word-break: break-word;
}

/* Pricing */

.price-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.75fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.price-main {
  padding: clamp(28px, 4vw, 42px);
}

.price-side {
  padding: clamp(28px, 4vw, 42px);
  border-left: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.price-tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.price-main h3 {
  margin-top: 14px;
  font-size: 1.55rem;
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.price-amount {
  font-size: clamp(2.5rem, 5vw, 3.2rem);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.checks li {
  position: relative;
  padding-left: 26px;
  color: var(--text-soft);
  font-size: 0.94rem;
}

.checks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal);
  font-weight: 750;
}

.footnote {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.secure {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

/* Activation */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}

.split .lead {
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.terminal {
  border: 1px solid var(--ink-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--ink-2), var(--ink));
  color: var(--ink-text);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
}

.terminal pre {
  margin: 0;
  padding: 20px 18px;
  overflow-x: auto;
  font-size: 0.82rem;
  line-height: 1.9;
}

.terminal code {
  color: var(--ink-text);
}

.terminal .muted {
  color: var(--ink-muted);
}

.terminal .ok {
  color: #7ee2b0;
}

/* Providers */

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

.provider-list li {
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text-soft);
  font-size: 0.8rem;
  line-height: 1.3;
}

/* FAQ */

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

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 2px;
  cursor: pointer;
  font-weight: 620;
  list-style: none;
}

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

.faq summary span {
  flex: none;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 400;
  transition: transform 150ms var(--ease);
}

.faq details[open] summary span {
  transform: rotate(45deg);
}

.faq .answer {
  max-width: 78ch;
  padding: 0 2px 22px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.faq code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--surface-3);
  color: var(--text-soft);
  font-size: 0.84em;
  word-break: break-word;
}

/* CTA */

.cta {
  padding: clamp(56px, 7vw, 80px) 0;
  background: linear-gradient(135deg, #1a43c4, #2457e6 55%, #0f9f95);
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
}

.cta p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.82);
}

.cta .actions {
  margin-top: 0;
}

.cta .button.primary {
  background: #fff;
  color: #1743c7;
  box-shadow: none;
}

.cta .button.primary:hover {
  background: #eef3ff;
}

.cta .button.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.cta .button.ghost:hover {
  border-color: #fff;
}

/* Footer */

.site-foot {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

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

.foot-brand p {
  max-width: 38ch;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.foot-brand .foot-legal {
  font-size: 0.8rem;
  color: var(--muted);
  opacity: 0.9;
}

.foot-copy {
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.76rem;
}

.foot-col {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 0.88rem;
}

.foot-col h3 {
  margin: 0 0 5px;
  font-size: 0.74rem;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foot-col a {
  overflow-wrap: anywhere;
}

/* Responsive */

@media (max-width: 960px) {
  .head-nav {
    display: none;
  }

  .hero-grid,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    transform: none;
    max-width: 620px;
  }

  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .price-card {
    grid-template-columns: 1fr;
  }

  .price-side {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .wrap {
    padding: 0 18px;
  }

  .head-inner {
    gap: 12px;
  }

  .head-actions .ghost {
    display: none;
  }

  .brand-word {
    font-size: 1.05rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .facts {
    gap: 12px;
  }

  .facts dt {
    font-size: 1.55rem;
  }

  .cta-inner {
    align-items: flex-start;
  }

  .foot-grid {
    grid-template-columns: 1fr;
  }

  .foot-brand {
    grid-column: auto;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .button:hover {
    transform: none;
  }
}
