*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #c8cad8;
  line-height: 1.6;
  background: #12121e;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
  text-align: center;
  padding: 6rem 1.5rem 5rem;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #a5b4fc;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.2rem;
  color: #c4c9e2;
  max-width: 540px;
  margin: 0 auto 2rem;
}

.cta-btn {
  display: inline-block;
  background: #6366f1;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.9rem 2.25rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.cta-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
}

/* ── Sections ── */
.section {
  padding: 5rem 1.5rem;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.section-sub {
  font-size: 1.1rem;
  color: #8b8fa3;
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* ── Problem / Pain Points ── */
.section-problem {
  background: #16162a;
}

.section-problem h2 {
  color: #fff;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 960px;
  margin: 2rem auto 0;
}

.pain-card {
  background: #1e1e35;
  border: 1px solid #2a2a45;
  border-radius: 12px;
  padding: 2rem 1.5rem;
  text-align: center;
}

.pain-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.75rem;
}

.pain-card p {
  font-size: 1.05rem;
  color: #a0a4b8;
  font-style: italic;
}

/* ── Steps ── */
.section-steps {
  background: #12121e;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.step {
  text-align: center;
}

.step-number {
  width: 48px;
  height: 48px;
  background: #6366f1;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #e2e4f0;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.95rem;
  color: #8b8fa3;
}

/* ── Demo Widget Section ── */
.section-demo-widget {
  background: #16162a;
}

/* ── Sign-Up Form ── */
.section-signup {
  background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
  color: #fff;
}

.section-signup h2 {
  color: #fff;
}

.section-signup .section-sub {
  color: #a5b4fc;
}

.form-wrapper {
  max-width: 440px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.form-wrapper form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-wrapper input {
  padding: 0.8rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-wrapper input::placeholder {
  color: #94a3b8;
}

.form-wrapper input:focus {
  outline: none;
  border-color: #818cf8;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}

.form-wrapper button {
  padding: 0.9rem 1rem;
  font-size: 1.05rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: #6366f1;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.form-wrapper button:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}

.form-wrapper button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.form-note {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
  margin-top: 0.25rem;
}

[data-fs-success] {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
  text-align: center;
}

[data-fs-error] {
  color: #f87171;
  font-size: 0.85rem;
}

span[data-fs-error] {
  display: block;
  text-align: left;
  margin-top: -0.35rem;
}

/* ── Accessibility ── */
.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;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem 1.5rem;
  background: #0f0c29;
  color: #64748b;
  font-size: 0.85rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero {
    padding: 4rem 1.25rem 3.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

  .section h2 {
    font-size: 1.6rem;
  }

  .pain-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .pain-card {
    padding: 1.5rem 1.25rem;
  }

  .form-wrapper {
    padding: 1.5rem;
  }
}
