/* =========================================================
   AeroBiotics — flying capsule site
   Aesthetic: retro-futuristic bio-pharma meets dreamy sky
   ========================================================= */

:root {
  /* Palette */
  --sky-50:  #f3f9ff;
  --sky-100: #e3f0fc;
  --sky-200: #c7e2f8;
  --sky-300: #9ccaf0;
  --sky-400: #67a8e4;
  --sky-500: #3d83d0;
  --sky-600: #2a64ab;
  --sky-700: #1f4d85;

  --ink:     #0e2238;
  --ink-soft:#3a5577;
  --muted:   #6b86a3;

  /* Green medicine palette */
  --green-50:  #f0faf3;
  --green-100: #dcf2e3;
  --green-200: #b6e4c5;
  --green-300: #82cfa0;
  --green-400: #4db578;
  --green-500: #2a9d57;
  --green-600: #1d7d44;
  --green-700: #155f34;

  --white:   #ffffff;
  --capsule-top:    #eaf6ff;
  --capsule-bottom: #4db578;

  --accent:  #1c9bf0;
  --accent-deep:#0c63b0;
  --accent-green: #2a9d57;
  --accent-green-deep: #155f34;

  --warm:    #ffd9a0;
  --warm-deep:#f0a83a;

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-soft: 0 18px 50px -22px rgba(31, 77, 133, 0.35);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sky-50);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(243, 249, 255, 0.78);
  border-bottom: 1px solid rgba(156, 202, 240, 0.4);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(180deg, var(--capsule-top) 50%, var(--capsule-bottom) 50%);
  box-shadow: 0 2px 8px rgba(67, 131, 208, 0.4);
}
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.25rem; letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 0.92rem; color: var(--ink-soft); font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent-deep); }
.nav-cta {
  padding: 9px 18px; border-radius: 999px;
  background: var(--ink); color: var(--white) !important;
  font-size: 0.88rem; font-weight: 600;
  transition: background .2s, transform .2s;
}
.nav-cta:hover { background: var(--accent-green-deep); transform: translateY(-1px); }
@media (max-width: 820px) { .nav-links { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  border: none; transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary {
  background: var(--ink); color: var(--white);
  box-shadow: 0 12px 28px -10px rgba(14, 34, 56, 0.5);
}
.btn-primary:hover { background: var(--accent-green-deep); transform: translateY(-2px); }
.btn-ghost {
  background: rgba(255,255,255,0.6); color: var(--ink);
  border: 1px solid rgba(31, 77, 133, 0.2);
}
.btn-ghost:hover { background: var(--white); transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, var(--sky-100) 0%, var(--sky-50) 60%);
  padding: clamp(60px, 9vw, 120px) var(--gutter) clamp(40px, 6vw, 70px);
  overflow: hidden;
}
.cloud-layer {
  position: absolute; left: -10%; right: -10%;
  background-repeat: no-repeat; background-size: cover;
  opacity: 0.5; pointer-events: none;
}
.cloud-layer--far {
  top: 5%; height: 200px;
  background: url('images/clouds.jpg') center / cover;
  opacity: 0.18; filter: blur(2px);
}
.cloud-layer--near {
  bottom: 0; height: 140px;
  background: url('images/clouds.jpg') center bottom / cover;
  opacity: 0.25;
}

.hero-grid {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 50px; align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--sky-600); font-weight: 600;
  background: rgba(255,255,255,0.7);
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(67, 131, 208, 0.2);
}
@media (max-width: 900px) { .hero-grid .eyebrow { margin: 0 auto; } }
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(28, 155, 240, 0.18);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 22px 0 18px;
}
.hero-title .accent {
  font-weight: 800; font-style: italic;
  background: linear-gradient(120deg, var(--accent) 20%, var(--sky-700) 80%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 1.12rem; color: var(--ink-soft);
  max-width: 540px; margin-bottom: 30px;
}
@media (max-width: 900px) { .hero-sub { margin-left: auto; margin-right: auto; } }

.hero-cta-row {
  display: flex; gap: 14px; flex-wrap: wrap;
}
@media (max-width: 900px) { .hero-cta-row { justify-content: center; } }
.hero-fineprint {
  margin-top: 18px; font-size: 0.82rem; color: var(--muted);
}

.hero-visual {
  position: relative;
  display: flex; justify-content: center; align-items: center;
  min-height: 380px;
}
.hero-img {
  width: clamp(280px, 36vw, 460px);
  filter: drop-shadow(0 30px 40px rgba(31, 77, 133, 0.25));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-22px) rotate(1deg); }
}
.halo {
  position: absolute; width: 70%; aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.7) 0%, transparent 65%);
  z-index: -1;
}

.hero-stats {
  position: relative; z-index: 2;
  max-width: var(--maxw); margin: 60px auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding-top: 32px;
  border-top: 1px solid rgba(31, 77, 133, 0.12);
}
@media (max-width: 700px) { .hero-stats { grid-template-columns: repeat(2, 1fr); } }
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--ink);
}
.stat-label { font-size: 0.84rem; color: var(--muted); }

