/* ============================================================
   BirthdayDNA — "Genetic Futurism" design system
   Dark bio-tech theme: deep space base, cyan/violet genome accents
   ============================================================ */

:root {
  --bg-0: #05070f;
  --bg-1: #0a1020;
  --bg-2: #0e1730;
  --panel: rgba(148, 180, 255, 0.05);
  --panel-strong: rgba(148, 180, 255, 0.09);
  --line: rgba(125, 155, 255, 0.16);
  --line-soft: rgba(125, 155, 255, 0.09);
  --cyan: #36e0ff;
  --violet: #8b5cf6;
  --magenta: #e26bf5;
  --green: #3ef0b0;
  --text: #e9efff;
  --muted: #93a1c8;
  --mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --body: 'Inter', sans-serif;
  --grad-main: linear-gradient(95deg, var(--cyan) 0%, var(--violet) 55%, var(--magenta) 100%);
  --glow-cyan: 0 0 24px rgba(54, 224, 255, 0.35);
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 25%, rgba(54, 224, 255, 0.10), transparent 55%),
    radial-gradient(700px 500px at 60% 110%, rgba(226, 107, 245, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 55%, var(--bg-0) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

::selection { background: rgba(54, 224, 255, 0.35); }

/* ---------- typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -0.02em; }

.grad-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mono { font-family: var(--mono); }

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 9, 18, 0.72);
  border-bottom: 1px solid var(--line-soft);
}

.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
}

.brand .mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(54,224,255,.18), rgba(139,92,246,.18));
  border: 1px solid var(--line);
  box-shadow: inset 0 0 18px rgba(54, 224, 255, 0.12);
}

.brand b { font-weight: 700; }
.brand .dna { color: var(--cyan); }

.site-nav { display: flex; align-items: center; gap: 26px; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: color .2s;
}

.site-nav a:hover { color: var(--cyan); }

.site-nav a.nav-cta {
  color: #051018;
  background: var(--grad-main);
  padding: 9px 18px;
  border-radius: 99px;
  box-shadow: var(--glow-cyan);
}
.site-nav a.nav-cta:hover { color: #051018; filter: brightness(1.1); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 24px 70px;
}

#helix-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(54, 224, 255, 0.35);
  background: rgba(54, 224, 255, 0.07);
  padding: 7px 14px;
  border-radius: 99px;
  margin-bottom: 22px;
}

.chip .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s infinite;
}

@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 {
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.06;
  margin: 0 0 22px;
  font-weight: 700;
}

.hero p.lead {
  color: var(--muted);
  font-size: 17.5px;
  line-height: 1.65;
  max-width: 540px;
  margin: 0 0 28px;
}

.seq-steps { display: flex; flex-direction: column; gap: 12px; padding: 0; margin: 0; list-style: none; }

.seq-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 15px;
}

.seq-steps .num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid rgba(54,224,255,.4);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: rgba(54,224,255,.06);
  flex-shrink: 0;
}

/* ---------- glass panels ---------- */
.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(2, 6, 18, 0.55);
}

.form-card {
  padding: 34px 30px;
  position: relative;
}

.form-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(140deg, rgba(54,224,255,.5), transparent 35%, transparent 65%, rgba(139,92,246,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.form-card h2 { margin: 0 0 6px; font-size: 22px; }
.form-card .sub { color: var(--muted); font-size: 13.5px; margin: 0 0 22px; }

/* ---------- inputs ---------- */
.input, input[type="text"], input[type="email"], input[type="date"],
input[type="number"], input[type="password"], select, textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 16, 32, 0.75);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input::placeholder, textarea::placeholder { color: #5d6a90; }

input:focus, select:focus, textarea:focus {
  border-color: rgba(54, 224, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(54, 224, 255, 0.14);
}

input[type="date"] { color-scheme: dark; }
select { color-scheme: dark; }

input[readonly] { opacity: 0.6; }

input[type="file"] {
  padding: 11px 14px;
  font-size: 13.5px;
  color: var(--muted);
}

input[type="file"]::file-selector-button {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--cyan);
  background: rgba(54,224,255,.08);
  border: 1px solid rgba(54,224,255,.4);
  border-radius: 8px;
  padding: 7px 14px;
  margin-right: 12px;
  cursor: pointer;
}

label {
  display: block;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 7px;
  text-transform: uppercase;
  font-family: var(--mono);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 26px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.02em;
  color: #051018;
  background: var(--grad-main);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, filter .2s;
  box-shadow: 0 8px 30px rgba(54, 224, 255, 0.25);
  text-decoration: none;
}

.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 36px rgba(54, 224, 255, 0.4); }
.btn:disabled { filter: grayscale(.4) brightness(.8); cursor: not-allowed; transform: none; }

.btn.ghost {
  background: transparent;
  color: var(--cyan);
  border: 1px solid rgba(54,224,255,.45);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(54,224,255,.08); }

.btn.danger {
  background: linear-gradient(95deg, #ff5470, #e26bf5);
  box-shadow: 0 8px 30px rgba(255, 84, 112, 0.25);
}

.btn.small { width: auto; padding: 10px 20px; font-size: 13.5px; }

/* ---------- stats strip ---------- */
.stats-section { max-width: 1180px; margin: 10px auto 0; padding: 0 24px 70px; position: relative; }

.stats-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}

.stats-head h2 { font-size: 20px; margin: 0; }

.stats-head .line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.stat-card {
  padding: 22px 18px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}

.stat-card:hover { transform: translateY(-3px); border-color: rgba(54,224,255,.4); }

.stat-card .value {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
  margin-bottom: 6px;
  white-space: nowrap;
}

.stat-card .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad-main);
  opacity: 0;
  transition: opacity .25s;
}
.stat-card:hover::after { opacity: 1; }

