/* ==========================================================================
   Zepinova Life Sciences — Design Tokens
   ========================================================================== */
:root {
  --navy-950: #0a1226;
  --navy-900: #0d1830;
  --navy-800: #14264a;
  --navy-700: #1b2f5c;
  --blue-600: #2b5fc9;
  --blue-500: #3b7bea;
  --teal-500: #14b8a6;
  --teal-400: #2dd4bf;

  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f9;
  --ink-900: #101826;
  --ink-700: #2b3648;
  --ink-600: #4b5875;
  --ink-400: #7c8aa5;
  --line: #e3e9f3;

  --warn-bg: #fff8ec;
  --warn-border: #f0c675;
  --warn-ink: #7a5210;

  --font-head: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(13, 24, 48, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 24, 48, 0.10);
  --shadow-lg: 0 24px 60px rgba(13, 24, 48, 0.16);

  --container: 1180px;
  --header-h: 76px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-700);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy-900); line-height: 1.2; margin: 0 0 0.5em; font-weight: 700; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: var(--navy-900); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.container.center, .center { text-align: center; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  border: 1.5px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--blue-500), var(--navy-700)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline { border-color: var(--navy-700); color: var(--navy-700); }
.btn-outline:hover { background: var(--navy-700); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-icon { background: none; border: none; color: inherit; font-size: 1.4rem; line-height: 1; padding: 4px 8px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 500; height: var(--header-h);
  background: rgba(246, 248, 251, 0.7);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { background: rgba(255, 255, 255, 0.92); border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; margin-right: auto; }
.brand-logo { height: 34px; width: auto; }

.main-nav ul { display: flex; gap: 28px; }
.nav-link { font-weight: 600; font-size: 0.92rem; color: var(--ink-700); position: relative; padding: 6px 0; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--teal-500);
  transition: right 0.25s ease;
}
.nav-link:hover::after, .nav-link.is-active::after { right: 0; }
.nav-link.is-active { color: var(--navy-900); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: none; border: none; padding: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 0 auto; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Install banner
   ========================================================================== */
.install-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 600;
  max-width: 480px; margin: 0 auto;
  background: var(--navy-900); color: #fff; border-radius: var(--radius-md);
  padding: 14px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg);
}
.install-banner img { border-radius: 8px; flex-shrink: 0; }
.install-banner p { margin: 0; font-size: 0.85rem; flex: 1; line-height: 1.4; }
.install-banner-actions { display: flex; align-items: center; gap: 4px; }
.install-banner[hidden] { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; color: #fff; overflow: hidden; padding-top: var(--header-h); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(10,18,38,0.94) 10%, rgba(13,24,48,0.82) 45%, rgba(20,38,74,0.55) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; padding-block: 64px; }
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-500); margin-bottom: 14px;
}
.eyebrow-light { color: var(--teal-400); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: #fff; margin-bottom: 20px; }
.hero-lead { font-size: 1.2rem; color: #eef2fb; font-weight: 500; margin-bottom: 14px; }
.hero-sub { color: #c7d2e8; max-width: 620px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* ==========================================================================
   Sections — generic
   ========================================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--surface-2); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.lead { font-size: 1.1rem; color: var(--ink-600); }
.lead-light { font-size: 1.1rem; color: #cbd6ec; max-width: 640px; margin-inline: auto; }
.text-block p { color: var(--ink-600); font-size: 1.02rem; }
.fine-print { font-size: 0.85rem; color: var(--ink-400); }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-grid .lead { font-size: 1.35rem; color: var(--navy-800); font-weight: 500; }

.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }
.gap-lg { gap: 40px; }

.center-cta { text-align: center; margin-top: 44px; }

/* ==========================================================================
   Focus cards
   ========================================================================== */
.focus-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 32px 26px; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.focus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.focus-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border-radius: 14px; background: linear-gradient(135deg, var(--teal-500), var(--blue-500)); margin-bottom: 18px;
}
.focus-icon svg { width: 26px; height: 26px; fill: #fff; }
.focus-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.focus-card p { color: var(--ink-600); font-size: 0.95rem; margin: 0; }

/* ==========================================================================
   Portfolio cards
   ========================================================================== */
.portfolio-card {
  background: var(--surface); border-radius: var(--radius-md); padding: 28px 22px;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.portfolio-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.portfolio-card p { color: var(--ink-600); font-size: 0.92rem; margin: 0; }
.portfolio-card-muted { background: transparent; border: 1.5px dashed var(--line); box-shadow: none; }

/* ==========================================================================
   PRECUREAN hero band
   ========================================================================== */
.precurean-hero {
  background: radial-gradient(120% 160% at 50% 0%, var(--navy-800) 0%, var(--navy-950) 70%);
  color: #fff;
}
.precurean-title { font-size: clamp(2.4rem, 6vw, 4rem); color: #fff; background: linear-gradient(135deg, #ffffff, var(--teal-400)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.precurean-title .tm { -webkit-text-fill-color: var(--teal-400); font-size: 0.4em; vertical-align: super; }
.precurean-copy { max-width: 760px; margin: 56px auto 0; text-align: center; color: #d6dff2; }

.product-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 320px)); gap: 32px; justify-content: center; margin-top: 56px; }
.product-shot-card { margin: 0; }
.product-shot-media {
  position: relative; aspect-ratio: 3/4; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid rgba(255,255,255,0.14); box-shadow: var(--shadow-lg);
}
.product-shot-media img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px) saturate(0.6) brightness(0.75); transform: scale(1.15); }
.product-shot-scrim { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(20,38,74,0.55), rgba(10,18,38,0.85)); }
.product-shot-placeholder {
  position: absolute; inset: 18px; border: 1.5px dashed rgba(255,255,255,0.4); border-radius: calc(var(--radius-lg) - 8px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: rgba(255,255,255,0.85);
  text-align: center; padding: 20px;
}
.product-shot-placeholder svg { width: 56px; height: 56px; opacity: 0.85; }
.product-shot-placeholder .tag {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700;
  background: rgba(20, 184, 166, 0.18); color: var(--teal-400); padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.4);
}
.product-shot-card figcaption { margin-top: 16px; text-align: center; font-weight: 600; color: #e5ebf9; font-size: 0.92rem; }
.showcase-note { text-align: center; color: var(--ink-400); font-size: 0.85rem; margin-top: 22px; }

/* ==========================================================================
   Ingredient rows
   ========================================================================== */
.ingredient-list { display: flex; flex-direction: column; gap: 64px; }
.ingredient-row { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.ingredient-row.reverse { grid-template-columns: 1fr 280px; }
.ingredient-row.reverse .ingredient-media { order: 2; }
.ingredient-media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.ingredient-tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; }
.ingredient-copy h3 { font-size: 1.35rem; margin-bottom: 12px; }
.ingredient-copy p { color: var(--ink-600); }
.ingredient-note { font-weight: 600; color: var(--navy-800) !important; background: var(--surface-2); padding: 12px 16px; border-radius: 10px; border-left: 3px solid var(--teal-500); }

/* ==========================================================================
   Formula diagram
   ========================================================================== */
.formula-diagram { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--line); }
.formula-item { display: flex; flex-direction: column; align-items: center; gap: 10px; width: 120px; }
.formula-item img { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); border: 3px solid var(--surface); outline: 1px solid var(--line); }
.formula-item span { font-size: 0.82rem; font-weight: 600; text-align: center; color: var(--ink-700); }
.formula-op { font-family: var(--font-head); font-size: 1.6rem; font-weight: 700; color: var(--ink-400); }
.formula-eq { color: var(--teal-500); }
.formula-result {
  flex-basis: 100%; text-align: center; margin-top: 12px; font-family: var(--font-head); font-weight: 700;
  font-size: 1.15rem; color: var(--navy-900); max-width: 560px; margin-inline: auto;
}