/* ---------- Generic section ---------- */
.section { padding: clamp(70px, 10vw, 130px) var(--gutter); }
.section-kicker {
  font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600; margin-bottom: 14px;
}
.section-kicker.light { color: var(--sky-200); }
.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.1;
  letter-spacing: -0.015em; margin-bottom: 22px; max-width: 760px;
}
.section-title.light { color: var(--white); }
.section-body {
  font-size: 1.08rem; color: var(--ink-soft); max-width: 640px;
}
.section-body.light { color: rgba(255,255,255,0.82); }
.section-body.narrow { max-width: 540px; }

/* ---------- The Capsule section ---------- */
.section-cap { background: var(--sky-50); }
.cap-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 60px; align-items: center;
}
@media (max-width: 900px) { .cap-grid { grid-template-columns: 1fr; } }

.cap-visual { display: flex; justify-content: center; }
.cap-render {
  position: relative; width: 260px; height: 360px;
  display: flex; justify-content: center; align-items: center;
}
.cap-shape {
  position: relative; z-index: 2;
  width: 120px; height: 260px;
  display: flex; flex-direction: column;
  border-radius: 60px;
  box-shadow: 0 30px 60px -20px rgba(31, 77, 133, 0.4),
              inset 0 0 30px rgba(255,255,255,0.4);
  transform: rotate(-8deg);
  animation: capFloat 5s ease-in-out infinite;
}
@keyframes capFloat {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50%      { transform: rotate(-6deg) translateY(-14px); }
}
.cap-half { width: 100%; height: 50%; }
.cap-half--top    { background: linear-gradient(135deg, #f4faff, #d4ebfb); border-radius: 60px 60px 6px 6px; }
.cap-half--bottom { background: linear-gradient(135deg, var(--green-400), var(--green-600)); border-radius: 6px 6px 60px 60px; }
.cap-shadow {
  position: absolute; bottom: 10px; width: 160px; height: 30px;
  background: radial-gradient(ellipse, rgba(31,77,133,0.25), transparent 70%);
  border-radius: 50%; z-index: 1;
  animation: shadowPulse 5s ease-in-out infinite;
}
@keyframes shadowPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.8); opacity: 0.6; }
}

.cap-specs { margin-top: 28px; display: grid; gap: 14px; }
.cap-specs li {
  display: flex; align-items: center; gap: 12px;
  font-size: 1rem; color: var(--ink-soft);
  padding: 12px 18px; background: var(--white);
  border-radius: 12px; border: 1px solid var(--sky-100);
  box-shadow: 0 4px 14px -8px rgba(31, 77, 133, 0.2);
}
.cap-specs .iconify { font-size: 1.2rem; color: var(--accent-green-deep); }

/* ---------- Flight Modes ---------- */
.section-modes { background: linear-gradient(180deg, var(--sky-50), var(--sky-100)); }
.modes-head { max-width: var(--maxw); margin: 0 auto 50px; }
.modes-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 880px) { .modes-grid { grid-template-columns: 1fr; } }

.mode-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--sky-100);
  box-shadow: var(--shadow-soft);
  transition: transform .3s, box-shadow .3s;
}
.mode-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -25px rgba(31, 77, 133, 0.4); }
.mode-card--featured {
  background: linear-gradient(165deg, var(--ink) 0%, var(--sky-700) 100%);
  color: var(--white); border: none;
}
.mode-card--featured h3,
.mode-card--featured p,
.mode-card--featured dd { color: var(--white); }
.mode-card--featured .mode-tag { color: var(--sky-200); }
.mode-card--featured .mode-meta dt { color: var(--sky-200); }

.ribbon {
  position: absolute; top: 18px; right: 18px;
  background: var(--warm); color: var(--ink);
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 5px 12px; border-radius: 999px;
}
.mode-glyph {
  width: 56px; height: 56px; border-radius: 16px;
  margin-bottom: 22px; position: relative;
}
.mode-glyph--drift  { background: linear-gradient(135deg, #e3f0fc, #9ccaf0); }
.mode-glyph--drift::after  { content: "↑"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--sky-700); font-weight: 700; }
.mode-glyph--glide  { background: linear-gradient(135deg, var(--green-200), var(--green-400)); }
.mode-glyph--glide::after  { content: "↗"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--green-700); font-weight: 700; }
.mode-glyph--soar   { background: linear-gradient(135deg, var(--green-100), var(--green-500)); }
.mode-glyph--soar::after   { content: "✦"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--white); font-weight: 700; }

.mode-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.4rem; margin-bottom: 6px;
}
.mode-tag { font-size: 0.86rem; color: var(--accent-green-deep); font-weight: 600; margin-bottom: 14px; }
.mode-card > p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 22px; }