/* ---------- content sections ---------- */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section.reverse .section-media { order: 2; }

.section-media img {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(2, 6, 18, 0.6);
}

.section-media { position: relative; }

.section-media::before {
  content: '';
  position: absolute;
  inset: -14px;
  border-radius: calc(var(--radius) + 10px);
  background: linear-gradient(140deg, rgba(54,224,255,.18), transparent 40%, rgba(139,92,246,.18));
  z-index: -1;
  filter: blur(14px);
}

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 12px;
}

.section h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 16px; }

.section p { color: var(--muted); line-height: 1.7; font-size: 15.5px; }

.gene-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 11px; }

.gene-list li {
  display: flex; align-items: baseline; gap: 12px;
  color: var(--text); font-size: 15px;
}

.gene-list li::before {
  content: '▸';
  color: var(--cyan);
  font-size: 13px;
}

/* ---------- FAQ accordion ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 20px; }

details.faq {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  overflow: hidden;
}

details.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--cyan);
  font-size: 18px;
  transition: transform .2s;
}

details.faq[open] summary::after { transform: rotate(45deg); }

details.faq .faq-body { padding: 0 20px 18px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- genome card (thank-you) ---------- */
.genome-card {
  max-width: 660px;
  margin: 60px auto;
  padding: 0;
  overflow: hidden;
}

.genome-card .gc-head {
  padding: 28px 32px;
  background: linear-gradient(120deg, rgba(54,224,255,.12), rgba(139,92,246,.12));
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.genome-card .gc-head h2 { margin: 0; font-size: 20px; }

.genome-no {
  font-family: var(--mono);
  font-size: clamp(20px, 3.6vw, 30px);
  letter-spacing: 0.12em;
  color: var(--cyan);
  text-shadow: 0 0 22px rgba(54,224,255,.5);
  text-align: center;
  padding: 28px 20px 8px;
}

.genome-sub {
  text-align: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 22px;
}

.kv-table { width: 100%; border-collapse: collapse; }

.kv-table td {
  padding: 13px 32px;
  border-top: 1px solid var(--line-soft);
  font-size: 14.5px;
}

.kv-table td.k {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  width: 42%;
}

.note-box {
  margin: 22px 32px 30px;
  padding: 15px 18px;
  border-radius: 12px;
  border: 1px dashed rgba(54,224,255,.35);
  background: rgba(54,224,255,.05);
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- page shells ---------- */
.page-narrow { max-width: 560px; margin: 60px auto; padding: 0 20px; }
.page-mid { max-width: 860px; margin: 56px auto; padding: 0 20px; }

.page-title { text-align: center; margin-bottom: 34px; }
.page-title h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 10px; }
.page-title p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* form grid for profile page */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
  padding: 34px;
}

