/* ============================================================
   ctxc — landing page
   ============================================================ */

:root {
  --bg: #070908;
  --bg-soft: #0a0d0b;
  --panel: #0d1210;
  --panel-2: #101613;
  --line: rgba(255, 255, 255, 0.075);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #eef2ec;
  --muted: #98a39a;
  --dim: #68736b;
  --accent: #c8ff3d;
  --accent-soft: rgba(200, 255, 61, 0.1);
  --accent-2: #8de9c3;
  --danger: #ff8a75;
  --radius: 16px;
  --mono: "Cascadia Code", "Cascadia Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;
  --sans: "Segoe UI Variable Display", "Segoe UI", "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

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

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1000px 560px at 8% -12%, rgba(200, 255, 61, 0.10), transparent 62%),
    radial-gradient(900px 520px at 96% -8%, rgba(141, 233, 195, 0.07), transparent 60%),
    var(--bg);
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 5%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 5%, transparent 78%);
  pointer-events: none;
}

::selection {
  background: rgba(200, 255, 61, 0.22);
  color: #fff;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
img, svg { display: block; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

.dim { color: var(--dim); }
.accent { color: var(--accent); }

code {
  font-family: var(--mono);
  font-size: 0.92em;
  color: var(--accent-2);
}

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

.skip {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--accent);
  color: #111;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

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

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.2s, color 0.2s;
}

.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}