.mode-meta { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid rgba(31,77,133,0.12); }
.mode-card--featured .mode-meta { border-top-color: rgba(255,255,255,0.2); }
.mode-meta > div { display: flex; justify-content: space-between; align-items: baseline; }
.mode-meta dt { font-size: 0.8rem; color: var(--muted); }
.mode-meta dd { font-size: 0.95rem; font-weight: 600; }

/* ---------- How It Works ---------- */
.section-science {
  position: relative;
  background: linear-gradient(165deg, var(--ink) 0%, var(--sky-700) 60%, var(--sky-600) 100%);
  overflow: hidden;
}
.sci-bg {
  position: absolute; inset: 0;
  background: url('images/flying-person.jpg') center / cover;
  opacity: 0.12; mix-blend-mode: screen;
}
.sci-inner { position: relative; max-width: var(--maxw); margin: 0 auto; }

.sci-steps {
  margin-top: 50px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
@media (max-width: 880px) { .sci-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .sci-steps { grid-template-columns: 1fr; } }

.sci-step {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: background .3s, transform .3s;
}
.sci-step:hover { background: rgba(255,255,255,0.1); transform: translateY(-4px); }
.step-num {
  display: inline-block;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.8rem; color: var(--sky-200);
  margin-bottom: 14px;
}
.sci-step h4 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.2rem; color: var(--white); margin-bottom: 10px;
}
.sci-step p { font-size: 0.92rem; color: rgba(255,255,255,0.78); }

.sci-banner {
  margin-top: 50px;
  background: rgba(255, 217, 160, 0.12);
  border: 1px solid rgba(255, 217, 160, 0.3);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.sci-banner-left { display: flex; align-items: flex-start; gap: 16px; }
.sci-banner-left .iconify { font-size: 1.8rem; color: var(--warm); flex-shrink: 0; }
.sci-banner-left p { color: rgba(255,255,255,0.88); font-size: 1rem; }

/* ---------- Voices ---------- */
.section-voices { background: var(--sky-50); }
.voices-head { max-width: var(--maxw); margin: 0 auto 50px; }
.voices-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
}
@media (max-width: 880px) { .voices-grid { grid-template-columns: 1fr; } }

.voice {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  border: 1px solid var(--sky-100);
  box-shadow: var(--shadow-soft);
  position: relative;
}
.voice::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 5rem; line-height: 1;
  color: var(--sky-200);
  position: absolute; top: 16px; left: 22px;
}
.voice blockquote {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 400;
  font-size: 1.15rem; line-height: 1.5; color: var(--ink);
  margin-top: 28px; margin-bottom: 24px;
}
.voice figcaption { display: flex; flex-direction: column; gap: 2px; }
.voice-name { font-weight: 700; color: var(--ink); }
.voice-where { font-size: 0.84rem; color: var(--accent-green-deep); }

/* ---------- Order / Waitlist ---------- */
.section-order {
  position: relative;
  background: linear-gradient(165deg, var(--sky-600), var(--ink));
  overflow: hidden;
}
.order-bg {
  position: absolute; inset: 0;
  background: url('images/clouds.jpg') center / cover;
  opacity: 0.15; mix-blend-mode: screen;
}
.order-inner {
  position: relative; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 0.85fr; gap: 60px; align-items: center;
}
@media (max-width: 900px) { .order-inner { grid-template-columns: 1fr; } }

.order-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: 0 30px 70px -25px rgba(0,0,0,0.5);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field span { font-size: 0.82rem; font-weight: 600; color: var(--ink-soft); }
.field input, .field select {
  padding: 13px 16px; border-radius: 12px;
  border: 1px solid var(--sky-200); background: var(--sky-50);
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--accent-green);
  box-shadow: 0 0 0 3px rgba(42, 157, 87, 0.18);
}
.form-fineprint { font-size: 0.78rem; color: var(--muted); margin-top: 14px; text-align: center; }
.form-success {
  margin-top: 14px; padding: 14px; border-radius: 12px;
  background: var(--sky-100); color: var(--sky-700);
  font-weight: 600; display: flex; align-items: center; gap: 8px;
  justify-content: center;
}

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 60px var(--gutter) 30px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-brand .brand-name { color: var(--white); }
.footer-tag { font-size: 0.92rem; margin-bottom: 36px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; max-width: 520px; }
@media (max-width: 600px) { .footer-cols { grid-template-columns: repeat(2, 1fr); } }
.footer-cols h5 { color: var(--white); font-size: 0.88rem; margin-bottom: 12px; font-weight: 600; }
.footer-cols a { display: block; font-size: 0.88rem; padding: 4px 0; color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-cols a:hover { color: var(--white); }
.footer-fineprint {
  margin-top: 40px; padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.78rem; color: rgba(255,255,255,0.45);
  max-width: var(--maxw); margin-left: auto; margin-right: auto;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-img, .cap-shape, .cap-shadow { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
