/* ============================================================
   BASE
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #111827;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

.container {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-red {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #F63458;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  transition: background 200ms ease;
  white-space: nowrap;
}
.btn-red:hover { background: #E62A4A; }
.btn-red.btn-lg { font-size: 1rem; padding: 0.8rem 2rem; }
.btn-red.btn-full { width: 100%; padding: 0.85rem; font-size: 1rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  transition: border-color 200ms ease, background 200ms ease;
}
.btn-outline:hover { border-color: #111827; background: #f9fafb; }

/* ============================================================
   NAVBAR
============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid #f3f4f6;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo { height: 2.5rem; width: auto; }
.nav-logo-link { display: inline-flex; }

/* ============================================================
   HERO
============================================================ */
.hero {
  background: #f9fafb;
  padding: 5rem 1.5rem;
  display: flex;
  justify-content: center;
}
.hero-content {
  max-width: 56rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.hero-h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: #111827;
}
.hero-sub {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 600px;
  line-height: 1.7;
}
.hero-cta { display: flex; justify-content: center; }

/* ============================================================
   ENGINEERED BY
============================================================ */
.engineered {
  background: #fff;
  padding: 4rem 1.5rem;
}
.engineered-label {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  font-weight: 700;
  margin-bottom: 2.5rem;
}
.logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}
.pharma-logo {
  height: 2rem;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 300ms ease, opacity 300ms ease;
}
.pharma-logo:hover { filter: grayscale(0%); opacity: 1; }

/* ============================================================
   PHONE CAROUSEL
============================================================ */
.carousel-section { padding: 2rem 0 2rem; }

.carousel-viewport {
  width: 100%;
  overflow: hidden;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  width: 100%;
  padding: 0 1rem;
}

.carousel-slot {
  flex-shrink: 0;
  width: 280px;
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 500ms ease, transform 500ms ease;
}

/* Positions set by JS via data-offset attribute */
.carousel-slot[data-offset="0"] {
  opacity: 1;
  transform: scale(1);
  z-index: 30;
}
.carousel-slot[data-offset="1"],
.carousel-slot[data-offset="-1"] {
  opacity: 0.3;
  transform: scale(0.85);
  z-index: 20;
}
.carousel-slot[data-offset="2"],
.carousel-slot[data-offset="-2"] {
  opacity: 0.3;
  transform: scale(0.85);
  z-index: 10;
}

.phone-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 1.75rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #d1d5db;
  border: none;
  cursor: pointer;
  transition: background 300ms ease, width 300ms ease;
  padding: 0;
}
.carousel-dot.active {
  background: #F63458;
  width: 1.5rem;
}

/* ============================================================
   WHY TEAMS
============================================================ */
.why-section {
  background: #f9fafb;
  padding: 6rem 1.5rem;
}
.section-h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 3rem;
  color: #111827;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.why-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #f3f4f6;
}
.why-card h3 { font-size: 1.05rem; font-weight: 600; color: #111827; margin-bottom: 0.625rem; }
.why-card p  { font-size: 0.925rem; color: #6b7280; line-height: 1.65; }


/* ============================================================
   FOUNDER
============================================================ */
.founder-section {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  padding: 5rem 1.5rem;
}
.founder-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  max-width: 860px;
  margin: 0 auto;
}
.founder-photo {
  width: 13rem;
  height: 13rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
.founder-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}
.founder-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #F63458; }
.founder-h3  { font-size: 1.4rem; font-weight: 700; color: #111827; }
.founder-desc { font-size: 0.95rem; color: #4b5563; line-height: 1.7; }
.founder-text .btn-outline { align-self: center; }

/* ============================================================
   BOTTOM CTA
============================================================ */
.bottom-cta { background: #f9fafb; padding: 6rem 1.5rem; }
.bottom-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}
.bottom-cta-h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111827;
  max-width: 600px;
}

/* ============================================================
   FOOTER
============================================================ */
.footer { background: #111827; color: #fff; padding: 3rem 1.5rem 1.5rem; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer-logo { height: 2.5rem; width: auto; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.875rem; color: #9ca3af; transition: color 200ms ease; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: #6b7280; text-align: center; padding-bottom: 0.5rem; }

/* ============================================================
   MODAL
============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 2.25rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.15);
}
.modal-close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
  color: #9ca3af;
  padding: 0.25rem;
  transition: color 200ms ease;
}
.modal-close:hover { color: #111827; }
.modal-title { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.modal-subtitle { font-size: 0.875rem; color: #6b7280; margin-bottom: 1.75rem; }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-label { font-size: 0.8rem; font-weight: 500; color: #374151; }
.form-input {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  border: 1px solid #d1d5db;
  border-radius: 0.625rem;
  padding: 0.65rem 0.875rem;
  color: #111827;
  width: 100%;
  outline: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.form-input:focus { border-color: #F63458; box-shadow: 0 0 0 3px rgba(246,52,88,0.1); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-error { font-size: 0.78rem; color: #9ca3af; min-height: 1em; margin-top: 0.25rem; }

.modal-success {
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}
.success-label { font-weight: 700; font-size: 1rem; color: #111827; }
.success-msg { font-size: 0.9rem; color: #6b7280; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (min-width: 640px) {
  .founder-card { flex-direction: row; align-items: center; gap: 3rem; padding: 3.5rem 4rem; }
  .founder-text { text-align: left; }
  .founder-text .btn-outline { align-self: flex-start; }
}
@media (max-width: 640px) {
  .why-grid { grid-template-columns: 1fr; }
  .receive-grid { grid-template-columns: 1fr; }
  .phone-img { height: 300px; }
  .carousel-slide.far { display: none; }
}