.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: #0b1006;
  border-color: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0);
}
.btn-primary:hover {
  background: #d4ff66;
  transform: translateY(-1px);
  box-shadow: 0 8px 30px -10px rgba(200, 255, 61, 0.55);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-sm {
  height: 40px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 8px;
}

/* ============================================================
   Header
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 9, 8, 0.72);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s, background 0.3s;
}
.site-header.scrolled {
  background: rgba(7, 9, 8, 0.88);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}
.brand-mark svg {
  display: block;
  height: 26px;
  width: auto;
}
.brand:hover .brand-mark { color: var(--accent); }
.brand-name {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.brand-ver {
  margin-left: 2px;
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-toggle span:first-child { top: 16px; }
.nav-toggle span:last-child { top: 22px; }
.site-header.nav-open .nav-toggle span:first-child { top: 19px; transform: rotate(45deg); }
.site-header.nav-open .nav-toggle span:last-child { top: 19px; transform: rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 96px 0 92px;
  overflow: hidden;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 64px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 26px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(200, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 255, 61, 0); }
}

.hero h1 {
  font-size: clamp(3rem, 5.5vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  font-weight: 680;
  margin-bottom: 26px;
}
.hero h1 .accent {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(200, 255, 61, 0.22);
}

.lead {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 34px;
}

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

.hero-note {
  margin: 0 0 34px;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.01em;
  color: var(--dim);
}
.hero-note a {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(141, 233, 195, 0.28);
  transition: color 0.2s, border-color 0.2s;
}
.hero-note a:hover {
  color: var(--accent);
  border-color: rgba(200, 255, 61, 0.45);
}

.hero-facts {
  display: flex;
  align-items: stretch;
  gap: 26px;
  max-width: 430px;
}.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 26px;
  border-right: 1px solid var(--line);
}
.hero-facts li:last-child {
  border-right: 0;
  padding-right: 0;
}
.hero-facts strong {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--text);
}
.hero-facts span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Terminal */

.hero-visual {
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: -18% -12%;
  background: radial-gradient(closest-side, rgba(200, 255, 61, 0.10), transparent 72%);
  z-index: -1;
  pointer-events: none;
}

.terminal {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, #0e1410 0%, #090c0a 100%);
  box-shadow:
    0 40px 100px -30px rgba(0, 0, 0, 0.9),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.6s var(--ease);
}
.terminal:hover {
  transform: perspective(1400px) rotateY(0deg) rotateX(0deg);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.tdots { display: flex; gap: 6px; }
.tdots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}
.terminal-path {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.terminal-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.terminal-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(200, 255, 61, 0.8);
}

.terminal-body {
  padding: 18px 20px 22px;
  font-family: var(--mono);
  font-size: 11.8px;
  line-height: 1.85;
  color: #c9d4ca;
  overflow-x: auto;
}
.tline {
  white-space: pre-wrap;
  word-break: break-word;
  opacity: 0;
  transform: translateY(4px);
  animation: lineIn 0.5s var(--ease) forwards;
}
.tline:nth-child(1) { animation-delay: 0.15s; }
.tline:nth-child(2) { animation-delay: 0.23s; }
.tline:nth-child(3) { animation-delay: 0.31s; }
.tline:nth-child(4) { animation-delay: 0.39s; }
.tline:nth-child(5) { animation-delay: 0.49s; }
.tline:nth-child(6) { animation-delay: 0.57s; }
.tline:nth-child(7) { animation-delay: 0.65s; }
.tline:nth-child(8) { animation-delay: 0.73s; }
.tline:nth-child(9) { animation-delay: 0.81s; }
.tline:nth-child(10) { animation-delay: 0.89s; }
.tline:nth-child(11) { animation-delay: 0.97s; }
.tline:nth-child(12) { animation-delay: 1.07s; }
.tline:nth-child(13) { animation-delay: 1.17s; }

@keyframes lineIn {
  to { opacity: 1; transform: none; }
}

.tline.gap { margin-top: 9px; }
.tline.indent { padding-left: 18px; }
.tline.rule { color: rgba(255, 255, 255, 0.1); letter-spacing: 0.02em; }
.prompt { color: var(--accent); }
.cmd { color: #ffffff; font-weight: 600; }
.acc { color: var(--accent); }
.ok { color: var(--accent-2); }
.cy { color: var(--accent-2); }
.err { color: var(--danger); }
.tline.exact {
  position: relative;
  margin-top: 6px;
  padding: 5px 10px 5px 24px;
  border-radius: 7px;
  background: rgba(200, 255, 61, 0.07);
  border: 1px solid rgba(200, 255, 61, 0.16);
  color: #e6ffc9;
  font-size: 11.4px;
  line-height: 1.7;
}
.cursor {
  position: absolute;
  left: 10px;
  top: 50%;
  width: 6px;
  height: 12px;
  margin-top: -6px;
  background: var(--accent);
  animation: blink 1.15s steps(2, start) infinite;
}
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.float-chip {
  position: absolute;
  z-index: 2;
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(18, 25, 20, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, 0.9);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--accent);
  animation: floaty 7s ease-in-out infinite;
}
.float-chip-a {
  top: -15px;
  right: -10px;
  transform: rotate(2.5deg);
}
.float-chip-b {
  bottom: -15px;
  left: -14px;
  transform: rotate(-2deg);
  color: var(--accent-2);
  animation-delay: -3.5s;
}
@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* ============================================================
   Ticker
   ============================================================ */

.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  padding: 14px 0;
  animation: marquee 50s linear infinite;
}
.ticker-group {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}
.ticker-group span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--dim);
  white-space: nowrap;
}
.ticker-group .sep {
  color: rgba(200, 255, 61, 0.4);
  font-size: 7px;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   Sections
   ============================================================ */

.section { padding: 112px 0; }

.section-head {
  max-width: 660px;
  margin-bottom: 52px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.section-head h2,
.cta-panel h2 {
  font-size: clamp(2rem, 3.7vw, 3.05rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  font-weight: 660;
  margin-bottom: 16px;
}
.section-head p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}
.section-head p a,
.demo-note a {
  color: var(--accent-2);
  border-bottom: 1px solid rgba(141, 233, 195, 0.28);
  transition: color 0.2s, border-color 0.2s;
}
.section-head p a:hover,
.demo-note a:hover {
  color: var(--accent);
  border-color: rgba(200, 255, 61, 0.45);
}

/* ============================================================
   Steps
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 26px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: border-color 0.3s, transform 0.35s var(--ease), background 0.3s;
}
.step:hover {
  border-color: rgba(200, 255, 61, 0.26);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(200, 255, 61, 0.035), rgba(255, 255, 255, 0.008));
}
.step-num {
  position: absolute;
  top: 14px;
  right: 20px;
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.045);
  letter-spacing: -0.04em;
}
.step h3 {
  font-size: 18px;
  font-weight: 620;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.step p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 22px;
}
.step p code { color: var(--accent-2); }

.code-chip {
  margin-top: auto;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.32);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.55;
  color: #b7c3b8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ============================================================
   Demo
   ============================================================ */

.demo-shell {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, #0d1210, #090c0a);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.demo-pane { padding: 18px 20px 20px; }
.demo-pane:first-child { border-right: 1px solid var(--line); }

.pane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mono-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

.pane-meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
}

.copy {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.copy:disabled {
  opacity: 0.35;
  cursor: default;
}
.copy:disabled:hover {
  color: var(--dim);
  border-color: var(--line);
  background: transparent;
}

#demoInput {
  display: block;
  width: 100%;
  height: 318px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080b09;
  color: #d5dfd6;
  font-size: 11.5px;
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#demoInput:focus {
  border-color: rgba(200, 255, 61, 0.4);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.08);
}
#demoInput::placeholder { color: var(--dim); }

.demo-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.presets { display: flex; flex-wrap: wrap; gap: 6px; }
.preset {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.2s;
}
.preset:hover { color: var(--text); border-color: var(--line-strong); }
.preset.is-active {
  color: var(--accent);
  border-color: rgba(200, 255, 61, 0.35);
  background: rgba(200, 255, 61, 0.07);
}
.demo-controls .btn { margin-left: auto; }

.demo-out {
  height: 318px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #080b09;
  color: #c9d4ca;
  font-size: 11.5px;
  line-height: 1.7;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.demo-out.empty { color: var(--dim); }

.ln.k { color: var(--accent-2); }
.ln.ok { color: var(--accent); }
.ln.h { color: var(--accent-2); }
.ln.err { color: var(--danger); }
.ln.dim { color: var(--dim); }

.savings {
  display: grid;
  grid-template-columns: minmax(180px, 230px) 1fr minmax(120px, 150px);
  align-items: center;
  gap: 26px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  background: rgba(200, 255, 61, 0.025);
}
.savings-copy { display: flex; flex-direction: column; gap: 3px; }
.token-line {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -0.01em;
}
.savings-chart { display: flex; flex-direction: column; gap: 6px; }
.bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  transition: width 0.9s var(--ease);
}
.b-before span { width: 100%; background: rgba(255, 255, 255, 0.16); }
.b-after span { width: 0; background: var(--accent); }

.pct {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: var(--mono);
}
.pct span {
  font-size: 21px;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.pct small {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.savings[hidden] { display: none; }

.get-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 20px 18px;
  border-top: 1px solid var(--line);
}
.get-label { display: flex; flex-direction: column; gap: 2px; }
.get-handle {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--accent-2);
  cursor: pointer;
  transition: color 0.2s;
}
.get-handle:hover { color: var(--accent); }

#getInput {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080b09;
  color: var(--text);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
#getInput:focus {
  border-color: rgba(200, 255, 61, 0.4);
  box-shadow: 0 0 0 3px rgba(200, 255, 61, 0.08);
}
#getInput::placeholder { color: var(--dim); }

