/* ============================================================
   OpenGenDx — main.css
   Palette: navy bg #0B1628 | teal accent #00AECC | off-white #F0EDE6
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0B1628;
  color: #F0EDE6;
  line-height: 1.6;
  min-height: 100vh;
}

/* ---- Typography helpers ---- */
.eyebrow, .section-label, .aside-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #00AECC;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* ---- Nav ---- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  border-bottom: 0.5px solid rgba(240,237,230,0.1);
  position: sticky;
  top: 0;
  background: #0B1628;
  z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-img { width: 38px; height: 38px; border-radius: 50%; }
.nav-wordmark {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: #F0EDE6;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-size: 13px;
  color: rgba(240,237,230,0.5);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #F0EDE6; }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 5rem 2.5rem 4rem;
  overflow: hidden;
}
.hero-wave {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  pointer-events: none;
}
.hero-wave svg { width: 100%; height: 100%; }
.hero-content { position: relative; }
.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.15;
  color: #F0EDE6;
  margin: 0 0 1.5rem;
  max-width: 680px;
}
.hero-title em { font-style: italic; color: #00AECC; }
.hero-sub {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(240,237,230,0.6);
  max-width: 520px;
  margin: 0 0 2.5rem;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  background: #00AECC;
  color: #0B1628;
  font-size: 14px;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  display: inline-block;
}
.btn-primary:hover { opacity: 0.88; }

.btn-ghost {
  background: transparent;
  color: #F0EDE6;
  font-size: 14px;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  border: 0.5px solid rgba(240,237,230,0.3);
  text-decoration: none;
  transition: border-color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: rgba(240,237,230,0.7); }

/* ---- Stats ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: rgba(240,237,230,0.08);
  border-top: 0.5px solid rgba(240,237,230,0.08);
  border-bottom: 0.5px solid rgba(240,237,230,0.08);
}
.stat { padding: 1.75rem 2rem; background: #0B1628; }
.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 30px;
  color: #F0EDE6;
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-number span { color: #00AECC; }
.stat-label {
  font-size: 12px;
  color: rgba(240,237,230,0.45);
  letter-spacing: 0.03em;
  line-height: 1.5;
}

/* ---- Problem / Mission ---- */
.problem {
  background: #0F1E33;
  padding: 4rem 2.5rem;
  border-top: 0.5px solid rgba(240,237,230,0.08);
  border-bottom: 0.5px solid rgba(240,237,230,0.08);
}
.pullquote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(18px, 2.5vw, 24px);
  color: #F0EDE6;
  line-height: 1.55;
  border-left: 2px solid #00AECC;
  padding-left: 1.5rem;
  margin: 0 0 1.5rem;
  max-width: 600px;
  font-style: normal;
}
.body-text {
  font-size: 15px;
  color: rgba(240,237,230,0.6);
  line-height: 1.8;
  max-width: 600px;
}
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2rem; }
.pill {
  font-size: 12px;
  color: rgba(240,237,230,0.55);
  border: 0.5px solid rgba(240,237,230,0.18);
  padding: 5px 14px;
  border-radius: 99px;
}

