/* ── Variables ───────────────────────────────────────────── */
:root {
  --teal: #0D4F5C;
  --teal-light: rgba(13, 79, 92, 0.06);
  --amber: #F59E0B;
  --amber-light: rgba(245, 158, 11, 0.12);
  --cream: #FAF8F5;
  --cream-dark: #F2EFE9;
  --charcoal: #1A1A1A;
  --mid: #6B6B6B;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-lg: 20px;
  --font-serif: 'Source Serif 4', Georgia, serif;
  --font-sans: 'DM Sans', sans-serif;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hero-headline, .nav-logo span {
  font-family: var(--font-sans);
}

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  padding: 20px 40px;
  border-bottom: 1px solid rgba(13,79,92,0.08);
  background: var(--cream);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
}
.nav-logo span {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.nav-tagline {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--mid);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  padding: 80px 40px 60px;
  background: var(--cream);
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  display: inline-block;
}
.hero-headline {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: var(--charcoal);
}
.hero-headline em {
  font-style: normal;
  color: var(--teal);
}
.hero-body {
  font-size: 1.1rem;
  color: var(--mid);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 36px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
  line-height: 1;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
}
.btn-primary:hover {
  background: #0a3d4a;
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 1.5px solid rgba(13,79,92,0.2);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.btn-amber {
  background: var(--amber);
  color: #fff;
}
.btn-amber:hover {
  background: #d98b05;
  transform: translateY(-1px);
}
.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}
.btn-arrow {
  display: inline-block;
  transition: transform 0.15s ease;
}
.btn:hover .btn-arrow {
  transform: translateX(3px);
}

/* ── Cards / Feature grid ─────────────────────────────────── */
.section {
  padding: 80px 40px;
}
.section-dark {
  background: var(--charcoal);
  color: var(--white);
}
.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.section-label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-headline {
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-body {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 540px;
  line-height: 1.7;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(13,79,92,0.06);
  box-shadow: 0 1px 4px rgba(13,79,92,0.04);
  transition: all 0.15s ease;
}
.card:hover {
  box-shadow: 0 4px 16px rgba(13,79,92,0.08);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.card-icon-teal { background: var(--teal-light); }
.card-icon-amber { background: var(--amber-light); }
.card-title {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--charcoal);
}
.card-body {
  font-size: 0.95rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 48px 40px;
  border-top: 1px solid rgba(13,79,92,0.08);
  background: var(--cream);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-copy {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--mid);
}

/* ── Onboarding Form ──────────────────────────────────────── */
.onboarding-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
}

.onboarding-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  padding: 60px 40px;
}

.onboarding-inner {
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}

.onboarding-header {
  margin-bottom: 40px;
}

.onboarding-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.onboarding-headline {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.onboarding-subheadline {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── Form ─────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid rgba(13,79,92,0.06);
  box-shadow: 0 2px 12px rgba(13,79,92,0.05);
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: -0.1px;
}

.form-label-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--mid);
  margin-top: 2px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid rgba(13,79,92,0.15);
  border-radius: var(--radius);
  font-family: var(--font-serif);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(13, 79, 92, 0.08);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: rgba(107, 107, 107, 0.5);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
  line-height: 1.5;
}

.form-hint {
  font-size: 12px;
  color: var(--mid);
  margin-top: 6px;
  font-family: var(--font-sans);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Success state ────────────────────────────────────────── */
.success-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  border: 1px solid rgba(13,79,92,0.06);
  box-shadow: 0 2px 12px rgba(13,79,92,0.05);
  text-align: center;
}

.success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
}

.success-headline {
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
}

.success-body {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.6;
  max-width: 400px;
  margin: 0 auto 32px;
}

.config-preview {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--charcoal);
  white-space: pre-wrap;
  word-break: break-all;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 16px;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-headline { font-size: 2.4rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .onboarding-container { padding: 40px 20px; }
  .form-card { padding: 28px 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}