:root {
  color-scheme:dark;
  --bg:#080f1d;
  --panel:#111d30;
  --text:#edf3ff;
  --muted:#9cacc5;
  --blue:#62adff;
  --line:rgba(148,177,225,.15);
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:30px;
}

body {
  margin:0;
  background:radial-gradient(ellipse at 80% 0%,#132746 0,transparent 40%),var(--bg);
  color:var(--text);
  font-family:'Segoe UI',Arial,sans-serif;
  font-size:15px;
  line-height:1.6;
}

a {
  color:var(--blue);
  text-decoration:none;
}

button,textarea {
  font:inherit;
}

a,button {
  touch-action:manipulation;
}

a:focus-visible,button:focus-visible {
  outline:3px solid #85bfff;
  outline-offset:5px;
}

p {
  color:var(--muted);
  margin:0 0 16px;
}

h1,h2,h3 {
  line-height:1.2;
  letter-spacing:-.035em;
  margin:0 0 18px;
}

h1 {
  font-size:clamp(36px,4.2vw,58px);
  font-weight:650;
}

h1 span {
  color:var(--blue);
}

h2 {
  font-size:29px;
  font-weight:600;
}

h3 {
  font-size:20px;
  font-weight:600;
}

.shell {
  width:min(1180px,calc(100% - 64px));
  margin:auto;
}

.site-header {
  border-bottom:1px solid var(--line);
  background:rgba(8,15,29,.6);
}

.nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:96px;
  gap:24px;
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--text);
  font-size:23px;
  font-weight:700;
  letter-spacing:-.6px;
}

.brand-accent {
  color:var(--blue);
}

.brand small {
  display:block;
  font-size:8px;
  letter-spacing:1.8px;
  font-weight:600;
  color:var(--muted);
}

