:root {
  --brand-primary: #1EB954;
  --brand-primary-deep: #159545;
  --brand-ink: #102218;
  --brand-mist: #eefaf2;
  --brand-line: #d7efdf;
  --text-main: #1a2f22;
  --text-soft: #547060;
  --surface: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Source Sans 3", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 8% 8%, #ddf6e6 0, transparent 28%),
    radial-gradient(circle at 94% 14%, #e7f9ef 0, transparent 24%),
    linear-gradient(180deg, #fbfefc 0%, #f6fcf8 100%);
  overflow-x: hidden;
}

h1, h2, h3, h4, .brand-title {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.02em;
  color: var(--brand-ink);
}

/* ── Navbar ── */
.navbar {
  backdrop-filter: blur(8px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(16, 34, 24, 0.08);
}

/* ── Buttons ── */
.btn-brand {
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-weight: 600;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 22px rgba(30, 185, 84, 0.24);
}

.btn-brand:hover,
.btn-brand:focus {
  background: var(--brand-primary-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(30, 185, 84, 0.3);
}

.btn-ghost {
  border: 1px solid rgba(16, 34, 24, 0.14);
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  color: var(--brand-ink);
  font-weight: 600;
  background: #fff;
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: rgba(16, 34, 24, 0.26);
  color: var(--brand-ink);
  background: #fff;
}

/* ── Hero ── */
.hero {
  padding: 7.5rem 0 5rem;
  position: relative;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 15%;
  width: 340px;
  height: 340px;
  border-radius: 42% 58% 57% 43% / 36% 55% 45% 64%;
  background: linear-gradient(130deg, rgba(30, 185, 84, 0.18), rgba(30, 185, 84, 0.02));
  z-index: -1;
  animation: float-shape 6s ease-in-out infinite;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  color: var(--brand-primary-deep);
  background: var(--brand-mist);
  border: 1px solid var(--brand-line);
  font-size: 0.92rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.05;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.hero p.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  max-width: 58ch;
  color: var(--text-soft);
}

/* ── Hero panel ── */
.hero-panel {
  border: 1px solid var(--brand-line);
  border-radius: 1.4rem;
  background: linear-gradient(160deg, #ffffff 0%, #f4fbf7 100%);
  padding: 1.6rem;
  box-shadow: 0 24px 48px rgba(16, 34, 24, 0.08);
  transform: translateY(0);
  transition: transform 0.35s ease;
}

.hero-panel:hover {
  transform: translateY(-4px);
}

.metric {
  border-radius: 1rem;
  background: #fff;
  border: 1px solid var(--brand-line);
  padding: 0.9rem 1rem;
}

.metric strong {
  font-size: 1.1rem;
  font-family: "Space Grotesk", sans-serif;
  color: var(--brand-ink);
  display: block;
  line-height: 1.2;
}

/* ── Hero stats ── */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--brand-line);
}

.hero-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-ink);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.hero-stat-divider {
  width: 1px;
  background: var(--brand-line);
  align-self: stretch;
}

/* ── Sections ── */
.section-block {
  padding: 5rem 0;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.soft-text {
  color: var(--text-soft);
}

/* ── Feature & About cards ── */
.feature-card,
.about-card {
  background: var(--surface);
  border: 1px solid var(--brand-line);
  border-radius: 1.25rem;
  padding: 1.4rem;
  height: 100%;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  box-shadow: 0 10px 18px rgba(16, 34, 24, 0.04);
}

.feature-card:hover,
.about-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 24px rgba(16, 34, 24, 0.09);
}

.feature-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--brand-primary-deep);
  background: var(--brand-mist);
  border: 1px solid var(--brand-line);
  margin-bottom: 0.85rem;
}

/* ── Medfox showcase (dark-ink card) ── */
.medfox-showcase {
  background: linear-gradient(145deg, var(--brand-ink) 0%, #1a3c2a 100%);
  border-radius: 1.4rem;
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
}

.medfox-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 90% 10%, rgba(30, 185, 84, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.medfox-logo-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #fff;
}

.medfox-logo-text span {
  color: var(--brand-primary);
}

.medfox-showcase .tagline {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin: 0.85rem 0;
}

.medfox-showcase .description {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

.medfox-stat {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.9rem;
  padding: 0.85rem 1rem;
  text-align: center;
}

.medfox-stat-value {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-primary);
  line-height: 1;
}

.medfox-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.2rem;
}

.btn-medfox {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--brand-primary);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.72rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 10px 22px rgba(30, 185, 84, 0.3);
}

.btn-medfox:hover {
  background: var(--brand-primary-deep);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(30, 185, 84, 0.36);
}

.badge-use-case {
  display: inline-block;
  background: rgba(30, 185, 84, 0.12);
  color: var(--brand-primary-deep);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 185, 84, 0.22);
}

/* ── CTA Banner ── */
.cta-banner {
  background: var(--brand-mist);
  border: 1px solid var(--brand-line);
  border-radius: 1.25rem;
  padding: 2rem 2.25rem;
}

/* ── Vision card (dark) ── */
.vm-card-vision {
  background: linear-gradient(145deg, var(--brand-ink) 0%, #1a3c2a 100%);
  border-radius: 1.25rem;
  padding: 1.75rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.vm-card-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 95% 5%, rgba(30,185,84,0.18) 0%, transparent 60%);
  pointer-events: none;
}

.vm-card-vision h3 { color: #fff; }
.vm-card-vision .vm-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-primary);
  margin-bottom: 0.4rem;
}
.vm-card-vision .vm-icon {
  color: var(--brand-primary);
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}
.vm-card-vision p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

/* ── Timeline ── */
.timeline {
  border-left: 2px solid var(--brand-line);
  padding-left: 1.2rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.54rem;
  top: 0.22rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--brand-primary);
  box-shadow: 0 0 0 5px rgba(30, 185, 84, 0.18);
}

.timeline-year {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-primary-deep);
  margin-bottom: 0.1rem;
}

/* ── Legal / placeholder pages ── */
.legal-hero {
  padding: 7.5rem 0 3rem;
}

.legal-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.1;
  margin-top: 1rem;
  margin-bottom: 0.75rem;
}

.legal-content {
  padding: 3rem 0 5rem;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.legal-content p,
.legal-content li {
  color: var(--text-soft);
  line-height: 1.75;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--brand-line);
  background: #fbfefc;
  color: var(--text-soft);
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* ── Dot pulse ── */
.dot-pulse {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-primary);
  animation: dot-anim 2s infinite;
}

@keyframes dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.8); }
}

@keyframes float-shape {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50%       { transform: translateY(-11px) rotate(4deg); }
}

@media (max-width: 991.98px) {
  .hero { padding-top: 6.2rem; }
  .hero::before { right: -180px; top: 5%; }
}
