/* chatsupport.dev landing page — minimal, fast, dark */

:root {
  --bg: #0a0a0a;
  --bg-2: #111113;
  --bg-3: #16161a;
  --border: #232328;
  --text: #f5f5f7;
  --text-2: #a8a8b3;
  --text-3: #6b6b75;
  --brand: #7c5cff;
  --brand-2: #5b8cff;
  --accent: #00d4a4;
  --warn: #ffb84d;
  --radius: 14px;
  --radius-sm: 10px;
  --max: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font-family: inherit; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ── nav ─────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(160%);
  background: rgba(10,10,10,0.7);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; letter-spacing: -0.01em;
  color: var(--text);
}
.logo-sm svg, .logo-sm span { transform: scale(0.9); }
.logo-tld { color: var(--text-3); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text-2); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--bg-3);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-weight: 500;
}
.nav-cta:hover { background: #1d1d22; }

/* ── hero ────────────────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: -200px 0 0 0;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(124,92,255,0.18), transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; } }
.badge strong { color: var(--text); font-weight: 600; }

h1 {
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 24px;
}
.grad {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.6;
}
.strike { text-decoration: line-through; color: var(--text-3); }

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 24px; }
.hero-trust {
  display: flex; gap: 14px; justify-content: center; align-items: center;
  font-size: 14px; color: var(--text-3); flex-wrap: wrap;
}
.hero-trust .sep { color: var(--border); }

/* ── preview ─────────────────────────────────────── */
.preview { margin: 64px auto 0; max-width: 920px; }
.preview-browser {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
}
.preview-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
}
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; }
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.preview-url {
  margin-left: 14px; flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  color: var(--text-3);
  font-family: ui-monospace, monospace;
}
.preview-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 320px;
}
.preview-text {
  padding: 32px;
  border-right: 1px solid var(--border);
}
.preview-text h3 { font-size: 22px; margin: 0 0 8px; }
.preview-text p { color: var(--text-2); margin: 0 0 16px; }
.preview-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.preview-tags span {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-2);
}
.preview-chat {
  padding: 24px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--bg);
}
.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.msg.user {
  align-self: flex-end;
  background: var(--brand);
  color: white;
  border-bottom-right-radius: 4px;
}
.msg.bot {
  align-self: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg-typing {
  align-self: flex-start;
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 14px;
  display: flex; gap: 4px;
}
.msg-typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--text-3);
  animation: blink 1.4s infinite;
}
.msg-typing span:nth-child(2) { animation-delay: 0.2s; }
.msg-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.2; } 30% { opacity: 1; } }

/* ── sections ────────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); }
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 16px;
  text-align: center;
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

/* ── grids ───────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* ── cards ───────────────────────────────────────── */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s;
}
.card:hover { border-color: #34343c; }
.card-num {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 13px;
  color: var(--brand);
  background: rgba(124,92,255,0.1);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.card h3 { font-size: 20px; margin: 0 0 10px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); }

/* ── steps ───────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { text-align: left; }
.step-num {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
  color: var(--brand);
  margin-bottom: 16px;
}
.step h3 { font-size: 20px; margin: 0 0 8px; }
.step p { margin: 0; color: var(--text-2); }

/* ── pricing ───────���─────────────────────────────── */
.price-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(124,92,255,0.06), var(--bg));
  box-shadow: 0 0 0 1px rgba(124,92,255,0.2), 0 20px 60px -20px rgba(124,92,255,0.3);
}
.ribbon {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--brand);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.price-name { font-size: 14px; color: var(--text-2); font-weight: 500; margin-bottom: 8px; }
.price-amount {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}
.price-amount .dollar { font-size: 24px; vertical-align: top; margin-right: 2px; color: var(--text-2); }
.price-amount .per { font-size: 16px; color: var(--text-3); font-weight: 400; }
.price-desc { color: var(--text-2); font-size: 14px; margin: 0 0 20px; min-height: 42px; }
.price-list {
  list-style: none; padding: 0; margin: 0 0 24px;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1;
}
.price-list li {
  font-size: 14px;
  color: var(--text-2);
  padding-left: 22px;
  position: relative;
}
.price-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.price-foot {
  text-align: center;
  margin-top: 48px;
  font-size: 14px;
  color: var(--text-3);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.price-foot strong { color: var(--text-2); font-weight: 600; }

/* ── forms ───────────────────────────────────────── */
.cta-section { padding: 100px 0 120px; text-align: center; }
.waitlist-wrap { max-width: 480px; margin: 0 auto; }
.form-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: left;
}
.privacy-pill {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0,212,164,0.06);
  border: 1px solid rgba(0,212,164,0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}
.privacy-pill .lock { font-size: 16px; line-height: 1; }
.privacy-pill strong { color: var(--accent); font-weight: 600; }
.form { display: flex; flex-direction: column; gap: 10px; }
.form-label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
}
.form input, .form select {
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 15px;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
}
.form input:focus, .form select:focus {
  outline: none;
  border-color: var(--brand);
  background: #0d0d10;
}
.form input::placeholder { color: var(--text-3); }
.form .btn { margin-top: 8px; }
.form-fineprint {
  font-size: 12px;
  color: var(--text-3);
  margin: 4px 0 0;
  text-align: center;
}
.form-fineprint.success { color: var(--accent); }
.form-fineprint.error { color: #ff6b6b; }

/* ── buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.1s, background 0.15s, border-color 0.15s, opacity 0.15s;
  text-align: center;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(124,92,255,0.5);
}
.btn-primary:hover { background: #6c4cef; }
.btn-ghost {
  background: var(--bg-3);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: #1d1d22; border-color: #34343c; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── FAQ ─────────────────────────────────────────── */
.faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  transition: border-color 0.15s;
}
.faq details[open] { border-color: #34343c; }
.faq summary {
  cursor: pointer;
  font-weight: 500;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--text-3);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "−"; }
.faq p {
  color: var(--text-2);
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.6;
}

/* ── footer ──────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-row {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--text-3); }

/* ── responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .preview-body { grid-template-columns: 1fr; }
  .preview-text { border-right: 0; border-bottom: 1px solid var(--border); }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 70px 0; }
  .hero { padding: 50px 0 40px; }
}
@media (max-width: 600px) {
  .container { padding: 0 18px; }
  h1 { font-size: 38px; }
  .price-card.featured { transform: none; }
}
