:root {
  color-scheme: dark;
  --bg: #020914;
  --bg-deep: #01060d;
  --surface: rgba(6, 20, 37, 0.78);
  --surface-strong: rgba(8, 25, 45, 0.94);
  --surface-soft: rgba(8, 26, 48, 0.5);
  --text: #f5f8ff;
  --text-soft: #b6c1d3;
  --muted: #7f8da5;
  --line: rgba(89, 157, 223, 0.28);
  --line-strong: rgba(63, 167, 255, 0.58);
  --cyan: #2b92ff;
  --cyan-bright: #4eb4ff;
  --blue: #1c5cff;
  --violet: #8852ff;
  --green: #55dfb0;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --max: 1460px;
  --font: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(52, 139, 242, .55) #040b15;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font);
  background:
    radial-gradient(900px 540px at 76% 7%, rgba(14, 83, 172, 0.17), transparent 72%),
    radial-gradient(760px 560px at 12% 58%, rgba(73, 34, 163, 0.1), transparent 74%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

body.dialog-open { overflow: hidden; }

button, a, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.section-shell {
  width: min(var(--max), calc(100% - 80px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 76px;
  padding: 0 max(28px, calc((100vw - var(--max)) / 2));
  border-bottom: 1px solid rgba(106, 158, 210, .14);
  background: rgba(2, 9, 20, .75);
  backdrop-filter: blur(22px) saturate(130%);
  transition: background .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  background: rgba(2, 9, 20, .93);
  box-shadow: 0 14px 45px rgba(0, 0, 0, .24);
}

.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 710;
  letter-spacing: -.03em;
}

.brand img { width: 38px; height: 38px; object-fit: contain; }

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(26px, 3.5vw, 58px);
  color: #dce5f4;
  font-size: 14px;
}

.desktop-nav a {
  position: relative;
  padding: 28px 0;
  transition: color .2s ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 19px;
  height: 1px;
  background: var(--cyan-bright);
  transition: right .25s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible { color: white; }
.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after { right: 0; }

.header-cta { justify-self: end; }

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 610;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255,255,255,.2) 50%, transparent 75%);
  transform: translateX(-140%);
  transition: transform .6s ease;
}

.button:hover::before { transform: translateX(140%); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button svg { width: 19px; height: 19px; flex: none; }

.button-primary {
  color: white;
  background: linear-gradient(115deg, #2699ff, #194ef6);
  box-shadow: 0 12px 28px rgba(27, 94, 255, .22), inset 0 1px rgba(255,255,255,.2);
}
.button-primary:hover { box-shadow: 0 16px 36px rgba(27, 94, 255, .34), inset 0 1px rgba(255,255,255,.2); }

.button-ghost {
  border-color: rgba(101, 161, 231, .5);
  background: rgba(6, 18, 33, .48);
}
.button-ghost:hover { border-color: var(--cyan-bright); background: rgba(14, 46, 82, .5); }

.button-outline {
  color: var(--cyan-bright);
  border-color: var(--cyan);
  background: rgba(4, 18, 33, .6);
}

.menu-button,
.mobile-nav { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(390px, .88fr) minmax(570px, 1.4fr);
  gap: clamp(40px, 5vw, 90px);
  align-items: center;
  min-height: calc(100vh - 76px);
  max-height: 940px;
  padding-block: 70px 72px;
}

.hero-copy { padding-left: 6px; }
.hero h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(52px, 4.4vw, 72px);
  font-weight: 780;
  line-height: 1.04;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.hero-lead {
  margin: 32px 0 24px;
  color: #c8d2e3;
  font-size: clamp(23px, 2.1vw, 34px);
  font-weight: 420;
  line-height: 1.46;
  letter-spacing: -.025em;
}

.hero-body {
  max-width: 600px;
  margin: 0;
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 14px; margin-top: 36px; }
.hero-actions .button { min-width: 176px; }

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.hero-proof li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
}
.hero-proof li:first-child { padding-left: 0; }
.hero-proof li:last-child { padding-right: 0; }

.proof-icon { color: var(--cyan-bright); }
.proof-icon { display: grid; place-items: center; width: 30px; height: 30px; }
.proof-icon svg { width: 28px; height: 28px; }
.hero-proof strong { display: block; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.hero-proof small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; white-space: nowrap; }

.hero-visual { min-width: 0; }
.visual-frame {
  position: relative;
  padding: 13px;
  border: 1px solid rgba(45, 159, 255, .65);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px);
  background: linear-gradient(155deg, rgba(15, 51, 86, .82), rgba(2, 13, 26, .9));
  box-shadow: 0 0 54px rgba(30, 130, 255, .13), var(--shadow);
}

