:root {
  --bg: #0a0b14;
  --bg-alt: #10121e;
  --surface: #151827;
  --surface-2: #1b1f33;
  --border: #2a2e45;
  --text: #eef0fa;
  --text-dim: #a4a9c4;
  --text-faint: #6c7191;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --blue: #4f7cff;
  --gradient: linear-gradient(135deg, #6d5bff 0%, #4f7cff 50%, #22c1c3 100%);
  --radius: 16px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
}

p { color: var(--text-dim); }

a { color: inherit; text-decoration: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(10, 11, 20, 0.75);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

.brand-mark {
  color: var(--purple-light);
  font-size: 1.1rem;
}

.nav-links {
  display: none;
  gap: 32px;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text); }

@media (min-width: 720px) {
  .nav-links { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  font-family: var(--font-body);
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(109, 91, 255, 0.6);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px -6px rgba(109, 91, 255, 0.75);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover { border-color: var(--purple-light); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  padding: 10px 18px;
  font-size: 0.9rem;
}

.btn-ghost:hover { border-color: var(--purple-light); }

.nav-cta { display: none; }
@media (min-width: 480px) {
  .nav-cta { display: inline-flex; }
}

/* Hero */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
  text-align: center;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(closest-side, rgba(109, 91, 255, 0.35), transparent 70%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--purple-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #fff 20%, #b9c0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Offers */
.offers {
  padding: 64px 0 88px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 10px;
}

.section-sub {
  text-align: center;
  max-width: 480px;
  margin: 0 auto 48px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 900px) {
  .cards { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-4px);
}

.card-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 0 0 16px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.price-period {
  color: var(--text-faint);
  font-size: 0.95rem;
}

.pitch {
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}

.features li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}

.features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple-light);
  font-weight: 700;
}

.offer-cta { width: 100%; }

/* FAQ */
.faq {
  padding: 40px 0 96px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}

.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.faq-item h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.9rem;
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  text-align: center;
}

.footer-inner .brand {
  justify-content: center;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 0.9rem;
  margin: 0 0 4px;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-faint);
  margin: 0;
}

/* ===== Showcase flow ===== */
.flow-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 7, 14, 0.78);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.flow-overlay.open { opacity: 1; pointer-events: auto; }

.flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 560px;
  height: 94vh;
  height: 94dvh;
  display: flex;
  flex-direction: column;
  transform: translateY(24px);
  transition: transform 0.25s ease;
  box-shadow: 0 -20px 60px -20px rgba(0,0,0,0.7);
  overflow: hidden;
}
.flow-overlay.open .flow { transform: translateY(0); }

@media (min-width: 640px) {
  .flow-overlay { align-items: center; padding: 24px; }
  .flow { height: auto; max-height: 90vh; border-radius: var(--radius); border-bottom: 1px solid var(--border); }
}

.flow-head {
  padding: 14px 18px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  flex-shrink: 0;
}
.flow-head-top { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; }
.flow-offer {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flow-stepcount { font-size: 0.78rem; color: var(--text-faint); white-space: nowrap; }
.flow-close, .flow-back {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.flow-close:hover, .flow-back:hover { color: var(--text); border-color: var(--purple-light); }
.flow-back[hidden] { display: none; }
.flow-progress { height: 3px; background: var(--surface-2); margin: 0 -18px; }
.flow-progress-bar { height: 100%; width: 0; background: var(--gradient); transition: width 0.35s ease; }

.flow-body {
  padding: 22px 20px 28px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  flex: 1;
}
@media (min-width: 640px) { .flow-body { padding: 28px 28px 32px; } }

.flow-step { animation: stepIn 0.25s ease; }
@keyframes stepIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.flow-kicker {
  margin: 0 0 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple-light);
}
.flow-title { font-size: 1.35rem; margin-bottom: 6px; line-height: 1.2; }
.flow-sub { font-size: 0.92rem; margin: 0 0 20px; }

.field { margin-bottom: 16px; }
.field-label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom on focus */
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s ease;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.45; }
.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%), linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.input:focus, .textarea:focus, .select:focus { border-color: var(--purple-light); }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
  text-align: left;
}
.chip:hover { border-color: var(--purple-light); color: var(--text); }
.hint { font-size: 0.8rem; color: var(--text-faint); margin: 8px 0 0; }

