/* ==== MedivIA Landing — by Omnio Studio ==== */

:root {
  --blue-900: #0A2540;
  --blue-800: #112F52;
  --blue-700: #1C3D68;
  --gold-500: #C8A96A;
  --gold-400: #D4B97C;
  --cream: #FAF7F2;
  --cream-dark: #EFEAE1;
  --gray-500: #64748B;
  --gray-700: #334155;
  --red: #DC2626;
  --green: #059669;
  --amber: #F59E0B;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(10, 37, 64, 0.08);
  --shadow-md: 0 4px 20px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 20px 60px rgba(10, 37, 64, 0.18);
  --radius: 16px;
  --radius-lg: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--blue-900);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--blue-900);
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); }
h3 { font-size: 1.35rem; font-family: 'Inter', sans-serif; font-weight: 600; }
h4 { font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-500); }

a { color: inherit; text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }

.gold { color: var(--gold-500); font-style: italic; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 1rem;
}

/* ==== NAV ==== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  backdrop-filter: blur(12px);
  background: rgba(250, 247, 242, 0.8);
  transition: all 0.3s;
}
.nav.scrolled {
  background: rgba(250, 247, 242, 0.95);
  box-shadow: var(--shadow-sm);
  padding: 0.8rem 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--blue-900);
}
.nav-links {
  display: flex;
  gap: 2rem;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--gold-500); }

/* ==== BUTTONS ==== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.3rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--blue-900);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--blue-800);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  opacity: 1;
}
.btn-ghost {
  background: transparent;
  color: var(--blue-900);
  border: 1.5px solid var(--blue-900);
}
.btn-ghost:hover {
  background: var(--blue-900);
  color: var(--cream);
  opacity: 1;
}
.btn-lg { padding: 0.95rem 1.75rem; font-size: 1rem; }

/* Store buttons */
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--blue-900);
  color: var(--cream);
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s;
  text-decoration: none;
}
.store-btn:hover {
  background: var(--blue-800);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(10, 37, 64, 0.25);
  opacity: 1;
}
.store-btn.disabled {
  background: transparent;
  color: var(--gray-500);
  border: 1.5px solid rgba(100, 116, 139, 0.3);
  cursor: not-allowed;
}
.store-btn.disabled:hover {
  transform: none;
  box-shadow: none;
  background: transparent;
  opacity: 1;
}
.store-btn svg { flex-shrink: 0; }
.store-btn .store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
}
.store-btn .store-text small {
  font-size: 0.65rem;
  opacity: 0.7;
  font-weight: 400;
}

/* ==== HERO ==== */
.hero {
  position: relative;
  padding: 9rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  max-width: 1280px;
  margin: 0 auto;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.15), transparent 70%);
  filter: blur(60px);
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(10, 37, 64, 0.04);
  border: 1px solid rgba(10, 37, 64, 0.08);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}
.hero-title { margin-bottom: 1.3rem; }
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-cta { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 3rem; }
.hero-proof {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.proof-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.87rem;
  color: var(--gray-500);
}
.proof-value { font-size: 1.2rem; }

/* Phone mockup */
.hero-mock {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}
.phone {
  width: 280px;
  height: 570px;
  background: var(--blue-900);
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 60px rgba(200, 169, 106, 0.15);
  transform: rotate(-3deg);
  transition: transform 0.4s;
}
.phone:hover { transform: rotate(0deg) translateY(-5px); }
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 28px;
  overflow: hidden;
  padding: 1rem 1rem 1.5rem;
}
.screen-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.2rem 1rem;
  color: var(--blue-900);
}
.screen-dot {
  width: 8px; height: 8px;
  background: var(--blue-900);
  border-radius: 50%;
}
.screen-body { display: flex; flex-direction: column; gap: 0.8rem; }
.screen-card {
  background: var(--white);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.screen-card-gold {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--blue-900);
}
.card-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-500);
  margin-bottom: 0.3rem;
}
.screen-card-gold .card-label { color: var(--blue-900); opacity: 0.7; }
.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.card-sub { font-size: 0.75rem; color: var(--gray-500); margin-bottom: 0.7rem; }
.screen-card-gold .card-sub { color: var(--blue-900); opacity: 0.7; }
.biomarker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0;
  font-size: 0.85rem;
  border-top: 1px solid rgba(10, 37, 64, 0.06);
}
.biomarker:first-of-type { border-top: none; }
.biomarker-val {
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
}
.biomarker-val.normal { background: rgba(5, 150, 105, 0.1); color: var(--green); }
.biomarker-val.slightly-abnormal { background: rgba(245, 158, 11, 0.12); color: var(--amber); }
.biomarker-val.abnormal { background: rgba(220, 38, 38, 0.12); color: var(--red); }
.mini-btn {
  background: var(--blue-900);
  color: var(--gold-500);
  border: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

/* ==== TRUST STRIP ==== */
.trust {
  background: var(--blue-900);
  color: var(--cream);
  padding: 2.5rem 2rem;
}
.trust-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  font-size: 0.95rem;
}
.trust-item strong { color: var(--gold-500); display: block; margin-bottom: 0.2rem; }

