/* ChatGlade marketing site — palette + tokens lifted from the dashboard
   so the marketing site and the in-product UI feel like one product. */

:root {
  --bg-base: #0b0820;
  --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-bg-strong: rgba(255, 255, 255, 0.07);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-strong: rgba(255, 255, 255, 0.14);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --accent: #a855f7;
  --accent-light: #c084fc;
  --accent-deep: #7e22ce;
  --accent-glow: 0 0 12px rgba(168, 85, 247, 0.4);
  --accent-strong-glow: 0 0 32px rgba(168, 85, 247, 0.55);
  --pink: #ec4899;
  --green: #22c55e;
  --amber: #f59e0b;
  --red: #ef4444;
  --text: #e0e0e0;
  --text-strong: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.55);
  --text-faint: rgba(255, 255, 255, 0.3);
  --max-width: 1200px;
  --radius: 12px;
  --radius-lg: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* ---------- Starfield background ---------- */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, rgba(255,255,255,0.95), transparent 50%),
    radial-gradient(1px 1px at 14% 28%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(2px 2px at 22% 8%, rgba(255,255,255,0.85), transparent 50%),
    radial-gradient(1px 1px at 30% 22%, rgba(192,132,252,0.85), transparent 50%),
    radial-gradient(1.5px 1.5px at 38% 38%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 47% 18%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1.5px 1.5px at 54% 32%, rgba(236,72,153,0.7), transparent 50%),
    radial-gradient(1px 1px at 62% 6%, rgba(255,255,255,0.8), transparent 50%),
    radial-gradient(2px 2px at 70% 26%, rgba(255,255,255,0.85), transparent 50%),
    radial-gradient(1px 1px at 78% 14%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 86% 36%, rgba(192,132,252,0.7), transparent 50%),
    radial-gradient(1px 1px at 94% 22%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 4% 48%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1.5px 1.5px at 12% 64%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 18% 78%, rgba(192,132,252,0.6), transparent 50%),
    radial-gradient(2px 2px at 26% 56%, rgba(255,255,255,0.85), transparent 50%),
    radial-gradient(1px 1px at 34% 84%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1.5px 1.5px at 44% 70%, rgba(236,72,153,0.6), transparent 50%),
    radial-gradient(1px 1px at 52% 92%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 60% 58%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(2px 2px at 68% 82%, rgba(255,255,255,0.8), transparent 50%),
    radial-gradient(1px 1px at 76% 70%, rgba(192,132,252,0.7), transparent 50%),
    radial-gradient(1.5px 1.5px at 84% 56%, rgba(255,255,255,0.7), transparent 50%),
    radial-gradient(1px 1px at 92% 88%, rgba(255,255,255,0.6), transparent 50%);
  background-size: 100% 100%;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; font-family: inherit; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- Top nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(15, 12, 41, 0.7);
  border-bottom: 1px solid var(--glass-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.brand-text {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-mark {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.5));
  flex-shrink: 0;
}
.wave-bar {
  transform-box: fill-box;
  transform-origin: center;
  animation: wave-pulse 1.4s ease-in-out infinite;
}
.wave-bar.w1 { animation-delay: 0.0s; }
.wave-bar.w2 { animation-delay: 0.12s; }
.wave-bar.w3 { animation-delay: 0.22s; }
.wave-bar.w4 { animation-delay: 0.32s; }
.wave-bar.w5 { animation-delay: 0.44s; }
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.55); opacity: 0.7; }
  50%      { transform: scaleY(1.15); opacity: 1; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-link {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s, color 0.15s;
}
.nav-link:hover { opacity: 1; color: var(--accent-light); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: white;
  box-shadow: 0 4px 24px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-ghost {
  background: var(--glass-bg);
  color: var(--text);
  border-color: var(--glass-border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--glass-hover);
  border-color: var(--accent);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
}
.btn-lg {
  padding: 16px 28px;
  font-size: 16px;
}
.btn-arrow {
  transition: transform 0.18s ease;
  display: inline-block;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ---------- Section scaffolding ---------- */

.section {
  padding: 100px 0;
  position: relative;
}
.section-narrow { padding: 72px 0; }
.section-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 16px;
}
.section-title .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.55;
}
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .section-sub { margin: 0 auto; }

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero::before {
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.45), transparent 70%);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.hero::after {
  bottom: -200px;
  left: -100px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.30), transparent 70%);
  animation: drift-b 22s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-60px, 40px) scale(1.1); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(80px, -60px) scale(1.15); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 999px;
  font-size: 12px;
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 22px;
}
.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 22px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-trial-link { font-size: 13px; color: var(--text-muted); }
.hero-trial-link a {
  color: var(--accent-light);
  font-weight: 600;
  border-bottom: 1px dashed rgba(192, 132, 252, 0.4);
  transition: border-color 0.18s;
}
.hero-trial-link a:hover { border-color: var(--accent-light); }
.slot-counter { display: flex; align-items: center; gap: 12px; }
.slot-track {
  width: 180px;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}