.form-grid .full { grid-column: 1 / -1; }

/* alerts */
.alert { border-radius: 12px; padding: 15px 18px; font-size: 14.5px; line-height: 1.6; margin-bottom: 20px; }
.alert.ok { border: 1px solid rgba(62,240,176,.4); background: rgba(62,240,176,.07); color: #b9f5dd; }
.alert.err { border: 1px solid rgba(255,84,112,.45); background: rgba(255,84,112,.08); color: #ffc3cd; }

/* ---------- legal / text pages ---------- */
.tbox {
  max-width: 820px;
  margin: 56px auto;
  padding: 46px 50px;
}

.tbox h1 { font-size: 32px; margin-top: 0; }
.tbox h2 { font-size: 19px; margin: 34px 0 10px; color: var(--cyan); }
.tbox p, .tbox li { color: var(--muted); line-height: 1.75; font-size: 15px; }
.tbox strong { color: var(--text); }
.tbox ul { padding-left: 22px; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line-soft);
  background: rgba(5, 8, 16, 0.6);
}

.footer-seq {
  height: 3px;
  background: var(--grad-main);
  opacity: 0.6;
}

.footer-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
}

.footer-wrap .f-brand { display: flex; flex-direction: column; gap: 8px; }

.footer-wrap .f-brand .tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.f-links { display: flex; gap: 22px; }

.f-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.f-links a:hover { color: var(--cyan); }

.f-social { display: flex; gap: 12px; }

.f-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: border-color .2s, transform .15s;
}
.f-social a:hover { border-color: rgba(54,224,255,.5); transform: translateY(-2px); }
.f-social img { width: 17px; height: 17px; filter: invert(70%) sepia(20%) saturate(500%) hue-rotate(180deg); }

.f-note {
  width: 100%;
  max-width: 760px;
  margin: 6px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  padding: 14px 18px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--panel);
}
.f-note .f-note-title {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.f-note a { color: var(--cyan); text-decoration: none; }

.f-copy { width: 100%; text-align: center; color: #5d6a90; font-size: 12.5px; font-family: var(--mono); letter-spacing: 0.06em; }

/* ---------- cookie consent banner ---------- */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 100;
  width: min(720px, calc(100vw - 28px));
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  border-radius: 16px;
}
.cookie-banner .cb-text { flex: 1; font-size: 13.5px; line-height: 1.6; color: var(--text); }
.cookie-banner .cb-text a { color: var(--cyan); text-decoration: none; }
.cookie-banner .cb-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-banner .cb-actions { justify-content: center; }
}

/* ---------- photo guideline boxes ---------- */
.guide-box {
  border: 1px dashed rgba(54, 224, 255, 0.35);
  background: rgba(54, 224, 255, 0.05);
  border-radius: 12px;
  padding: 16px 18px;
}
html[data-theme="light"] .guide-box { border-color: rgba(8, 148, 198, 0.4); background: rgba(8, 148, 198, 0.05); }
.guide-box .gb-title {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.guide-box ul { margin: 0; padding: 0 0 0 4px; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.guide-box li { color: var(--muted); font-size: 13.3px; line-height: 1.55; display: flex; gap: 9px; align-items: baseline; }
.guide-box li::before { content: '▸'; color: var(--cyan); font-size: 12px; flex-shrink: 0; }
@media (max-width: 640px) {
  .guide-box { padding: 13px 14px; }
  .guide-box li { font-size: 12.8px; }
}

/* ---------- admin / dashboard ---------- */
.dash-wrap { max-width: 980px; margin: 50px auto; padding: 0 20px; }

.dash-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 26px; gap: 16px; flex-wrap: wrap;
}

.dash-head h1 { font-size: 28px; margin: 0; }

.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }

.dash-panel { padding: 26px 28px; margin-bottom: 22px; }

.dash-panel h2 {
  font-size: 15px; margin: 0 0 18px;
  font-family: var(--mono); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cyan);
}

.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }

.data-table th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
  text-align: left; padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }

.data-table tr:hover td { background: rgba(54,224,255,.04); }

.inline-form { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 220px; }