/* ==== SECTION HEADS ==== */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}
.section-lead {
  font-size: 1.1rem;
  color: var(--gray-700);
  margin-top: 1rem;
}

/* ==== FEATURES ==== */
.features {
  padding: 6rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: all 0.3s;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}
.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: inline-block;
}
.feature h3 { margin-bottom: 0.6rem; }
.feature p { color: var(--gray-700); font-size: 0.95rem; }

/* ==== SECURITY ==== */
.security {
  background: var(--blue-900);
  color: var(--cream);
  padding: 6rem 2rem;
}
.security-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}
.security h2 { color: var(--cream); margin-bottom: 1.5rem; }
.security-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.security-list li {
  padding-left: 1.5rem;
  position: relative;
  color: rgba(250, 247, 242, 0.85);
}
.security-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-500);
  font-weight: bold;
}
.security-list strong { color: var(--gold-500); }
.security-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.sec-card {
  background: rgba(200, 169, 106, 0.08);
  border: 1px solid rgba(200, 169, 106, 0.25);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}
.sec-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-500);
}

/* ==== PRICING ==== */
.pricing {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.plan {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-featured {
  background: var(--blue-900);
  color: var(--cream);
  border: 2px solid var(--gold-500);
  position: relative;
  transform: scale(1.03);
}
.plan-featured:hover { transform: scale(1.03) translateY(-4px); }
.plan-featured .plan-name, .plan-featured .plan-price { color: var(--cream); }
.plan-featured .plan-price span { color: rgba(250, 247, 242, 0.5); }
.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold-500);
  color: var(--blue-900);
  padding: 0.3rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.plan-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.plan-price {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
}
.plan-price span {
  font-size: 1rem;
  color: var(--gray-500);
  font-family: 'Inter', sans-serif;
}
.plan ul {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}
.plan ul li {
  padding: 0.5rem 0;
  font-size: 0.92rem;
  border-top: 1px solid rgba(10, 37, 64, 0.06);
}
.plan-featured ul li { border-top-color: rgba(250, 247, 242, 0.08); }
.plan ul li:first-child { border-top: none; }
.plan .btn { width: 100%; }
.plan-featured .btn-primary { background: var(--gold-500); color: var(--blue-900); }
.plan-featured .btn-primary:hover { background: var(--gold-400); }

/* ==== FAQ ==== */
.faq {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.faq details {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1.3rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
}
.faq details[open] { border-color: var(--gold-500); }
.faq summary {
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  font-size: 1.5rem;
  color: var(--gold-500);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p {
  margin-top: 1rem;
  color: var(--gray-700);
  font-size: 0.95rem;
}

/* ==== WAITLIST ==== */
.waitlist {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}
.waitlist-card {
  background: var(--blue-900);
  color: var(--cream);
  border-radius: var(--radius-lg);
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.waitlist-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200, 169, 106, 0.2), transparent 70%);
  filter: blur(60px);
}
.waitlist-card > * { position: relative; }
.waitlist-card h2 { color: var(--cream); margin-bottom: 1rem; }
.waitlist-card p { max-width: 500px; margin: 0 auto; color: rgba(250, 247, 242, 0.8); }
.waitlist-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  margin: 2rem auto 1rem;
  flex-wrap: wrap;
}
.waitlist-form input {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(250, 247, 242, 0.2);
  background: rgba(250, 247, 242, 0.05);
  color: var(--cream);
  font-family: inherit;
  font-size: 1rem;
}
.waitlist-form input::placeholder { color: rgba(250, 247, 242, 0.4); }
.waitlist-form input:focus {
  outline: none;
  border-color: var(--gold-500);
}
.waitlist-form .btn { padding: 1rem 1.5rem; }
.waitlist-fine {
  font-size: 0.82rem !important;
  opacity: 0.6 !important;
}

/* ==== FOOTER ==== */
.footer {
  background: var(--cream-dark);
  padding: 4rem 2rem 2rem;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 3rem;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo { margin-bottom: 1rem; }
.footer-tagline {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}
.footer h4 { margin-bottom: 1rem; }
.footer a {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-700);
  padding: 0.3rem 0;
}
.footer a:hover { color: var(--gold-500); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(10, 37, 64, 0.08);
  font-size: 0.82rem;
  color: var(--gray-500);
  text-align: center;
}

/* ==== SCROLL REVEAL ==== */
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 7rem 1.5rem 4rem; text-align: center; }
  .hero-content { order: 1; }
  .hero-mock { order: 2; }
  .hero-cta, .hero-proof { justify-content: center; }
  .security-content { grid-template-columns: 1fr; gap: 3rem; }
  .plan-featured { transform: none; }
  .plan-featured:hover { transform: translateY(-4px); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .nav { padding: 1rem 1.2rem; }
  .logo span { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
