/* ── Variables ─────────────────────────────────────────────── */
:root {
  --navy-dark:   #0f172a;
  --navy-mid:    #1e293b;
  --navy-border: #334155;
  --cyan:        #38bdf8;
  --cyan-hover:  #0ea5e9;
  --white:       #f8fafc;
  --text-body:   #475569;
  --text-muted:  #94a3b8;
  --footer-bg:   #020617;
  --navy-accent:   #1a3a5c;
  --border-light:  #e2e8f0;
  --error:         #f87171;
  --text-footer:   var(--text-body);
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1 { font-size: 2.5rem;  font-weight: 800; line-height: 1.15; }
h2 { font-size: 1.75rem; font-weight: 800; line-height: 1.2;  }
h3 { font-size: 1rem;    font-weight: 700; }

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

/* ── Layout ─────────────────────────────────────────────────── */
.section-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy-dark);
  border-bottom: 1px solid var(--navy-mid);
  display: flex;
  align-items: center;
  padding: 0.75rem 2rem;
  gap: 1.5rem;
}

.nav-logo img { height: 32px; width: auto; }

.nav-links {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}

.nav-links li { display: contents; }

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

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

.nav-cta {
  background: var(--cyan);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.4rem 1rem;
  border-radius: 6px;
  transition: background 0.15s;
}

.nav-cta:hover { background: var(--cyan-hover); }

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

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
}

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-accent) 60%, var(--navy-dark) 100%);
  text-align: center;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
}

.hero-badge {
  display: inline-block;
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 100px;
  padding: 0.3rem 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--cyan);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

#hero h1       { color: var(--white); margin-bottom: 1.25rem; }
#hero h1 .accent { color: var(--cyan); }

.hero-sub {
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-primary {
  background: var(--cyan);
  color: var(--navy-dark);
  font-weight: 700;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: background 0.15s;
}

.btn-primary:hover { background: var(--cyan-hover); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--navy-border);
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover { border-color: var(--text-muted); color: var(--white); }

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.btn-submit:focus-visible,
.nav-cta:focus-visible,
.nav-links a:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.hero-banner {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-radius: 12px;
}

/* ── Features ────────────────────────────────────────────────── */
#features { background: var(--white); }
#features h2 { color: var(--navy-dark); margin-bottom: 2.5rem; }
#features .section-label { color: var(--cyan-hover); }

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

.card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.card-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.card h3   { color: var(--navy-dark); margin-bottom: 0.4rem; }
.card p    { color: var(--text-body); font-size: 0.9rem; }

/* ── Benefits ────────────────────────────────────────────────── */
#benefits { background: var(--navy-dark); }
#benefits h2 { color: var(--white); margin-bottom: 2rem; }

.benefits-list { display: flex; flex-direction: column; gap: 1rem; }

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: 1.5rem;
}

.benefit-tick {
  color: var(--cyan);
  font-size: 1.4rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 0.15rem;
}

.benefit-card h3 { color: var(--white); margin-bottom: 0.4rem; }
.benefit-card p  { color: var(--text-muted); font-size: 0.9rem; }

/* ── How it works ────────────────────────────────────────────── */
#how-it-works { background: var(--white); }
#how-it-works h2 { color: var(--navy-dark); margin-bottom: 2rem; }
#how-it-works .section-label { color: var(--cyan-hover); }

.steps-list { display: flex; flex-direction: column; gap: 1rem; }

.step-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.step-num {
  background: var(--cyan-hover);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-card h3 { color: var(--navy-dark); margin-bottom: 0.4rem; }
.step-card p  { color: var(--text-body); font-size: 0.9rem; }

/* ── Contact ─────────────────────────────────────────────────── */
#contact { background: var(--navy-dark); }
#contact h2 { color: var(--white); margin-bottom: 0.5rem; }

.contact-sub {
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.contact-form {
  max-width: 540px;
  background: var(--navy-mid);
  border: 1px solid var(--navy-border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-field { display: flex; flex-direction: column; gap: 0.4rem; }

.form-field label {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.form-field input,
.form-field textarea {
  background: var(--navy-dark);
  border: 1px solid var(--navy-border);
  border-radius: 6px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  padding: 0.6rem 0.875rem;
  transition: border-color 0.15s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-color: var(--cyan);
}

.btn-submit {
  background: var(--cyan);
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s;
}

.btn-submit:hover    { background: var(--cyan-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-success {
  color: var(--cyan);
  font-size: 0.9rem;
  text-align: center;
}

.form-error {
  color: var(--error);
  font-size: 0.9rem;
  text-align: center;
}

.form-error a { color: var(--error); text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--navy-mid);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  color: var(--text-footer);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

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

/* Prevent page scroll behind mobile nav overlay (iOS Safari) */
body.nav-open { overflow: hidden; }

/* ── Responsive (768 px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.4rem; }

  .section-inner { padding: 3.5rem 1.25rem; }
  .hero-inner    { padding: 3.5rem 1.25rem 3rem; }

  /* Hamburger visible; desktop links hidden by default */
  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--navy-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    z-index: 101;
  }

  .nav-links.open { display: flex; }
  .nav-links a    { font-size: 1.1rem; }

  .nav-cta {
    padding: 0.6rem 2rem;
    font-size: 1rem;
  }

  /* Features: single column */
  .features-grid { grid-template-columns: 1fr; }

  footer { flex-direction: column; align-items: flex-start; }
}
