/* =========================================================================
   BioAxiz — design system + styles. Single stylesheet, no build.
   Tokens live on :root; edit them to re-theme the whole site.
   ========================================================================= */
:root {
  --ink:        #0a0e1a;   /* near-black navy — dark sections */
  --ink-2:      #111726;   /* raised dark surface */
  --bg:         #ffffff;
  --bg-alt:     #f5f7fb;   /* light section tint */
  --text:       #1a2233;
  --muted:      #5b6474;
  --line:       #e6e9f0;

  --accent:     #12b3a6;   /* teal */
  --accent-2:   #4f8cff;   /* blue */
  --accent-ink: #0c8f85;   /* darker teal for text on light */

  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(12, 20, 40, .10);
  --shadow-sm: 0 6px 20px rgba(12, 20, 40, .08);
  --maxw: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 .4em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: .82rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
  margin: 0 0 .6rem;
}
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---- Buttons ---- */
.btn {
  --pad: 14px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--display); font-weight: 600; font-size: .98rem;
  padding: var(--pad); border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 26px rgba(18, 179, 166, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(18, 179, 166, .42); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: #fff; transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0);
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 14, 26, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 1.25rem; color: #fff; letter-spacing: -.02em; }
.brand-accent { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { font-weight: 500; font-size: .96rem; color: rgba(255,255,255,.82); transition: color .2s ease; }
.nav a:hover { color: #fff; }
.nav .nav-cta {
  padding: 9px 18px; border-radius: 999px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.nav .nav-cta:hover { background: var(--grad); border-color: transparent; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .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); }

.mobile-nav { display: none; flex-direction: column; background: var(--ink-2); border-bottom: 1px solid rgba(255,255,255,.08); }
.mobile-nav a { padding: 15px 24px; color: rgba(255,255,255,.9); border-top: 1px solid rgba(255,255,255,.06); font-weight: 500; }
.mobile-nav.open { display: flex; }

/* ---- Hero ---- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 80% -10%, #16233f 0%, var(--ink) 55%);
  color: #fff; padding: 120px 0 96px; margin-top: -72px; padding-top: 168px;
}
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 320px at 78% 12%, rgba(18,179,166,.30), transparent 70%),
    radial-gradient(460px 340px at 12% 88%, rgba(79,140,255,.24), transparent 70%);
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; margin-bottom: .5em; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: rgba(255,255,255,.78); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 1.8rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.4rem; list-style: none; padding: 0;
  margin: 3rem 0 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.6rem;
}
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.15rem; color: #fff; }
.hero-stats span { font-size: .9rem; color: rgba(255,255,255,.6); }

/* ---- Sections ---- */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.section-sub { color: var(--muted); font-size: 1.06rem; }

/* ---- Service cards ---- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(18,179,166,.14), rgba(79,140,255,.14)); margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; stroke: var(--accent-ink); stroke-width: 1.9; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }

/* ---- Steps ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; list-style: none; padding: 0; margin: 0; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; position: relative; }
.step-no { font-family: var(--display); font-weight: 700; font-size: 1.4rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { font-size: 1.14rem; margin-top: .4rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

/* ---- Why ---- */
.why-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.why-copy h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.why-list li { position: relative; padding-left: 34px; color: var(--muted); }
.why-list li strong { color: var(--text); }
.why-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---- Contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-copy h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); }
.contact-details { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: 14px; }
.contact-details li { display: grid; }
.contact-details span { font-family: var(--display); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-details a { color: var(--accent-ink); font-weight: 600; }

.contact-form { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 16px; display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fdfdff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(18,179,166,.16); }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.footer-brand .brand-name { font-size: 1.3rem; }
.footer-brand p { margin: .5rem 0 0; color: rgba(255,255,255,.5); font-size: .95rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.6rem; }
.footer-nav a { color: rgba(255,255,255,.72); font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.45); }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---- */
@media (max-width: 940px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: 68px 0; }
  .hero { padding-top: 140px; padding-bottom: 72px; }
  .hero-stats { gap: 1.6rem; }
}
@media (max-width: 520px) {
  .cards, .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .card:hover { transform: none; }
}