.visual-frame::before,
.visual-frame::after {
  content: "";
  position: absolute;
  z-index: 2;
  pointer-events: none;
}
.visual-frame::before {
  inset: 8px;
  border: 1px solid rgba(82, 156, 230, .24);
  clip-path: inherit;
}
.visual-frame::after {
  inset: 13px;
  background: linear-gradient(90deg, rgba(1, 8, 16, .28), transparent 6%, transparent 94%, rgba(1, 8, 16, .28));
}

.visual-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1244 / 1097;
  object-fit: cover;
  border-radius: 6px;
}

.scan-line {
  position: absolute;
  z-index: 3;
  left: 2%;
  right: 2%;
  top: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(60, 180, 255, .9), white, rgba(60, 180, 255, .9), transparent);
  box-shadow: 0 0 18px #1ba5ff;
  opacity: .6;
  animation: scan 5.5s ease-in-out infinite;
}

.node {
  position: absolute;
  z-index: 4;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b6ecff;
  box-shadow: 0 0 0 5px rgba(38, 156, 255, .13), 0 0 14px #42b7ff;
  animation: pulse 2.2s ease-in-out infinite;
}
.node-a { left: 3%; top: 26%; }
.node-b { right: 2.5%; top: 62%; animation-delay: .7s; }
.node-c { left: 53%; bottom: -3px; animation-delay: 1.2s; }

.visual-caption {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px 0;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .06em;
}
.visual-caption span { display: flex; align-items: center; gap: 8px; }
.visual-caption i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }

@keyframes scan { 0%,100% { top: 12%; opacity: .15; } 50% { top: 86%; opacity: .74; } }
@keyframes pulse { 0%,100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }

.system-band,
.token-section {
  position: relative;
  border-block: 1px solid rgba(88, 152, 216, .19);
  background:
    linear-gradient(90deg, transparent, rgba(13, 51, 90, .18) 50%, transparent),
    rgba(2, 11, 22, .58);
}
.system-band { padding: 98px 0 90px; }

.section-heading { max-width: 880px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.services-section .section-heading.centered { max-width: 1120px; }
.services-section .section-heading h2 { white-space: nowrap; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 56px);
  font-weight: 710;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.section-heading p {
  margin: 20px 0 0;
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.75;
}

.system-rail {
  display: grid;
  grid-template-columns: 1fr 60px 1fr 60px 1fr 60px 1fr;
  align-items: center;
  margin-top: 58px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 17, 31, .7);
}

.system-rail article { text-align: center; }
.system-rail article > span { display: block; margin-top: 14px; color: var(--cyan); font-size: 11px; letter-spacing: .18em; }
.system-rail h3 { margin: 8px 0 6px; font-size: 18px; }
.system-rail p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.rail-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: auto; color: var(--cyan-bright); border: 1px solid var(--line-strong); border-radius: 50%; background: rgba(12, 53, 93, .32); }
.rail-icon svg { width: 32px; height: 32px; }
.rail-line { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }

.local-boundary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 42px;
  margin-top: 28px;
  padding: 35px 40px 30px;
  border: 1px dashed rgba(62, 153, 239, .44);
  border-radius: var(--radius-sm);
}
.boundary-label {
  position: absolute;
  top: -10px;
  left: 30px;
  padding: 2px 12px;
  color: var(--cyan-bright);
  background: #04101f;
  font-size: 11px;
  letter-spacing: .1em;
}
.local-boundary div { padding-left: 18px; border-left: 1px solid var(--line); }
.local-boundary strong, .local-boundary small { display: block; }
.local-boundary strong { font-size: 14px; }
.local-boundary small { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }

.pricing-section { padding-block: 126px 80px; }
.pricing-panel {
  margin-top: 44px;
  padding: 36px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(7, 24, 42, .88), rgba(3, 13, 25, .8));
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.02);
}