/* ==========================================================================
   Steps / pillars
   ========================================================================== */
.step-card { background: var(--surface); border-radius: var(--radius-md); padding: 30px 24px; border: 1px solid var(--line); }
.step-num { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: var(--teal-500); display: block; margin-bottom: 10px; }
.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--ink-600); font-size: 0.93rem; margin: 0; }

.pillar-card { text-align: center; padding: 12px; }
.pillar-card h3 { font-size: 1.2rem; margin-bottom: 10px; position: relative; display: inline-block; }
.pillar-card h3::after { content: ""; display: block; width: 36px; height: 3px; background: var(--teal-500); margin: 10px auto 0; border-radius: 2px; }
.pillar-card p { color: var(--ink-600); font-size: 0.93rem; }

/* ==========================================================================
   Check list
   ========================================================================== */
.check-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink-700); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-500); opacity: 0.15;
}
.check-list li::after {
  content: "✓"; position: absolute; left: 3px; top: 0px; color: var(--teal-500); font-weight: 800; font-size: 0.75rem;
}

/* ==========================================================================
   Callouts
   ========================================================================== */
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 32px; box-shadow: var(--shadow-sm); }
.callout h3 { margin-bottom: 14px; }
.callout p { color: var(--ink-600); font-size: 0.95rem; }
.callout-warning { background: var(--warn-bg); border-color: var(--warn-border); }
.callout-warning h3 { color: var(--warn-ink); }
.callout-warning p { color: #8a6a24; }

/* ==========================================================================
   Philosophy / flow diagram
   ========================================================================== */
.philosophy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.philosophy h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.flow-diagram { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0; }
.flow-diagram span:not(.flow-plus) {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; font-size: 0.88rem; color: #eef2fb;
}
.flow-plus { color: var(--teal-400); font-weight: 700; align-self: center; }

/* ==========================================================================
   Split sections (image + copy)
   ========================================================================== */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split-grid.reverse .split-media { order: 2; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.split-copy p { color: var(--ink-600); }
.feature-list { display: flex; flex-direction: column; gap: 14px; margin: 22px 0; }
.feature-list li { color: var(--ink-700); font-size: 0.96rem; }
.feature-list li strong { color: var(--navy-900); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner { background: linear-gradient(120deg, var(--teal-500), var(--blue-600) 60%, var(--navy-800)); color: #fff; }
.cta-banner h2 { color: #fff; }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; }
.contact-details h3 { margin-bottom: 20px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 20px; }
.contact-list li { display: flex; align-items: center; gap: 14px; color: var(--ink-700); font-weight: 500; }
.contact-list svg { width: 22px; height: 22px; color: var(--teal-500); flex-shrink: 0; }
.contact-list a:hover { color: var(--blue-600); }

.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.hp-field {
  position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden;
  margin: 0; opacity: 0;
}
.form-row label { font-size: 0.85rem; font-weight: 600; color: var(--ink-700); }
.form-row input, .form-row textarea, .form-row select {
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--bg);
  color: var(--ink-900); transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: none; border-color: var(--teal-500); }
.form-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--teal-500); font-weight: 600; min-height: 1.2em; }
.form-note.form-note-error { color: #c0392b; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--navy-950); color: #aab6d1; padding: 64px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { height: 30px; width: auto; filter: brightness(0) invert(1); margin-bottom: 12px; }
.footer-brand p { color: #7c8aa5; font-size: 0.9rem; }
.footer-nav { display: flex; flex-direction: column; gap: 12px; }
.footer-nav a { color: #c7d2e8; font-size: 0.92rem; }
.footer-nav a:hover { color: #fff; }
.footer-legal p { font-size: 0.85rem; margin-bottom: 8px; }
.footer-legal a:hover { color: #fff; }
.footer-legal .disclaimer { color: #5a6a8a; font-size: 0.78rem; line-height: 1.6; }
.footer-inner { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 40px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .split-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .split-grid.reverse .split-media { order: 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; background: var(--surface);
    transform: translateX(100%); transition: transform 0.3s ease; overflow-y: auto; padding: 32px 24px; }
  .main-nav.is-open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav .nav-link { display: block; padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .ingredient-row, .ingredient-row.reverse { grid-template-columns: 1fr; }
  .ingredient-row.reverse .ingredient-media { order: 0; }
  .ingredient-media img { max-width: 260px; margin: 0 auto; }
  .product-showcase { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .grid-4, .grid-5, .grid-2 { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: 64px; }
  .footer-inner { grid-template-columns: 1fr; text-align: left; }
  .flow-diagram { flex-direction: column; align-items: center; }
}
