/* ==========================================================================
   BIOVYNX.COM — Design System
   A bioluminescent-luxury aesthetic for a premium biotech-adjacent domain.
   Palette: near-black ground, bioluminescent teal signal, warm brass trim.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Manrope:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg-0: #070907;
  --bg-1: #0c110d;
  --bg-2: #121a14;
  --bg-elevated: #161f18;
  --line: rgba(244, 246, 241, 0.09);
  --line-strong: rgba(244, 246, 241, 0.16);

  --signal: #3fe3a6;       /* bioluminescent teal-green */
  --signal-dim: #2b8f6c;
  --signal-glow: rgba(63, 227, 166, 0.35);

  --brass: #c9a66b;        /* warm luxury trim */
  --brass-dim: #8f7a52;

  --ink-0: #f4f6f1;        /* primary text */
  --ink-1: #c4cdc4;        /* secondary text */
  --ink-2: #7f8b81;        /* muted / caption */

  /* Type */
  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
body {
  background: var(--bg-0);
  color: var(--ink-0);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 900px 600px at 12% -10%, rgba(63, 227, 166, 0.08), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(201, 166, 107, 0.06), transparent 55%);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.08;
  color: var(--ink-0);
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 500; }

p { color: var(--ink-1); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal-glow);
}

.container {
  width: min(100% - (var(--gutter) * 2), var(--max-w));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

section { position: relative; z-index: 1; }

/* ---------- Domain For Sale Banner ---------- */
.domain-sale-banner {
  position: relative;
  z-index: 9999;
  width: 100%;
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 50%, rgba(63, 227, 166, 0.30), transparent 38%),
    linear-gradient(100deg, #060706 0%, #0d1210 55%, #14201a 100%);
  border-bottom: 1px solid rgba(63, 227, 166, 0.18);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  font-family: var(--font-body);
}
.domain-sale-banner__content {
  width: min(1180px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.domain-sale-banner__text {
  display: grid;
  gap: 4px;
  line-height: 1.35;
}
.domain-sale-banner__text strong {
  font-size: clamp(1rem, 2vw, 1.2rem);
  letter-spacing: -0.01em;
  font-family: var(--font-display);
  font-weight: 500;
}
.domain-sale-banner__text span {
  color: rgba(244, 246, 241, 0.68);
  font-size: 0.92rem;
}
.domain-sale-banner__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 20px;
  color: #06110c;
  background: var(--signal);
  border: 1px solid var(--signal);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(63, 227, 166, 0.28);
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}
.domain-sale-banner__button:hover,
.domain-sale-banner__button:focus-visible {
  background: #57edb5;
  box-shadow: 0 10px 26px rgba(63, 227, 166, 0.4);
  transform: translateY(-2px);
  outline: none;
}
@media (max-width: 680px) {
  .domain-sale-banner__content {
    min-height: auto;
    padding: 14px 0;
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .domain-sale-banner__button { width: 100%; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 9, 7, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink-0);
}
.brand img { width: 34px; height: 34px; }
.brand-mark {
  font-weight: 500;
  letter-spacing: 0.01em;
}
.brand-mark em {
  font-style: normal;
  color: var(--signal);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.92rem;
  color: var(--ink-1);
  position: relative;
  padding: 4px 0;
  transition: color 200ms var(--ease);
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] {
  color: var(--ink-0);
  outline: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--signal);
  transition: width 240ms var(--ease);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-0);
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.nav-cta:hover { border-color: var(--signal); background: rgba(63,227,166,0.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 22px; height: 1.5px; background: var(--ink-0); transition: transform 200ms var(--ease), opacity 200ms var(--ease); }

@media (max-width: 860px) {
  .nav-links { 
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg-1);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px var(--gutter);
    transform: translateX(100%);
    transition: transform 320ms var(--ease);
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-cta { display: none; }
  .nav-links .nav-cta-mobile { display: inline-flex; margin-top: 8px; }
  .nav-toggle { display: flex; }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(64px, 10vw, 128px) 0 clamp(48px, 8vw, 96px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 22px; }
.hero h1 { margin-bottom: 24px; }
.hero h1 .accent { color: var(--signal); font-style: italic; }
.hero-lede {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  max-width: 46ch;
  color: var(--ink-1);
  margin-bottom: 36px;
}
.hero-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease);
}
.btn-primary {
  background: var(--signal);
  color: #06110c;
  border: 1px solid var(--signal);
  box-shadow: 0 10px 30px rgba(63, 227, 166, 0.22);
}
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(63, 227, 166, 0.32); outline: none; }
.btn-ghost {
  background: transparent;
  color: var(--ink-0);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: var(--brass); color: var(--brass); outline: none; }

/* Signature element: bio-lattice helix */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: grid;
  place-items: center;
}
.lattice-ring {
  position: absolute;
  inset: 6%;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.lattice-ring.r2 { inset: 16%; border-style: dashed; border-color: rgba(201,166,107,0.18); animation: spin-slow 60s linear infinite; }
.lattice-ring.r3 { inset: 26%; animation: spin-slow-rev 80s linear infinite; }

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

.helix-svg { width: 78%; height: 78%; overflow: visible; }
.helix-svg .strand-a { stroke: var(--signal); }
.helix-svg .strand-b { stroke: var(--brass); }
.helix-svg .rung { stroke: rgba(244,246,241,0.14); }
.helix-svg .node { fill: var(--bg-0); stroke-width: 1.4; }
.helix-svg .node.a { stroke: var(--signal); }
.helix-svg .node.b { stroke: var(--brass); }

@keyframes pulse-node {
  0%, 100% { opacity: 0.55; r: 3; }
  50% { opacity: 1; r: 4.4; }
}
.helix-svg .pulse { animation: pulse-node 3.6s ease-in-out infinite; }
.helix-svg .pulse:nth-child(3n) { animation-delay: 0.6s; }
.helix-svg .pulse:nth-child(5n) { animation-delay: 1.2s; }

/* ---------- Marquee strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg-1);
}
.strip-track {
  display: flex;
  gap: 64px;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  text-transform: uppercase;
}
.strip-track span { display: inline-flex; align-items: center; gap: 10px; }
.strip-track span::before { content: "◆"; color: var(--signal-dim); font-size: 0.6rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Section shell ---------- */
.section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }
.section-alt { background: var(--bg-1); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.feature-card {
  background: var(--bg-1);
  padding: clamp(28px, 3vw, 40px);
  transition: background 240ms var(--ease);
}
.feature-card:hover { background: var(--bg-2); }
.feature-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--signal);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; }

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Value proposition split ---------- */
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split.reverse { grid-template-columns: 1.1fr 0.9fr; }
.split.reverse .split-visual { order: 2; }
.split-visual {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(160deg, var(--bg-1), var(--bg-2));
  position: relative;
}
.readout {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
  display: grid;
  gap: 12px;
}
.readout .row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.readout .row b { color: var(--signal); font-weight: 500; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy p { margin-bottom: 16px; font-size: 1.02rem; }
.check-list { display: grid; gap: 14px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-1); font-size: 0.96rem; }
.check-list .mark {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid var(--signal);
  color: var(--signal);
  display: grid; place-items: center;
  font-size: 0.66rem;
  flex-shrink: 0;
  margin-top: 2px;
}