.get-out {
  grid-column: 1 / -1;
  max-height: 220px;
  margin: 6px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #080b09;
  color: #c9d4ca;
  font-size: 11.5px;
  line-height: 1.75;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.get-out[hidden] { display: none; }
.gl { color: var(--accent-2); }

.demo-note {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: #7e8a80;
  letter-spacing: 0.01em;
}

/* ============================================================
   Tools
   ============================================================ */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}
.tool-card {
  grid-column: span 2;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.022), rgba(255, 255, 255, 0.006));
  transition: border-color 0.3s, transform 0.35s var(--ease), background 0.3s;
}
.tool-card:nth-child(4),
.tool-card:nth-child(5) { grid-column: span 3; }
.tool-card:hover {
  border-color: rgba(200, 255, 61, 0.24);
  transform: translateY(-3px);
  background: linear-gradient(180deg, rgba(200, 255, 61, 0.03), rgba(255, 255, 255, 0.006));
}
.tool-index {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.16);
}
.tool-card h3 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.tool-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 20px;
}
.tool-card .code-chip { margin-top: auto; }

/* ============================================================
   Integration
   ============================================================ */

.integration { max-width: 900px; }

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.015);
  margin-bottom: 16px;
}
.tab {
  padding: 8px 15px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  cursor: pointer;
  transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.is-active {
  background: rgba(200, 255, 61, 0.1);
  color: var(--accent);
}

.code-panel {
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #080b09;
  overflow: hidden;
}
.code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.code-body {
  margin: 0;
  padding: 20px 22px;
  min-height: 236px;
  max-height: 420px;
  overflow: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: #cbd6cc;
  white-space: pre-wrap;
  word-break: break-word;
}
.code-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--dim);
}
.code-note code { color: var(--muted); }