.scale-tabs { display: flex; gap: 12px; }
.scale-tabs button {
  min-width: 125px;
  height: 45px;
  border: 1px solid rgba(88, 143, 203, .42);
  border-radius: 8px;
  background: rgba(3, 13, 26, .58);
  color: var(--text-soft);
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}
.scale-tabs button:hover { border-color: var(--cyan); color: white; }
.scale-tabs button[aria-selected="true"] {
  border-color: var(--cyan-bright);
  color: white;
  background: linear-gradient(115deg, #2699ff, #194ef6);
  box-shadow: 0 8px 22px rgba(30, 105, 255, .28);
}

.price-summary {
  display: grid;
  grid-template-columns: 1.05fr .95fr 1.05fr 1.15fr auto;
  align-items: center;
  gap: 0;
  margin-top: 20px;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(4, 17, 31, .74);
}
.summary-item,
.summary-total { min-width: 0; padding: 0 20px; border-right: 1px solid var(--line); }
.summary-item { display: grid; grid-template-columns: 44px 1fr; gap: 2px 14px; }
.summary-icon { grid-row: 1 / 3; color: var(--cyan-bright); align-self: center; }
.summary-icon.violet { color: var(--violet); }
.summary-icon svg { width: 36px; height: 36px; }
.summary-item > span,
.summary-total > span { color: var(--text-soft); font-size: 12px; white-space: nowrap; }
.summary-item strong { grid-column: 2; font-size: clamp(23px, 2vw, 32px); letter-spacing: -.025em; white-space: nowrap; }
.summary-item small { color: var(--text-soft); font-size: 12px; font-weight: 450; }
.summary-total strong { display: block; margin-top: 7px; color: var(--cyan); font-size: clamp(25px, 2.2vw, 38px); letter-spacing: -.025em; white-space: nowrap; }
.summary-button { margin-left: 22px; white-space: nowrap; }

.table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table { width: 100%; min-width: 840px; border-collapse: collapse; font-size: 14px; }
th, td { padding: 15px 20px; text-align: center; border-bottom: 1px solid rgba(73, 120, 166, .23); }
thead th { color: var(--text-soft); font-size: 12px; font-weight: 500; background: rgba(8, 27, 48, .5); }
tbody th { font-weight: 600; }
tbody tr { transition: background .2s ease, color .2s ease; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr.is-selected { background: linear-gradient(90deg, rgba(22, 97, 210, .22), rgba(31, 112, 255, .07)); box-shadow: inset 0 0 0 1px var(--cyan); }
tbody tr.is-selected td:last-child { color: var(--cyan-bright); font-weight: 680; }
tbody th i { display: inline-block; width: 6px; height: 6px; margin-right: 11px; border-radius: 50%; background: transparent; vertical-align: 2px; }
tbody tr.is-selected th i { background: var(--cyan-bright); box-shadow: 0 0 11px var(--cyan); }

.hardware-line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
  padding: 24px 28px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: linear-gradient(110deg, rgba(9, 38, 66, .88), rgba(4, 17, 31, .72));
}
.hardware-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(25, 105, 177, .14); }
.hardware-icon svg { width: 42px; height: 34px; color: var(--cyan-bright); }
.hardware-copy > span { display: block; margin: 0 0 9px; color: var(--cyan-bright); font-size: 12px; letter-spacing: .04em; }
.hardware-copy strong { display: inline-block; margin-right: 26px; font-size: 16px; font-weight: 620; }
.hardware-copy small { display: block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.hardware-price { min-width: 152px; padding-left: 26px; border-left: 1px solid var(--line); text-align: right; }
.hardware-price small { display: block; color: var(--muted); font-size: 11px; }
.hardware-price em { display: block; margin-top: 4px; color: var(--cyan-bright); font-size: 28px; font-weight: 700; font-style: normal; letter-spacing: -.03em; }
.hardware-price span { color: var(--text-soft); font-size: 12px; }

.services-section { padding-block: 70px 126px; }
.service-compare {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: 50px;
  margin-top: 50px;
  padding: 44px 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 17, 31, .58);
}
.service-title { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.service-title small { color: var(--muted); font-size: 9px; letter-spacing: .22em; }
.service-title h3 { margin: 5px 0 0; color: var(--cyan-bright); font-size: 22px; }
.service-compare article:last-child h3 { color: #9c78ff; }
.service-icon { display: grid; place-items: center; width: 60px; height: 60px; color: var(--cyan-bright); border: 1px solid var(--line-strong); border-radius: 18px; background: rgba(21, 91, 154, .13); }
.service-icon.violet { color: #9c78ff; border-color: rgba(136,82,255,.52); }
.service-icon svg { width: 35px; height: 35px; }

.service-compare ul { margin: 0; padding: 0; list-style: none; }
.service-compare li {
  display: grid;
  grid-template-columns: 32px minmax(150px, .65fr) 1fr;
  gap: 15px;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px dotted rgba(85, 132, 179, .27);
}
.service-compare li:last-child { border-bottom: 0; }
.service-compare li > span { color: var(--cyan); font-size: 10px; }
.service-compare li strong { font-size: 14px; font-weight: 550; }
.service-compare li small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.service-divider { position: relative; background: linear-gradient(transparent, var(--cyan), transparent); opacity: .52; }
.service-divider i { position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-bright); transform: translate(-50%,-50%); box-shadow: 0 0 16px var(--cyan); }
.service-note { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.service-note svg { width: 18px; height: 18px; color: var(--cyan-bright); flex: none; }

.token-section { padding-block: 126px 110px; }
.token-calculator {
  display: grid;
  grid-template-columns: 1.45fr .9fr;
  margin-top: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(7, 24, 42, .9), rgba(3, 13, 25, .85));
  box-shadow: var(--shadow);
  overflow: hidden;
}
.token-controls { padding: 38px 42px; border-right: 1px solid var(--line); }
.number-controls { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; }
.stepper-group > label,
.thinking-modes legend { display: block; margin-bottom: 12px; color: var(--text-soft); font-size: 13px; }
.stepper { display: grid; grid-template-columns: 52px 1fr 52px; height: 48px; border: 1px solid rgba(90, 151, 213, .44); border-radius: 9px; overflow: hidden; background: rgba(2, 12, 24, .6); }
.stepper button { display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; transition: background .2s ease, color .2s ease; }
.stepper button:first-child { border-right: 1px solid var(--line); }
.stepper button:last-child { border-left: 1px solid var(--line); }
.stepper button:hover { color: var(--cyan-bright); background: rgba(33, 113, 198, .18); }
.stepper button svg { width: 19px; height: 19px; }
.stepper output { display: grid; place-items: center; font-size: 16px; font-weight: 580; }
.stepper-input { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; margin: 0; }
.stepper-input input { width: 72px; padding: 0; border: 0; outline: 0; color: var(--text); background: transparent; text-align: right; font-size: 17px; font-weight: 650; appearance: textfield; }
.stepper-input input::-webkit-inner-spin-button,
.stepper-input input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.stepper-input span { color: var(--text-soft); font-size: 14px; }
.stepper-input:focus-within { background: rgba(38, 117, 204, .1); box-shadow: inset 0 0 0 1px var(--cyan); }

.thinking-modes { display: grid; gap: 10px; margin: 30px 0 0; padding: 0; border: 0; }
.thinking-modes legend { padding: 0; }
.thinking-modes label {
  display: grid;
  grid-template-columns: 22px 42px 90px 100px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  padding: 12px 20px;
  border: 1px solid rgba(90, 151, 213, .4);
  border-radius: 10px;
  background: rgba(2, 12, 24, .42);
  cursor: pointer;
  transition: all .2s ease;
}
.thinking-modes label:hover { border-color: var(--cyan); background: rgba(13, 50, 88, .26); }
.thinking-modes label.is-selected { border-color: var(--violet); background: linear-gradient(90deg, rgba(34, 91, 190, .18), rgba(89, 38, 156, .13)); box-shadow: inset 0 0 0 1px rgba(83, 164, 255, .16); }
.thinking-modes input { position: absolute; opacity: 0; pointer-events: none; }
.mode-radio { width: 18px; height: 18px; border: 1px solid #6d84a4; border-radius: 50%; box-shadow: inset 0 0 0 4px transparent; }
.is-selected .mode-radio { border-color: var(--violet); background: var(--cyan); box-shadow: inset 0 0 0 4px #0e2350, 0 0 12px var(--cyan); }
.mode-icon { color: var(--cyan); }
.mode-icon svg { width: 34px; height: 34px; }
.thinking-modes strong { font-size: 15px; }
.thinking-modes em { color: #ecf3ff; font-size: 14px; font-style: normal; }
.thinking-modes small { color: var(--text-soft); font-size: 12px; }

.formula-line { display: flex; align-items: center; gap: 14px; margin-top: 24px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(2, 12, 24, .46); color: var(--text-soft); font-size: 13px; }
.formula-line svg { width: 24px; height: 24px; color: var(--cyan-bright); flex: none; }

.cost-output { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; text-align: center; overflow: hidden; }
.cost-ring { position: absolute; top: 20px; width: 360px; height: 360px; border: 2px solid rgba(37, 139, 255, .35); border-radius: 50%; box-shadow: 0 0 80px rgba(28, 92, 255, .09), inset 0 0 60px rgba(28, 92, 255, .05); }
.cost-ring::before { content: ""; position: absolute; inset: -9px; border: 1px dashed rgba(73, 154, 242, .25); border-radius: inherit; animation: rotate 28s linear infinite; }
.cost-ring i { position: absolute; top: -4px; left: 50%; width: 42%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--cyan)); box-shadow: 0 0 14px var(--cyan); }
@keyframes rotate { to { transform: rotate(360deg); } }
.cost-item { position: relative; z-index: 1; }
.cost-item span { display: block; color: var(--text-soft); font-size: 16px; }
.cost-item strong { display: block; margin-top: 9px; color: var(--cyan); font-size: clamp(44px, 5vw, 68px); letter-spacing: -.04em; }
.cost-item.violet strong { color: #9465ff; }
.cost-separator { position: relative; z-index: 1; width: 74%; height: 1px; margin: 20px 0; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); }
.cost-output .button { position: relative; z-index: 1; margin-top: 28px; }
.cost-output p { position: relative; z-index: 1; margin: 14px 0 0; color: var(--muted); font-size: 11px; }

.deployment-section { padding-block: 110px 80px; }
.deployment-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 50px 0 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(4, 17, 31, .6);
  list-style: none;
}
.deployment-rail li { position: relative; min-width: 0; padding: 34px 32px 32px 112px; border-right: 1px solid var(--line); }
.deployment-rail li:last-child { border-right: 0; }
.deployment-rail li:not(:last-child)::after { content: ""; position: absolute; z-index: 2; top: 50%; right: -7px; width: 12px; height: 12px; border-top: 1px solid var(--violet); border-right: 1px solid var(--violet); background: #061528; transform: translateY(-50%) rotate(45deg); }
.step-number { display: block; color: var(--cyan); font-size: 12px; letter-spacing: .12em; }
.step-icon { position: absolute; left: 30px; top: 50%; display: grid; place-items: center; width: 60px; height: 60px; color: var(--cyan-bright); border: 1px solid var(--line-strong); border-radius: 50%; transform: translateY(-50%); }
.step-icon svg { width: 32px; height: 32px; }
.deployment-rail h3 { margin: 7px 0 7px; font-size: 17px; }
.deployment-rail p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }

.closing-cta {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 35px 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: linear-gradient(105deg, rgba(12, 48, 83, .74), rgba(4, 16, 30, .75));
}
.closing-cta img { width: 64px; height: 64px; object-fit: contain; }
.closing-cta h2 { margin: 0; font-size: clamp(24px, 2.7vw, 39px); line-height: 1.2; letter-spacing: -.03em; }
.closing-cta > div { display: flex; gap: 12px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 100px;
  border-top: 1px solid rgba(88, 152, 216, .19);
  color: var(--muted);
  font-size: 11px;
}
.footer-brand { color: var(--text); font-size: 17px; }
.footer-brand img { width: 31px; height: 31px; }
.site-footer p { margin: 0; }
.site-footer p:last-child { justify-self: end; }

.quote-dialog {
  width: min(620px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--text);
  background: linear-gradient(145deg, #071a2e, #030c18);
  box-shadow: 0 36px 100px rgba(0, 0, 0, .7), 0 0 55px rgba(32, 116, 255, .18);
}
.quote-dialog::backdrop { background: rgba(0, 5, 13, .8); backdrop-filter: blur(12px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 28px 30px 22px; border-bottom: 1px solid var(--line); }
.dialog-head small { color: var(--cyan); font-size: 9px; letter-spacing: .18em; }
.dialog-head h2 { margin: 6px 0 0; font-size: 28px; }
.dialog-head button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.dialog-head button svg { width: 18px; height: 18px; }
.quote-preview { padding: 24px 30px; }
.quote-preview dl { display: grid; grid-template-columns: 1fr auto; gap: 15px 20px; margin: 0; }
.quote-preview dt { color: var(--text-soft); font-size: 13px; }
.quote-preview dd { margin: 0; font-size: 14px; font-weight: 620; }
.quote-preview .quote-total { padding-top: 15px; border-top: 1px solid var(--line); color: var(--cyan-bright); font-size: 20px; }
.dialog-note { margin: 0; padding: 0 30px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 12px; padding: 22px 30px 28px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 3px; }

@media (max-width: 1250px) {
  .hero { grid-template-columns: .9fr 1.2fr; gap: 40px; }
  .hero-proof { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .hero-proof li:nth-child(odd) { padding-left: 0; }
  .hero-proof li:nth-child(even) { padding-left: 18px; padding-right: 0; }
  .price-summary { grid-template-columns: repeat(4, 1fr); }
  .summary-button { grid-column: 1 / -1; margin: 22px 0 0; }
  .summary-total { border-right: 0; }
  .service-compare { gap: 34px; padding-inline: 34px; }
  .service-compare li { grid-template-columns: 26px 1fr; padding-block: 9px; }
  .service-compare li small { grid-column: 2; }
  .deployment-rail li { padding-left: 94px; }
  .step-icon { left: 22px; }
}

@media (max-width: 1020px) {
  .section-shell { width: min(100% - 40px, var(--max)); }
  .site-header { grid-template-columns: 1fr auto; padding-inline: 20px; }
  .desktop-nav, .header-cta { display: none; }
  .menu-button { display: grid; gap: 6px; width: 42px; height: 42px; place-content: center; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 20, 36, .75); cursor: pointer; }
  .menu-button span { display: block; width: 20px; height: 1px; background: white; transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .mobile-nav { position: absolute; top: 76px; left: 20px; right: 20px; display: none; padding: 18px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(3, 14, 27, .97); box-shadow: var(--shadow); }
  .mobile-nav.is-open { display: grid; }
  .mobile-nav a { padding: 13px 10px; border-bottom: 1px solid var(--line); font-size: 14px; }
  .mobile-nav .button { margin-top: 14px; }

  .hero { grid-template-columns: 1fr; max-height: none; min-height: auto; padding-top: 88px; }
  .hero-copy { max-width: 760px; }
  .hero-visual { width: min(820px, 100%); margin-inline: auto; }
  .system-rail { grid-template-columns: 1fr 1fr; gap: 34px; }
  .rail-line { display: none; }
  .local-boundary { grid-template-columns: 1fr; gap: 24px; }
  .price-summary { grid-template-columns: 1fr 1fr; gap: 25px 0; }
  .summary-item:nth-child(2), .summary-total { border-right: 0; }
  .summary-item:nth-child(3), .summary-total { border-top: 1px solid var(--line); padding-top: 22px; }
  .service-compare { grid-template-columns: 1fr; }
  .service-divider { height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); }
  .token-calculator { grid-template-columns: 1fr; }
  .token-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .cost-output { min-height: 520px; }
  .deployment-rail { grid-template-columns: 1fr 1fr; }
  .deployment-rail li:nth-child(2) { border-right: 0; }
  .deployment-rail li:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .deployment-rail li:nth-child(2)::after { display: none; }
  .closing-cta { grid-template-columns: 58px 1fr; }
  .closing-cta > div { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 680px) {
  .section-shell { width: min(100% - 28px, var(--max)); }
  .site-header { height: 66px; }
  .brand { font-size: 18px; }
  .brand img { width: 33px; height: 33px; }
  .mobile-nav { top: 66px; left: 14px; right: 14px; }
  .button { min-height: 46px; padding-inline: 18px; font-size: 13px; }

  .hero { padding-block: 62px 54px; gap: 48px; }
  .hero h1 { font-size: clamp(43px, 13vw, 58px); white-space: normal; }
  .hero-lead { margin-top: 24px; font-size: 22px; }
  .hero-body { font-size: 14px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .button { min-width: 0; padding-inline: 12px; }
  .hero-proof { margin-top: 36px; }
  .hero-proof li { grid-template-columns: 28px 1fr; padding-inline: 8px; }
  .proof-icon svg { width: 23px; height: 23px; }
  .hero-proof strong { font-size: 12px; }
  .hero-proof small { white-space: normal; font-size: 9px; }
  .visual-frame { padding: 7px; }
  .visual-caption { padding-inline: 4px; font-size: 8px; }

  .system-band, .pricing-section, .token-section, .deployment-section { padding-block: 84px; }
  .services-section { padding-block: 40px 84px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading p { font-size: 14px; }
  .services-section .section-heading h2 { white-space: normal; }
  .system-rail { grid-template-columns: 1fr 1fr; margin-top: 38px; padding: 24px 14px; gap: 34px 8px; }
  .rail-icon { width: 48px; height: 48px; }
  .rail-icon svg { width: 27px; height: 27px; }
  .local-boundary { padding-inline: 22px; }

  .pricing-panel { padding: 18px; margin-top: 32px; }
  .scale-tabs { overflow-x: auto; padding-bottom: 5px; }
  .scale-tabs button { min-width: 92px; }
  .price-summary { grid-template-columns: 1fr; padding: 20px; gap: 0; }
  .summary-item, .summary-total { padding: 18px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .summary-item:first-child { padding-top: 0; }
  .summary-item:nth-child(3), .summary-total { border-top: 0; }
  .summary-total { border-bottom: 0; }
  .summary-button { margin-top: 10px; }
  .hardware-line { grid-template-columns: 52px 1fr; align-items: start; gap: 14px; padding: 18px; }
  .hardware-icon { width: 48px; height: 48px; border-radius: 12px; }
  .hardware-icon svg { width: 33px; height: 26px; }
  .hardware-copy > span, .hardware-copy strong { display: block; margin-right: 0; }
  .hardware-copy strong { margin-top: 6px; font-size: 14px; line-height: 1.45; }
  .hardware-price { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; min-width: 0; padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .hardware-price small { margin-right: auto; }
  .hardware-price em { font-size: 24px; }

  .service-compare { gap: 28px; margin-top: 36px; padding: 25px 20px; }
  .service-title { gap: 13px; }
  .service-icon { width: 50px; height: 50px; }
  .service-title h3 { font-size: 19px; }
  .service-note { align-items: flex-start; line-height: 1.6; }

  .token-controls { padding: 24px 18px; }
  .number-controls { grid-template-columns: 1fr; gap: 20px; }
  .thinking-modes label { grid-template-columns: 20px 36px 1fr auto; gap: 8px; padding: 13px 12px; }
  .thinking-modes small { grid-column: 3 / -1; }
  .thinking-modes em { font-size: 12px; }
  .formula-line { align-items: flex-start; font-size: 11px; line-height: 1.6; }
  .cost-output { min-height: 460px; padding-inline: 18px; }
  .cost-ring { width: 320px; height: 320px; }
  .cost-output .button { width: 100%; }

  .deployment-rail { grid-template-columns: 1fr; }
  .deployment-rail li { border-right: 0; border-bottom: 1px solid var(--line); }
  .deployment-rail li:last-child { border-bottom: 0; }
  .deployment-rail li::after { display: none; }
  .closing-cta { grid-template-columns: 48px 1fr; padding: 26px 22px; }
  .closing-cta img { width: 48px; height: 48px; }
  .closing-cta > div { display: grid; grid-template-columns: 1fr 1fr; }
  .closing-cta .button { padding-inline: 10px; }

  .site-footer { grid-template-columns: 1fr; gap: 14px; padding-block: 26px; text-align: left; }
  .site-footer p:last-child { justify-self: start; }
  .dialog-actions { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
