/* Gauge Sweep components. Built only from tokens.css. */

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

html { -webkit-text-size-adjust: 100%; }

body.gs {
  margin: 0;
  background: var(--gs-void);
  color: var(--gs-text);
  font-family: var(--gs-font);
  font-size: var(--gs-text-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: inherit; }
.gs img, .gs svg { max-width: 100%; }

.gs-container {
  width: 100%;
  max-width: var(--gs-container);
  margin: 0 auto;
  padding: 0 var(--gs-gutter);
}

/* ---------- Type ---------- */

.gs-hero-title {
  font-size: var(--gs-text-hero);
  font-weight: var(--gs-weight-regular);
  letter-spacing: var(--gs-track-hero);
  line-height: 1.02;
  margin: 0;
}

.gs-h2 {
  font-size: var(--gs-text-h2);
  font-weight: var(--gs-weight-regular);
  letter-spacing: var(--gs-track-h2);
  line-height: 1.08;
  margin: 0;
}

.gs-h3 {
  font-size: var(--gs-text-h3);
  font-weight: var(--gs-weight-medium);
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0;
}

.gs-lead {
  font-size: var(--gs-text-lead);
  color: var(--gs-soft);
  line-height: 1.55;
  max-width: 560px;
  margin: 0;
}

.gs-muted { color: var(--gs-soft); }

.gs-eyebrow {
  font-family: var(--gs-mono);
  font-size: var(--gs-text-micro);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gs-soft);
}

.gs-figure {
  font-size: var(--gs-text-figure);
  font-weight: var(--gs-weight-light);
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.gs-figure--sweep {
  background: var(--gs-sweep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gs-sweep-text {
  background: var(--gs-sweep-rev);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gs-mono { font-family: var(--gs-mono); font-size: var(--gs-text-small); }

/* ---------- Buttons ---------- */

.gs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gs-space-2);
  height: 40px;
  padding: 0 var(--gs-space-4);
  border-radius: var(--gs-radius);
  border: 1px solid var(--gs-line-strong);
  background: var(--gs-void);
  color: var(--gs-text);
  font-family: var(--gs-font);
  font-size: 14px;
  font-weight: var(--gs-weight-medium);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.gs-btn:hover { border-color: var(--gs-soft); background: var(--gs-raise); }
.gs-btn:focus-visible { outline: none; box-shadow: var(--gs-focus); }

.gs-btn--primary { background: var(--gs-text); color: var(--gs-void); border-color: var(--gs-text); }
.gs-btn--primary:hover { background: #FFFFFF; border-color: #FFFFFF; }

.gs-btn--sweep {
  position: relative;
  border: 1px solid transparent;
  background: linear-gradient(var(--gs-void), var(--gs-void)) padding-box, var(--gs-sweep-rev) border-box;
}
.gs-btn--sweep:hover { background: linear-gradient(var(--gs-raise), var(--gs-raise)) padding-box, var(--gs-sweep-rev) border-box; }

.gs-btn--lg { height: 48px; padding: 0 var(--gs-space-5); font-size: 15px; }
.gs-btn--block { width: 100%; }

/* Command capsule, like a copyable install line */
.gs-capsule {
  display: inline-flex;
  align-items: center;
  gap: var(--gs-space-3);
  height: 40px;
  padding: 0 var(--gs-space-2) 0 var(--gs-space-4);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius-pill);
  font-family: var(--gs-mono);
  font-size: var(--gs-text-small);
  color: var(--gs-text);
  white-space: nowrap;
  max-width: 100%;
}
.gs-capsule__prompt { color: var(--gs-faint); }
.gs-capsule__copy {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: var(--gs-radius-pill);
  background: var(--gs-raise);
  color: var(--gs-soft);
  border: 0;
  cursor: pointer;
}

/* ---------- Nav ---------- */

.gs-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.gs-nav.is-scrolled { border-bottom-color: var(--gs-line); }
.gs-nav__inner {
  display: flex;
  align-items: center;
  gap: var(--gs-space-5);
  height: 64px;
}
.gs-nav__links { display: flex; gap: var(--gs-space-5); font-size: 14px; color: var(--gs-soft); }
.gs-nav__links a { text-decoration: none; }
.gs-nav__links a:hover { color: var(--gs-text); }
.gs-nav__actions { margin-left: auto; display: flex; gap: var(--gs-space-2); align-items: center; }
.gs-nav__search {
  display: inline-flex; align-items: center; gap: var(--gs-space-6);
  height: 32px; padding: 0 var(--gs-space-2) 0 var(--gs-space-3);
  border: 1px solid var(--gs-line); border-radius: var(--gs-radius);
  font-size: var(--gs-text-small); color: var(--gs-soft);
}
.gs-kbd {
  font-family: var(--gs-mono); font-size: 11px; color: var(--gs-soft);
  border: 1px solid var(--gs-line); border-radius: 4px; padding: 1px 5px;
}
.gs-nav .gs-btn { height: 32px; padding: 0 var(--gs-space-3); font-size: 13px; }

.gs-logo {
  display: inline-flex; align-items: center; gap: var(--gs-space-2);
  font-weight: var(--gs-weight-bold); letter-spacing: 0.02em; text-decoration: none;
  text-transform: uppercase; font-size: 15px;
}
.gs-logo__mark { width: 22px; height: 22px; }

/* ---------- Hero and gauge ---------- */

.gs-hero { padding: var(--gs-space-9) 0 var(--gs-space-8); }
.gs-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--gs-space-7);
  align-items: center;
}
.gs-hero__copy { display: grid; gap: var(--gs-space-5); justify-items: start; }

.gs-tabs { display: inline-flex; gap: var(--gs-space-1); font-size: var(--gs-text-small); }
.gs-tabs__tab {
  padding: 4px 10px; border-radius: var(--gs-radius-sm); color: var(--gs-soft);
  border: 0; background: none; font: inherit; cursor: pointer;
}
.gs-tabs__tab.is-on { background: var(--gs-raise); color: var(--gs-text); }

.gs-gauge { position: relative; width: 100%; max-width: 460px; margin-left: auto; aspect-ratio: 300 / 250; }
.gs-gauge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.gs-gauge__track { fill: none; stroke: var(--gs-raise); stroke-width: 26; }
.gs-gauge__arc { fill: none; stroke-width: 26; filter: drop-shadow(0 0 14px rgba(154, 107, 234, 0.45)); }
.gs-gauge__ticks { fill: none; stroke: var(--gs-void); stroke-width: 26; stroke-dasharray: 1.6 17.2; }
.gs-gauge__minor { fill: none; stroke: var(--gs-faint); stroke-width: 5; stroke-dasharray: 0.8 6.6; }
.gs-gauge__needle {
  transform-box: view-box;
  transform-origin: 150px 150px;
  transform: rotate(var(--gs-needle, -30deg));
  animation: gs-needle 1.6s cubic-bezier(.2,.8,.2,1) both;
}
.gs-gauge__needle line { stroke: var(--gs-text); stroke-width: 4; stroke-linecap: round; }
.gs-gauge__hub { fill: var(--gs-raise); stroke: var(--gs-text); stroke-width: 5; }
.gs-gauge__label {
  position: absolute; left: 0; right: 0; bottom: 0;
  text-align: center; font-family: var(--gs-mono); font-size: var(--gs-text-small); color: var(--gs-soft);
}
.gs-gauge__label strong { display: block; font-family: var(--gs-font); font-weight: var(--gs-weight-light); font-size: 34px; color: var(--gs-text); letter-spacing: -0.03em; }

@keyframes gs-needle { from { transform: rotate(135deg); } }

/* Small gauge for cards */
.gs-gauge--mini { max-width: 160px; margin: 0 auto; }

/* ---------- Stats ---------- */

.gs-stats {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--gs-space-6);
  padding: var(--gs-space-8) 0;
}
.gs-stat { display: grid; gap: var(--gs-space-2); align-content: start; }
.gs-stat__label { font-size: var(--gs-text-small); color: var(--gs-soft); }

