/* ─── Meduvita Corporate — Brand Tokens ─── */
:root {
  --navy:          #0f172a;
  --navy-mid:      #1e293b;
  --navy-light:    #263348;
  --blue:          #1e40af;
  --blue-bright:   #3b82f6;
  --teal:          #0d9488;
  --teal-bright:   #14b8a6;
  --teal-glow:     rgba(13, 148, 136, 0.22);
  --gold:          #f59e0b;
  --gold-soft:     rgba(245, 158, 11, 0.15);
  --white:         #ffffff;
  --text-light:    #e2e8f0;
  --muted:         #94a3b8;
  --muted-dark:    #64748b;
  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --glass:         rgba(15, 23, 42, 0.55);
  --max-width:     1180px;
  --header-h:      76px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Sora', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-light);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}

/* ─── Ambient page background ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 15% 10%, rgba(13, 148, 136, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 15%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 40% 35% at 50% 90%, rgba(245, 158, 11, 0.06) 0%, transparent 50%),
    var(--navy);
}

/* ─── Header ─── */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  background: rgba(15, 23, 42, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--white);
}

.logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(13, 148, 136, 0.35));
}

.logo--footer img { width: 48px; height: 48px; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal-bright), var(--gold));
  border-radius: 2px;
  transition: width 0.25s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta { display: none; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  transform: translateY(-110%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav ul { list-style: none; display: grid; gap: 0.25rem; }

.mobile-nav a {
  display: block;
  padding: 0.85rem 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:hover { color: var(--teal-bright); }
.mobile-nav .btn { width: 100%; margin-top: 1.25rem; }

@media (min-width: 768px) {
  .menu-toggle, .mobile-nav { display: none; }
  .nav-links, .nav-cta { display: flex; }
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 55%, #2dd4bf 100%);
  color: var(--navy);
  box-shadow: 0 4px 28px var(--teal-glow), inset 0 1px 0 rgba(255,255,255,0.25);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px rgba(13, 148, 136, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  border-color: var(--border-strong);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--teal-bright);
  color: var(--teal-bright);
  background: rgba(20, 184, 166, 0.08);
}

.btn-lg { padding: 1rem 1.85rem; font-size: 0.975rem; }

.btn-arrow::after {
  content: '→';
  transition: transform 0.2s;
}

.btn:hover.btn-arrow::after { transform: translateX(4px); }

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb--1 {
  width: 420px; height: 420px;
  top: -80px; left: -100px;
  background: rgba(13, 148, 136, 0.18);
}

.hero-orb--2 {
  width: 360px; height: 360px;
  top: 10%; right: -80px;
  background: rgba(59, 130, 246, 0.14);
  animation-delay: -3s;
}

.hero-orb--3 {
  width: 280px; height: 280px;
  bottom: 0; left: 35%;
  background: rgba(245, 158, 11, 0.1);
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.05); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    text-align: left;
  }
}

.hero-content { text-align: center; }

@media (min-width: 900px) {
  .hero-content { text-align: left; }
  .hero-actions { justify-content: flex-start; }
  .hero-sub { margin-inline: 0; }
  .hero h1 { margin-inline: 0; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem 1rem 0.45rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: linear-gradient(135deg, rgba(13,148,136,0.15), rgba(59,130,246,0.08));
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.hero-eyebrow i { color: var(--gold); font-size: 0.65rem; }

.hero h1 {
  max-width: 14ch;
  margin: 0 auto 1.35rem;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2.15rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--white);
}

.hero h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--teal-bright) 0%, #5eead4 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  max-width: 50ch;
  margin: 0 auto 2rem;
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  color: var(--muted);
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 900px) {
  .hero-stats { justify-content: flex-start; }
}

.stat-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-light);
}

.stat-chip i {
  color: var(--teal-bright);
  font-size: 0.9rem;
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.logo-showcase {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.logo-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(20, 184, 166, 0.25);
  animation: spin 20s linear infinite;
}

.logo-ring::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent, var(--teal-bright), transparent, var(--gold), transparent);
  opacity: 0.35;
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 1px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), black calc(100% - 1px));
}

.logo-ring--inner {
  inset: 18%;
  animation-direction: reverse;
  animation-duration: 14s;
  opacity: 0.6;
}

@keyframes spin { to { transform: rotate(360deg); } }

