/* ============================================================
   FlowLaunch — waitlist landing styles
   ============================================================ */

:root {
  --brand: #4F46E5;
  --brand-dark: #4338CA;
  --bg: #ffffff;
  --bg-alt: #f5f6fa;
  --surface: #ffffff;
  --text: #1b1d2a;
  --text-muted: #5c6173;
  --border: #e3e5ee;
  --shadow: 0 8px 24px rgba(27, 29, 42, 0.08);
  --radius: 14px;
  --maxw: 1080px;
}

[data-theme="dark"] {
  --bg: #14151c;
  --bg-alt: #1b1d27;
  --surface: #1f2230;
  --text: #f1f2f7;
  --text-muted: #a6abc0;
  --border: #2c2f3f;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.25s ease, color 0.25s ease;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: 560px; }

a { color: var(--brand); text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.logo { font-weight: 700; font-size: 1.2rem; color: var(--text); }
.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: var(--text-muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 50%;
  width: 38px; height: 38px;
  cursor: pointer;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 96px 0;
  background: radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--brand) 14%, var(--bg)) 0%, var(--bg) 60%);
  text-align: center;
}
.hero__title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 32px;
}
.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.08s ease, background 0.2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; border-radius: 12px; }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--bg-alt); }
.section__title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin: 0 0 12px; }
.section__subtitle { text-align: center; color: var(--text-muted); margin: 0 0 36px; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.feature__icon { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; }
.feature p { margin: 0; color: var(--text-muted); }

/* Lead form */
.lead-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; }
.field input, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent);
}
.form-status { margin: 0; font-size: 0.92rem; min-height: 1.2em; }
.form-status.is-error { color: #e74c3c; }
.form-status.is-ok { color: #2ecc71; }

/* Footer */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 640px) {
  .nav { display: none; }
  .hero { padding: 64px 0; }
}
