/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #08080d;
  color: #e8e8f0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: 'Fraunces', 'Inter', serif; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }

.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;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

:root {
  --violet: #8B7CFF;
  --blue: #4F6BFF;
  --text-dim: #9d9db0;
  --border: rgba(255,255,255,0.09);
  --surface: rgba(255,255,255,0.03);
}

/* ---------- Background decor ---------- */
.bg-decor {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
}
.glow {
  position: absolute;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
}
.glow-1 {
  background: radial-gradient(circle, var(--violet), transparent 70%);
  top: -20vw; left: -10vw;
}
.glow-2 {
  background: radial-gradient(circle, var(--blue), transparent 70%);
  top: 10vw; right: -20vw;
  opacity: 0.2;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8,8,13,0.65);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
}
.main-nav {
  display: flex; gap: 32px;
}
.main-nav a {
  font-size: 0.92rem; color: var(--text-dim); transition: color .15s;
}
.main-nav a:hover { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px;
  padding: 13px 22px;
  font-weight: 600; font-size: 0.95rem;
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
  position: relative;
}
.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(79,107,255,0.55);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(79,107,255,0.7); }
.btn-primary:active { transform: translateY(0); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-spinner {
  display: none;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn-label { opacity: 0.6; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn:disabled { opacity: 0.75; cursor: default; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 40px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem; color: var(--text-dim);
  background: var(--surface);
  margin-bottom: 28px;
  transition: border-color .15s, color .15s;
}
.eyebrow:hover { color: #fff; border-color: rgba(255,255,255,0.2); }
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 0 0 3px rgba(139,124,255,0.18);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.4rem);
  line-height: 1.06;
  font-weight: 600;
  max-width: 820px;
  margin: 0 auto;
}
.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, #cfc7ff, var(--violet) 45%, var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 640px;
  margin: 26px auto 0;
  font-size: 1.13rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.hero-form {
  display: flex; gap: 10px;
  max-width: 460px;
  margin: 36px auto 0;
}
.hero-form input, .waitlist-form input {
  flex: 1;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #fff;
  outline: none;
  transition: border-color .15s, background .15s;
}
.hero-form input::placeholder, .waitlist-form input::placeholder { color: #6d6d80; }
.hero-form input:focus, .waitlist-form input:focus {
  border-color: rgba(139,124,255,0.55);
  background: rgba(255,255,255,0.06);
}
.hero-note { margin-top: 16px; font-size: 0.82rem; color: #6d6d80; }

/* ---------- Hero panel mock ---------- */
.hero-panel { margin: 72px auto 0; max-width: 920px; }
.panel-glass {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
  padding: 22px;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.7);
}
.panel-toolbar { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.pill {
  font-size: 0.78rem; padding: 6px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border); color: var(--text-dim);
}
.panel-main { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; text-align: left; }
.panel-col { display: flex; flex-direction: column; gap: 10px; }
.panel-source, .result-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}
.line { height: 8px; border-radius: 5px; background: rgba(255,255,255,0.08); }
.line + .line { margin-top: 9px; }
.line.short { width: 60%; }
.line-title { width: 45%; height: 10px; background: rgba(255,255,255,0.16); }
.panel-arrow { display: flex; align-items: center; justify-content: center; opacity: 0.8; }
.model-chip {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; padding: 8px 12px;
  border: 1px solid var(--border); border-radius: 9px;
  background: rgba(255,255,255,0.03);
}
.model-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-a { background: #74d0a6; }
.dot-b { background: #d2a24c; }
.dot-c { background: #6ea8ff; }
.result-card { margin-top: 2px; }

/* ---------- Logos strip ---------- */
.logos { padding: 44px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.logos-label { text-align: center; font-size: 0.85rem; color: #6d6d80; margin-bottom: 22px; }
.logos-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 36px;
  font-size: 0.95rem; font-weight: 600; color: #8a8a9c;
}

/* ---------- Sections ---------- */
.section { padding: 108px 0; }
.section-alt { background: rgba(255,255,255,0.015); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.kicker {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 14px;
}
.section-head h2, .cta-section h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 600; line-height: 1.18;
}
.section-sub { margin-top: 16px; color: var(--text-dim); font-size: 1.05rem; line-height: 1.6; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card-lg { grid-column: span 3; }
.feature-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  background: var(--surface);
  transition: border-color .15s, background .15s, transform .15s;
}
.feature-card:hover { border-color: rgba(139,124,255,0.35); background: rgba(255,255,255,0.045); transform: translateY(-2px); }
.feature-icon {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(139,124,255,0.18), rgba(79,107,255,0.12));
  color: #cfc7ff;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 0.96rem; line-height: 1.6; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px 26px;
  background: var(--surface);
}
.step-num {
  font-family: 'Fraunces', serif;
  font-size: 1.6rem; font-weight: 600;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.step h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.6; }

/* ---------- CTA / Waitlist ---------- */
.cta-section { text-align: center; }
.cta-wrap { max-width: 620px; }
.cta-section .kicker { }
.waitlist-form {
  display: flex; gap: 10px; margin: 34px auto 0; flex-wrap: wrap; justify-content: center;
}
.waitlist-form input { flex: 1; min-width: 180px; }
.form-status { margin-top: 16px; font-size: 0.9rem; min-height: 1.2em; }
.form-status.success { color: #74d0a6; }
.form-status.error { color: #ff8080; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  background: var(--surface);
}
.faq-item summary {
  cursor: pointer; font-weight: 600; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.3rem; color: var(--text-dim); font-weight: 400;
  transition: transform .15s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 14px; color: var(--text-dim); font-size: 0.95rem; line-height: 1.65; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.brand-footer { font-size: 0.95rem; font-weight: 600; }
.footer-copy { color: #6d6d80; font-size: 0.85rem; }
.footer-contact { color: var(--text-dim); font-size: 0.85rem; transition: color .15s; }
.footer-contact:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card-lg { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; }
  .panel-main { grid-template-columns: 1fr; }
  .panel-arrow { transform: rotate(90deg); margin: 4px 0; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .hero { padding: 64px 0 24px; }
  .hero-form { flex-direction: column; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card-lg { grid-column: span 1; }
  .section { padding: 72px 0; }
  .footer-inner { flex-direction: column; text-align: center; }
  .waitlist-form { flex-direction: column; }
}

/* Contact form */
.contact-form { flex-wrap: wrap; max-width: 560px; margin: 0 auto; }
.contact-form textarea {
  flex-basis: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font: inherit;
  outline: none;
  resize: vertical;
  min-height: 96px;
  transition: border-color .15s, background .15s;
}
.contact-form textarea::placeholder { color: #6d6d80; }
.contact-form textarea:focus { border-color: rgba(139,124,255,0.55); }
.footer-links { display: flex; gap: 1rem; margin: 0; }

/* Hero CTA (replaced the waitlist form) */
.hero-cta { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 34px 0 0; flex-wrap: wrap; }
.hero-cta-link { color: var(--text-dim); font-size: 0.95rem; transition: color .15s; }
.hero-cta-link:hover { color: #fff; }
.contact-alt { text-align: center; margin-top: 18px; font-size: 0.9rem; color: var(--text-dim); }
.contact-alt a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.contact-form { row-gap: 12px; }