@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; }
  .split.reverse .split-visual { order: 0; }
}

/* ---------- Stat band ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.stat-card {
  background: var(--bg-0);
  padding: clamp(24px, 3vw, 34px) clamp(20px, 3vw, 28px);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  color: var(--signal);
  display: block;
  margin-bottom: 6px;
}
.stat-label { font-size: 0.85rem; color: var(--ink-2); }

@media (max-width: 720px) {
  .stat-band { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Timeline (real sequence: acquisition process) ---------- */
.timeline { display: grid; gap: 0; }
.timeline-item {
  display: grid;
  grid-template-columns: 90px 1px 1fr;
  gap: 28px;
  padding-bottom: 44px;
  position: relative;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-num {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--brass);
  padding-top: 2px;
}
.timeline-rail { background: var(--line); position: relative; }
.timeline-item:last-child .timeline-rail { background: linear-gradient(var(--line), transparent); }
.timeline-rail::before {
  content: "";
  position: absolute;
  top: 4px; left: 50%;
  width: 9px; height: 9px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--bg-0);
  border: 1.5px solid var(--signal);
}
.timeline-body h3 { margin-bottom: 8px; }
.timeline-body p { max-width: 60ch; }

/* ---------- Testimonial / quote ---------- */
.quote-block {
  border-left: 2px solid var(--signal);
  padding-left: clamp(24px, 4vw, 40px);
}
.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ink-0);
  font-weight: 400;
  line-height: 1.45;
}
.quote-attr {
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ---------- CTA band ---------- */
.cta-band {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 500px 300px at 20% 0%, rgba(63,227,166,0.14), transparent 60%),
    radial-gradient(ellipse 500px 300px at 90% 100%, rgba(201,166,107,0.1), transparent 60%),
    var(--bg-1);
  padding: clamp(40px, 6vw, 72px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { max-width: 20ch; }
.cta-band-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input, .field textarea {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink-0);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(63,227,166,0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-2); }
.form-note { font-size: 0.85rem; color: var(--ink-2); }
.form-status { font-size: 0.9rem; color: var(--signal); min-height: 1.4em; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(32px, 6vw, 80px);
}
.contact-info { display: grid; gap: 28px; align-content: start; }
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  background: var(--bg-1);
}
.info-card .eyebrow { margin-bottom: 12px; }
.info-card a, .info-card p { color: var(--ink-1); font-size: 0.95rem; }
.info-card a:hover { color: var(--signal); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ (about page) ---------- */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ink-0);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  font-family: var(--font-mono);
  color: var(--signal);
  transition: transform 220ms var(--ease);
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; max-width: 68ch; }

/* ---------- 404 ---------- */
.error-page {
  min-height: 68vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(4rem, 14vw, 9rem);
  color: var(--signal);
  line-height: 1;
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px var(--signal-glow);
}
.error-page h1 { margin: 20px 0 14px; }
.error-page p { max-width: 46ch; margin: 0 auto 32px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  background: var(--bg-1);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { max-width: 34ch; font-size: 0.92rem; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--ink-1); font-size: 0.92rem; transition: color 200ms var(--ease); }
.footer-col a:hover { color: var(--signal); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-2);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 380px; margin: 0 auto; }
}
