/* Stella Nova Genetics — site styles aligned with stellanovaeducation.com */

:root {
  --deep: #071225;
  --deep-2: #0a1930;
  --navy: #0b1f3a;
  --navy-2: #102b4d;
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --sky: #38bdf8;
  --cyan: #67e8f9;
  --light: #f5f7fa;
  --paper: #ffffff;
  --silver: #e2e8f0;
  --line: #d9e2ef;
  --ink: #10213a;
  --muted: #5e6f86;
  --gold: #f59e0b;
  --green: #22c55e;
  --coral: #fb7185;
  --shadow-sm: 0 10px 30px rgba(7,18,37,.08);
  --shadow: 0 24px 70px rgba(7,18,37,.16);
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 32px;
  --max: 1200px;
  --header-h: 72px;
  --font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--light);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.15;
  margin-top: 0;
  color: inherit;
}
p { color: var(--muted); margin-top: 0; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.shell { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, var(--deep), var(--navy));
  border-bottom: 1px solid rgba(56,189,248,.18);
  color: #fff;
}
.site-header .inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: .75rem;
  font-weight: 700; letter-spacing: .02em;
}
.brand-mark {
  width: 36px; height: 36px;
  border: 1px solid rgba(56,189,248,.45);
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(56,189,248,.08);
}
.brand-mark svg { width: 22px; height: 22px; stroke: var(--sky); fill: none; stroke-width: 1.6; }
.brand span { font-family: var(--display); font-size: 1.05rem; }
.brand small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .12em; color: var(--sky); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: .35rem; }
.nav a, .nav button {
  display: inline-flex; align-items: center;
  min-height: 38px; padding: .5rem .85rem;
  border-radius: 8px; border: 0; background: transparent;
  color: #dbeafe; font-size: .88rem; font-weight: 600;
}
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav .btn-primary {
  background: linear-gradient(135deg, var(--blue-2), #3730a3);
  color: #fff; box-shadow: 0 8px 20px rgba(37,99,235,.28);
}
.nav .btn-primary:hover { box-shadow: 0 12px 28px rgba(37,99,235,.4); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .75rem 1.2rem;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 700; line-height: 1.2; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue-2), #314edc);
  color: #fff; box-shadow: 0 12px 28px rgba(37,99,235,.28);
}
.btn-primary:hover { box-shadow: 0 16px 36px rgba(37,99,235,.38); }
.btn-secondary {
  border-color: #b9c8dc; background: #fff; color: var(--ink);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.btn-ghost {
  background: transparent; border-color: rgba(255,255,255,.25); color: #fff;
}
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.75rem; }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--deep) 0%, var(--navy-2) 55%, #0d2a4a 100%);
  color: #fff; padding: 4.5rem 0 5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(56,189,248,.18), transparent 50%),
              radial-gradient(ellipse at 20% 80%, rgba(37,99,235,.12), transparent 45%);
  pointer-events: none;
}
.hero .shell { position: relative; z-index: 1; }
.eyebrow {
  margin: 0 0 .75rem; color: var(--sky);
  font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: 16ch; margin-bottom: 1rem;
}
.hero .lede {
  font-size: 1.15rem; color: #b6c9df; max-width: 48ch; line-height: 1.7;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center;
}
.hero-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(56,189,248,.22);
  border-radius: var(--radius);
  padding: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero-card h3 { margin: 0 0 .5rem; font-size: 1rem; color: var(--sky); }
.hero-metrics {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.25rem;
}
.hero-metrics div {
  background: rgba(0,0,0,.25); border-radius: 12px; padding: .85rem .7rem; text-align: center;
}
.hero-metrics strong { display: block; font-size: 1.35rem; color: #fff; font-family: var(--display); }
.hero-metrics span { font-size: .72rem; color: #94a8c0; letter-spacing: .04em; }

/* Sections */
.section { padding: 4.5rem 0; }
.section.alt { background: #eef3f8; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
}
.feature-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.feature-card .icon {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(37,99,235,.12), rgba(56,189,248,.15));
  color: var(--blue);
  font-size: 1.2rem;
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p { font-size: .92rem; margin: 0; }

/* Pricing */
.price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch;
}
.price-card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.75rem;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  border-color: var(--blue);
  box-shadow: 0 20px 50px rgba(37,99,235,.18);
  position: relative;
}
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--blue-2), #3730a3); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 999px;
}
.price-card h3 { margin: 0 0 .25rem; font-size: 1.25rem; }
.price-card .price {
  font-family: var(--display); font-size: 2.4rem; font-weight: 700; color: var(--ink);
  margin: .5rem 0 .25rem;
}
.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--muted); }
.price-card ul {
  list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; flex: 1;
}
.price-card li {
  position: relative; padding: .35rem 0 .35rem 1.35rem; font-size: .92rem; color: var(--muted);
}
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.price-card .btn { width: 100%; }