.slot-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  width: 53%;
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.6);
}

/* ---------- Hero chat panel ---------- */

.chat-panel {
  position: relative;
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(168, 85, 247, 0.1) inset;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--glass-border);
}
.chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}
.chat-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 1.6s ease-in-out infinite;
}
.chat-viewers { font-size: 12px; color: var(--text-muted); }
.chat-body {
  height: 420px;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 12%, black 92%, transparent 100%);
}
.chat-stream {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 18px;
}
.chat-msg {
  display: flex;
  gap: 8px;
  font-size: 14px;
  line-height: 1.45;
  padding: 3px 0;
  word-break: break-word;
  animation: msg-in 0.35s ease-out both;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.fading { animation: msg-out 0.4s ease-in forwards; }
@keyframes msg-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
.chat-user { font-weight: 600; flex-shrink: 0; }
.chat-text { color: var(--text); opacity: 0.95; }
.u-1  { color: #ff6b6b; }
.u-2  { color: #4ade80; }
.u-3  { color: #60a5fa; }
.u-4  { color: #fbbf24; }
.u-5  { color: #c084fc; }
.u-6  { color: #f472b6; }
.u-7  { color: #2dd4bf; }
.u-8  { color: #fb923c; }
.u-9  { color: #a3e635; }
.u-10 { color: #38bdf8; }
.chat-text.shout { font-weight: 700; letter-spacing: 0.02em; }
.chat-input-fake {
  border-top: 1px solid var(--glass-border);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-faint);
}
.chat-input-box {
  flex: 1;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}
.chat-send {
  padding: 6px 14px;
  background: var(--accent);
  color: white;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  opacity: 0.55;
}

/* ---------- Stats strip (under hero) ---------- */

.stats-strip {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: 28px 0;
  background: rgba(255, 255, 255, 0.018);
  backdrop-filter: blur(6px);
  position: relative;
}
.stats-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: center;
}
.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
  padding: 0 12px;
  border-right: 1px solid var(--glass-border);
}
.stat-cell:last-child { border-right: none; }
.stat-cell-num {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.stat-cell-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
@media (max-width: 880px) {
  .stats-strip-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--glass-border); padding-bottom: 12px; }
  .stat-cell:nth-last-child(-n+2) { border-bottom: none; padding-bottom: 0; }
}

/* ---------- Problem section ---------- */

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.problem-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-row {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(8px);
}
.stat-num {
  font-size: 38px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 110px;
  padding-right: 4px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  white-space: nowrap;
}
.stat-text { font-size: 15px; color: var(--text-muted); }

/* ---------- How It Works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}
.step-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(168, 85, 247, 0.35);
}
.step-num {
  position: absolute;
  top: -18px;
  left: 28px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 16px;
  box-shadow: var(--accent-glow);
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(168, 85, 247, 0.15);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  font-size: 24px;
  border: 1px solid rgba(168, 85, 247, 0.25);
}
.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
}
.step-card p { font-size: 15px; color: var(--text-muted); line-height: 1.55; }

/* ---------- Features (tabbed) ---------- */

.features-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 32px;
  align-items: stretch;
}
.feature-tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-tab {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}
.feature-tab:hover {
  background: var(--glass-hover);
  border-color: rgba(168, 85, 247, 0.25);
}
.feature-tab.active {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 24px rgba(168, 85, 247, 0.18);
}
.feature-tab-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.feature-tab-head h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}
.feature-tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(168, 85, 247, 0.18);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.feature-tab p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

.feature-stage {
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius-lg);
  padding: 36px;
  min-height: 380px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.feature-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(168,85,247,0.18), transparent 50%);
  pointer-events: none;
}
.feature-panel { display: none; position: relative; }
.feature-panel.active { display: block; }
.feature-panel h4 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 12px;
}
.feature-panel-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 480px;
}
.feature-vis {
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 22px;
  font-family: "JetBrains Mono", "SF Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text);
}
.feature-vis .label { color: var(--accent-light); }
.feature-vis .ts { color: var(--text-faint); }
.feature-vis .reply { color: var(--text); }
.feature-vis .arrow { color: var(--accent); }
.feature-vis .highlight { color: var(--green); font-weight: 600; }

.persona-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.persona-card {
  flex: 1;
  min-width: 140px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px;
}
.persona-name { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.persona-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.persona-quote { font-size: 13px; color: var(--text); font-style: italic; }

.feature-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.feature-checklist li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.cat-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.cat-pill.active {
  background: rgba(168, 85, 247, 0.18);
  border-color: rgba(168, 85, 247, 0.45);
  color: var(--accent-light);
}
.cat-pill.soon {
  opacity: 0.5;
  font-style: italic;
}

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

.price-configurator {
  max-width: 720px;
  margin: 0 auto;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 32px 32px 28px;
  position: relative;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 40px rgba(168, 85, 247, 0.12);
}

.price-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.price-preset {
  position: relative;
  padding: 14px 12px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
.price-preset:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(168, 85, 247, 0.35);
}
.price-preset.active {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.3) inset;
}
.price-preset-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 2px;
}
.price-preset-meta {
  font-size: 12px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.price-preset-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: white;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.4);
  white-space: nowrap;
}