/* ---- Approach ---- */
.approach { padding: 4rem 2.5rem; }
.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: #F0EDE6;
  margin: 0 0 2.5rem;
  max-width: 480px;
  line-height: 1.3;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(240,237,230,0.08);
  border: 0.5px solid rgba(240,237,230,0.08);
  border-radius: 10px;
  overflow: hidden;
}
.card { background: #0F1E33; padding: 1.75rem; }
.card-icon { font-size: 20px; color: #00AECC; margin-bottom: 1rem; }
.card-title { font-size: 15px; font-weight: 500; color: #F0EDE6; margin: 0 0 0.5rem; }
.card-body { font-size: 13px; color: rgba(240,237,230,0.5); line-height: 1.7; }

/* ---- Roadmap ---- */
.roadmap {
  background: #0F1E33;
  padding: 4rem 2.5rem;
  border-top: 0.5px solid rgba(240,237,230,0.08);
  border-bottom: 0.5px solid rgba(240,237,230,0.08);
}

.phases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(240,237,230,0.08);
  border: 0.5px solid rgba(240,237,230,0.08);
  border-radius: 10px;
  overflow: hidden;
}

.phase {
  background: #0B1628;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.phase--active { opacity: 1; }

.phase-number {
  font-family: 'DM Serif Display', serif;
  font-size: 42px;
  color: rgba(240,237,230,0.08);
  line-height: 1;
  letter-spacing: -0.02em;
}

.phase--active .phase-number { color: #00AECC; }

.phase-content { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }

.phase-title {
  font-size: 16px;
  font-weight: 500;
  color: #F0EDE6;
  margin: 0;
}

.phase-body {
  font-size: 13px;
  color: rgba(240,237,230,0.5);
  line-height: 1.7;
  flex: 1;
}

.phase-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  width: fit-content;
  margin-top: 0.5rem;
}

.phase-badge--done {
  background: rgba(59,184,122,0.12);
  color: #3BB87A;
  border: 0.5px solid rgba(59,184,122,0.3);
}

.phase-badge--now {
  background: rgba(0,174,204,0.12);
  color: #00AECC;
  border: 0.5px solid rgba(0,174,204,0.3);
}

.phase-badge--next {
  background: rgba(240,237,230,0.06);
  color: rgba(240,237,230,0.4);
  border: 0.5px solid rgba(240,237,230,0.12);
}

.phase-badge--building {
  background: rgba(240,237,230,0.06);
  color: rgba(240,237,230,0.4);
  border: 0.5px solid rgba(240,237,230,0.12);
}

/* ---- Contact ---- */
.contact { padding: 4rem 2.5rem; }
.contact-title {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: #F0EDE6;
  margin: 0 0 0.75rem;
}
.contact-sub {
  font-size: 15px;
  color: rgba(240,237,230,0.55);
  margin: 0 0 2.5rem;
  line-height: 1.7;
  max-width: 480px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

/* ---- Form ---- */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

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

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

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(240,237,230,0.6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  background: rgba(240,237,230,0.05);
  border: 0.5px solid rgba(240,237,230,0.15);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #F0EDE6;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(240,237,230,0.25);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00AECC;
  background: rgba(0,174,204,0.05);
}

.cf-turnstile { margin-top: 0.25rem; }

.btn-submit {
  background: #00AECC;
  color: #0B1628;
  font-size: 14px;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
}
.btn-submit:hover { opacity: 0.88; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(11,22,40,0.3);
  border-top-color: #0B1628;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-feedback {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 14px;
  padding: 0.75rem 1rem;
  border-radius: 6px;
}
.form-success {
  background: rgba(59,184,122,0.12);
  border: 0.5px solid rgba(59,184,122,0.3);
  color: #3BB87A;
}
.form-error {
  background: rgba(220,60,60,0.1);
  border: 0.5px solid rgba(220,60,60,0.25);
  color: #f87171;
}
.form-error a { color: #f87171; }

/* ---- Contact aside ---- */
.contact-aside { padding-top: 0.25rem; }
.aside-label { margin-bottom: 1.25rem; }
.contact-links { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-link {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 14px;
  color: rgba(240,237,230,0.65);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}
.contact-link:hover { color: #00AECC; }
.contact-link i { font-size: 16px; color: #00AECC; margin-top: 2px; flex-shrink: 0; }
.contact-link span { font-size: 12px; color: rgba(240,237,230,0.35); display: block; }

/* ---- Footer ---- */
.footer {
  padding: 1.5rem 2.5rem;
  border-top: 0.5px solid rgba(240,237,230,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-left {
  font-size: 12px;
  color: rgba(240,237,230,0.25);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-logo { width: 18px; height: 18px; border-radius: 50%; opacity: 0.5; }
.footer-right { display: flex; gap: 1.5rem; }
.footer-right a {
  font-size: 12px;
  color: rgba(240,237,230,0.25);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-right a:hover { color: rgba(240,237,230,0.6); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 640px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.25rem; }
  .hero { padding: 3rem 1.25rem 2.5rem; }
  .problem, .approach, .contact { padding: 3rem 1.25rem; }
  .stats .stat { padding: 1.25rem; }
  .footer { padding: 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
}