/* Sweep meter bar */
.gs-meter { height: 6px; border-radius: var(--gs-radius-pill); background: var(--gs-raise); overflow: hidden; }
.gs-meter__fill { height: 100%; width: var(--gs-fill, 60%); background: var(--gs-sweep-rev); border-radius: inherit; }

/* ---------- Sections and tiles ---------- */

.gs-section { padding: var(--gs-space-8) 0; }
.gs-section__head { display: flex; justify-content: space-between; align-items: end; gap: var(--gs-space-5); margin-bottom: var(--gs-space-6); flex-wrap: wrap; }
.gs-section__head > div { display: grid; gap: var(--gs-space-3); }

.gs-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gs-space-3); }

.gs-tile { display: grid; gap: var(--gs-space-4); align-content: start; }
.gs-tile__stage {
  min-height: 230px;
  display: grid; place-items: center;
  padding: var(--gs-space-5);
  background: var(--gs-void);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius-card);
  overflow: hidden;
}
.gs-tile__text { display: grid; gap: var(--gs-space-2); padding-right: var(--gs-space-5); }
.gs-tile__text p { margin: 0; color: var(--gs-soft); font-size: 14px; }

/* Readout: a little terminal-like panel inside a tile */
.gs-readout {
  width: 100%; max-width: 300px;
  background: var(--gs-panel);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius);
  font-family: var(--gs-mono);
  font-size: 12px;
  color: var(--gs-soft);
  overflow: hidden;
}
.gs-readout__bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--gs-line); }
.gs-readout__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--gs-line-strong); }
.gs-readout__body { padding: 12px; display: grid; gap: 6px; }
.gs-readout__row { display: flex; justify-content: space-between; gap: var(--gs-space-3); }
.gs-ok { color: var(--gs-mint); }
.gs-hot { color: var(--gs-coral); }
.gs-cool { color: var(--gs-cobalt); }
.gs-warm { color: var(--gs-amber); }