.config-sliders {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}
.config-slider {
  padding: 14px 16px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.config-slider-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.config-slider-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 600;
}
.config-slider-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-light);
  font-variant-numeric: tabular-nums;
}
.config-slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--text-faint);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: -2px;
}

.price-config-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding: 22px 0 18px;
  border-top: 1px solid var(--glass-border);
}
.price-config-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-config-amount .num {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-config-amount .per {
  font-size: 15px;
  color: var(--text-muted);
}
.price-config-was {
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: line-through;
  flex: 1;
}
.price-config-summary .btn { margin-left: auto; }
.price-config-cta {
  display: flex;
  gap: 12px;
  margin-left: auto;
  align-items: center;
  flex-wrap: wrap;
}
.price-config-cta .btn { margin-left: 0; }

.price-config-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 22px;
  padding: 0;
  margin: 0 0 22px;
}
.price-config-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text);
}
.price-config-features li::before {
  content: "✓";
  color: var(--accent-light);
  font-weight: 800;
  width: 14px;
  flex-shrink: 0;
}

.price-config-foot {
  text-align: center;
  margin: 0;
  color: var(--text-muted);
  font-size: 13.5px;
}
.price-config-foot a {
  color: var(--accent-light);
  font-weight: 600;
}

/* ---------- FAQ (smooth-animating accordion) ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(8px);
  transition: border-color 0.25s ease, background 0.25s ease;
}
.faq-item.open {
  border-color: rgba(168, 85, 247, 0.45);
  background: rgba(168, 85, 247, 0.06);
}
.faq-q {
  width: 100%;
  background: transparent;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-strong);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  text-align: left;
  font-family: inherit;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent-light); }
.faq-icon {
  color: var(--accent-light);
  font-size: 22px;
  font-weight: 300;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a {
  height: 0;
  overflow: hidden;
  transition: height 0.26s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: height;
}
.faq-a-inner {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  padding: 0 20px 20px;
}

/* ---------- Range input shared (used in pricing configurator) ---------- */

.hour-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    rgba(168, 85, 247, 0.7) 0%,
    rgba(168, 85, 247, 0.7) var(--fill, 30%),
    rgba(255, 255, 255, 0.08) var(--fill, 30%),
    rgba(255, 255, 255, 0.08) 100%
  );
  border-radius: 999px;
  outline: none;
  cursor: pointer;
}
.hour-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent, #a855f7);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
  cursor: pointer;
  transition: transform 0.12s ease;
}
.hour-range::-webkit-slider-thumb:hover { transform: scale(1.12); }
.hour-range::-webkit-slider-thumb:active { transform: scale(1.05); }
.hour-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent, #a855f7);
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.45);
  cursor: pointer;
}
.hour-range::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.hour-range::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(168, 85, 247, 0.7);
}
/* ---------- Closing CTA ---------- */

.closing-cta {
  text-align: center;
  padding: 96px 0 40px;
  position: relative;
}
.closing-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168,85,247,0.18), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.closing-cta h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.closing-cta p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 32px;
}

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

.footer {
  border-top: 1px solid var(--glass-border);
  padding: 32px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-links {
  display: flex;
  gap: 22px;
}
.footer-links a:hover { color: var(--accent-light); }
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .brand-mark { width: 24px; height: 24px; }

/* ---------- Mobile ---------- */

@media (max-width: 880px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid, .problem-grid, .features-shell { grid-template-columns: 1fr; gap: 40px; }
  .features-shell { gap: 24px; }
  .nav-link.hide-mobile { display: none; }
  .chat-body { height: 320px; }
  .steps { grid-template-columns: 1fr; }
  .price-configurator { padding: 28px 18px 22px; }
  .price-presets { grid-template-columns: 1fr; gap: 8px; }
  .config-sliders { grid-template-columns: 1fr; }
  .price-config-summary { gap: 14px; }
  .price-config-summary .btn { margin-left: 0; width: 100%; justify-content: center; }
  .price-config-features { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
