/* ============================================================
   BLASTseq AI — Redesign stylesheet
   "Precision instrument" — purple #8A42FF on warm near-white
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  /* brand */
  --brand: #8A42FF;
  --brand-ink: #6B27D6;
  --brand-deep: #4A1A99;
  --brand-soft: #F2EAFF;
  --brand-softer: #F8F4FF;

  /* signal colors (data viz only) */
  --pos: #18B98A;       /* detected / match */
  --pos-soft: #E2F7F0;
  --warn: #E0883A;      /* mismatch */
  --warn-soft: #FBF0E2;
  --neg: #E15573;       /* not detected */

  /* neutrals — warm, faint purple tint */
  --bg: #FBFAFD;
  --bg-soft: #F4F2F9;
  --bg-card: #FFFFFF;
  --ink: #16121F;
  --ink-2: #423C53;
  --ink-3: #7B7490;
  --line: rgba(22,18,31,0.09);
  --line-2: rgba(22,18,31,0.06);

  /* dark surface */
  --dark: #14101F;
  --dark-2: #1C1530;
  --dark-line: rgba(255,255,255,0.10);
  --dark-ink: #EDE9F5;
  --dark-ink-2: #A79FBF;

  /* type */
  --display: 'Space Grotesk', system-ui, sans-serif;
  --sans: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* layout */
  --maxw: 1240px;
  --pad-x: 40px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(22,18,31,0.05), 0 2px 8px rgba(22,18,31,0.04);
  --shadow: 0 4px 14px rgba(22,18,31,0.06), 0 18px 50px -20px rgba(74,26,153,0.18);
  --shadow-lg: 0 30px 80px -28px rgba(74,26,153,0.40);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-ink);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--brand);
  transform: rotate(45deg);
}
.section { padding: 120px 0; position: relative; }
.section-head { max-width: 720px; }
.section-head.center { margin: 0 auto; text-align: center; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
h2 { font-size: clamp(34px, 4.2vw, 54px); color: var(--ink); }
.lead { font-size: 19px; color: var(--ink-2); margin-top: 22px; line-height: 1.55; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 600; font-size: 15.5px;
  padding: 13px 22px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px -8px rgba(138,66,255,0.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(138,66,255,0.7); background: #7c34f5; }
.btn-ghost { background: var(--bg-card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(138,66,255,0.4); color: var(--brand-ink); }
.btn-dark { background: #fff; color: var(--ink); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(0,0,0,0.4); }
.btn-lg { padding: 16px 28px; font-size: 16.5px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(251,250,253,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 26px; width: auto; display: block; }
.footer .logo img { height: 21px; }
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px; flex: none;
  background: linear-gradient(135deg, var(--brand) 0%, #5b2bd6 100%);
  position: relative; box-shadow: 0 4px 12px -3px rgba(138,66,255,0.6);
}
.logo .mark::before, .logo .mark::after {
  content: ""; position: absolute; left: 9px; right: 9px; height: 2.4px; border-radius: 2px; background: #fff;
}
.logo .mark::before { top: 8px; box-shadow: 0 6.5px 0 rgba(255,255,255,0.55); }
.logo .mark::after { bottom: 8px; box-shadow: 0 -6.5px 0 rgba(255,255,255,0.55); }
.logo b { color: var(--ink); }
.logo span { color: var(--brand-ink); font-weight: 500; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 9px 14px; border-radius: 9px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 15px; font-weight: 600; color: var(--ink); padding: 9px 14px; border-radius: 9px; transition: color .2s; white-space: nowrap; }
.nav-login:hover { color: var(--brand-ink); }
.nav-toggle { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -180px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 620px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(138,66,255,0.20) 0%, rgba(138,66,255,0.06) 40%, transparent 70%);
  filter: blur(10px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  padding: 7px 8px 7px 7px; border-radius: 100px; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
}
.hero-pill .tag { background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 12px; padding: 3px 10px; border-radius: 100px; font-family: var(--mono); letter-spacing: .02em; white-space: nowrap; flex: none; }
.hero h1 {
  font-size: clamp(40px, 5.4vw, 70px); margin-top: 26px; letter-spacing: -0.03em;
}
.hero h1 .accent { color: var(--brand-ink); }
.hero h1 em { font-style: normal; position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 6px; height: 14px; z-index: -1;
  background: var(--brand-soft); border-radius: 4px;
}
.hero-sub { font-size: 19.5px; color: var(--ink-2); margin-top: 26px; max-width: 540px; line-height: 1.55; }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 38px; flex-wrap: wrap; }
.hero-meta .item { position: relative; cursor: default; outline: none; }
.hero-meta .item::after {
  content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 12px); z-index: 20;
  width: max-content; max-width: 240px; padding: 11px 14px; border-radius: 12px;
  background: var(--dark); color: var(--dark-ink); font-family: var(--sans); font-size: 12.5px; font-weight: 400; line-height: 1.45;
  letter-spacing: 0; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.08);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.hero-meta .item::before {
  content: ""; position: absolute; left: 22px; bottom: calc(100% + 6px); z-index: 21;
  width: 11px; height: 11px; background: var(--dark); border-right: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: rotate(45deg) translateY(6px); opacity: 0; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.hero-meta .item:hover::after, .hero-meta .item:focus-visible::after { opacity: 1; transform: translateY(0); }
.hero-meta .item:hover::before, .hero-meta .item:focus-visible::before { opacity: 1; transform: rotate(45deg) translateY(0); }
.hero-meta .num { font-family: var(--display); font-weight: 600; font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.hero-meta .num small { color: var(--brand-ink); }
.hero-meta .lbl { font-size: 13px; color: var(--ink-3); font-family: var(--mono); letter-spacing: .02em; margin-top: 2px; }

/* hero alignment card */
.seqcard {
  position: relative; background: var(--dark);
  border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.06); overflow: hidden;
}
.seqcard::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 240px at 80% -10%, rgba(138,66,255,0.30), transparent 60%);
  pointer-events: none;
}
.seqcard-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; position: relative; }
.seqcard-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.seqcard-bar .ttl { font-family: var(--mono); font-size: 12.5px; color: var(--dark-ink-2); margin-left: 8px; letter-spacing: .02em; }
.seqcard-bar .run { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--pos); display: inline-flex; align-items: center; gap: 6px; }
.seqcard-bar .run::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 0 rgba(24,185,138,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(24,185,138,0.5);} 70%{box-shadow:0 0 0 7px rgba(24,185,138,0);} 100%{box-shadow:0 0 0 0 rgba(24,185,138,0);} }
.aln { font-family: var(--mono); font-size: 13.5px; line-height: 2.0; position: relative; }
.aln .row { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; white-space: nowrap; }
.aln .label { color: var(--dark-ink-2); font-size: 11.5px; text-align: right; }
.aln .seq { letter-spacing: 2.5px; color: var(--dark-ink); }
.aln .seq b { color: var(--brand); font-weight: 500; }            /* primer */
.aln .seq .mm { color: var(--warn); font-weight: 600; position: relative; }   /* mismatch */
.aln .seq .mt { color: var(--pos); }                              /* match highlight */
.aln .ticks { color: rgba(255,255,255,0.22); font-size: 11px; letter-spacing: 2.5px; }
.seqcard-foot { display: flex; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--dark-line); }
.chip {
  font-family: var(--mono); font-size: 11.5px; font-weight: 500; padding: 6px 11px; border-radius: 100px;
  display: inline-flex; align-items: center; gap: 7px;
}
.chip.pos { background: rgba(24,185,138,0.14); color: #4fe6ba; }
.chip.warn { background: rgba(224,136,58,0.14); color: #f0a766; }
.chip.brand { background: rgba(138,66,255,0.18); color: #c39cff; }
.chip .d { width: 7px; height: 7px; border-radius: 2px; }
.chip.pos .d { background: var(--pos); }
.chip.warn .d { background: var(--warn); }
.chip.brand .d { background: var(--brand); }
/* floating mini cards */
.seqfloat {
  position: absolute; z-index: 3; background: var(--bg-card); border: 1px solid var(--line);
  box-shadow: var(--shadow); border-radius: 14px; padding: 13px 15px; font-size: 13px;
}
.seqfloat .k { font-family: var(--mono); font-size: 11px; color: var(--ink-3); letter-spacing: .03em; }
.seqfloat .v { font-family: var(--display); font-weight: 600; font-size: 21px; color: var(--ink); margin-top: 2px; letter-spacing: -.02em; }
.seqfloat .v small { font-size: 13px; color: var(--pos); font-family: var(--sans); margin-left: 4px; }
.seqfloat.f1 { top: -22px; right: -26px; }
.seqfloat.f2 { bottom: -24px; left: -30px; }

/* ============================================================
   LOGO STRIP
   ============================================================ */
.trust { padding: 46px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.trust p { text-align: center; font-family: var(--mono); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 28px; }
.trust-row { display: flex; align-items: center; justify-content: center; gap: 18px 54px; flex-wrap: wrap; }
.trust-logo { display: flex; align-items: center; gap: 10px; color: var(--ink-3); font-weight: 600; font-size: 17px; letter-spacing: -.01em; opacity: .72; transition: opacity .2s, color .2s; }
.trust-logo:hover { opacity: 1; color: var(--ink-2); }
.trust-logo .ic { width: 22px; height: 22px; border-radius: 6px; background: currentColor; opacity: .85; flex:none; }
.trust-logo .ic.r { border-radius: 50%; }
.trust-logo .ic.d { transform: rotate(45deg); border-radius: 4px; }

/* ============================================================
   VIDEO MODAL
   ============================================================ */
.vmodal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.vmodal.open { display: flex; }
.vmodal-backdrop { position: absolute; inset: 0; background: rgba(12,9,18,0.78); backdrop-filter: blur(6px); animation: fadeUp .3s var(--ease); }
.vmodal-box { position: relative; width: min(960px, 100%); animation: fadeUp .4s var(--ease); }
.vmodal-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.12); background: #000; }
.vmodal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vmodal-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 24px -6px rgba(0,0,0,0.5); transition: transform .2s var(--ease), background .2s; }
.vmodal-close:hover { transform: scale(1.08); background: var(--brand); color: #fff; }
.vmodal-close svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .vmodal-close { top: -52px; right: 0; } }

/* ============================================================
   VIDEO
   ============================================================ */
.videosec { padding-top: 100px; }
.video-frame {
  margin-top: 52px; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--dark);
  max-width: 980px; margin-left: auto; margin-right: auto;
}
.video-embed { position: relative; aspect-ratio: 16 / 9; cursor: pointer; background: var(--dark-2); }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.video-embed:hover .video-poster { transform: scale(1.03); filter: brightness(.85); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; border: none; cursor: pointer; z-index: 2;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  box-shadow: 0 14px 40px -8px rgba(138,66,255,0.8); transition: transform .25s var(--ease), background .2s;
}
.video-play::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.35); animation: vpulse 2.4s var(--ease) infinite; }
@keyframes vpulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.video-embed:hover .video-play { transform: translate(-50%, -50%) scale(1.08); background: #7c34f5; }
.video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-badge {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  font-family: var(--mono); font-size: 12px; color: #fff; background: rgba(10,8,16,0.6);
  backdrop-filter: blur(6px); padding: 7px 13px; border-radius: 100px; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(255,255,255,0.14);
}
.video-badge .d { width: 8px; height: 8px; border-radius: 50%; background: var(--neg); box-shadow: 0 0 0 0 rgba(225,85,115,0.6); animation: pulse 1.8s infinite; }

/* ============================================================
   CAPABILITIES
   ============================================================ */
.cap-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 64px; }
.cap {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.cap:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(138,66,255,0.28); }
.cap-ic {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 22px;
}
.cap-ic svg { width: 25px; height: 25px; }
.cap .idx { position: absolute; top: 30px; right: 32px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.cap h3 { font-size: 22px; margin-bottom: 12px; }
.cap p { color: var(--ink-2); font-size: 15.5px; }
.cap ul { list-style: none; margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.cap li { display: flex; gap: 11px; font-size: 14.5px; color: var(--ink-2); align-items: flex-start; line-height: 1.5; }
.cap li svg { width: 17px; height: 17px; color: var(--brand); flex: none; margin-top: 3px; }
.cap li strong { color: var(--ink); font-weight: 600; }

/* ============================================================
   PRODUCT SHOWCASE (dark)
   ============================================================ */
.showcase { background: var(--dark); color: var(--dark-ink); border-radius: 40px; margin: 0 24px; overflow: hidden; position: relative; }
.showcase::before {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(900px 420px at 85% -5%, rgba(138,66,255,0.22), transparent 55%),
              radial-gradient(700px 380px at 0% 110%, rgba(80,40,160,0.20), transparent 55%);
}
.showcase .wrap { position: relative; z-index: 1; }
.showcase .eyebrow { color: #c39cff; }
.showcase .eyebrow::before { background: #c39cff; }
.showcase h2 { color: #fff; }
.showcase .lead { color: var(--dark-ink-2); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 48px; }
.tab {
  font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--dark-ink-2);
  background: rgba(255,255,255,0.05); border: 1px solid var(--dark-line); padding: 10px 17px; border-radius: 100px;
  cursor: pointer; transition: all .2s; white-space: nowrap;
}
.tab:hover { color: #fff; border-color: rgba(255,255,255,0.25); }
.tab.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 8px 20px -8px rgba(138,66,255,0.8); }
.tab-panel { margin-top: 28px; display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s var(--ease); }
.console {
  background: rgba(8,6,14,0.6); border: 1px solid var(--dark-line); border-radius: 18px; overflow: hidden;
  display: grid; grid-template-columns: 320px 1fr; min-height: 420px;
}
.console-side { border-right: 1px solid var(--dark-line); padding: 22px; }
.console-side .h { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--dark-ink-2); margin-bottom: 16px; }
.console-side p { font-size: 14.5px; color: var(--dark-ink-2); line-height: 1.65; }
.console-stat { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.console-stat .s { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--dark-line); }
.console-stat .s .lbl { font-size: 13px; color: var(--dark-ink-2); }
.console-stat .s .val { font-family: var(--display); font-weight: 600; font-size: 19px; color: #fff; }
.console-stat .s .val.pos { color: #4fe6ba; }
.console-stat .s .val.warn { color: #f0a766; }
.console-main { padding: 0; overflow: hidden; position: relative; }

/* data table */
.dtable { width: 100%; font-size: 13px; border-collapse: collapse; font-family: var(--sans); }
.dtable thead th {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--dark-ink-2);
  text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--dark-line); position: sticky; top: 0; background: rgba(20,16,31,0.92); font-weight: 500;
}
.dtable tbody td { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--dark-ink); }
.dtable tbody tr:hover { background: rgba(255,255,255,0.03); }
.dtable .acc { font-family: var(--mono); color: #c39cff; }
.dtable .mono { font-family: var(--mono); color: var(--dark-ink-2); }
.tag-pos, .tag-neg, .tag-mid { font-family: var(--mono); font-size: 11px; padding: 3px 9px; border-radius: 100px; font-weight: 500; }
.tag-pos { background: rgba(24,185,138,0.16); color: #4fe6ba; }
.tag-neg { background: rgba(225,85,115,0.16); color: #f08aa0; }
.tag-mid { background: rgba(224,136,58,0.16); color: #f0a766; }
.bar { height: 6px; border-radius: 100px; background: rgba(255,255,255,0.08); overflow: hidden; min-width: 80px; }
.bar i { display: block; height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--brand), #b98bff); }

/* alignment panel inside showcase */
.aln-panel { padding: 26px; font-family: var(--mono); font-size: 13.5px; line-height: 2.05; overflow-x: auto; }
.aln-panel .row { display: grid; grid-template-columns: 110px 1fr; gap: 16px; white-space: nowrap; }
.aln-panel .label { color: var(--dark-ink-2); font-size: 11.5px; text-align: right; }
.aln-panel .seq { letter-spacing: 3px; color: var(--dark-ink); }
.aln-panel .seq b { color: var(--brand); }
.aln-panel .seq .mm { color: var(--warn); font-weight: 600; }
.aln-panel .seq .mt { color: #4fe6ba; }
.aln-panel .ticks { color: rgba(255,255,255,0.2); font-size: 11px; letter-spacing: 3px; }

/* detection / mutation visual blocks */
.donut-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 28px; align-items: center; }
.donut { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.donut svg { transform: rotate(-90deg); }
.donut .ctr { position: absolute; inset: 30%; display: grid; place-items: center; text-align: center; }
.donut .ctr .big { font-family: var(--display); font-weight: 600; font-size: 30px; color: #fff; line-height: 1; letter-spacing: -0.02em; }
.donut .ctr .sm { font-family: var(--mono); font-size: 11px; color: var(--dark-ink-2); margin-top: 4px; letter-spacing: .04em; }
.legend { display: flex; flex-direction: column; gap: 14px; }
.legend .l { display: flex; align-items: center; gap: 12px; }
.legend .l .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.legend .l .nm { font-size: 14px; color: var(--dark-ink); flex: 1; }
.legend .l .ct { font-family: var(--mono); font-size: 14px; color: #fff; font-weight: 500; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 60px; counter-reset: step; }
.step { position: relative; padding-top: 30px; }
.step::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand) 30%, var(--line) 30%);
}
.step .n { counter-increment: step; font-family: var(--mono); font-size: 13px; color: var(--brand-ink); font-weight: 500; letter-spacing: .1em; }
.step .n::before { content: "0" counter(step); }
.step h3 { font-size: 23px; margin: 14px 0 12px; }
.step p { color: var(--ink-2); font-size: 15.5px; }
.step .vis {
  margin-top: 22px; background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 18px;
  font-family: var(--mono); font-size: 13px; box-shadow: var(--shadow-sm); min-height: 116px;
}
.step .vis .ln { color: var(--ink-2); margin-bottom: 6px; }
.step .vis .ln .c { color: var(--brand-ink); }
.step .vis .ln .g { color: var(--pos); }
.step .vis .ln .dim { color: var(--ink-3); }

/* ============================================================
   STATS
   ============================================================ */
.stats { background: var(--bg-soft); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { position: relative; cursor: default; outline: none; }
.stat .big { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.1vw, 40px); letter-spacing: -0.025em; color: var(--ink); line-height: 1; }
.stat .big .u { color: var(--brand-ink); }
.stat .lbl { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.stat .sub { font-family: var(--mono); font-size: 12px; color: var(--ink-3); margin-top: 4px; letter-spacing: .02em; }
/* hover tooltip (matches hero-meta style, centered to avoid edge clipping) */
.stat[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 12px); z-index: 20;
  width: max-content; max-width: 230px; padding: 11px 14px; border-radius: 12px;
  background: var(--dark); color: var(--dark-ink); font-family: var(--sans); font-size: 12.5px; font-weight: 400; line-height: 1.45;
  letter-spacing: 0; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,0.08);
  opacity: 0; transform: translateX(-50%) translateY(6px); pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.stat[data-tip]::before {
  content: ""; position: absolute; left: 50%; bottom: calc(100% + 6px); z-index: 21;
  width: 11px; height: 11px; background: var(--dark); border-right: 1px solid rgba(255,255,255,0.08); border-bottom: 1px solid rgba(255,255,255,0.08);
  transform: translateX(-50%) rotate(45deg) translateY(6px); opacity: 0; pointer-events: none; transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.stat[data-tip]:hover::after, .stat[data-tip]:focus-visible::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.stat[data-tip]:hover::before, .stat[data-tip]:focus-visible::before { opacity: 1; transform: translateX(-50%) rotate(45deg) translateY(0); }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 56px; max-width: 980px; margin-left: auto; margin-right: auto; }
.tcol { display: flex; flex-direction: column; gap: 22px; }
.tcard { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s; }
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tcard .stars { color: var(--brand); font-size: 14px; letter-spacing: 2px; margin-bottom: 14px; }
.tcard p { font-size: 16px; color: var(--ink); line-height: 1.55; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.tcard .av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), #5b2bd6); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 15px; font-family: var(--display); min-width: 40px; }
.tcard .who .nm { font-weight: 600; font-size: 14.5px; }
.tcard .who .rl { font-size: 12.5px; color: var(--ink-3); font-family: var(--mono); }
.tcard.feature { background: linear-gradient(160deg, var(--brand-deep), var(--brand)); color: #fff; border: none; }
.tcard.feature p { color: #fff; font-size: 19px; font-family: var(--display); font-weight: 500; line-height: 1.35; }
.tcard.feature .stars { color: #fff; }
.tcard.feature .who .nm { color: #fff; }
.tcard.feature .who .rl { color: rgba(255,255,255,0.7); }
.tcard.feature .av { background: rgba(255,255,255,0.2); }

/* ============================================================
   PRICING
   ============================================================ */
.ptoggle { display: inline-grid; grid-template-columns: 1fr 1fr; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 100px; padding: 5px; margin: 32px auto 0; position: relative; }
.ptoggle button { font-family: var(--sans); font-weight: 600; font-size: 14.5px; color: var(--ink-2); background: none; border: none; padding: 10px 24px; border-radius: 100px; cursor: pointer; position: relative; z-index: 1; transition: color .25s; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ptoggle button.active { color: var(--ink); }
.ptoggle .save { font-family: var(--mono); font-size: 10.5px; background: var(--pos-soft); color: var(--pos); padding: 2px 7px; border-radius: 100px; line-height: 1.4; }
.ptoggle .slider { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); background: var(--bg-card); border-radius: 100px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease); }
.ptoggle.annual .slider { transform: translateX(100%); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; align-items: start; max-width: 1020px; margin-left: auto; margin-right: auto; }
.plan { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px 28px; position: relative; transition: transform .3s var(--ease), box-shadow .3s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan.pop { border-color: var(--brand); box-shadow: 0 20px 50px -22px rgba(138,66,255,0.45); }
.plan.pop::before { content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .06em; padding: 5px 14px; border-radius: 100px; white-space: nowrap; }
.plan .pname { font-family: var(--display); font-weight: 600; font-size: 19px; }
.plan .pdesc { font-size: 13.5px; color: var(--ink-3); margin-top: 4px; min-height: 38px; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 4px; }
.plan .price .amt { font-family: var(--display); font-weight: 600; font-size: 46px; letter-spacing: -0.03em; color: var(--ink); }
.plan .price .per { font-size: 14px; color: var(--ink-3); }
.plan .credits { font-family: var(--mono); font-size: 12.5px; color: var(--brand-ink); background: var(--brand-softer); padding: 5px 11px; border-radius: 8px; display: inline-block; margin-bottom: 14px; }
.plan .welcome { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--pos); background: var(--pos-soft); padding: 8px 11px; border-radius: 8px; margin-bottom: 20px; line-height: 1.2; }
.plan .welcome svg { width: 15px; height: 15px; flex: none; }
.plan .btn { width: 100%; justify-content: center; }
.plan.pop .btn { background: var(--brand); color: #fff; }
.plan ul { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 2px; }
.plan li.off { color: var(--ink-3); }
.plan li.off svg { color: var(--ink-3); opacity: .5; }
.pnote { text-align: center; margin-top: 30px; font-size: 14px; color: var(--ink-2); }
.pnote b { color: var(--brand-ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--bg-card); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.faq-item.open { border-color: rgba(138,66,255,0.35); box-shadow: var(--shadow-sm); }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 16.5px; color: var(--ink); list-style: none; }
.faq-q .ico { width: 22px; height: 22px; flex: none; color: var(--brand-ink); transition: transform .3s var(--ease); }
.faq-item.open .faq-q .ico { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a div { padding: 0 24px 22px; color: var(--ink-2); font-size: 15px; line-height: 1.65; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta { background: var(--dark); color: #fff; border-radius: 40px; margin: 0 24px; padding: 88px 0; position: relative; overflow: hidden; text-align: center; }
.cta::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 360px at 50% -10%, rgba(138,66,255,0.32), transparent 60%); }
.cta .wrap { position: relative; z-index: 1; }
.cta h2 { color: #fff; max-width: 760px; margin: 0 auto; }
.cta p { color: var(--dark-ink-2); font-size: 19px; margin: 22px auto 36px; max-width: 540px; }
.cta-strip { font-family: var(--mono); font-size: 13px; color: var(--dark-ink-2); margin-top: 26px; }
.cta-strip b { color: #c39cff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 90px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer .logo { margin-bottom: 18px; }
.footer .addr { font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }
.footer .addr a { color: var(--brand-ink); }
.fcol h4 { font-family: var(--mono); font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: #222222; margin-bottom: 18px; font-weight: 500; }
.fcol a { display: block; font-size: 14.5px; color: var(--ink-2); margin-bottom: 12px; transition: color .2s; }
.fcol a:hover { color: var(--brand-ink); }
.fnews p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 16px; }
.fnews .field { display: flex; gap: 8px; }
.fnews input { flex: 1; font-family: var(--sans); font-size: 14px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card); color: var(--ink); outline: none; transition: border-color .2s; }
.fnews input:focus { border-color: var(--brand); }
.fnews .field button { background: var(--brand); color: #fff; border: none; border-radius: 10px; width: 44px; display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.fnews .field button:hover { background: #7c34f5; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; flex-wrap: wrap; gap: 16px; }
.footer-bottom .cp { font-size: 13.5px; color: var(--ink-3); }
.footer-legal { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; }
.footer-legal a { font-size: 13.5px; color: var(--ink-3); transition: color .2s; }
.footer-legal a:hover { color: var(--brand-ink); }
.footer-legal .sep { color: var(--line); font-size: 12px; }
@media (max-width: 620px) { .footer-legal { width: 100%; order: 3; } }
.socials { display: flex; gap: 10px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); transition: all .2s; }
.socials a:hover { color: var(--brand-ink); border-color: rgba(138,66,255,0.4); transform: translateY(-2px); }
.socials svg { width: 17px; height: 17px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  html { scroll-behavior: auto; }
  .donut .ring.detected { stroke-dashoffset: 20; }
  .donut .ring.further { stroke-dashoffset: -470; }
  .donut .ctr .big { opacity: 1; }
  .seqcard .scan { display: none; }
}

/* ============================================================
   DNA HELIX (CSS, 3D) + MOTION EFFECTS
   ============================================================ */
.helix { position: relative; width: 150px; height: 300px; perspective: 900px; margin: 0 auto; }
.helix .bp {
  position: absolute; left: 0; right: 0; height: 14px; top: var(--y);
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d; animation: helixSpin 4.4s linear infinite;
  animation-delay: var(--d);
}
.helix .rung { width: 120px; height: 2px; position: relative; background: linear-gradient(90deg, var(--brand) 0%, rgba(195,156,255,0.35) 50%, #c39cff 100%); opacity: .7; }
.helix .node { position: absolute; width: 12px; height: 12px; border-radius: 50%; top: 50%; transform: translateY(-50%); }
.helix .n1 { left: -6px; background: var(--brand); box-shadow: 0 0 14px rgba(138,66,255,0.85); }
.helix .n2 { right: -6px; background: #c79fff; box-shadow: 0 0 14px rgba(195,156,255,0.7); }
.helix.glow .n1 { box-shadow: 0 0 18px rgba(138,66,255,1); }
@keyframes helixSpin { to { transform: rotateY(360deg); } }
.helix-mask { -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }

/* CTA helix placement */
.cta-helix { margin: 0 auto 8px; }

/* ============================================================
   PRELOADER (DNA helix + AI core)
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 1000;
  background: radial-gradient(720px 520px at 50% 42%, #241738 0%, #16111f 62%, #100c18 100%);
  display: grid; place-items: center; cursor: pointer;
  transition: opacity .65s var(--ease), visibility .65s;
}
.loader.done { opacity: 0; visibility: hidden; }
.loader-inner { display: flex; flex-direction: column; align-items: center; }
.loader-helix { position: relative; width: 110px; height: 180px; }
.loader-helix .rung { width: 84px; }
.loader-helix .node { width: 9px; height: 9px; }
.loader-ai {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 6;
  font-family: var(--display); font-weight: 700; font-size: 23px; color: #fff; letter-spacing: .08em;
  text-shadow: 0 0 22px rgba(138,66,255,0.9), 0 0 6px rgba(255,255,255,0.4);
  animation: aiPulse 1.7s ease-in-out infinite;
}
@keyframes aiPulse { 0%,100% { opacity: .78; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
.loader-logo { height: 19px; width: auto; margin-top: 28px; opacity: .96; }
.loader-status {
  margin-top: 18px; font-family: var(--mono); font-size: 13px; color: var(--dark-ink-2);
  letter-spacing: .03em; display: flex; align-items: center; gap: 9px;
}
.loader-status .blip { width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 0 rgba(24,185,138,0.6); animation: pulse 1.6s infinite; }
.loader-status .ell::after { content: ""; animation: ell 1.5s steps(1) infinite; }
@keyframes ell { 0%{content:"";} 25%{content:".";} 50%{content:"..";} 75%{content:"...";} 100%{content:"";} }
.loader-bar { margin-top: 20px; width: 180px; height: 3px; border-radius: 100px; background: rgba(255,255,255,0.09); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 42%; border-radius: 100px; background: linear-gradient(90deg, transparent, var(--brand), #c79fff, transparent); animation: loadSlide 1.15s ease-in-out infinite; }
@keyframes loadSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

/* hero scan line over alignment card */
.seqcard .scan {
  position: absolute; left: 0; right: 0; height: 64px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(138,66,255,0.16) 45%, rgba(195,156,255,0.30) 50%, rgba(138,66,255,0.16) 55%, transparent);
  border-radius: 8px; top: 0; animation: scanMove 3.6s var(--ease) infinite;
}
.seqcard .scan::after { content:""; position:absolute; left:0; right:0; top:50%; height:1px; background: rgba(195,156,255,0.7); box-shadow: 0 0 8px rgba(195,156,255,0.8); }
@keyframes scanMove { 0%{ top: 8%; opacity: 0; } 12%{ opacity: 1; } 88%{ opacity: 1; } 100%{ top: 78%; opacity: 0; } }

/* donut ring draw-on */
.donut .ring { transition: none; }
.donut .ring.detected { stroke-dasharray: 503; stroke-dashoffset: 503; }
.donut .ring.further { stroke-dasharray: 503; stroke-dashoffset: 503; }
.donut.draw .ring.detected { animation: drawDetected 1.2s var(--ease) .15s forwards; }
.donut.draw .ring.further { animation: drawFurther 1s var(--ease) .9s forwards; }
@keyframes drawDetected { from { stroke-dashoffset: 503; } to { stroke-dashoffset: 20; } }
@keyframes drawFurther { from { stroke-dashoffset: 503; } to { stroke-dashoffset: -470; } }
.donut .ctr .big { opacity: 0; }
.donut.draw .ctr .big { animation: fadeUp .6s var(--ease) .7s forwards; }

/* count-up: prevent layout shift */
.stat .num, .hero-meta .num .cnt { font-variant-numeric: tabular-nums; }

/* pointer tilt */
.hero-visual { perspective: 1200px; }
.seqcard { transition: transform .3s var(--ease), box-shadow .35s var(--ease); will-change: transform; }

/* tweaks: motion off */
body.motion-off .seqcard .scan,
body.motion-off .helix .bp,
body.motion-off .seqcard-bar .run::before { animation: none !important; }
body.motion-off .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.motion-off .donut .ring.detected { stroke-dashoffset: 20; }
body.motion-off .donut .ring.further { stroke-dashoffset: -470; }
body.motion-off .donut .ctr .big { opacity: 1; }
body.motion-off .seqcard .scan { display: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-grid > div { min-width: 0; }
  .seqfloat.f1 { right: 0; } .seqfloat.f2 { left: 0; }
  .console { grid-template-columns: 1fr; }
  .console-side { border-right: none; border-bottom: 1px solid var(--dark-line); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  :root { --pad-x: 22px; }
  .section { padding: 84px 0; }
  .nav-links, .nav-login { display: none; }
  .nav-inner { gap: 12px; }
  .logo img { height: 22px; }
  .nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-card); cursor: pointer; flex: none; }
  .cap-grid, .steps, .tgrid, .stats, .faq-grid { grid-template-columns: 1fr; }
  .stats { gap: 36px; padding: 40px; }
  .donut-wrap { grid-template-columns: 1fr; }
  .showcase, .cta { margin: 0 12px; border-radius: 28px; }
  .tcol { gap: 22px; }
  .hero-meta { gap: 20px; }
  /* keep the alignment card from forcing horizontal overflow */
  .seqcard { overflow: hidden; }
  .seqcard .aln { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  /* mobile menu only exists at this width */
  .mobile-menu { display: block; }
}
@media (max-width: 560px) {
  .pgrid, .footer-top { grid-template-columns: 1fr; }
  .hero { padding-top: 140px; }
  .hero h1 { font-size: 34px; }
  .hero-sub { font-size: 17px; }
  /* hero pill: keep tag intact, tidy multi-line shape instead of a giant stadium */
  .hero-pill { align-items: center; border-radius: 16px; padding: 8px 8px 8px 8px; gap: 8px; font-size: 12.5px; line-height: 1.35; width:100%; }
  /* all three hero stats on one line */
  .hero-meta { flex-wrap: nowrap; gap: 12px; margin-top: 30px; }
  .hero-meta .item { flex: 1 1 0; min-width: 0; }
  .hero-meta .num { font-size: 20px; }
  .hero-meta .lbl { font-size: 10px; line-height: 1.3; margin-top: 3px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .seqfloat { display: none; }
  /* hide nav CTA on phones — it lives in the menu — so the logo never collides */
  .nav-actions .btn-primary { display: none; }
  .logo img { height: 20px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .seqcard-bar .run {
    margin-left: unset;
  }
  .seqcard-bar, .seqcard-foot {
    flex-wrap: wrap;
  }
  .section {
    padding: 50px 0;
  }
  .section.videosec {
    padding-top: 20px;
  }
}
}

/* mobile menu */
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--bg); z-index: 99; padding: 98px var(--pad-x) 32px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; overflow-y: auto; }
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a:not(.btn) { display: block; font-size: 19px; font-weight: 600; color: var(--ink); padding: 17px 0; border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn):first-child { border-top: 1px solid var(--line); }
.mobile-menu .btn { display: flex; width: 100%; justify-content: center; margin-top: 26px; padding: 15px 22px; border-radius: 12px; font-size: 16px; }
/* nav becomes opaque while the menu is open so the panel can't bleed through behind the logo */
body:has(.mobile-menu.open) .nav, body.menu-open .nav { background: var(--bg); border-bottom-color: var(--line); }
body.menu-open { overflow: hidden; }
