/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0b0f1a;
  --bg-card:   #111827;
  --bg-input:  #1a2236;
  --border:    #1e293b;
  --text:      #e2e8f0;
  --text-dim:  #94a3b8;
  --accent:    #3b82f6;
  --accent-h:  #60a5fa;
  --success:   #22c55e;
  --radius:    12px;
  --radius-sm: 8px;
  --max-w:     1080px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-h); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Header ──────────────────────────────────────────────── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px 24px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.header__link {
  font-size: 0.875rem;
  color: var(--text-dim);
}
.header__link:hover { color: var(--accent-h); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 80px 24px 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.15);
  color: var(--accent-h);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Features grid ───────────────────────────────────────── */
.features {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.feature-card__icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ── Demo request ────────────────────────────────────────── */
.demo-request {
  padding: 64px 24px;
  background: linear-gradient(180deg, var(--bg) 0%, #0d1225 100%);
}

.demo-request__container {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.demo-request h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.demo-request__text {
  color: var(--text-dim);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

/* ── Form ────────────────────────────────────────────────── */
.demo-form {
  text-align: left;
}

.demo-form__row {
  margin-bottom: 18px;
}

.demo-form__row label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demo-form__row input,
.demo-form__row textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.demo-form__row input:focus,
.demo-form__row textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.demo-form__row input::placeholder,
.demo-form__row textarea::placeholder {
  color: #475569;
}

.demo-form__row textarea {
  resize: vertical;
  min-height: 80px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  width: 100%;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: #2563eb; }
.btn--primary:active { transform: scale(0.98); }
.btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.demo-form__disclaimer {
  text-align: center;
  font-size: 0.75rem;
  color: #475569;
  margin-top: 14px;
}

/* ── Success state ───────────────────────────────────────── */
.demo-form__success {
  padding: 40px 0;
}

.demo-form__success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.demo-form__success h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.demo-form__success p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ── How it works ────────────────────────────────────────── */
.how-it-works {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 24px 80px;
  text-align: center;
}

.how-it-works h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  text-align: center;
}

.step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.step h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  text-align: center;
  padding: 32px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__tagline {
  margin-top: 4px;
  font-size: 0.75rem;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding-top: 48px; }
  .features__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