.logo-showcase img {
  width: 58%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 20px 50px rgba(13, 148, 136, 0.35));
  animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.logo-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.35) 0%, transparent 70%);
  z-index: 1;
}

/* ─── Sections ─── */
.section { padding: 5.5rem 0; position: relative; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-bright);
}

.section-label::before,
.section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal-bright));
}

.section-label::after {
  background: linear-gradient(90deg, var(--teal-bright), transparent);
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-header h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
  font-weight: 400;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.section-header p {
  max-width: 48ch;
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.section-divider {
  border-top: 1px solid var(--border);
}

/* ─── Platforms ─── */
#platforms {
  background: linear-gradient(180deg, transparent 0%, rgba(30,41,59,0.5) 50%, transparent 100%);
}

.platform-card {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(155deg, rgba(38,51,72,0.9) 0%, rgba(30,41,59,0.85) 100%);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}

.platform-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--blue-bright), var(--gold));
}

.platform-card-inner {
  display: grid;
  gap: 2.5rem;
  padding: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 900px) {
  .platform-card-inner {
    grid-template-columns: 1fr 320px;
    align-items: stretch;
  }
}

.platform-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.15rem;
  padding: 0.4rem 0.9rem;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal-bright);
  background: rgba(13, 148, 136, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.platform-badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 10px var(--teal-bright);
  animation: pulse 2s ease-in-out infinite;
}

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

.platform-card h3 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.025em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.platform-card > .platform-card-inner > div:first-child p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  max-width: 54ch;
}

.platform-features {
  display: grid;
  gap: 0.75rem;
  list-style: none;
}

.platform-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-light);
  transition: border-color 0.2s, transform 0.2s;
}

.platform-features li:hover {
  border-color: rgba(20, 184, 166, 0.35);
  transform: translateX(4px);
}

.platform-features i {
  margin-top: 2px;
  color: var(--teal-bright);
  font-size: 0.95rem;
  flex-shrink: 0;
}

.platform-visual {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(13,148,136,0.2) 0%, rgba(15,23,42,0.9) 100%);
  border: 1px solid rgba(20, 184, 166, 0.2);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 280px;
}

.platform-visual img {
  width: 120px;
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 12px 30px rgba(13,148,136,0.4));
}

.platform-visual-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.platform-visual-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.platform-card-action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

@media (min-width: 900px) {
  .platform-card-action { align-items: flex-start; }
}

/* ─── Pillars ─── */
#pillars { background: rgba(15, 23, 42, 0.4); }

.pillars-grid {
  display: grid;
  gap: 1.35rem;
}

@media (min-width: 640px) {
  .pillars-grid { grid-template-columns: repeat(2, 1fr); }
}

.pillar-card {
  position: relative;
  padding: 2rem 1.85rem;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(30,41,59,0.8) 0%, rgba(15,23,42,0.6) 100%);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--pillar-accent, var(--teal-bright));
  opacity: 0.8;
}

.pillar-card::after {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--pillar-glow, var(--teal-glow)) 0%, transparent 70%);
  pointer-events: none;
}

.pillar-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.15);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.pillar-card:nth-child(1) { --pillar-accent: var(--teal-bright); --pillar-glow: rgba(20,184,166,0.15); }
.pillar-card:nth-child(2) { --pillar-accent: var(--blue-bright); --pillar-glow: rgba(59,130,246,0.12); }
.pillar-card:nth-child(3) { --pillar-accent: var(--gold); --pillar-glow: var(--gold-soft); }
.pillar-card:nth-child(4) { --pillar-accent: #2dd4bf; --pillar-glow: rgba(45,212,191,0.12); }

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}

.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  color: var(--pillar-accent, var(--teal-bright));
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.pillar-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-dark);
}

.pillar-card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.85rem;
  line-height: 1.35;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.72;
  margin-bottom: 1.15rem;
}

.pillar-focus {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pillar-accent, var(--teal-bright));
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

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

/* ─── Footer ─── */
.site-footer {
  margin-top: auto;
  padding: 4rem 0 2rem;
  background: linear-gradient(180deg, transparent, rgba(15,23,42,0.95));
  border-top: 1px solid var(--border);
}

.footer-top {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.footer-brand p {
  margin-top: 1.15rem;
  max-width: 38ch;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
}

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

.legal-disclaimer {
  padding: 1.35rem 1.5rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  margin-bottom: 2rem;
}

.legal-disclaimer p {
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--muted-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted-dark);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
