@font-face { font-family: "FORGE Display"; src: url("/fonts/LibreFranklin-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "FORGE Sans"; src: url("/fonts/NotoSans-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "FORGE Arabic"; src: url("/fonts/NotoNaskhArabic-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "FORGE Japanese"; src: url("/fonts/NotoSansJP-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "FORGE Korean"; src: url("/fonts/NotoSansKR-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "FORGE SC"; src: url("/fonts/NotoSansSC-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "FORGE TC"; src: url("/fonts/NotoSansTC-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "FORGE Devanagari"; src: url("/fonts/NotoSansDevanagari-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root, html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f2;
  --bg-elev: #ffffff;
  --ink: #111111;
  --muted: #5c5a56;
  --line: #e4e1da;
  --accent: #c61f2b;
  --btn: #111111;
  --btn-ink: #ffffff;
  --window: #f4f6f8;
  --window-ink: #111820;
  --window-muted: #66717f;
  --window-line: #d8dde5;
  --shadow: 0 24px 64px rgb(17 17 17 / 0.12);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0b;
  --bg-elev: #141414;
  --ink: #f4f1ea;
  --muted: #9a968e;
  --line: #2a2a2a;
  --accent: #c61f2b;
  --btn: #f4f1ea;
  --btn-ink: #111111;
  --window: #f4f6f8;
  --window-ink: #111820;
  --window-muted: #66717f;
  --window-line: #d8dde5;
  --shadow: 0 24px 80px rgb(0 0 0 / 0.55);
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font-family: "FORGE Sans", ui-sans-serif, sans-serif;
  font-size: 16px;
  font-weight: 450;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
html:lang(ar) body { font-family: "FORGE Arabic", "FORGE Sans", sans-serif; }
html:lang(hi) body { font-family: "FORGE Devanagari", "FORGE Sans", sans-serif; }
html:lang(ja) body { font-family: "FORGE Japanese", "FORGE Sans", sans-serif; line-height: 1.7; }
html:lang(ko) body { font-family: "FORGE Korean", "FORGE Sans", sans-serif; }
html:lang(zh-CN) body { font-family: "FORGE SC", "FORGE Sans", sans-serif; }
html:lang(zh-TW) body { font-family: "FORGE TC", "FORGE Sans", sans-serif; }

a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset: 1rem auto auto 1rem; background: var(--bg-elev); color: var(--ink); padding: 0.5rem 0.75rem; z-index: 80; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.mast {
  background: #000;
  border-bottom: 1px solid #1a1a1a;
  color: #f6f5f2;
}
.mast-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 5rem;
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
  color: #f6f5f2;
}
.seal {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  display: block;
}
.seal img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wordmark {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
  font-family: "FORGE Display", "FORGE Sans", sans-serif;
  line-height: 1;
}
.wordmark b {
  display: block;
  font-weight: 720;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 0.95;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.wordmark small {
  display: block;
  font-family: "FORGE Sans", sans-serif;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9a968e;
}
.mast-nav { display: flex; align-items: center; gap: 0.5rem; }
.mast-nav a:not(.btn) {
  color: #9a968e;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.625rem;
  letter-spacing: -0.01em;
}
.mast-nav a:not(.btn):hover { color: #f6f5f2; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.875rem;
  border-radius: 2px;
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-elev); }

.hero {
  display: grid;
  gap: 1.75rem;
  padding: 2rem 0 2.5rem;
}
.kicker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; width: 0.5rem; height: 0.5rem; background: var(--accent); flex-shrink: 0; }
.hero h1 {
  margin: 0 0 1rem;
  max-width: 11.5ch;
  font-family: "FORGE Display", "FORGE Sans", sans-serif;
  font-weight: 720;
  font-size: clamp(2.625rem, 8vw, 4.75rem);
  line-height: 0.97;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.lead {
  margin: 0;
  max-width: 32rem;
  font-size: 1rem;
  font-weight: 440;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.5rem; }
.micro { margin: 0.875rem 0 0; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; letter-spacing: 0.01em; }

.stage { min-width: 0; margin-top: 0.25rem; }
.window {
  background: var(--window);
  color: var(--window-ink);
  border: 1px solid var(--window-line);
  box-shadow: 0 16px 48px rgb(17 17 17 / 0.1);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0 0.75rem;
  border-bottom: 1px solid var(--window-line);
  background: #fff;
}
.window-bar img { width: 1.5rem; height: 1.5rem; object-fit: cover; background: #000; border: 1px solid var(--window-line); }
.window-bar span {
  font-family: "FORGE Display", "FORGE Sans", sans-serif;
  font-size: 0.75rem;
  font-weight: 720;
  letter-spacing: 0.03em;
}
.window-row {
  display: grid;
  gap: 0.1rem;
  padding: 0.75rem 0.875rem;
  border-bottom: 1px solid var(--window-line);
}
.window-row:last-child { border-bottom: 0; }
.window-k {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--window-muted);
}
.window-k svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
.window-row strong { font-size: 0.875rem; font-weight: 650; color: var(--window-ink); letter-spacing: -0.01em; }
.window-row em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 450;
  color: var(--window-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

.avatars {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
  margin-top: 0.625rem;
}
.avatar {
  min-width: 0;
  min-height: 2.625rem;
  padding: 0.5rem 0.625rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--muted);
  font: inherit;
  text-align: start;
  cursor: pointer;
  touch-action: manipulation;
}
.avatar[aria-selected="true"] {
  color: var(--ink);
  box-shadow: inset 3px 0 0 var(--accent);
  border-color: var(--ink);
}
.avatar b {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}
.avatar span {
  display: block;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.band {
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}
.band h2 {
  margin: 0 0 0.625rem;
  font-family: "FORGE Display", "FORGE Sans", sans-serif;
  font-weight: 680;
  font-size: clamp(1.625rem, 4.5vw, 2.75rem);
  letter-spacing: -0.035em;
  text-wrap: balance;
  line-height: 1.1;
}
.band p { margin: 0 0 0.625rem; max-width: 40rem; color: var(--muted); text-wrap: pretty; font-size: 0.9375rem; line-height: 1.6; }
.price-num {
  font-family: "FORGE Display", sans-serif;
  font-size: clamp(2.25rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.faq details { border-bottom: 1px solid var(--line); padding: 1rem 0; }
.faq summary {
  cursor: pointer;
  font-weight: 650;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0.5rem 0 0; }

.foot {
  border-top: 1px solid var(--line);
  padding: 2rem 0 4rem;
}
.foot-grid {
  display: grid;
  gap: 1.5rem;
}
.foot strong {
  font-family: "FORGE Display", sans-serif;
  font-weight: 680;
  font-size: 1rem;
}
.foot span, .foot a { color: var(--muted); font-size: 0.875rem; }
.foot nav { display: grid; gap: 0.5rem; }
.foot a { text-decoration: none; min-height: 2.25rem; display: inline-flex; align-items: center; }
.foot a:hover { color: var(--ink); }
.foot-legal { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); }

.theme-toggle {
  position: fixed;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  right: calc(1rem + env(safe-area-inset-right));
  z-index: 50;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}
.theme-toggle svg { display: none; margin: 0 auto; }
html:not([data-theme="dark"]) .theme-toggle__dark { display: block; }
html[data-theme="dark"] .theme-toggle__light { display: block; }

.start-page, .legal-page { padding: 3rem 0 5rem; max-width: 32rem; }
.start-page h1, .legal-page h1 {
  font-family: "FORGE Display", sans-serif;
  font-weight: 640;
  letter-spacing: -0.03em;
}
.start-form label { display: grid; gap: 0.375rem; margin: 1rem 0; font-weight: 500; }
.start-form input {
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  font: inherit;
}
.hidden { display: none; }

@media (max-width: 359px) {
  .mast-inner { gap: 0.5rem; min-height: 4.75rem; }
  .brand { gap: 0.5rem; }
  .seal { width: 3rem; height: 3rem; }
  .wordmark b { font-size: 1.125rem; }
  .wordmark small { font-size: 0.5625rem; letter-spacing: 0.05em; }
  .mast-nav { gap: 0.25rem; }
  .mast-nav a:not(.btn) { font-size: 0.8125rem; padding: 0 0.375rem; }
  .btn { padding: 0 0.75rem; font-size: 0.8125rem; }
}
@media (min-width: 640px) {
  .avatars { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .band { padding: 3rem 0; }
}
@media (min-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    min-height: calc(100svh - 5rem);
    padding: 0 0 4rem;
    gap: 4rem;
  }
  .seal { width: 4rem; height: 4rem; }
  .band { padding: 4rem 0; }
  .band p { font-size: 1rem; }
  .foot { padding: 2.5rem 0 5.5rem; }
  .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 3rem; }
}

#forge-splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: #000;
  color: #f6f5f2;
}
#forge-splash[hidden] { display: none; }
#forge-splash .splash-inner {
  display: grid;
  place-items: center;
  gap: 1.5rem;
  text-align: center;
  padding: 1.5rem;
}
#forge-splash img {
  width: min(68vw, 440px);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
  background: #000;
  border: 0;
}
#forge-splash .splash-wordmark {
  font-family: "FORGE Display", "FORGE Sans", sans-serif;
  font-weight: 720;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  line-height: 1;
}
#forge-splash .splash-wordmark small {
  display: block;
  margin-top: 0.35rem;
  font-family: "FORGE Sans", sans-serif;
  font-size: 0.625rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a968e;
}
@media (min-width: 1024px) {
  #forge-splash img { width: min(48vw, 520px); }
}
@media (prefers-reduced-motion: reduce) {
  #forge-splash { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .theme-toggle { transition: none; }
}
