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

:root {
  --teal: #2B6960;
  --teal-dark: #1E4D47;
  --teal-light: #3A8B7F;
  --cream: #FAF6F1;
  --cream-dark: #F0EAE1;
  --warm-white: #FEFCF9;
  --text-primary: #1A1A1A;
  --text-secondary: #5A5A5A;
  --text-light: #8A8A8A;
  --gold: #C4A265;
  --gold-light: #D4B87A;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text-primary);
  background: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}
@keyframes grain-drift {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  30% { transform: translate(3%, -15%); }
  50% { transform: translate(12%, 9%); }
  70% { transform: translate(9%, 4%); }
  90% { transform: translate(-1%, 7%); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ═══════════════ NAVIGATION ═══════════════ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s ease;
  background: transparent;
}
nav.scrolled {
  background: rgba(250, 246, 241, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.8rem 2rem;
  box-shadow: 0 1px 0 rgba(43, 105, 96, 0.08);
}
.nav-logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--teal);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal) !important;
  color: white !important;
  padding: 0.6rem 1.4rem;
  border-radius: 100px;
  font-weight: 500 !important;
  transition: all 0.3s ease !important;
}
.nav-cta:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px);
}

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--teal);
  transition: all 0.3s;
  border-radius: 2px;
}

/* ═══════════════ HERO ═══════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 2rem 4rem;
  position: relative;
  background: var(--cream);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, rgba(43, 105, 96, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(196, 162, 101, 0.05) 0%, transparent 60%);
  pointer-events: none;
}
/* Grain overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  animation: grain-drift 8s steps(10) infinite;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(43, 105, 96, 0.08);
  border: 1px solid rgba(43, 105, 96, 0.12);
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 2.5rem;
  animation: fadeUp 0.8s ease both;
  position: relative;
  z-index: 1;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--teal-light);
  border-radius: 50%;
  position: relative;
}
.hero-badge::after {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(58, 139, 127, 0.3);
  transform: translateY(-50%);
  animation: pulse-ring 2s ease-out infinite;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  line-height: 1.12;
  max-width: 800px;
  color: var(--text-primary);
  animation: fadeUp 0.8s ease 0.15s both;
  position: relative;
  z-index: 1;
}
.hero h1 em {
  font-style: italic;
  color: var(--teal);
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin: 1.8rem auto 0;
  font-weight: 300;
  animation: fadeUp 0.8s ease 0.3s both;
  position: relative;
  z-index: 1;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  margin-top: 2.8rem;
  animation: fadeUp 0.8s ease 0.45s both;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--teal);
  color: white;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.35s ease;
  letter-spacing: 0.01em;
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(43, 105, 96, 0.25);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--text-secondary);
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid rgba(0,0,0,0.12);
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 4rem;
  animation: fadeUp 0.8s ease 0.6s both;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 400;
}
.hero-proof-item svg {
  color: var(--teal-light);
  flex-shrink: 0;
}

/* ═══════════════ SECTION STYLES ═══════════════ */
section {
  padding: 7rem 2rem;
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--teal);
  margin-bottom: 1.2rem;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  max-width: 650px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 550px;
  line-height: 1.7;
  margin-top: 1.2rem;
  font-weight: 300;
}

/* ═══════════════ HOW IT WORKS ═══════════════ */
.how-section {
  background: var(--warm-white);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}

.step-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  position: relative;
  transition: all 0.4s ease;
  border: 1px solid transparent;
}
.step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(43, 105, 96, 0.12);
  box-shadow: 0 20px 60px rgba(0,0,0,0.06);
}

.step-number {
  font-family: var(--serif);
  font-size: 3.5rem;
  color: rgba(43, 105, 96, 0.1);
  line-height: 1;
  margin-bottom: 1.5rem;
}
.step-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(43, 105, 96, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--teal);
}
.step-card h3 {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin-bottom: 0.8rem;
  color: var(--text-primary);
}
.step-card p {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

.step-tag {
  display: inline-block;
  margin-top: 1.2rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  background: rgba(43, 105, 96, 0.06);
  padding: 0.35rem 0.8rem;
  border-radius: 100px;
}

/* ═══════════════ FEATURES (Patient journey extended) ═══════════════ */
.features-section {
  background: var(--teal);
  color: white;
  position: relative;
  overflow: hidden;
}
.features-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 0% 0%, rgba(255,255,255,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(196, 162, 101, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.features-section .section-label { color: var(--gold-light); }
.features-section .section-title { color: white; }
.features-section .section-desc { color: rgba(255,255,255,0.7); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  position: relative;
  z-index: 1;
}
.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 2rem;
  transition: all 0.35s ease;
  backdrop-filter: blur(10px);
}
.feature-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--gold-light);
}
.feature-card h3 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: white;
}
.feature-card p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.65);
  font-weight: 300;
}

/* ═══════════════ DOCTORS SECTION ═══════════════ */
.doctors-section {
  background: var(--cream);
}
.doctors-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3.5rem;
  align-items: start;
}
.doctors-text h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.doctors-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
  font-size: 0.95rem;
}
.doctors-text .btn-primary {
  margin-top: 0.5rem;
}

.tool-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.tool-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  background: var(--warm-white);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s ease;
}
.tool-item:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  transform: translateX(4px);
}
.tool-icon {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 12px;
  background: rgba(43, 105, 96, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
}
.tool-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.tool-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
  font-weight: 300;
}

/* ═══════════════ TEAM ═══════════════ */
.team-section {
  background: var(--warm-white);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
  max-width: 800px;
}
.team-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  border: 1px solid transparent;
}
.team-card:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 105, 96, 0.1);
  box-shadow: 0 16px 50px rgba(0,0,0,0.06);
}
.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--serif);
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}
.team-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 0.3rem;
}
.team-role {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
}
.team-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

/* ═══════════════ CTA SECTION ═══════════════ */
.cta-section {
  background: var(--cream);
  text-align: center;
  padding: 6rem 2rem;
}
.cta-section .section-title {
  max-width: 600px;
  margin: 0 auto;
}
.cta-section .section-desc {
  max-width: 480px;
  margin: 1.2rem auto 0;
}

.waitlist-form {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1;
  min-width: 220px;
  padding: 0.9rem 1.4rem;
  border-radius: 100px;
  border: 1.5px solid rgba(0,0,0,0.1);
  font-family: var(--sans);
  font-size: 0.92rem;
  background: var(--warm-white);
  outline: none;
  transition: all 0.3s;
}
.waitlist-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(43, 105, 96, 0.1);
}
.waitlist-form input::placeholder {
  color: var(--text-light);
}
.input-error { border-color: #e74c3c !important; }
.btn-success { background: #1E4D47 !important; }
.email-error {
  font-size: 0.8rem;
  color: #e74c3c;
  margin-top: 0.5rem;
  min-height: 1.2em;
}

.cta-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ═══════════════ FOOTER ═══════════════ */
footer {
  background: var(--text-primary);
  color: rgba(255,255,255,0.5);
  padding: 3rem 2rem;
  text-align: center;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--serif);
  font-size: 1.3rem;
  color: white;
}
footer small {
  font-size: 0.8rem;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .features-grid { grid-template-columns: 1fr; }
  .doctors-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--cream);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 999;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; z-index: 1001; }
  .hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  section { padding: 4.5rem 1.5rem; }
  .hero { padding: 7rem 1.5rem 3.5rem; min-height: auto; }
  .hero-proof { flex-direction: column; gap: 0.8rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