/* ============================================================
   Invite
   ============================================================ */

.invite-section { padding-top: 0; padding-bottom: 72px; }

.invite-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 30px 32px;
  border: 1px solid rgba(111, 122, 255, 0.26);
  border-radius: 18px;
  background:
    radial-gradient(560px 240px at 6% -10%, rgba(88, 101, 242, 0.16), transparent 72%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.006));
  overflow: hidden;
}
.invite-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 45% 100% at 0% 50%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 45% 100% at 0% 50%, #000, transparent 75%);
  pointer-events: none;
}
.invite-card > * { position: relative; }

.invite-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(111, 122, 255, 0.32);
  border-radius: 15px;
  background: rgba(88, 101, 242, 0.14);
  color: #b9c1ff;
}
.invite-mark svg { width: 28px; height: 28px; }

.invite-copy .eyebrow {
  margin-bottom: 8px;
  color: #aab4ff;
}
.invite-copy h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 640;
  margin-bottom: 8px;
}
.invite-copy p {
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.invite-copy strong {
  color: var(--text);
  font-weight: 600;
}

.invite-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
  min-width: 178px;
}
.invite-actions .btn {
  width: 100%;
  justify-content: center;
}

.discord-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(111, 122, 255, 0.38);
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.11);
  color: #e2e5ff;
  font-family: var(--mono);
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.discord-chip:hover {
  background: rgba(88, 101, 242, 0.18);
  border-color: rgba(111, 122, 255, 0.6);
}
.discord-mini {
  display: inline-flex;
  color: #98a3ff;
}
.discord-mini svg { width: 16px; height: 16px; }
.discord-user { font-weight: 600; letter-spacing: 0.02em; }
.copy-hint {
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.faq details p strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   Why
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.why-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.012);
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.why-card:hover {
  border-color: rgba(141, 233, 195, 0.22);
  background: rgba(141, 233, 195, 0.025);
  transform: translateY(-2px);
}
.why-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(200, 255, 61, 0.05);
  color: var(--accent);
}
.why-icon svg { width: 19px; height: 19px; }
.why-card h3 {
  font-size: 15.5px;
  font-weight: 620;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 13.8px;
  line-height: 1.62;
  color: var(--muted);
}
.why-card code { color: var(--accent-2); font-size: 0.9em; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { max-width: 860px; }
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 21px 2px;
  font-size: 15.5px;
  font-weight: 540;
  letter-spacing: -0.01em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.plus {
  position: relative;
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}
.plus::before,
.plus::after {
  content: "";
  position: absolute;
  background: var(--dim);
  border-radius: 1px;
  transition: background 0.2s;
}
.plus::before {
  left: 0;
  right: 0;
  top: 6px;
  height: 1.5px;
}
.plus::after {
  top: 0;
  bottom: 0;
  left: 6px;
  width: 1.5px;
}
details[open] .plus { transform: rotate(45deg); }
details[open] .plus::before,
details[open] .plus::after { background: var(--accent); }
.faq details p {
  max-width: 720px;
  padding: 0 2px 22px;
  font-size: 14.3px;
  line-height: 1.7;
  color: var(--muted);
}
.faq details p code { color: var(--accent-2); }

/* ============================================================
   CTA + Footer
   ============================================================ */

.cta-section { padding-top: 40px; }

.cta-panel {
  position: relative;
  padding: 76px 40px 68px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(200, 255, 61, 0.09), transparent 70%),
    linear-gradient(180deg, #0d1310, #080b09);
  text-align: center;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 100%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 100%, #000, transparent 75%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel .eyebrow { margin-bottom: 20px; }
.cta-panel h2 {
  font-size: clamp(2.2rem, 4.6vw, 3.7rem);
  margin-bottom: 18px;
}
.cta-panel p {
  max-width: 460px;
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: 15.5px;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.cta-invite-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(141, 233, 195, 0.25);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--accent-2);
  transition: color 0.2s, border-color 0.2s;
}
.cta-invite-link strong {
  color: var(--text);
  font-weight: 600;
}
.cta-invite-link:hover {
  color: var(--accent);
  border-color: rgba(200, 255, 61, 0.45);
}
.cta-note {
  display: block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 88px;
  padding: 44px 0 40px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}
.footer-brand { max-width: 280px; }
.footer-brand .brand-mark svg { height: 22px; }
.footer-brand p {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--dim);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: auto;
  padding-top: 6px;
}
.footer-links a {
  font-size: 12.5px;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-top: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
}

