:root {
  color-scheme: light;
  --bg: #f6f2e8;
  --surface: #fffdf7;
  --surface-2: #ebe4d6;
  --ink: #121314;
  --ink-soft: #35383a;
  --muted: #6f6b61;
  --line: #ddd2bf;
  --line-strong: #b9aa91;
  --black: #080a0d;
  --black-2: #11161a;
  --acid: #e7d19a;
  --acid-ink: #27200f;
  --mint: #7bded1;
  --mint-dark: #357a73;
  --orange: #b66d3f;
  --blue: #7f97ff;
  --paper: #f6f2e8;
  --shadow-sm: 0 10px 24px rgba(42, 32, 18, 0.08);
  --shadow-md: 0 20px 54px rgba(42, 32, 18, 0.14);
  --shadow-lg: 0 36px 110px rgba(12, 10, 8, 0.24);
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --max: 1180px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #15181c;
  --surface-2: #1d2025;
  --ink: #fbf6ec;
  --ink-soft: #e3dacb;
  --muted: #b0a796;
  --line: #323238;
  --line-strong: #55505a;
  --black: #05070a;
  --black-2: #0d1116;
  --acid: #ecd99f;
  --acid-ink: #1c170b;
  --mint: #8ee8df;
  --mint-dark: #9df2e8;
  --paper: #111416;
  --shadow-sm: 0 8px 22px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.36);
  --shadow-lg: 0 34px 100px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Aptos,
    "Segoe UI Variable",
    "Segoe UI",
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

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

/* 品牌標記兜底:即使快取混用載入到尺寸不同的舊圖,也不會撐開頁面 */
.brand img,
.brand-sigil img,
img.brand-logo {
  max-height: 40px;
  width: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--acid) 70%, transparent);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.desktop-nav {
  display: flex;
  align-items: center;
}

.brand {
  justify-self: start;
  gap: 10px;
  min-width: 0;
}

.brand-sigil {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid color-mix(in srgb, var(--acid) 58%, var(--line));
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.85), transparent 28%),
    linear-gradient(145deg, var(--acid), #9f7d42);
  color: var(--acid-ink);
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--acid) 18%, transparent);
}