.gs-chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px;
  border: 1px solid var(--gs-line); border-radius: var(--gs-radius-pill);
  font-family: var(--gs-mono); font-size: 11.5px; color: var(--gs-soft);
  white-space: nowrap;
}
.gs-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gs-mint); }
.gs-chip--hot::before { background: var(--gs-coral); }
.gs-chip--cool::before { background: var(--gs-cobalt); }
.gs-chip--plain::before { display: none; }

/* Code card */
.gs-code {
  margin: 0;
  padding: var(--gs-space-5);
  background: var(--gs-void);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius-card);
  font-family: var(--gs-mono);
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--gs-text);
  overflow-x: auto;
}
.gs-code .c { color: var(--gs-faint); }
.gs-code .k { color: var(--gs-orchid); }
.gs-code .s { color: var(--gs-mint); }
.gs-code .n { color: var(--gs-cobalt); }

/* Quote */
.gs-quote { margin: 0; display: grid; gap: var(--gs-space-4); padding: var(--gs-space-5); border: 1px solid var(--gs-line); border-radius: var(--gs-radius-card); }
.gs-quote p { margin: 0; font-size: 17px; line-height: 1.5; }
.gs-quote__who { display: flex; align-items: center; gap: var(--gs-space-3); font-size: var(--gs-text-small); color: var(--gs-soft); }
.gs-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gs-sweep); flex: none; }

/* CTA band */
.gs-cta {
  position: relative;
  display: grid; justify-items: center; gap: var(--gs-space-5);
  text-align: center;
  padding: var(--gs-space-9) var(--gs-space-5);
  border-top: 1px solid var(--gs-line);
  overflow: hidden;
}
.gs-cta::before {
  content: ""; position: absolute; left: 50%; top: 100%;
  width: 900px; height: 900px; max-width: 200vw; transform: translate(-50%, -32%);
  border-radius: 50%;
  background: conic-gradient(from 225deg, var(--gs-cobalt), var(--gs-orchid), var(--gs-coral), transparent 75%);
  opacity: 0.22; filter: blur(60px); pointer-events: none;
}
.gs-cta > * { position: relative; }

/* ---------- Pricing ---------- */

.gs-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--gs-line); border-radius: var(--gs-radius); }
.gs-toggle button {
  height: 30px; padding: 0 var(--gs-space-3); border: 0; border-radius: var(--gs-radius-sm);
  background: none; color: var(--gs-soft); font: inherit; font-size: var(--gs-text-small); cursor: pointer; white-space: nowrap;
}
.gs-toggle button.is-on { background: var(--gs-raise); color: var(--gs-text); }

.gs-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gs-space-3); }
.gs-plan {
  display: grid; gap: var(--gs-space-5); align-content: start;
  padding: var(--gs-space-6);
  background: var(--gs-void);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius-card);
}
.gs-plan--featured {
  border: 1px solid transparent;
  background: linear-gradient(var(--gs-panel), var(--gs-panel)) padding-box, var(--gs-sweep-rev) border-box;
}
.gs-plan__name { display: flex; justify-content: space-between; align-items: center; gap: var(--gs-space-3); }
.gs-plan__price { display: flex; align-items: baseline; gap: var(--gs-space-2); }
.gs-plan__price .gs-figure { font-size: 56px; }
.gs-plan__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gs-space-3); font-size: 14px; color: var(--gs-soft); }
.gs-plan__list li { display: flex; gap: var(--gs-space-3); }
.gs-plan__list li::before { content: "+"; font-family: var(--gs-mono); color: var(--gs-cobalt); }

.gs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gs-table th, .gs-table td { padding: 14px 12px; border-bottom: 1px solid var(--gs-line); text-align: left; }
.gs-table th { font-family: var(--gs-mono); font-weight: var(--gs-weight-regular); font-size: var(--gs-text-micro); letter-spacing: 0.08em; text-transform: uppercase; color: var(--gs-soft); }
.gs-table td:not(:first-child), .gs-table th:not(:first-child) { text-align: center; }
.gs-table-wrap { overflow-x: auto; border: 1px solid var(--gs-line); border-radius: var(--gs-radius-card); }