.brand-mark {
  display:grid;
  place-items:center;
  width:38px;
  height:43px;
  background:linear-gradient(135deg,#449fff,#2056bc);
  clip-path:polygon(50% 0,100% 18%,94% 73%,50% 100%,6% 73%,0 18%);
  color:white;
  font-size:24px;
}

.nav-links {
  display:flex;
  gap:12px;
}

.nav-links a {
  padding:9px 16px;
  border-radius:8px;
  color:var(--muted);
  font-size:13px;
}

.nav-links a[aria-current],.nav-links a:hover {
  background:#182b47;
  color:#96c7ff;
}

.panel {
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(125deg,rgba(255,255,255,.022),transparent 55%),radial-gradient(ellipse at top right,rgba(44,98,179,.1),transparent 65%),var(--panel);
  box-shadow:0 12px 35px #0000001c,inset 0 1px 0 #ffffff05;
  min-width:0;
}

.hero {
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:1.65fr 1fr;
  padding:54px;
  margin:40px 0 24px;
  background-image:radial-gradient(circle at 1px 1px,#91bfff12 1px,transparent 0),linear-gradient(110deg,#14243d,#101c30);
  background-size:20px 20px,auto;
}

.hero-copy {
  position:relative;
  z-index:1;
}

.eyebrow {
  display:block;
  color:#80afe9;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.9px;
  margin-bottom:18px;
}

.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  background:#64acff;
  border-radius:50%;
  box-shadow:0 0 12px #509fff88;
  margin-right:9px;
}

.hero p {
  max-width:480px;
  font-size:15px;
  line-height:1.8;
}

.actions {
  display:flex;
  gap:12px;
  margin:28px 0;
}

.button {
  border:1px solid transparent;
  border-radius:9px;
  padding:12px 19px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:24px;
  font-weight:600;
  font-size:13px;
  cursor:pointer;
  transition:background .2s,box-shadow .2s;
}

.primary {
  background:linear-gradient(120deg,#297cf2,#2563d9);
  color:white;
  box-shadow:0 5px 20px #1765da30;
  border-color:#70adff38;
}

.primary:hover {
  background:#3986f7;
  box-shadow:0 5px 26px #1765da55;
}

.secondary {
  color:#c8d8ee;
  border-color:var(--line);
  background:#ffffff04;
}

.secondary:hover {
  background:#ffffff0c;
}

button:disabled {
  opacity:.65;
  cursor:wait;
}

.hero-tags {
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  color:#899bb7;
  font-size:11px;
}

.hero-tags span:before {
  content:'·';
  color:#5997e5;
  margin-right:8px;
}

.hero-art {
  position:relative;
  display:grid;
  place-items:center;
  min-height:260px;
  background:radial-gradient(circle,#2769cf35,transparent 65%);
}

.shield {
  display:grid;
  place-items:center;
  width:138px;
  height:164px;
  background:linear-gradient(145deg,#559ded55,#1762d015);
  clip-path:polygon(50% 0,100% 17%,94% 72%,77% 88%,50% 100%,23% 88%,6% 72%,0 17%);
  font-size:75px;
  color:#82c2ff;
  text-shadow:0 0 30px #1e89ff;
}

.orbit {
  position:absolute;
  width:260px;
  height:260px;
  border:1px solid #599cff25;
  border-radius:50%;
}

.orbit-two {
  width:320px;
  height:320px;
  border-style:dashed;
}

.art-caption {
  position:absolute;
  bottom:0;
  font-size:9px;
  letter-spacing:3px;
  color:#779ecc;
}

.stats {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-bottom:56px;
}

.stat {
  padding:25px 28px;
}

.stat-top {
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  color:#b9c9e0;
  font-size:13px;
}

.small-tag {
  font-size:8px;
  letter-spacing:1px;
  padding:4px 8px;
  color:#9bbbeb;
  border:1px solid #659ef52b;
  border-radius:5px;
  white-space:nowrap;
}

.stat strong {
  display:block;
  font-size:43px;
  line-height:1.3;
  letter-spacing:-1px;
  margin:14px 0 5px;
  font-weight:600;
}

.stat strong span {
  font-size:24px;
  color:#668bbf;
  margin-left:4px;
}

.stat p {
  font-size:11px;
  margin:0;
}

.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:24px;
  margin-bottom:24px;
}

.section-heading .eyebrow {
  margin-bottom:10px;
}

.section-heading h2 {
  margin:0;
}

.section-heading p {
  max-width:290px;
  margin:0;
  font-size:13px;
}

.dashboard-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:22px;
}

.full {
  grid-column:1/-1;
}

.chart-card {
  padding:28px;
}

.chart-card .eyebrow {
  font-size:9px;
  margin-bottom:9px;
}

.card-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:20px;
}

.card-heading h3,.card-heading h2 {
  margin:0;
}

.chart-wrap {
  position:relative;
  height:280px;
  min-width:0;
}

.chart-note {
  font-size:11px;
  margin:15px 0 0;
  line-height:1.7;
}

.table-scroll {
  overflow-x:auto;
}

table {
  border-collapse:collapse;
  width:100%;
  font-size:13px;
  text-align:left;
}

th,td {
  padding:14px 17px;
  border-bottom:1px solid var(--line);
}

thead {
  background:#0b1525;
  color:#92a8c9;
}

thead th {
  font-size:11px;
  font-weight:500;
}

tbody th {
  font-weight:400;
  color:#c3d0e3;
}

td {
  font-variant-numeric:tabular-nums;
  color:#aabbd3;
}

td:last-child {
  color:#90c4ff;
  background:#3585ef07;
}

tbody tr:hover {
  background:#ffffff03;
}

tr:last-child td,tr:last-child th {
  border-bottom:0;
}

.research-note {
  border-left:2px solid #3a6ba6;
  margin:38px 0 50px;
  padding:0 22px;
}

.research-note .eyebrow {
  margin-bottom:8px;
}

.research-note p {
  font-size:12px;
  max-width:850px;
  margin:0;
}

.site-footer {
  border-top:1px solid var(--line);
  padding:28px 0;
  background:#070d18;
}

.footer-inner {
  display:flex;
  justify-content:space-between;
  gap:25px;
  font-size:11px;
}

.footer-inner strong {
  font-weight:500;
  color:#b5c4dc;
}

.footer-inner strong span {
  color:#496384;
  margin:0 9px;
}

.footer-inner p {
  margin:6px 0 0;
  font-size:11px;
}

.footer-inner>p {
  text-align:right;
}

.page-intro {
  margin:48px 0 32px;
}

.page-intro h1 {
  font-size:44px;
}

.page-intro p {
  font-size:14px;
}

.predict-grid {
  display:grid;
  grid-template-columns:minmax(0,1fr) 320px;
  gap:24px;
  align-items:start;
}

.predict-main {
  padding-bottom:64px;
}

.editor-card {
  padding:32px;
}

.editor-card h2 {
  font-size:22px;
}

.editor-card .card-heading {
  align-items:start;
}

.editor-card label {
  display:block;
  font-size:12px;
  color:#c2d3eb;
  margin-bottom:10px;
}

textarea {
  display:block;
  width:100%;
  resize:vertical;
  min-height:255px;
  border:1px solid #2a3d5a;
  border-radius:12px;
  background:linear-gradient(145deg,#091221,#0c1728);
  box-shadow:inset 0 2px 8px #00000028;
  padding:20px;
  color:#e1edff;
  line-height:1.8;
  font-size:14px;
  transition:border-color .2s;
}

textarea::placeholder {
  color:#7488a7;
}

textarea:focus {
  outline:2px solid #438bec;
  border-color:transparent;
  outline-offset:2px;
}

.editor-bottom {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-top:18px;
}

.editor-bottom p {
  font-size:11px;
  max-width:245px;
  margin:0;
}

.editor-bottom button {
  flex-shrink:0;
}

.guide-stack {
  display:grid;
  gap:20px;
}

.guide-card {
  padding:28px;
}

.guide-card h2 {
  font-size:24px;
}

.guide-icon {
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  border:1px solid #5488d443;
  border-radius:12px;
  background:#224c832e;
  color:#83baff;
  font-size:28px;
  margin-bottom:24px;
}

.steps {
  padding:0;
  list-style:none;
  counter-reset:step;
  margin:24px 0 0;
}

.steps li {
  position:relative;
  padding-left:36px;
  margin-bottom:23px;
  counter-increment:step;
}

.steps li:last-child {
  margin-bottom:0;
}

.steps li:before {
  content:'0' counter(step);
  position:absolute;
  left:0;
  color:#669adc;
  font-size:11px;
  top:2px;
}

.steps strong {
  font-size:13px;
  font-weight:500;
}

.steps p {
  font-size:12px;
  margin:5px 0 0;
  line-height:1.7;
}

.model-note {
  padding:24px;
}

.model-note strong {
  font-size:13px;
  font-weight:500;
}

.model-note p {
  font-size:12px;
  margin:9px 0;
}

.model-note a {
  font-size:11px;
}

.alert {
  background:#392132;
  border:1px solid #84435c;
  color:#ffb4c3;
  border-radius:10px;
  padding:16px;
  margin-top:24px;
  font-size:13px;
}

.result-card {
  border:1px solid #345580;
  border-radius:12px;
  padding:24px;
  margin-top:24px;
  background:radial-gradient(ellipse at right top,#17447e40,transparent),#0d1a2c;
}

.result-card h3 {
  font-size:28px;
}

.result-card p {
  font-size:13px;
}

.result-card strong {
  color:#b3d6ff;
  margin-left:12px;
  font-size:22px;
}

.text-danger {
  color:#ff9cb1;
}

.text-success {
  color:#7be0c1;
}

@media(min-width:1500px) {
  .hero {
    padding:60px;
  }
}

@media(max-width:1000px) {
  .hero {
    padding:36px;
    grid-template-columns:1fr .65fr;
  }
  .orbit {
    width:200px;
    height:200px;
  }
  .orbit-two {
    width:240px;
    height:240px;
  }
  .shield {
    width:110px;
    height:132px;
  }
  .predict-grid {
    grid-template-columns:minmax(0,1fr) 280px;
  }
  .editor-card {
    padding:24px;
  }
  .editor-card .card-heading {
    flex-direction:column;
  }
  .stat {
    padding:22px;
  }
  .stat-top {
    align-items:start;
    flex-direction:column;
  }
}

@media(max-width:760px) {
  .shell {
    width:calc(100% - 32px);
  }
  .nav {
    min-height:80px;
    gap:12px;
  }
  .brand {
    font-size:20px;
  }
  .brand small {
    font-size:7px;
    letter-spacing:1px;
  }
  .brand-mark {
    width:30px;
    height:35px;
  }
  .nav-links {
    gap:0;
  }
  .nav-links a {
    padding:8px 10px;
    font-size:11px;
  }
  .hero {
    grid-template-columns:1fr;
    padding:30px 24px;
    margin-top:24px;
  }
  .hero-art {
    display:none;
  }
  .hero h1 {
    font-size:38px;
  }
  .stats {
    gap:12px;
    margin-bottom:36px;
  }
  .stat {
    padding:18px 14px;
  }
  .stat strong {
    font-size:31px;
  }
  .stat p {
    font-size:10px;
  }
  .stat .small-tag {
    display:none;
  }
  .dashboard-grid,.predict-grid {
    grid-template-columns:1fr;
  }
  .section-heading {
    align-items:start;
    flex-direction:column;
    gap:12px;
  }
  .section-heading p {
    max-width:none;
  }
  .chart-card {
    padding:22px;
  }
  .card-heading {
    align-items:start;
  }
  .card-heading>.small-tag {
    display:none;
  }
  .chart-wrap {
    height:260px;
  }
  .guide-stack {
    grid-template-columns:1fr;
  }
  .footer-inner {
    flex-direction:column;
    gap:10px;
  }
  .footer-inner>p {
    text-align:left;
  }
  .page-intro {
    margin-top:30px;
  }
  .page-intro h1 {
    font-size:36px;
  }
  .editor-bottom {
    flex-direction:column;
    align-items:stretch;
  }
  .editor-bottom p {
    max-width:none;
  }
  .editor-card {
    padding:22px;
  }
  .eyebrow {
    font-size:9px;
  }
  .actions {
    gap:8px;
  }
  .button {
    padding:12px 14px;
    gap:12px;
  }
  .hero-tags {
    gap:10px;
    font-size:10px;
  }
  th,td {
    padding:12px;
    white-space:nowrap;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto;
  }
  * {
    transition:none!important;
  }
}

/* Compact screens: keep navigation and metric values readable. */
@media (max-width: 480px) {
  .brand small { display: none; }
  .brand { gap: 7px; font-size: 18px; }
  .nav-links a { padding: 9px 8px; white-space: nowrap; font-size: 10px; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; padding: 18px 22px; }
  .stat strong { grid-column: 2; grid-row: 1 / 3; margin: 0; white-space: nowrap; }
  .stat p { grid-column: 1; }
}