.brand-wordmark {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--acid) 82%, var(--surface));
  color: var(--acid-ink);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.desktop-nav {
  justify-content: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.desktop-nav a {
  min-height: 38px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  transition:
    background-color 180ms ease,
    color 180ms ease;
}

.desktop-nav a:hover {
  background: var(--ink);
  color: var(--bg);
}

/* ---- 目錄下拉導覽(mega-menu) ---- */
.nav-drop {
  position: relative;
  display: flex;
}
.nav-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-drop-btn .chev {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-1px, -2px);
  opacity: 0.62;
  transition: transform 0.18s ease, opacity 0.18s ease;
}
.nav-drop-btn:hover,
.nav-drop.open > .nav-drop-btn {
  background: var(--ink);
  color: var(--bg);
}
.nav-drop.open .chev {
  transform: rotate(-135deg) translate(1px, 1px);
  opacity: 1;
}
.nav-mega {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  z-index: 60;
  width: max-content;
  max-width: min(720px, calc(100vw - 40px));
  padding: 18px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 2px 30px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.nav-mega::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.nav-mega-guides {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}
.nav-mega-tools {
  grid-template-columns: repeat(2, minmax(158px, 1fr));
  left: auto;
  right: -8px;
  transform: translateY(6px);
}
.nav-drop:hover > .nav-mega,
.nav-drop.open > .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-drop:hover > .nav-mega-tools,
.nav-drop.open > .nav-mega-tools {
  transform: translateY(0);
}
.nav-mega h4 {
  margin: 6px 0 6px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.nav-mega a {
  display: block;
  padding: 6px 2px;
  border-radius: var(--radius-xs);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  transition: color 0.14s ease, background 0.14s ease;
}
.nav-mega a:hover {
  color: var(--mint-dark);
  background: var(--surface-2);
}
.nav-mega .nav-mega-all {
  margin-top: 8px;
  color: var(--mint-dark);
  font-weight: 900;
}

.header-actions {
  justify-content: flex-end;
  gap: 10px;
}

.ghost-link,
.primary-link,
.button,
.icon-button {
  min-height: 44px;
  border-radius: 999px;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.ghost-link,
.primary-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.ghost-link {
  color: var(--muted);
}

.ghost-link:hover {
  color: var(--ink);
}

.primary-link,
.button-primary {
  border: 1px solid var(--acid);
  background: var(--acid);
  color: var(--acid-ink);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--acid) 28%, transparent);
}

.primary-link:hover,
.button-primary:hover {
  transform: translateY(-1px);
  background: #f4dfa5;
  border-color: #f4dfa5;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.button-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.16);
}

.button-muted {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.button-muted:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.theme-sun,
.theme-moon {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.theme-sun {
  border: 2px solid currentColor;
}

.theme-sun::before,
.theme-sun::after {
  position: absolute;
  content: "";
  inset: -7px 7px;
  width: 2px;
  background: currentColor;
  border-radius: 2px;
}

.theme-sun::after {
  transform: rotate(90deg);
}

.theme-moon {
  display: none;
  background: currentColor;
}

.theme-moon::after {
  position: absolute;
  content: "";
  width: 14px;
  height: 14px;
  top: -2px;
  right: -2px;
  border-radius: 50%;
  background: var(--surface);
}

html[data-theme="dark"] .theme-sun {
  display: none;
}

html[data-theme="dark"] .theme-moon {
  display: block;
}

.menu-button {
  display: none;
}

.menu-button span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 180ms ease;
}

.menu-button span:first-child {
  transform: translateY(-5px);
}

.menu-button span:last-child {
  transform: translateY(5px);
}

body.menu-open .menu-button span:first-child {
  transform: rotate(45deg);
}

body.menu-open .menu-button span:last-child {
  transform: rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 78px;
  left: 12px;
  right: 12px;
  z-index: 49;
  display: none;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  max-height: calc(100dvh - 96px);
  overflow-y: auto;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--ink-soft);
  font-weight: 900;
}

.mobile-nav a:hover {
  background: var(--surface-2);
}

.mobile-nav .m-group {
  padding: 4px 0 6px;
  border-bottom: 1px solid var(--line);
}
.mobile-nav .m-group:last-of-type {
  border-bottom: 0;
}
.mobile-nav .m-group h4 {
  margin: 8px 6px 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.mobile-nav .m-group a {
  min-height: 44px;
  font-size: 14px;
  font-weight: 700;
}
.mobile-nav .m-cta {
  margin-top: 10px;
  justify-content: center;
  border-radius: 12px;
  background: var(--acid);
  color: var(--acid-ink);
  font-weight: 900;
}
.mobile-nav .m-cta:hover {
  background: var(--acid);
  filter: brightness(0.95);
}

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

h1 {
  margin-bottom: 22px;
  font-size: 72px;
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 48px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 950;
}

.section-kicker {
  margin: 0 0 12px;
  color: var(--mint-dark);
  font-size: 14px;
  font-weight: 950;
}

.hero-foundry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
  gap: 38px;
  align-items: center;
  min-height: min(790px, calc(100svh - 44px));
  overflow: hidden;
  isolation: isolate;
  padding: 80px max(20px, calc((100vw - var(--max)) / 2)) 54px;
  background:
    radial-gradient(circle at 18% 16%, rgba(231, 209, 154, 0.16) 0%, transparent 28%),
    radial-gradient(circle at 78% 28%, rgba(123, 222, 209, 0.1) 0%, transparent 30%),
    linear-gradient(180deg, var(--black) 0%, #111820 100%);
  color: #ffffff;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(231, 209, 154, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(231, 209, 154, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 82%);
}

.hero-copy-block {
  position: relative;
  z-index: 2;
  width: min(600px, 100%);
}

.hero-copy-block .section-kicker {
  color: var(--acid);
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 19px;
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-deck {
  position: relative;
  min-height: 520px;
}

.artifact {
  position: absolute;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(231, 209, 154, 0.24);
  background: #15191a;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.artifact img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.artifact figcaption {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.artifact figcaption span,
.artifact figcaption strong {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.artifact-main {
  inset: 48px 8px 48px 76px;
  z-index: 2;
  border-radius: 24px;
  transform: rotate(-2deg);
}

.artifact-main::after {
  position: absolute;
  content: "";
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(0, 0, 0, 0.68) 100%);
  pointer-events: none;
}

.artifact-side {
  z-index: 3;
  width: 230px;
  height: 150px;
  border-radius: 18px;
}

.artifact-side figcaption {
  display: inline-flex;
  right: auto;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
}

.artifact-image {
  top: 0;
  left: 0;
  transform: rotate(5deg);
}

.artifact-code {
  right: 0;
  bottom: 8px;
  transform: rotate(4deg);
}

.hero-meter {
  position: absolute;
  left: 0;
  bottom: 14px;
  z-index: 4;
  width: min(430px, 72%);
  padding: 16px;
  border: 1px solid rgba(231, 209, 154, 0.22);
  border-radius: 18px;
  background: rgba(9, 11, 12, 0.84);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(12px);
}

.hero-meter dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.hero-meter dt {
  color: var(--acid);
  font-size: 32px;
  line-height: 1;
  font-weight: 950;
}

.hero-meter dd {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 900;
}

.signal-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  padding: 24px max(20px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.signal-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 950;
}

.signal-copy strong {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--black);
  color: var(--bg);
}

.logo-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  align-items: center;
}

.logo-row img {
  width: 100%;
  max-height: 32px;
  object-fit: contain;
  opacity: 0.52;
  filter: grayscale(1);
  transition:
    opacity 180ms ease,
    filter 180ms ease,
    transform 180ms ease;
}

.logo-row img:hover {
  opacity: 0.95;
  filter: grayscale(0);
  transform: translateY(-1px);
}

.section {
  padding: 96px max(20px, calc((100vw - var(--max)) / 2));
}

.section-heading {
  width: min(760px, 100%);
  margin: 0 auto 44px;
  text-align: center;
}

.section-heading-left {
  margin-left: 0;
  text-align: left;
}

.section-heading p:not(.section-kicker),
.forge-lead p,
.station-item p,
.tools-copy p,
.runway-copy p,
.runway-item figcaption,
.plan-copy,
.proof-lead p,
.testimonial span,
.faq-answer p,
.site-footer p {
  color: var(--muted);
}

.forge-section {
  background:
    linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
}

.forge-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: stretch;
}

.forge-lead,
.station-item,
.price-card,
.testimonial {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.forge-lead {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--acid) 22%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--mint) 10%, transparent), transparent 58%),
    var(--black);
  color: #ffffff;
}

