/* ── Reset & Base ───────────────────────────────────────────────── */

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

:root {
  --color-bg: #0b0f19;
  --color-surface: #131927;
  --color-surface-2: #1a2235;
  --color-primary: #6c5ce7;
  --color-primary-light: #a29bfe;
  --color-accent: #00cec9;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-border: #1e293b;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1100px;
  --radius: 10px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ── Utility ────────────────────────────────────────────────────── */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navigation ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.logo span {
  color: var(--color-primary-light);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Buttons ────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  border: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: #5a4bd4;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-light);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: rgba(108, 92, 231, 0.1);
}

/* ── Hero — full-bleed background image ─────────────────────────── */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 25, 0.55) 0%,
    rgba(11, 15, 25, 0.75) 50%,
    rgba(11, 15, 25, 0.95) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 8rem 0 4rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-primary-light);
}

.hero-sub {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.15rem;
  color: var(--color-text-muted);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Features ───────────────────────────────────────────────────── */

.features {
  padding: 6rem 0;
}

.features h2,
.how-it-works-content h2,
.contact h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

/* Showcase image above feature cards */
.features-showcase {
  margin-bottom: 3rem;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 4px 30px rgba(108, 92, 231, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.showcase-img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

.feature-icon {
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

/* ── How It Works — background image section ────────────────────── */

.how-it-works {
  position: relative;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(2px);
}

.how-it-works-content {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  text-align: center;
}

.step {
  flex: 1;
  max-width: 280px;
  padding: 0 1rem;
}

.step-connector {
  width: 60px;
  min-width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  margin-top: 26px;
  border-radius: 1px;
  opacity: 0.5;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ── Showcase Break — full-width image with quote ───────────────── */

.showcase-break {
  position: relative;
  height: 360px;
  overflow: hidden;
}

.showcase-break-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.showcase-break-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 15, 25, 0.6) 0%,
    rgba(11, 15, 25, 0.8) 100%
  );
}

.showcase-break-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.showcase-break-content blockquote {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 600;
  color: var(--color-text);
  text-align: center;
  max-width: 700px;
  line-height: 1.4;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  font-style: italic;
}

/* ── Contact ────────────────────────────────────────────────────── */

.contact {
  padding: 6rem 0;
}

.contact-intro {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: -2rem;
  margin-bottom: 2.5rem;
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
}

/* Honeypot — invisible to users */
.hp-field {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
  opacity: 0;
}

.btn-submit {
  align-self: flex-start;
}

.form-status {
  font-size: 0.9rem;
  min-height: 1.4em;
}

.form-status.error {
  color: #f87171;
}

.form-status.success {
  color: var(--color-accent);
}

/* ── Footer ─────────────────────────────────────────────────────── */

.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.footer-credits {
  font-size: 0.75rem;
  opacity: 0.6;
}

.footer-credits a {
  color: var(--color-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-email a {
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.footer-email a:hover {
  color: var(--color-text);
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 700px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(11, 15, 25, 0.97);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 1.5rem;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: 6rem 0 3rem;
  }

  .showcase-img {
    height: 200px;
  }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .step-connector {
    width: 2px;
    height: 30px;
    min-width: 2px;
    margin-top: 0;
  }

  .showcase-break {
    height: 260px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
