:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --card: #151a26;
  --border: #232a3a;
  --text: #e8ecf4;
  --muted: #93a0b4;
  --accent: #4f8cff;
  --accent-2: #9b6bff;
  --green: #2ecc8f;
  --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Safari/iOS render <button> with native chrome (a light border + grey face) even when styled.
   Kill it globally — every button in this app is custom-styled. Class rules still win over this. */
button {
  -webkit-appearance: none;
  appearance: none;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1 { font-size: clamp(2rem, 5vw, 3.3rem); line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

.grad {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Buttons */
.btn {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  font-family: inherit;
  cursor: pointer;
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 4px 20px rgba(79, 140, 255, 0.35);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { background: var(--card); }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 16px 36px; font-size: 1.1rem; }

/* Marketing claim highlight (AI Description) */
.claim {
  display: inline-block;
  margin-bottom: 20px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--text);
  background: linear-gradient(90deg, rgba(79, 140, 255, 0.16), rgba(155, 107, 255, 0.16));
  border: 1px solid rgba(79, 140, 255, 0.45);
}
.claim strong { color: var(--accent); }
.claim-inline { color: var(--accent); }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}
.logo { font-size: 1.2rem; font-weight: 700; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { padding: 90px 0 60px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(79, 140, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 24px;
  background: var(--card);
}
.sub { max-width: 640px; margin: 20px auto 0; color: var(--muted); font-size: 1.15rem; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 0.85rem; }

/* Chat demo */
.chat-demo {
  max-width: 480px;
  margin: 50px auto 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.chat-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); display: inline-block; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  max-width: 90%;
}
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg.alert { border-color: rgba(46, 204, 143, 0.4); }
.tags { color: var(--accent); font-size: 0.82rem; }

/* Strip */
.strip { border-block: 1px solid var(--border); background: var(--bg-alt); }
.strip-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 28px 20px;
  text-align: center;
}
.strip-item strong { display: block; font-size: 1.6rem; color: var(--accent); }
.strip-item span { color: var(--muted); font-size: 0.85rem; }

/* Sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section h2 { text-align: center; }
.section-sub { text-align: center; color: var(--muted); margin: 12px auto 48px; max-width: 520px; }

/* Feature grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.icon { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.92rem; }
.pro {
  font-size: 0.65rem;
  font-weight: 700;
  vertical-align: middle;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  list-style: none;
  counter-reset: step;
}
.steps li { text-align: center; padding: 0 10px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 14px;
}
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 0.92rem; }

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 40px rgba(79, 140, 255, 0.15); }
.ribbon {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price { font-size: 2.4rem; font-weight: 700; margin: 10px 0 18px; }
.price span { font-size: 0.95rem; color: var(--muted); font-weight: 400; }
.price-card ul { list-style: none; margin-bottom: 24px; flex: 1; }
.price-card li { padding: 6px 0; font-size: 0.93rem; color: var(--muted); }
.price-card li strong { color: var(--text); }
.price-card .btn { text-align: center; }

.referral {
  margin: 48px auto 0;
  max-width: 760px;
  background: var(--card);
  border: 1px dashed var(--accent);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
}
.referral p { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }
.referral strong { color: var(--green); }

/* FAQ */
.faq-wrap { max-width: 720px; }
.faq-wrap h2 { margin-bottom: 32px; }
details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
}
summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  color: var(--accent);
  font-size: 1.2rem;
  transition: transform 0.2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 20px 16px; color: var(--muted); font-size: 0.93rem; }

/* Final CTA */
.cta-final { padding: 90px 0; text-align: center; }
.cta-final p { color: var(--muted); margin: 14px 0 30px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 24px 0; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 60px 0 40px; }
}

/* Interface language picker in the nav.
   Safari renders <select> with native chrome even when styled — kill it like we do for buttons
   and draw our own chevron, otherwise it shows up as a white pill on the dark nav. */
.lang-select {
  -webkit-appearance: none;
  appearance: none;
  background: var(--bg-alt) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2393a0b4' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 7px 28px 7px 10px;
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.lang-select:hover { color: var(--text); border-color: var(--accent); }
.lang-select option { background: var(--card); color: var(--text); }

@media (max-width: 720px) {
  .lang-select { padding: 6px 24px 6px 8px; font-size: 0.8rem; }
}