/* Auth forms */
.auth-shell {
  min-height: calc(100vh - var(--header-h));
  display: grid; place-items: center; padding: 2rem 1rem;
  background: linear-gradient(160deg, #eef4fb, #f8fafc);
}
.auth-card {
  width: min(420px, 100%);
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: var(--shadow);
}
.auth-card h1 { font-size: 1.55rem; margin-bottom: .35rem; }
.auth-card .sub { margin-bottom: 1.5rem; font-size: .92rem; }
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block; font-size: .8rem; font-weight: 700; color: var(--ink); margin-bottom: .35rem;
}
.form-field input {
  width: 100%; height: 46px; padding: 0 .9rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink);
}
.form-field input:focus {
  outline: 2px solid rgba(37,99,235,.35); border-color: var(--blue);
}
.form-error {
  background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c;
  padding: .75rem 1rem; border-radius: 10px; font-size: .88rem; margin-bottom: 1rem;
}
.form-footer { margin-top: 1.25rem; font-size: .88rem; text-align: center; color: var(--muted); }
.form-footer a { color: var(--blue); font-weight: 600; }

/* Dashboard layout */
.dash-body { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--header-h)); }
.dash-side {
  background: var(--deep); color: #c5d4e8; padding: 1.25rem .85rem;
  border-right: 1px solid rgba(56,189,248,.12);
}
.dash-side a {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem .8rem; border-radius: 10px; margin-bottom: .2rem;
  font-size: .88rem; font-weight: 600; color: #a8bdd4;
}
.dash-side a:hover, .dash-side a.active {
  background: rgba(56,189,248,.1); color: #fff;
}
.dash-side .side-label {
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #6b829c; padding: .9rem .8rem .4rem; font-weight: 700;
}
.dash-main { padding: 1.75rem 1.75rem 3rem; background: #f0f4f9; }
.dash-main h1 { font-size: 1.6rem; margin-bottom: .35rem; }
.dash-sub { color: var(--muted); margin-bottom: 1.75rem; }
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 1.1rem 1.15rem; box-shadow: var(--shadow-sm);
}
.stat-card span { font-size: .75rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.stat-card strong { display: block; font-size: 1.5rem; font-family: var(--display); margin-top: .25rem; }
.panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.35rem 1.4rem; box-shadow: var(--shadow-sm); margin-bottom: 1.25rem;
}
.panel h2 { font-size: 1.05rem; margin-bottom: .75rem; }
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem;
}
.tool-tile {
  display: block; border: 1px solid var(--line); border-radius: 14px;
  padding: 1.2rem; background: #fafcfe; transition: border-color .15s, box-shadow .15s;
}
.tool-tile:hover {
  border-color: var(--blue); box-shadow: 0 10px 28px rgba(37,99,235,.12);
}
.tool-tile h3 { font-size: .98rem; margin: 0 0 .35rem; }
.tool-tile p { font-size: .82rem; margin: 0; }

/* Helix embed */
.helix-frame-wrap {
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #02050b; height: calc(100vh - 160px); min-height: 640px;
}
.helix-frame-wrap iframe {
  width: 100%; height: 100%; border: 0; display: block;
}

/* Footer */
.site-footer {
  background: var(--deep); color: #8fa4bc; padding: 2.5rem 0;
  border-top: 1px solid rgba(56,189,248,.12); font-size: .88rem;
}
.site-footer a { color: #c5d8ee; }
.site-footer .inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center;
}

/* Tables */
table.data {
  width: 100%; border-collapse: collapse; font-size: .9rem;
}
table.data th, table.data td {
  text-align: left; padding: .65rem .5rem; border-bottom: 1px solid var(--line);
}
table.data th { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .feature-grid, .price-grid, .stat-grid { grid-template-columns: 1fr; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: flex; overflow-x: auto; padding: .6rem; gap: .25rem; }
  .dash-side .side-label { display: none; }
  .dash-side a { white-space: nowrap; margin: 0; }
  .nav .hide-sm { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 3rem 0; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
