:root {
  --navy: #081729;
  --blue: #286af5;
  --cyan: #81b5ff;
  --ink: #14253e;
  --muted: #53647b;
  --bg: #fff;
  --line: #dce4ee;
  --r: 12px;
  --error: #8c4326;
  --ok: #1f6b4a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid #76a9ff;
  outline-offset: 5px;
}
button:disabled, input:disabled { cursor: not-allowed; opacity: .7; }

.container { width: min(1240px, calc(100% - 64px)); margin: auto; }
.skip {
  position: fixed; top: -80px; left: 15px; background: white; color: #102846;
  padding: 12px; z-index: 10;
}
.skip:focus { top: 12px; }

.nav {
  background: #081729f5;
  color: #c9d5e7;
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid #ffffff15;
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -.6px;
  color: #fff;
  white-space: nowrap;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  background: #286af5;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  margin-right: 12px;
  font-size: 13px;
}
.links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 550;
  font-size: 14px;
}
.links a:hover { color: #a7caff; }
.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid #49617e;
  border-radius: 7px;
  padding: 8px 12px;
}
.nav-form { margin: 0; }
.nav-btn { padding: 10px 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 13px 21px;
  font-weight: 650;
  gap: 8px;
  font-size: 14px;
  transition: background .18s, transform .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #1858d8; }
.btn-outline { border-color: #cbd7e7; background: #fff; color: var(--navy); }
.btn-full { width: 100%; }

.hero {
  background: radial-gradient(ellipse at 90% 60%, #123457 0, transparent 60%), #081729;
  color: #fff;
  padding: 84px 0 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 54px;
  align-items: center;
  padding-bottom: 76px;
}
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  font-weight: 650;
  color: #96bbf2;
}
.hero h1 {
  font-size: clamp(42px, 4.9vw, 68px);
  font-weight: 650;
  letter-spacing: -2.9px;
  line-height: 1.08;
  margin: 25px 0;
}
.hero h1 em { font-style: normal; color: #85b2ff; }
.hero p { color: #b6c6dc; font-size: 17px; max-width: 480px; line-height: 1.8; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero .btn-outline { background: transparent; border-color: #49617e; color: #fff; }
.hero .btn-outline:hover { background: #ffffff10; }
.hero-meta { font-size: 13px !important; margin: 23px 0 0 !important; color: #8fa5c3 !important; }

.screen {
  min-width: 0;
  background: #0b1c30;
  border: 1px solid #3c5677;
  border-radius: 12px;
  box-shadow: 0 30px 75px #0005;
  transform: perspective(1400px) rotateY(-4deg);
  overflow: hidden;
}
.screen-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #132740;
  padding: 15px 18px;
  font-size: 12px;
  color: #d3e0f4;
  gap: 10px;
}
.preview-tag { font-size: 12px; color: #a1b7d4; }
.screen-body { color: #d7e3f7; padding: 20px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metric { border-right: 1px solid #2a3a51; padding: 2px 8px; font-size: 12px; color: #a4b8d2; }
.metric:last-child { border: 0; }
.metric strong { display: block; font-size: 26px; color: #fff; font-weight: 550; line-height: 1.5; }
.metric-ok { color: #5adeb2 !important; }
.metric-warn { color: #ffa68b !important; }
.drawing {
  display: block; width: 100%; height: auto; margin: 22px 0 15px;
  border: 1px solid #294361; border-radius: 6px; background: #0a1829;
}
.legend { display: flex; gap: 15px; flex-wrap: wrap; font-size: 12px; color: #b3c4d9; }
.legend b {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  margin-right: 5px; background: #5adeb2;
}
.legend span:nth-child(2) b { background: #ffa68b; }
.preview-foot {
  border-top: 1px solid #29405c;
  margin-top: 17px;
  padding-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #829bbd;
}
.workflow-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid #ffffff20;
  padding: 23px 0;
  color: #c5d3e6;
  font-size: 14px;
}
.workflow-strip span:first-child {
  font-size: 12px;
  letter-spacing: 1.7px;
  color: #829bbd;
  text-transform: uppercase;
}

.section { padding: 86px 0; }
.section h2 {
  font-size: clamp(29px, 3.3vw, 42px);
  font-weight: 650;
  letter-spacing: -1.4px;
  line-height: 1.2;
  margin: 14px 0 20px;
}
.lead { color: var(--muted); max-width: 670px; margin: 0 0 35px; font-size: 17px; }
.kicker {
  color: #245bbb;
  letter-spacing: 2px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
}
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 28px;
}
.glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: #edf3ff;
  color: #286af5;
  font-size: 23px;
}
.card h3 { font-size: 19px; margin: 23px 0 10px; font-weight: 650; }
.card p { font-size: 16px; color: var(--muted); margin: 0; }
.band { background: #f3f6fb; border-block: 1px solid #e7edf5; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 65px; align-items: start; }
.callout {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px;
}
.callout h3 { font-size: 22px; margin: 18px 0 12px; }
.steps { display: grid; gap: 18px; }
.step { display: flex; gap: 15px; color: var(--muted); font-size: 16px; }
.number {
  display: grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  background: #edf3ff;
  color: #205cc5;
  border-radius: 6px;
  font-weight: 650;
  font-size: 14px;
}
.video { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.thumbnail {
  min-height: 155px;
  background: linear-gradient(135deg, #0b1d34, #193f69);
  color: #9abfea;
  display: grid;
  place-items: center;
  font-size: 30px;
}
.video-body { padding: 22px; }
.video-body strong { display: block; font-size: 17px; }
.video-body small { color: var(--muted); font-size: 14px; }
.notice {
  border-left: 2px solid #7193c9;
  background: #eef3fa;
  padding: 14px 18px;
  border-radius: 0 6px 6px 0;
  color: #425a7b;
  font-size: 14px;
  margin-top: 24px;
}
.small { font-size: 14px; color: var(--muted); }
.footer { background: #081729; color: #a5b8d2; padding: 40px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer strong { color: white; font-size: 20px; }
.footer-links { display: inline-block; margin-top: 8px; }
.footer-links a { color: #c9d5e7; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.legal-page { padding: 56px 0 80px; }
.legal-page h1 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -1px; margin: 10px 0 12px; }
.legal-page h2 { font-size: 22px; margin: 32px 0 10px; }
.legal-page p, .legal-page li { color: var(--muted); max-width: 760px; }
.legal-page ul { padding-left: 20px; }
.need-input {
  border: 1px dashed #c9a227;
  background: #fff8e6;
  color: #6a4b00;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 16px 0;
  font-size: 14px;
}
.pill {
  display: inline-block;
  border-radius: 5px;
  padding: 5px 10px;
  background: #edf3ff;
  color: #33567f;
  font-weight: 600;
  font-size: 12px;
}

.flash-wrap { padding: 18px 0 0; }
.flash {
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
}
.flash a { color: var(--blue); text-decoration: underline; overflow-wrap: anywhere; }
.flash-success { background: #e8f6ee; color: var(--ok); }
.flash-error { background: #f8ece6; color: var(--error); }
.flash-info { background: #eef3fa; color: #425a7b; }

.auth-page { padding: 56px 0 80px; }
.auth-card {
  width: min(480px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 32px;
  background: #fff;
}
.auth-card h1 { margin: 10px 0 8px; font-size: 30px; letter-spacing: -1px; }
.field { display: block; font-size: 14px; font-weight: 600; margin: 18px 0 7px; }
.input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #cdd8e7;
  border-radius: 7px;
  background: #f7f9fc;
  color: var(--ink);
}
.field-error { color: var(--error); font-size: 13px; margin: 6px 0 0; }
.auth-actions { margin-top: 22px; display: grid; gap: 14px; }
.muted-link { color: #245bbb; font-size: 14px; }
.muted-link:hover { text-decoration: underline; }

.account-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
}
.dl { display: grid; gap: 10px; margin: 0; }
.dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 15px;
}
.dl dt { color: var(--muted); }
.badge-ok { color: var(--ok); font-weight: 650; }
.badge-wait { color: #8c5a12; font-weight: 650; }
.path-cards { margin-bottom: 36px; }
.path-cards .btn { margin-top: 8px; }
.player-slot {
  margin-top: 14px;
  padding: 16px;
  border: 1px dashed #c5d3e6;
  border-radius: 8px;
  background: #f7f9fc;
}
.tutorial-grid { margin-top: 28px; }
.admin-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.admin-subnav-link {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 650;
  background: #fff;
}
.admin-subnav-link.is-active {
  background: #edf3ff;
  border-color: #b9cef3;
  color: #1d4fad;
}
.inline-form { display: inline; margin: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 32px;
}
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
  background: #fff;
}
.stat-card span { display: block; color: var(--muted); font-size: 13px; font-weight: 650; }
.stat-card strong { display: block; font-size: 32px; margin-top: 8px; letter-spacing: -1px; }
.table-wrap { margin-bottom: 24px; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.data-table th { color: var(--muted); font-weight: 650; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1050px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .hero h1 { font-size: 49px; }
  .columns, .account-grid { grid-template-columns: 1fr; gap: 35px; }
  .screen { transform: none; }
}
@media (max-width: 800px) {
  .container { width: calc(100% - 40px); }
  .nav-inner { flex-wrap: wrap; gap: 12px; padding: 16px 0; }
  .nav-toggle { display: inline-flex; }
  .links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 12px;
  }
  .links.open { display: flex; }
  .hero-grid, .columns { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; padding-bottom: 45px; }
  .hero { padding-top: 48px; }
  .screen { width: 100%; max-width: 650px; }
  .cards { grid-template-columns: 1fr; }
  .workflow-strip { flex-wrap: wrap; justify-content: flex-start; gap: 15px 24px; }
  .workflow-strip span:first-child { width: 100%; }
  .section { padding: 60px 0; }
  html { scroll-padding-top: 150px; }
}
@media (max-width: 440px) {
  .container { width: calc(100% - 32px); }
  .hero h1 { font-size: 44px; letter-spacing: -1.8px; }
  .card, .callout, .auth-card { padding: 23px; }
  .actions .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .btn:hover { transform: none; }
}
