/* ============================================================
   EVRYPILL — Clean Pharma / Clinical Premium Design System
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #FFFFFF;
  --off-white: #F5F7FA;
  --blue: #0B5FFF;
  --blue-hover: #0950DB;
  --blue-light: #EBF1FF;
  --green: #16B981;
  --text: #0F172A;
  --text-body: #475569;
  --border: #E2E8F0;
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.04), 0 1px 2px rgba(15,23,42,0.06);
  --shadow-md: 0 4px 16px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.04);
  --radius: 12px;
  --radius-lg: 16px;
  --nav-height: 72px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background: var(--white);
}

h1, h2, h3, h4 {
  color: var(--text);
  line-height: 1.15;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- Layout ---------- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--off-white);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}

.section-tag {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.section-intro {
  font-size: 17px;
  color: var(--text-body);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(11,95,255,0.25);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: var(--radius);
}

.btn-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s;
}

.btn-text:hover {
  color: var(--blue);
}

.btn-text .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s;
}

.btn-text:hover .arrow {
  transform: translateY(2px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  height: 60px;
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  position: relative;
}

.logo-accent {
  color: var(--blue);
}

.logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
  margin-left: 1px;
  vertical-align: super;
  position: relative;
  top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
  transition: width 0.2s;
}

.nav-links a:not(.btn):hover::after {
  width: 100%;
}

.btn-nav {
  padding: 10px 22px;
  font-size: 14px;
  margin-left: 8px;
}

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

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: all 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-height) + 64px);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 60%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, var(--off-white) 100%);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  min-height: 480px;
}

.hero-headline {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-body);
  max-width: 500px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* Hero visual */
.pouch-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pouch-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
  text-align: center;
  position: relative;
  z-index: 1;
  min-width: 240px;
}

.pouch-date {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 8px;
}

.pouch-label {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.pouch-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.pouch-pill-icon {
  width: 36px;
  height: 36px;
  color: var(--blue);
  opacity: 0.6;
}

.pouch-molecule {
  position: absolute;
  top: -30px;
  right: -40px;
  width: 200px;
  height: 200px;
  z-index: 0;
}

/* Trust strip */
.trust-strip {
  margin-top: 64px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--off-white);
}

.trust-strip .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.trust-strip span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  letter-spacing: 0.5px;
}

.trust-dot {
  width: 4px;
  height: 4px;
  background: var(--border);
  border-radius: 50%;
  display: inline-block;
}

/* ---------- Cards ---------- */
.cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 19px;
  margin-bottom: 10px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.pill-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--blue);
  background: var(--blue-light);
  padding: 4px 12px;
  border-radius: 100px;
}

/* ---------- Two-column (Daily Pouch) ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pouch-strip {
  display: flex;
  gap: 12px;
  overflow: hidden;
}

.strip-pouch {
  flex: 0 0 auto;
  width: 100px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: all 0.3s;
}

.strip-pouch.active {
  background: var(--white);
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,95,255,0.08);
  transform: scale(1.05);
}

.strip-date {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.strip-label {
  display: block;
  font-size: 11px;
  color: var(--text-body);
}

.two-col-text h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.two-col-text p {
  margin-bottom: 16px;
}

.feature-row {
  display: flex;
  gap: 28px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.feature-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ---------- Value Grid (Why Evrypill) ---------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s, transform 0.25s;
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

.value-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 15px;
}

/* ---------- Science / Personalization ---------- */
.science-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.science-text h2 {
  font-size: 32px;
  margin-bottom: 16px;
}

.science-text p:not(.section-tag) {
  font-size: 16px;
  line-height: 1.7;
}

.science-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.flow-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  transition: border-color 0.3s;
}

.flow-circle svg {
  width: 28px;
  height: 28px;
}

.flow-circle-accent {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11,95,255,0.08);
}

.flow-step span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.flow-arrow {
  width: 40px;
  flex-shrink: 0;
  margin-bottom: 26px;
}

.flow-arrow svg {
  width: 100%;
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.team-avatar span {
  font-size: 18px;
  font-weight: 700;
  color: var(--blue);
}

.team-card h3 {
  font-size: 18px;
  margin-bottom: 2px;
}

.team-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 12px;
}