.gs-faq { display: grid; border-top: 1px solid var(--gs-line); }
.gs-faq details { border-bottom: 1px solid var(--gs-line); padding: var(--gs-space-5) 0; }
.gs-faq summary { cursor: pointer; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: var(--gs-space-4); }
.gs-faq summary::after { content: "+"; font-family: var(--gs-mono); color: var(--gs-soft); }
.gs-faq details[open] summary::after { content: "-"; }
.gs-faq p { margin: var(--gs-space-3) 0 0; color: var(--gs-soft); max-width: 640px; }

/* ---------- Article ---------- */

.gs-article { max-width: var(--gs-article); margin: 0 auto; padding: var(--gs-space-8) var(--gs-gutter); }
.gs-article__meta { display: flex; flex-wrap: wrap; gap: var(--gs-space-3); align-items: center; font-family: var(--gs-mono); font-size: 12px; color: var(--gs-soft); }
.gs-article__body { font-size: 17px; line-height: 1.75; color: #CFCFD4; }
.gs-article__body h2 { font-size: 28px; font-weight: var(--gs-weight-regular); letter-spacing: -0.02em; color: var(--gs-text); margin: var(--gs-space-7) 0 var(--gs-space-3); line-height: 1.2; }
.gs-article__body p { margin: 0 0 var(--gs-space-5); }
.gs-article__body a { color: var(--gs-text); text-decoration-color: var(--gs-cobalt); text-underline-offset: 3px; }
.gs-article__body code { font-family: var(--gs-mono); font-size: 0.86em; padding: 2px 6px; border-radius: 4px; background: var(--gs-raise); color: var(--gs-text); }
.gs-article__body blockquote { margin: var(--gs-space-6) 0; padding-left: var(--gs-space-5); border-left: 2px solid var(--gs-orchid); color: var(--gs-text); font-size: 20px; line-height: 1.5; }
.gs-figure-card { margin: var(--gs-space-6) 0; display: grid; gap: var(--gs-space-3); }
.gs-figure-card figcaption { font-family: var(--gs-mono); font-size: 12px; color: var(--gs-faint); }

/* ---------- Forms ---------- */

.gs-form { display: grid; gap: var(--gs-space-4); }
.gs-field { display: grid; gap: var(--gs-space-2); }
.gs-label { font-size: var(--gs-text-small); color: var(--gs-soft); }
.gs-input, .gs-select {
  height: 44px; width: 100%;
  padding: 0 var(--gs-space-3);
  background: var(--gs-panel);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius);
  color: var(--gs-text);
  font: inherit; font-size: 15px;
}
.gs-input::placeholder { color: var(--gs-faint); }
.gs-input:focus, .gs-select:focus { outline: none; border-color: var(--gs-cobalt); box-shadow: 0 0 0 3px var(--gs-cobalt-soft); }
.gs-hint { font-family: var(--gs-mono); font-size: 11.5px; color: var(--gs-faint); }
.gs-check { display: flex; gap: var(--gs-space-3); align-items: start; font-size: 14px; color: var(--gs-soft); }
.gs-check input { accent-color: var(--gs-cobalt); margin-top: 4px; }
.gs-divider { display: flex; align-items: center; gap: var(--gs-space-3); font-family: var(--gs-mono); font-size: 11px; color: var(--gs-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.gs-divider::before, .gs-divider::after { content: ""; flex: 1; height: 1px; background: var(--gs-line); }

.gs-panel {
  padding: var(--gs-space-6);
  background: var(--gs-void);
  border: 1px solid var(--gs-line);
  border-radius: var(--gs-radius-card);
}

/* ---------- Footer ---------- */

.gs-footer { border-top: 1px solid var(--gs-line); padding: var(--gs-space-7) 0 var(--gs-space-6); font-size: 14px; color: var(--gs-soft); }
.gs-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: var(--gs-space-6); }
.gs-footer__col { display: grid; gap: var(--gs-space-2); align-content: start; }
.gs-footer__col a { text-decoration: none; }
.gs-footer__col a:hover { color: var(--gs-text); }
.gs-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--gs-space-3); margin-top: var(--gs-space-7); font-family: var(--gs-mono); font-size: 12px; color: var(--gs-faint); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .gs-hero__grid { grid-template-columns: 1fr; }
  .gs-gauge { margin: 0 auto; }
  .gs-stats { grid-template-columns: 1fr 1fr; }
  .gs-stats .gs-stat:first-child { grid-column: 1 / -1; }
  .gs-tiles, .gs-plans { grid-template-columns: 1fr; }
  .gs-footer__grid { grid-template-columns: 1fr 1fr; }
  .gs-nav__links, .gs-nav__search { display: none; }
}

@media (max-width: 520px) {
  .gs-hero { padding-top: var(--gs-space-8); }
  .gs-nav__login { display: none; }
  .gs-plan { padding: var(--gs-space-5); }
}

@media (prefers-reduced-motion: reduce) {
  .gs-gauge__needle { animation: none; }
}