.forge-lead h3,
.forge-lead p {
  color: #ffffff;
}

.forge-lead p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.forge-lead img {
  width: 74px;
  height: 74px;
  margin: auto 0 34px;
}

.station-index {
  display: inline-flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--acid-ink);
  font-size: 13px;
  font-weight: 950;
}

.station-stack {
  display: grid;
  gap: 16px;
}

.station-item {
  display: grid;
  grid-template-columns: auto 58px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 136px;
  padding: 20px;
}

.station-item-hot {
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateX(-26px);
}

.station-item img {
  width: 52px;
  height: 52px;
}

.station-item p {
  margin-bottom: 0;
}

.tools-section {
  background:
    radial-gradient(circle at 80% 18%, rgba(231, 209, 154, 0.12), transparent 30%),
    var(--black);
  color: #ffffff;
}

.tools-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(96px, 0.18fr) minmax(0, 1.2fr);
  gap: 22px;
  align-items: stretch;
}

.tools-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tools-copy h2 {
  color: #ffffff;
}

.tools-copy .section-kicker {
  color: var(--acid);
}

.tools-copy p:not(.section-kicker) {
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 18px;
}

.tool-tabs {
  display: grid;
  align-content: center;
  gap: 10px;
}

.tool-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 58px;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(231, 209, 154, 0.16);
  border-radius: 14px;
  background: rgba(255, 253, 247, 0.05);
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease;
}

.tool-tab img {
  width: 28px;
  height: 28px;
}

.tool-tab.is-active {
  transform: translateX(-8px);
  border-color: var(--acid);
  background: var(--acid);
  color: var(--acid-ink);
}

.tool-visual {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  margin: 0;
  border: 1px solid rgba(231, 209, 154, 0.2);
  border-radius: 28px;
  background: #15191a;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.42);
}