.team-bio {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-body);
}

/* ---------- Vision ---------- */
.vision-section {
  background: linear-gradient(135deg, var(--blue-light) 0%, #F0F4FF 100%);
  text-align: center;
}

.vision-content {
  max-width: 640px;
  margin: 0 auto;
}

.vision-content h2 {
  font-size: 40px;
  margin-bottom: 20px;
}

.vision-content p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 32px;
  color: var(--text-body);
}

/* ---------- Waitlist ---------- */
.waitlist-block {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
}

.waitlist-block h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.waitlist-block > p {
  font-size: 17px;
  color: var(--text-body);
  margin-bottom: 32px;
}

.waitlist-form {
  margin: 0 auto;
}

.waitlist-input-wrap {
  display: flex;
  gap: 12px;
  max-width: 440px;
  margin: 0 auto;
}

.waitlist-input-wrap input {
  flex: 1;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
  color: var(--text);
}

.waitlist-input-wrap input::placeholder {
  color: #94A3B8;
}

.waitlist-input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,95,255,0.1);
}

.waitlist-hint {
  font-size: 13px;
  color: #94A3B8;
  margin-top: 12px;
}

.waitlist-success {
  padding: 24px;
}

.success-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.success-icon svg {
  width: 100%;
  height: 100%;
}

.success-text {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--text);
  color: #94A3B8;
  padding: 56px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-footer {
  color: var(--white);
  margin-bottom: 8px;
  display: inline-block;
}

.logo-footer .logo-dot {
  background: var(--blue);
}

.footer-tagline {
  font-size: 14px;
  margin-top: 8px;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav a {
  font-size: 14px;
  transition: color 0.2s;
}

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

.footer-contact p {
  font-size: 14px;
  margin-bottom: 4px;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-disclaimer {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 12px;
  color: #64748B;
}

/* ---------- Scroll Reveal ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.7s ease forwards;
}

.fade-in.delay-1 { animation-delay: 0.15s; }
.fade-in.delay-2 { animation-delay: 0.3s; }
.fade-in.delay-3 { animation-delay: 0.45s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal.delay-1 { transition-delay: 0.1s; }
.scroll-reveal.delay-2 { transition-delay: 0.2s; }
.scroll-reveal.delay-3 { transition-delay: 0.3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-headline {
    font-size: 42px;
  }

  .hero-sub {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .pouch-visual {
    justify-content: center;
  }

  .pouch-molecule {
    display: none;
  }

  .science-block {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .science-flow {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .section {
    padding: 64px 0;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a:not(.btn) {
    font-size: 18px;
  }

  .btn-nav {
    margin-left: 0;
    margin-top: 8px;
    padding: 14px 32px;
    font-size: 16px;
  }

  .mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .mobile-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero {
    padding-top: calc(var(--nav-height) + 40px);
  }

  .hero-headline {
    font-size: 34px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .cards-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .two-col {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .two-col-visual {
    order: 2;
  }

  .two-col-text {
    order: 1;
  }

  .pouch-strip {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  .strip-pouch {
    width: 80px;
    padding: 14px 8px;
  }

  .feature-row {
    flex-direction: column;
    gap: 16px;
  }

  .value-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-header h2,
  .two-col-text h2,
  .waitlist-block h2 {
    font-size: 28px;
  }

  .vision-content h2 {
    font-size: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .footer-nav {
    gap: 8px;
  }

  .waitlist-input-wrap {
    flex-direction: column;
  }

  .waitlist-input-wrap .btn {
    width: 100%;
  }

  .science-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
    margin-bottom: 0;
  }

  .trust-strip .container {
    gap: 10px;
  }

  .trust-strip span {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero-headline {
    font-size: 28px;
  }

  .container {
    padding: 0 16px;
  }

  .card {
    padding: 28px 20px;
  }

  .strip-pouch {
    width: 64px;
    padding: 10px 6px;
  }

  .strip-date {
    font-size: 12px;
  }

  .strip-label {
    font-size: 10px;
  }
}
