/* ═══════════════════════════════════════════════════════════════
   RNAV8.ai — Design System v3
   Brand purple-blue primary · Orange-red secondary
   Fonts: IBM Plex Mono (data) · Syne (display) · Inter (prose)
   ═══════════════════════════════════════════════════════════════ */

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

/* ── reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; }
a { color: inherit; text-decoration: none; }

/* ── tokens ── */
:root {
  /* backgrounds — indigo-void */
  --bg0:   #020408;
  --bg1:   #070b12;
  --bg2:   #0d1117;
  --bg3:   #141a22;
  --bg4:   #1c2430;
  --bg5:   #232f3d;

  /* borders */
  --ln0:   #141a22;
  --ln1:   #1e2a36;
  --ln2:   #283545;
  --ln3:   #344458;

  /* text */
  --tx0:   #eceaf4;
  --tx1:   #aab8cc;
  --tx2:   #667a90;
  --tx3:   #3d5268;

  /* ── PRIMARY: brand purple-blue ── */
  --gr:    #5B6BF5;
  --gr2:   #4A5AE0;
  --gr3:   #3545C4;
  --gr4:   #0D1240;
  --grglow: rgba(91,107,245,.15);

  /* ── SECONDARY: orange-red ── */
  --or:    #E8450A;
  --or2:   #C23608;
  --orb:   #1A0800;
  --orglow: rgba(232,69,10,.15);

  /* ── TERTIARY: deep violet (gradient complement) ── */
  --vi:    #7c5fff;
  --vi2:   #5b3fcc;
  --vi3:   #3d2a8a;
  --vi4:   #0d0820;
  --viglow: rgba(124,95,255,.12);

  /* accents */
  --am:    #e8b430;
  --am2:   #b88a20;
  --amb:   rgba(20,16,0,.5);
  --bl:    #38b6ff;
  --bl2:   #1a6abf;
  --blb:   #030e1e;
  --pu:    #a78bfa;
  --pub:   #0e0818;
  --rd:    #ff4d6a;
  --rdb:   #150408;

  /* typography */
  --mono:  'IBM Plex Mono', monospace;
  --head:  'Syne', sans-serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* spacing */
  --r:     6px;
  --r2:    10px;
  --r3:    16px;

  /* transitions */
  --ease:  cubic-bezier(.16,1,.3,1);
}

/* ── base ── */
body {
  background: var(--bg0);
  background-image:
    radial-gradient(ellipse 1400px 900px at 15% -5%,  rgba(91,107,245,.06)  0%, transparent 55%),
    radial-gradient(ellipse 900px  700px at 85% 100%, rgba(232,69,10,.04)   0%, transparent 55%);
  background-attachment: fixed;
  color: var(--tx0);
  font-family: var(--sans);   /* Inter as default body font — readable on all screens */
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Monospace only for technical / data elements */
.mono, code, pre,
.nav-logo, .nav-link, .nav-cta,
.label-tag, .badge, .btn,
.seq-text, .nt-5u, .nt-koz, .nt-orf, .nt-stp, .nt-3u, .nt-pa,
.pipe-title, .cs-val, .mc-val, .ir-v, .bar-num,
.tool-call, .tool-result, .log-msg .l-bub,
input, textarea, select {
  font-family: var(--mono);
}

/* ── film grain ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .35;
}

/* ── nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  background: rgba(2,4,8,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(30,42,54,.8);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .04em;
  background: linear-gradient(90deg, var(--gr) 0%, var(--or) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-logo svg { width: 28px; height: 28px; flex-shrink: 0; -webkit-text-fill-color: initial; }
.nav-logo img { height: 28px; width: auto; flex-shrink: 0; }
.nav-spacer { flex: 1; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--tx2);
  padding: 6px 12px;
  border-radius: var(--r);
  transition: color .15s, background .15s;
  letter-spacing: .03em;
  font-family: var(--sans);
}
.nav-link:hover { color: var(--tx0); background: rgba(255,255,255,.04); }
.nav-link.active { color: var(--gr); }
.nav-cta {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--r2);
  background: linear-gradient(135deg, var(--gr), var(--or));
  color: #fff;
  letter-spacing: .04em;
  transition: opacity .15s, transform .1s;
  font-family: var(--sans);
}
.nav-cta:hover { opacity: .88; transform: translateY(-1px); }

/* ── RNA strand component ── */
.rna-strand {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: 14px;
  user-select: none;
  pointer-events: none;
  gap: 0;
  font-family: var(--mono);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: .12em;
}
.rna-strand .nA  { color: var(--bl);  opacity: .6; }
.rna-strand .nU  { color: var(--gr);  opacity: .6; }
.rna-strand .nG  { color: var(--am);  opacity: .6; }
.rna-strand .nC  { color: var(--or);  opacity: .6; }
.rna-strand .nb  { color: var(--tx3); margin: 0 1.5px; opacity: .25; }

.rna-strand-scroll {
  animation: rna-scroll 60s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
@keyframes rna-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── page wrapper ── */
.page { padding-top: 56px; min-height: 100vh; }

/* ── sections ── */
section { position: relative; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.container-sm { max-width: 780px; margin: 0 auto; padding: 0 32px; }

/* ── typography ── */
.display {
  font-family: var(--head);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -.02em;
  color: var(--tx0);
}
.display-xl { font-size: clamp(52px, 7vw, 88px); }
.display-lg { font-size: clamp(36px, 5vw, 60px); }
.display-md { font-size: clamp(26px, 3.5vw, 40px); }

h1,h2,h3,h4 { font-family: var(--head); font-weight: 700; }
h1 { font-size: 40px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; }
h4 { font-size: 14px; }

/* ── label tag ── */
.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gr);
  background: linear-gradient(135deg, var(--gr4), var(--vi4));
  border: 1px solid var(--gr3);
  padding: 4px 10px;
  border-radius: 20px;
  font-family: var(--sans);
}
.label-tag::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--or);                 /* orange pulse dot per spec */
  animation: pulse-dot 2.5s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .4; transform: scale(.65); }
}

/* ── buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 10px 20px;
  border-radius: var(--r2);
  border: none;
  transition: all .2s var(--ease);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gr) 0%, var(--or) 120%);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--grglow), 0 4px 12px var(--orglow);
}
.btn-outline {
  background: transparent;
  color: var(--tx1);
  border: 1px solid var(--ln2);
}
.btn-outline:hover { border-color: var(--gr3); color: var(--gr); background: rgba(91,107,245,.04); }
.btn-lg { font-size: 14px; padding: 13px 28px; }
.btn-sm { font-size: 11px; padding: 6px 14px; }

/* ── cards ── */
.card {
  background: var(--bg2);
  border: 1px solid var(--ln1);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.card:hover {
  border-color: var(--ln2);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.3);
}
.card-iridescent {
  position: relative;
  background: var(--bg2);
  border-radius: var(--r2);
  border: none;
  overflow: visible;
}
.card-iridescent::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--r2) + 1px);
  background: linear-gradient(135deg, var(--gr3) 0%, var(--or2) 50%, var(--vi3) 100%);
  z-index: 0;
  pointer-events: none;
}
.card-iridescent > * { position: relative; z-index: 1; }

.glass-panel {
  background: rgba(7,11,18,.75) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── badges ── */
.badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  font-family: var(--mono);
}
.badge-gr  { background: var(--gr4); color: var(--gr);  border: 1px solid var(--gr3); }
.badge-am  { background: var(--amb); color: var(--am);  border: 1px solid var(--am2); }
.badge-bl  { background: var(--blb); color: var(--bl);  border: 1px solid var(--bl2); }
.badge-pu  { background: var(--pub); color: var(--pu);  border: 1px solid #4c3a8a; }
.badge-or  { background: var(--orb); color: var(--or);  border: 1px solid var(--or2); }

/* ── code / sequence ── */
.mono { font-family: var(--mono); }
.seq-text { font-family: var(--mono); font-size: 10.5px; line-height: 1.8; color: var(--tx2); word-break: break-all; }
.nt-5u  { color: var(--bl); }
.nt-koz { color: var(--vi); font-weight: 700; }
.nt-orf { color: var(--or); }             /* ORF = orange per spec */
.nt-stp { color: var(--rd); font-weight: 700; }
.nt-3u  { color: var(--am); }
.nt-pa  { color: #445566; }

/* ── scrollbar ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--ln2); border-radius: 2px; }

/* ── divider ── */
.divider { height: 1px; background: var(--ln1); }

/* ── glow line — purple-blue to orange ── */
.glow-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gr3) 30%, var(--or2) 50%, var(--gr3) 70%, transparent);
}

/* ── footer ── */
footer {
  border-top: 1px solid var(--ln1);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tx3);
  margin-bottom: 12px;
  font-family: var(--sans);
}
.footer-link {
  display: block;
  font-size: 12px;
  color: var(--tx2);
  padding: 3px 0;
  transition: color .15s;
  font-family: var(--sans);
}
.footer-link:hover { color: var(--gr); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--ln0);
  font-size: 11px;
  color: var(--tx3);
  font-family: var(--sans);
}

/* ── DNA/RNA scroll decoration ── */
.dna-scroll {
  position: absolute;
  top: 0; right: 0;
  width: 420px; height: 100%;
  overflow: hidden;
  opacity: .06;
  pointer-events: none;
  user-select: none;
}
.dna-text {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.5;
  color: var(--gr);
  word-break: break-all;
  padding: 16px;
  animation: dna-rise 40s linear infinite;
}
@keyframes dna-rise {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

/* ── pipeline steps ── */
.pipeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.pipeline::before {
  content: '';
  position: absolute;
  left: 19px; top: 20px; bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, var(--gr3), var(--or2), transparent);
}
.pipe-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  position: relative;
}
.pipe-num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--bg3);
  border: 1px solid var(--ln2);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--tx2);
  flex-shrink: 0; position: relative; z-index: 1;
  font-family: var(--mono);
  transition: all .2s;
}
.pipe-step.active .pipe-num {
  background: linear-gradient(135deg, var(--gr4), var(--vi4));
  border-color: var(--gr3);
  color: var(--gr);
  box-shadow: 0 0 16px var(--grglow);
}
.pipe-content { flex: 1; padding-top: 8px; }
.pipe-title { font-size: 13px; font-weight: 600; color: var(--tx0); margin-bottom: 2px; font-family: var(--mono); }
.pipe-desc  { font-size: 11px; color: var(--tx2); line-height: 1.5; }

/* ── pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}
.price-card {
  background: var(--bg2);
  border: 1px solid var(--ln1);
  border-radius: var(--r3);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s var(--ease);
}
.price-card:hover { transform: translateY(-2px); border-color: var(--ln2); }
.price-card.featured {
  border-color: transparent;
  background: linear-gradient(var(--bg2), var(--bg2)) padding-box,
              linear-gradient(135deg, var(--gr3), var(--or2), var(--vi3)) border-box;
}
.price-card.featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gr) 30%, var(--or) 70%, transparent);
}
.price-amount {
  font-family: var(--head);
  font-size: 44px; font-weight: 800;
  color: var(--tx0); line-height: 1;
}
.price-amount sup { font-size: 22px; vertical-align: top; margin-top: 8px; }
.price-amount span { font-size: 14px; font-weight: 400; color: var(--tx2); font-family: var(--sans); }
.price-feature {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--tx1); padding: 5px 0; font-family: var(--sans);
}
.price-feature::before { content: '✓'; color: var(--gr); font-size: 11px; flex-shrink: 0; margin-top: 1px; }
.price-feature.dim { color: var(--tx3); }
.price-feature.dim::before { content: '—'; color: var(--tx3); }

/* ── metric card ── */
.m-card { background: var(--bg2); border: 1px solid var(--ln1); border-radius: var(--r2); padding: 16px 18px; }
.m-val {
  font-family: var(--head);
  font-size: 36px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--gr), var(--or));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.m-lbl { font-size: 10px; color: var(--tx3); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; font-family: var(--sans); }

/* ── animations ── */
.fade-up {
  opacity: 0; transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.fade-up.visible { opacity: 1; transform: none; }

/* ── tabs ── */
.tabs { display: flex; border-bottom: 1px solid var(--ln1); }
.tab-btn {
  font-size: 12px; font-weight: 500; padding: 10px 16px;
  color: var(--tx3); background: none; border: none;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color .15s, border-color .15s; font-family: var(--sans);
}
.tab-btn:hover { color: var(--tx1); }
.tab-btn.active { color: var(--gr); border-bottom-color: var(--gr); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── form elements ── */
input[type=text], input[type=email], input[type=password], textarea, select {
  font-family: var(--mono);
  font-size: 12px; color: var(--tx0);
  background: rgba(20,26,34,.8);
  border: 1px solid var(--ln2);
  border-radius: var(--r);
  padding: 9px 12px; width: 100%; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gr3);
  background: rgba(30,42,54,.7);
  box-shadow: 0 0 0 3px rgba(91,107,245,.07);
}
label {
  font-size: 11px; color: var(--tx2); display: block;
  margin-bottom: 5px; letter-spacing: .02em; font-family: var(--sans);
}

/* ── alerts ── */
.alert {
  padding: 10px 14px; border-radius: var(--r);
  font-size: 12px; display: flex; align-items: flex-start; gap: 8px; font-family: var(--sans);
}
.alert-warn    { background: var(--amb);        border: 1px solid var(--am2); color: var(--am); }
.alert-info    { background: var(--blb);        border: 1px solid var(--bl2); color: var(--bl); }
.alert-success { background: var(--gr4);        border: 1px solid var(--gr3); color: var(--gr); }

/* ── tooltip system ── */
[data-tip] { position: relative; cursor: help; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: rgba(7,11,18,.96); color: var(--tx1); font-size: 11px; line-height: 1.55;
  font-family: var(--sans); padding: 8px 12px; border-radius: 8px;
  border: 1px solid var(--ln2); white-space: pre-wrap; max-width: 250px; width: max-content;
  pointer-events: none; opacity: 0; transition: opacity .18s; z-index: 9000;
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
[data-tip]:hover::after { opacity: 1; }

/* ── responsive ── */
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .footer-grid  { grid-template-columns: 1fr 1fr; }
  .nav-links .nav-link { display: none; }
  .pipeline { max-width: 520px; }
}
@media (max-width: 640px) {
  :root { --r3: 12px; }
  body { font-size: 15px; line-height: 1.75; }
  .container, .container-sm { padding: 0 20px; }
  .display-xl { font-size: clamp(36px, 10vw, 56px); line-height: 1.05; }
  .display-lg { font-size: clamp(28px, 8vw, 44px); }
  .display-md { font-size: clamp(22px, 6vw, 32px); }
  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  .btn-lg { font-size: 13px; padding: 12px 22px; }
  .btn    { width: 100%; justify-content: center; } /* full-width CTAs on mobile */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pipe-step { gap: 12px; }
}
@media (max-width: 480px) {
  .container, .container-sm { padding: 0 16px; }
  .nav { padding: 0 20px; }
}