.options { display: grid; gap: 10px; }
.option {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .tick {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px;
  border-radius: 6px; border: 1.5px solid var(--text-faint);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem; color: transparent;
}
.option input[type="radio"] + .tick { border-radius: 50%; }
.option input:checked + .tick { background: var(--gradient); border-color: transparent; color: #fff; }
.option.checked { border-color: var(--purple); background: rgba(139, 92, 246, 0.09); }
.option input:focus-visible + .tick { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.option-text strong { display: block; font-size: 0.93rem; color: var(--text); font-weight: 600; }
.option-text span { display: block; font-size: 0.8rem; color: var(--text-faint); margin-top: 2px; }

.seg { display: flex; gap: 8px; }
.seg .option { flex: 1; justify-content: center; padding: 11px 6px; }
.seg .option .tick { display: none; }
.seg .option-text strong { text-align: center; }
.seg .option-text span { text-align: center; }

.flow-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.flow-actions .btn { width: 100%; padding: 14px 22px; font-size: 1rem; }
.flow-actions.sticky {
  position: sticky;
  bottom: -28px;
  margin: 16px -20px -28px;
  padding: 18px 20px 20px;
  background: linear-gradient(to bottom, rgba(21, 24, 39, 0), var(--surface) 22px);
  z-index: 2;
}
@media (min-width: 640px) {
  .flow-actions.sticky { bottom: -32px; margin: 16px -28px -32px; padding: 18px 28px 24px; }
}
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-link { background: none; border: 0; color: var(--text-dim); font-size: 0.88rem; cursor: pointer; padding: 6px; font-family: var(--font-body); }
.btn-link:hover { color: var(--text); }

/* Build / provisioning animation */
.build { text-align: center; padding-top: 18px; }
.build-orb {
  width: 76px; height: 76px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--gradient);
  box-shadow: 0 0 40px rgba(109, 91, 255, 0.55);
  animation: pulse 1.4s ease-in-out infinite;
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem;
}
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); box-shadow: 0 0 60px rgba(109, 91, 255, 0.75); } }
.build-bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: 18px 0 8px; }
.build-bar-fill { height: 100%; width: 0; background: var(--gradient); transition: width 0.3s linear; }
.build-pct { font-size: 0.8rem; color: var(--text-faint); font-variant-numeric: tabular-nums; }
.build-log {
  text-align: left;
  background: #07080f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.76rem;
  line-height: 1.7;
  color: #9fe3b0;
  min-height: 150px;
}
.build-log div { animation: stepIn 0.2s ease; white-space: pre-wrap; word-break: break-word; }

/* Preview cards */
.preview-card { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 18px; }
.bot-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: #fff;
  flex-shrink: 0;
}
.bot-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag-bot { background: #5865f2; color: #fff; font-size: 0.62rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; letter-spacing: 0.03em; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem; color: #6ee7a0; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.bot-desc { font-size: 0.86rem; margin: 0 0 4px; font-style: italic; }
.section-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-faint); margin: 16px 0 8px; }
.cmd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cmd-list li { display: flex; gap: 10px; align-items: baseline; font-size: 0.85rem; color: var(--text-dim); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }
.cmd-list code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--purple-light); font-size: 0.82rem; white-space: nowrap; }

.ip-box { display: flex; align-items: center; gap: 8px; background: #07080f; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; margin: 10px 0 14px; }
.ip-box code { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { background: var(--surface-2); border: 1px solid var(--border); color: var(--text-dim); border-radius: 8px; padding: 6px 10px; font-size: 0.78rem; cursor: pointer; font-family: var(--font-body); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px; min-width: 0; }
.stat-k { font-size: 0.68rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-v { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; color: var(--text); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-list { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; color: var(--text-dim); }
.console { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.72rem; line-height: 1.6; background: #07080f; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; color: var(--text-faint); overflow-x: auto; white-space: pre; }
.agent-list { display: grid; gap: 8px; }
.agent { display: flex; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.agent-ico { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.agent-main { flex: 1; min-width: 0; }
.agent-main strong { display: block; font-size: 0.9rem; }
.agent-main span { display: block; font-size: 0.76rem; color: var(--text-faint); }

/* Checkout */
.summary { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.summary-head { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.summary-head .agent-ico { background: var(--gradient); }
.summary-head strong { display: block; font-family: var(--font-display); }
.summary-head span { font-size: 0.8rem; color: var(--text-faint); }
.summary-rows { padding: 8px 16px; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: 0.86rem; color: var(--text-dim); }
.summary-row span:first-child { flex-shrink: 0; }
.summary-row span:last-child { color: var(--text); text-align: right; overflow-wrap: anywhere; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface-2); }
.summary-total .amt { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; }
.summary-total .amt small { font-size: 0.85rem; color: var(--text-faint); font-weight: 500; }
.trust { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; font-size: 0.76rem; color: var(--text-faint); margin-top: 12px; }

.capacity-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--purple); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin: 4px 0 16px; }
.reserved { display: flex; align-items: center; gap: 10px; background: rgba(139, 92, 246, 0.09); border: 1px solid var(--purple); border-radius: 12px; padding: 12px 14px; margin-bottom: 18px; font-size: 0.86rem; color: var(--text-dim); }
.reserved strong { color: var(--text); }
.done { text-align: center; padding-top: 20px; }
.success-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--gradient); color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.error-text { color: #fca5a5; font-size: 0.82rem; margin: 8px 0 0; }

/* Bot honeypot: kept off-screen, never shown to people */
.hp-field { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* Qualification taps (success screen) */
.qualify { text-align: left; margin-top: 22px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.qualify-title { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; color: var(--text); margin: 0; }
.q-block { margin-top: 16px; }
.q-label { font-size: 0.82rem; font-weight: 600; color: var(--text-dim); margin: 0 0 8px; }
.q-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.q-chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 9px 14px;
  min-height: 40px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  line-height: 1.25;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
@media (hover: hover) and (pointer: fine) {
  .q-chip:not(.selected):hover { border-color: var(--purple-light); color: var(--text); }
}
.q-chip.selected { background: rgba(139, 92, 246, 0.2); border-color: var(--purple); color: var(--text); font-weight: 600; }
.q-chip:focus-visible { outline: 2px solid var(--purple-light); outline-offset: 2px; }
.qualify-thanks { font-size: 0.82rem; color: #6ee7a0; margin: 14px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .flow-step, .build-log div, .build-orb { animation: none; }
}