/* ---------- language selector ---------- */
.lang-select {
  width: auto;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  flex-shrink: 0;
}
.lang-select:hover { border-color: rgba(54,224,255,.55); color: var(--cyan); }
html[data-theme="light"] .lang-select:hover { border-color: rgba(8,148,198,.55); }

/* ---------- why join cards ---------- */
.why-section { max-width: 1180px; margin: 0 auto; padding: 26px 24px 70px; }
.why-head { max-width: 760px; margin: 0 auto 38px; text-align: center; }
.why-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0 0 14px; }
.why-head p { color: var(--muted); line-height: 1.7; font-size: 15.5px; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.why-card { padding: 26px 22px; transition: transform .2s, border-color .2s; position: relative; overflow: hidden; }
.why-card:hover { transform: translateY(-4px); border-color: rgba(54,224,255,.45); }
html[data-theme="light"] .why-card:hover { border-color: rgba(8,148,198,.5); }
.why-card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: linear-gradient(140deg, rgba(54,224,255,.14), rgba(139,92,246,.14));
  border: 1px solid var(--line);
  font-size: 20px;
}
.why-card h3 { font-size: 16.5px; margin: 0 0 10px; }
.why-card p { color: var(--muted); font-size: 13.8px; line-height: 1.65; margin: 0; }
.why-cta-row { text-align: center; margin-top: 34px; }
@media (max-width: 980px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .why-grid { grid-template-columns: 1fr; } }

/* ---------- theme toggle ---------- */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .2s, color .2s, transform .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: rgba(54,224,255,.55); color: var(--cyan); transform: translateY(-1px); }
.theme-toggle svg { display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* hamburger menu button — hidden on desktop, shown via media query */
.menu-toggle {
  display: none;
  width: 38px; height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  transition: border-color .2s, color .2s;
  flex-shrink: 0;
}
.menu-toggle:hover { border-color: rgba(54,224,255,.55); color: var(--cyan); }
.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }
.site-header.nav-open .menu-toggle .icon-bars { display: none; }
.site-header.nav-open .menu-toggle .icon-close { display: block; }

/* ============================================================
   LIGHT FUTURIST THEME — html[data-theme="light"]
   Ice-white lab aesthetic; same genome gradient language
   ============================================================ */