.tool-visual::before {
  position: absolute;
  content: "";
  inset: 18px;
  z-index: 2;
  border: 1px solid rgba(231, 209, 154, 0.24);
  border-radius: 18px;
  pointer-events: none;
}

.tool-visual img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transition:
    opacity 180ms ease,
    transform 240ms ease;
}

.tool-visual.is-switching img {
  opacity: 0.22;
  transform: scale(0.985);
}

.runway-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.55fr) minmax(0, 1.45fr);
  gap: 28px;
  align-items: start;
  background: var(--bg);
}

.runway-copy {
  position: sticky;
  top: 104px;
}

.runway-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.runway-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.runway-large {
  grid-row: span 2;
}

.runway-dark {
  background: var(--black);
}

.runway-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.runway-large img {
  height: 566px;
}

.runway-item figcaption {
  padding: 16px;
  font-size: 14px;
  font-weight: 900;
}

.pricing-section {
  background:
    linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}

.pricing-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 30px;
}

.pricing-header h2 {
  margin-bottom: 0;
}

.billing-toggle {
  display: flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.billing-toggle button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 950;
  cursor: pointer;
}

.billing-toggle button.is-active {
  background: var(--ink);
  color: var(--bg);
}

.billing-toggle span {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--orange) 16%, var(--surface));
  color: var(--orange);
  font-size: 12px;
}

.billing-toggle button.is-active span {
  background: rgba(255, 255, 255, 0.16);
  color: currentColor;
}

.pricing-board {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.36fr) minmax(0, 0.82fr);
  gap: 16px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}

.price-card-featured {
  min-height: 500px;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--acid) 24%, transparent), transparent 36%),
    linear-gradient(135deg, color-mix(in srgb, var(--mint) 8%, transparent), transparent 48%),
    var(--black);
  color: #ffffff;
  box-shadow: var(--shadow-lg);
}

.price-card-featured .plan-name,
.price-card-featured .price,
.price-card-featured li {
  color: #ffffff;
}

.price-card-featured .plan-copy {
  color: rgba(255, 255, 255, 0.72);
}

.price-card-compact {
  margin-top: 54px;
  min-height: 420px;
}

.plan-label {
  align-self: flex-start;
  margin: 0 0 18px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--acid);
  color: var(--acid-ink);
  font-size: 12px;
  font-weight: 950;
}

.plan-name {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
}

.plan-copy {
  min-height: 54px;
  margin-bottom: 24px;
}

.price {
  display: flex;
  align-items: flex-end;
  min-height: 66px;
  gap: 5px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: 56px;
  line-height: 1;
  font-weight: 950;
}

.price small {
  padding-bottom: 9px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
}

.price-card .button {
  width: 100%;
  margin-bottom: 26px;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 800;
}

.price-card li::before {
  position: absolute;
  content: "";
  left: 0;
  top: 0.57em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acid) 20%, transparent);
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) minmax(0, 1.38fr);
  gap: 28px;
  background: var(--black);
  color: #ffffff;
}

.proof-lead h2 {
  color: #ffffff;
}

.proof-lead .section-kicker {
  color: var(--acid);
}

.proof-lead p {
  color: rgba(255, 255, 255, 0.68);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}

.testimonial {
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.14);
}

.testimonial-loud {
  background: var(--acid);
  color: var(--acid-ink);
}