/* ============================================================
   Reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1024px) {
  .hero-grid { gap: 44px; }
  .tool-card { grid-column: span 3; }
  .tool-card:nth-child(5) { grid-column: span 6; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: clamp(2.8rem, 5.4vw, 4rem); }
}

@media (max-width: 900px) {
  .hero { padding: 64px 0 76px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 620px; width: 100%; margin-inline: auto; }
  .terminal { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-pane:first-child {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  #demoInput, .demo-out { height: 270px; }
  .section { padding: 88px 0; }
  .section-head { margin-bottom: 40px; }
  .invite-card {
    grid-template-columns: auto 1fr;
    gap: 22px 24px;
  }
  .invite-actions {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    min-width: 0;
  }
  .invite-actions .btn { width: auto; }
}

@media (max-width: 920px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin: 0;
    padding: 12px 28px 20px;
    background: #080b09;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
  }
  .nav-links a {
    width: 100%;
    padding: 11px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .site-header.nav-open .nav-links { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .header-inner { gap: 16px; }
  .header-actions { margin-left: auto; }
}

@media (max-width: 760px) {
  .container { padding: 0 20px; }
  .tool-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-card,
  .tool-card:nth-child(4),
  .tool-card:nth-child(5) { grid-column: auto; }
  .why-grid { grid-template-columns: 1fr; gap: 14px; }
  .savings {
    grid-template-columns: 1fr auto;
    gap: 14px 20px;
  }
  .savings-chart { grid-column: 1 / -1; grid-row: 2; }
  .pct { grid-row: 1; }
  .get-row {
    grid-template-columns: 1fr auto;
  }
  .get-label {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 26px;
  }
  .footer-links { margin-left: 0; }
  .footer-meta { align-items: flex-start; }
  .cta-panel { padding: 56px 22px 50px; }
  .cta-panel p { font-size: 14.5px; }
  .invite-card { padding: 24px; }
  .invite-actions { flex-wrap: wrap; }
  .discord-chip { flex: 1 1 auto; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.5rem, 10vw, 3.2rem); }
  .lead { font-size: 15.5px; }
  .hero-actions .btn { width: 100%; }
  .hero-facts { gap: 18px; }
  .hero-facts li { padding-right: 18px; }
  .hero-facts strong { font-size: 19px; }
  .hero-facts span { font-size: 9px; }
  .float-chip { display: none; }
  .terminal-body { font-size: 10.5px; padding: 14px 14px 18px; }
  .demo-controls .btn { margin-left: 0; width: 100%; }
  .pane-head { flex-wrap: wrap; }
  #demoInput, .demo-out { height: 240px; }
  .tabs { width: 100%; }
  .tab { flex: 1; padding: 8px 6px; }
  .code-body { padding: 16px; font-size: 11px; }
  .section { padding: 72px 0; }
  .section-head p { font-size: 15px; }
  .faq summary { font-size: 14.5px; gap: 12px; }
  .cta-section { padding-top: 20px; }
  .cta-actions .btn { width: 100%; }
  .site-footer { margin-top: 64px; }
  .invite-card {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px;
  }
  .invite-mark {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }
  .invite-mark svg { width: 24px; height: 24px; }
  .invite-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .invite-actions .btn { width: 100%; }
  .cta-invite-link { font-size: 10px; text-align: center; }
}

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