html[data-theme="light"] {
  --bg-0: #eef2fb;
  --bg-1: #f6f8ff;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, 0.66);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --line: rgba(30, 60, 160, 0.16);
  --line-soft: rgba(30, 60, 160, 0.09);
  --cyan: #0894c6;
  --violet: #6d3fd4;
  --magenta: #bb35cf;
  --green: #0a9e6e;
  --text: #101935;
  --muted: #54618c;
  --grad-main: linear-gradient(95deg, #15b4e6 0%, #7a4be0 55%, #d04ddd 100%);
  --glow-cyan: 0 0 24px rgba(21, 180, 230, 0.3);
}

html[data-theme="light"] body {
  background:
    radial-gradient(1100px 600px at 85% -10%, rgba(122, 75, 224, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 25%, rgba(21, 180, 230, 0.10), transparent 55%),
    radial-gradient(700px 500px at 60% 110%, rgba(208, 77, 221, 0.08), transparent 60%),
    linear-gradient(180deg, #f2f5fd 0%, #e9eefb 55%, #f2f5fd 100%);
}

html[data-theme="light"] ::selection { background: rgba(21, 180, 230, 0.25); }

html[data-theme="light"] .site-header { background: rgba(255, 255, 255, 0.72); }

html[data-theme="light"] #helix-canvas { opacity: 0.5; }

html[data-theme="light"] .glass { box-shadow: 0 24px 60px rgba(40, 60, 130, 0.12); }

html[data-theme="light"] .input,
html[data-theme="light"] input[type="text"], html[data-theme="light"] input[type="email"],
html[data-theme="light"] input[type="date"], html[data-theme="light"] input[type="number"],
html[data-theme="light"] input[type="password"], html[data-theme="light"] select,
html[data-theme="light"] textarea {
  background: rgba(255, 255, 255, 0.88);
  color: var(--text);
}
html[data-theme="light"] input::placeholder,
html[data-theme="light"] textarea::placeholder { color: #8d99c2; }
html[data-theme="light"] input[type="date"], html[data-theme="light"] select { color-scheme: light; }
html[data-theme="light"] input:focus, html[data-theme="light"] select:focus,
html[data-theme="light"] textarea:focus {
  border-color: rgba(8, 148, 198, 0.6);
  box-shadow: 0 0 0 3px rgba(8, 148, 198, 0.13);
}

html[data-theme="light"] .btn { color: #ffffff; box-shadow: 0 8px 26px rgba(122, 75, 224, 0.3); }
html[data-theme="light"] .btn:hover { box-shadow: 0 10px 32px rgba(122, 75, 224, 0.42); }

html[data-theme="light"] .chip {
  color: var(--cyan);
  border-color: rgba(8, 148, 198, 0.4);
  background: rgba(8, 148, 198, 0.07);
}

html[data-theme="light"] .seq-steps .num {
  color: var(--cyan);
  border-color: rgba(8, 148, 198, 0.45);
  background: rgba(8, 148, 198, 0.06);
}

html[data-theme="light"] .stat-card:hover { border-color: rgba(8, 148, 198, 0.45); }

html[data-theme="light"] .theme-toggle:hover { border-color: rgba(8, 148, 198, 0.55); }

html[data-theme="light"] input[type="file"]::file-selector-button {
  color: var(--cyan);
  background: rgba(8, 148, 198, 0.07);
  border-color: rgba(8, 148, 198, 0.45);
}

html[data-theme="light"] .btn.ghost { color: var(--cyan); border-color: rgba(8, 148, 198, 0.5); }
html[data-theme="light"] .btn.ghost:hover { background: rgba(8, 148, 198, 0.07); }

html[data-theme="light"] .alert.ok { border-color: rgba(10, 158, 110, 0.45); background: rgba(10, 158, 110, 0.08); color: #066a4d; }
html[data-theme="light"] .alert.err { border-color: rgba(214, 31, 70, 0.4); background: rgba(214, 31, 70, 0.07); color: #ab0f35; }

html[data-theme="light"] .genome-no { text-shadow: 0 0 18px rgba(8, 148, 198, 0.35); }
html[data-theme="light"] .genome-card .gc-head { background: linear-gradient(120deg, rgba(21, 180, 230, 0.10), rgba(122, 75, 224, 0.10)); }
html[data-theme="light"] .note-box { border-color: rgba(8, 148, 198, 0.4); background: rgba(8, 148, 198, 0.05); }

html[data-theme="light"] .data-table tr:hover td { background: rgba(8, 148, 198, 0.05); }

html[data-theme="light"] .site-footer { background: rgba(255, 255, 255, 0.55); }
html[data-theme="light"] .f-social img { filter: invert(38%) sepia(30%) saturate(700%) hue-rotate(195deg); }
html[data-theme="light"] .f-copy { color: #8d99c2; }

html[data-theme="light"] .brand .mark {
  background: linear-gradient(140deg, rgba(21, 180, 230, 0.14), rgba(122, 75, 224, 0.14));
  box-shadow: inset 0 0 18px rgba(21, 180, 230, 0.1);
}

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .section { grid-template-columns: 1fr; gap: 34px; padding: 50px 24px; }
  .section.reverse .section-media { order: 0; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; padding: 26px 22px; }
  .tbox { padding: 32px 24px; }
  .hero { padding: 56px 20px 50px; }

  /* Hamburger menu: button left, logo centered (familiar mobile pattern) */
  .menu-toggle { display: grid; }
  .nav-wrap { position: relative; }
  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    gap: 7px;
  }
  .brand .mark { width: 30px; height: 30px; }
  /* language selector sits inside the dropdown menu on mobile (moved by JS) */
  .site-nav .lang-select { margin: 8px 24px 4px; width: calc(100% - 48px); padding: 11px 14px; font-size: 13px; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    background: rgba(6, 9, 18, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(2, 6, 18, 0.5);
  }
  html[data-theme="light"] .site-nav { background: rgba(255, 255, 255, 0.97); }
  .site-header.nav-open .site-nav { display: flex; }
  .site-nav a {
    padding: 14px 24px;
    border-radius: 0;
    font-size: 15.5px;
  }
  .site-nav a.nav-cta {
    margin: 8px 24px 4px;
    padding: 12px 18px;
    border-radius: 99px;
    text-align: center;
  }
}