.testimonial img {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial p {
  margin-bottom: 22px;
  color: inherit;
  font-size: 22px;
  line-height: 1.42;
  font-weight: 900;
  text-wrap: pretty;
}

.testimonial span {
  display: block;
  font-size: 14px;
  font-weight: 900;
}

.testimonial-loud span {
  color: color-mix(in srgb, var(--acid-ink) 72%, transparent);
}

.faq-section {
  background: var(--bg);
}

.faq-list {
  width: min(820px, 100%);
  margin: 0;
}

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

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

.faq-item button {
  display: grid;
  grid-template-columns: 1fr 44px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  gap: 18px;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.faq-item button span {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 950;
}

.faq-item i {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
}

.faq-item i::before,
.faq-item i::after {
  position: absolute;
  content: "";
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.faq-item i::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 180ms ease;
}

.faq-item.is-open i::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.faq-answer > p {
  overflow: hidden;
  margin: 0;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.is-open .faq-answer p {
  padding: 0 56px 24px 0;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 64px max(20px, calc((100vw - var(--max)) / 2));
  background: var(--black);
  color: #ffffff;
}

.site-footer img {
  width: 170px;
  margin-bottom: 18px;
}

.footer-wordmark {
  display: block;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.site-footer p {
  width: min(520px, 100%);
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.64);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer a {
  min-height: 44px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 900;
}

.site-footer a:hover {
  color: #ffffff;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .ghost-link,
  .primary-link {
    display: none;
  }

  .menu-button {
    display: inline-grid;
  }

  body.menu-open .mobile-nav {
    display: block;
  }

  .hero-foundry {
    grid-template-columns: 1fr;
  }

  .hero-deck {
    min-height: 420px;
  }

  .artifact-main {
    inset: 38px 70px 42px 70px;
  }

  .forge-layout,
  .tools-shell,
  .runway-section,
  .proof-section {
    grid-template-columns: 1fr;
  }

  .tools-shell {
    gap: 24px;
  }

  .tool-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .tool-tab {
    justify-content: center;
  }

  .tool-tab.is-active {
    transform: translateY(-4px);
  }

  .runway-copy {
    position: static;
  }

  .pricing-board {
    grid-template-columns: 1fr;
  }

  .price-card-compact {
    margin-top: 0;
    min-height: auto;
  }
}

@media (max-width: 820px) {
  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand-wordmark {
    font-size: 18px;
  }

  .brand-sigil {
    width: 36px;
    height: 36px;
  }

  .brand-mark {
    width: 148px;
  }

  .brand-badge {
    display: none;
  }

  .mobile-nav {
    top: 72px;
  }

  h1 {
    font-size: 43px;
    line-height: 1.03;
  }

  h2 {
    font-size: 33px;
    line-height: 1.08;
  }

  .hero-foundry {
    min-height: auto;
    padding: 52px 20px 34px;
  }

  .hero-copy {
    margin-bottom: 22px;
    font-size: 17px;
  }

  .hero-actions .button {
    flex: 1 1 170px;
  }

  .hero-deck {
    min-height: 260px;
    margin-top: 12px;
  }

  .artifact-main {
    inset: 18px 0 16px;
    border-radius: 16px;
    transform: rotate(0deg);
  }

  .artifact-side {
    display: none;
  }

  .hero-meter {
    left: 12px;
    right: 12px;
    bottom: 0;
    width: auto;
    padding: 12px;
  }

  .hero-meter dt {
    font-size: 24px;
  }

  .hero-meter dd {
    font-size: 11px;
  }

  .signal-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 20px;
  }

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

  .section {
    padding: 72px 20px;
  }

  .section-heading {
    margin-bottom: 32px;
    text-align: left;
  }

  .forge-lead {
    min-height: 330px;
  }

  .station-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .station-item .station-index {
    grid-column: 1 / -1;
  }

  .station-item-hot {
    transform: none;
  }

  .tool-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .tool-tab {
    min-width: 106px;
  }

  .tool-visual,
  .tool-visual img {
    min-height: 280px;
  }

  .tool-visual {
    border-radius: 18px;
  }

  .runway-grid,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .runway-item img,
  .runway-large img {
    height: 260px;
  }

  .pricing-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .billing-toggle {
    width: 100%;
  }

  .billing-toggle button {
    flex: 1;
    padding-left: 10px;
    padding-right: 10px;
  }

  .price-card-featured {
    min-height: auto;
  }

  .price {
    font-size: 44px;
  }

  .faq-item button span {
    font-size: 17px;
  }

  .faq-item.is-open .faq-answer p {
    padding-right: 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 52px 20px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 460px) {
  .header-actions {
    gap: 6px;
  }

  .icon-button {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }

  .brand-wordmark {
    font-size: 16px;
  }

  .brand-sigil {
    width: 34px;
    height: 34px;
  }

  h1 {
    font-size: 39px;
  }

  .hero-actions .button {
    width: 100%;
    flex-basis: 100%;
  }

  .hero-deck {
    min-height: 146px;
  }

  .artifact-main {
    inset: 8px 0 0;
  }

  .hero-meter {
    display: none;
  }

  .signal-copy {
    font-size: 14px;
  }

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

  .tool-tab span {
    display: none;
  }

  .tool-tab {
    min-width: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
