/* ============================================================
   MERID HEALTH — Coming Soon Page
   Brand: Glassy Slate + Pure White + Pale Lime + Horizon Blue
   Fonts: Satoshi (display) + Inter (body)
   ============================================================ */

/* --- Satoshi font (self-hosted via CDN) --- */
@font-face {
  font-family: 'Satoshi';
  src: url('https://cdn.fontshare.com/woff2/Satoshi-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('https://cdn.fontshare.com/woff2/Satoshi-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('https://cdn.fontshare.com/woff2/Satoshi-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Brand palette */
  --glassy-slate: #17212B;
  --pure-white: #FFFFFF;
  --pale-lime: #EAF0CE;
  --horizon-blue: #5B8BAA;
  --charcoal: #1C1C1C;
  --mid-grey: #626A7A;
  --light-grey: #F3F4F6;
  --bg-warm: #FAFAF8;

  /* Typography */
  --font-display: 'Satoshi', 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Inter', 'Roboto', system-ui, sans-serif;

  /* Spacing */
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 48px);

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--charcoal);
  background: var(--pure-white);
  overflow-x: hidden;
}

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

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

/* --- Container --- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 var(--container-pad);
  transition: background 0.4s var(--ease-out), backdrop-filter 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.nav.scrolled {
  background: rgba(23, 33, 43, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--pure-white);
}

.nav-cta {
  font-size: 14px;
  padding: 10px 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  border-radius: 100px;
  white-space: nowrap;
}

.btn-cta {
  background: var(--pale-lime);
  color: var(--glassy-slate);
  padding: 14px 32px;
}

.btn-cta:hover {
  background: #dde6b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(234, 240, 206, 0.3);
}

.btn-cta:active {
  transform: translateY(0);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(23, 33, 43, 0.15) 0%,
    rgba(23, 33, 43, 0.35) 40%,
    rgba(23, 33, 43, 0.75) 70%,
    rgba(23, 33, 43, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 var(--container-pad);
  padding-bottom: clamp(60px, 8vh, 100px);
}

.hero-inner {
  max-width: var(--container-max);
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pale-lime);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(42px, 7vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--pure-white);
  margin-bottom: 20px;
  max-width: 720px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin-bottom: 36px;
}

/* Form */
.form-group {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 5px;
  max-width: 520px;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group:focus-within {
  border-color: rgba(234, 240, 206, 0.4);
  background: rgba(255, 255, 255, 0.12);
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--pure-white);
  padding: 14px 20px;
  min-width: 0;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-btn {
  flex-shrink: 0;
  border-radius: 100px;
  padding: 12px 28px;
  font-size: 14px;
}

.form-micro {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 12px;
  padding-left: 4px;
}

.form-micro-light {
  color: rgba(255, 255, 255, 0.5);
}

/* Success state */
.hero-success[hidden] {
  display: none !important;
}

.hero-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
}

.success-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(234, 240, 206, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pale-lime);
  flex-shrink: 0;
}

.success-icon-light {
  background: rgba(234, 240, 206, 0.15);
}

.success-text {
  font-size: 15px;
  font-weight: 500;
  color: var(--pale-lime);
}

.success-text-light {
  color: rgba(255, 255, 255, 0.8);
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  right: var(--container-pad);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.scroll-text {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  writing-mode: vertical-rl;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--pale-lime);
  animation: scroll-anim 2s var(--ease-out) infinite;
}

@keyframes scroll-anim {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* --- Trust Bar --- */
.trust-bar {
  background: var(--glassy-slate);
  padding: 48px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 clamp(24px, 4vw, 56px);
}

.trust-value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--pure-white);
  letter-spacing: -0.02em;
}

.trust-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--mid-grey);
  letter-spacing: 0.02em;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* --- Sections --- */
.section {
  padding: var(--section-pad) 0;
}

.section-light {
  background: var(--bg-warm);
}

.section-dark {
  background: var(--glassy-slate);
}

.section-trust {
  background: var(--pure-white);
}

/* --- Typography --- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--horizon-blue);
  margin-bottom: 20px;
}

.eyebrow-light {
  color: var(--pale-lime);
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin-bottom: 24px;
}

.section-heading-light {
  color: var(--pure-white);
}

.section-body {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.65;
  color: var(--mid-grey);
  max-width: 560px;
  margin-bottom: 16px;
}

.section-body:last-child {
  margin-bottom: 0;
}

/* --- Two column layout --- */
.two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.col-label {
  padding-top: 8px;
}

/* --- Bento Grid (Pillars) --- */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 36px 32px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.bento-featured {
  grid-column: span 1;
}

.bento-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(234, 240, 206, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pale-lime);
  margin-bottom: 24px;
}

.bento-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--pure-white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.bento-body {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}

.bento-body em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.7);
}

/* --- Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

.step {
  position: relative;
  padding-top: 48px;
}

.step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, var(--horizon-blue), transparent);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 48px;
  color: var(--light-grey);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

.step-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  color: var(--charcoal);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-body {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mid-grey);
}

/* --- Trust Cards --- */
.trust-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 36px;
}

.trust-card {
  background: var(--bg-warm);
  border: 1px solid var(--light-grey);
  border-radius: 20px;
  padding: 32px 28px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.trust-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.trust-card-icon {
  font-size: 28px;
  display: block;
  margin-bottom: 16px;
}

.trust-card-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  color: var(--charcoal);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.trust-card-body {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mid-grey);
}

/* --- CTA Section --- */
.section-cta {
  background: var(--glassy-slate);
  padding: var(--section-pad) 0;
}

.cta-card {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--pure-white);
  margin-bottom: 20px;
}

.cta-body {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 36px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta-form .form-group {
  margin: 0 auto;
  max-width: 480px;
}

/* --- Footer --- */
.footer {
  background: var(--glassy-slate);
  padding: 48px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer .nav-logo-text {
  font-size: 20px;
  margin-bottom: 8px;
  display: block;
}

.footer-tagline {
  font-size: 14px;
  color: var(--mid-grey);
}

.footer-links {
  display: flex;
  gap: 32px;
}

.footer-links a {
  font-size: 14px;
  color: var(--mid-grey);
  transition: color 0.2s ease;
}

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

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

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 6px;
}

.footer-legal {
  max-width: 600px;
}

.footer-copy {
  margin-top: 4px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

.anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-d1 { transition-delay: 0.1s; }
.anim-d2 { transition-delay: 0.2s; }
.anim-d3 { transition-delay: 0.3s; }
.anim-d4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .col-label {
    padding-top: 0;
  }

  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-featured {
    grid-column: span 1;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trust-cards {
    grid-template-columns: 1fr;
  }

  .trust-items {
    flex-wrap: wrap;
    gap: 24px;
  }

  .trust-divider {
    display: none;
  }

  .trust-item {
    padding: 0 20px;
  }

  .hero-scroll {
    display: none;
  }
}

@media (max-width: 600px) {
  .nav-inner {
    height: 64px;
  }

  .nav-cta {
    padding: 8px 18px;
    font-size: 13px;
  }

  .hero-title {
    font-size: 36px;
  }

  .form-group {
    flex-direction: column;
    border-radius: 16px;
    padding: 8px;
  }

  .form-input {
    padding: 14px 16px;
    font-size: 16px; /* Prevents iOS zoom */
  }

  .form-btn {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
  }

  .trust-items {
    flex-direction: column;
    gap: 20px;
  }

  .trust-item {
    flex-direction: row;
    gap: 12px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
