
:root {
  color-scheme: dark;
  --bg: #0e1012;
  --sidebar: #14171a;
  --surface: #181b1f;
  --surface-raised: #1d2126;
  --surface-soft: #22272d;
  --field: #101316;
  --text: #edf0f2;
  --muted: #9aa4ad;
  --muted-strong: #c5ccd2;
  --line: #2a3036;
  --line-strong: #3a424a;
  --accent: #e2001a;
  --accent-hover: #ff3347;
  --good: #39b66f;
  --warn: #d8a63c;
  --danger: #e65757;
  --shadow: rgba(0, 0, 0, 0.32);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin:0; background:var(--bg); color:var(--text); font-family:"Segoe UI", Arial, sans-serif; line-height:1.6; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; display:block; }
.container { width:min(1180px,92%); margin:0 auto; }
.site-shell { min-height:100vh; display:grid; grid-template-columns:260px 1fr; }
.sidebar { position:sticky; top:0; height:100vh; background:var(--sidebar); border-right:1px solid var(--line); padding:22px 18px; display:flex; flex-direction:column; gap:22px; }
.brand { display:flex; align-items:center; gap:12px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.brand img { width:44px; height:44px; object-fit:contain; }
.brand strong { display:block; font-size:20px; letter-spacing:.2px; }
.brand span { color:var(--muted); font-size:12px; }
.nav { display:flex; flex-direction:column; gap:8px; }
.nav a { color:var(--muted-strong); border:1px solid transparent; border-radius:8px; padding:10px 12px; font-size:14px; }
.nav a:hover, .nav a.active { background:var(--surface-soft); color:#fff; border-color:var(--line-strong); }
.sidebar-footer { margin-top:auto; color:var(--muted); font-size:12px; border-top:1px solid var(--line); padding-top:16px; }
.main { min-width:0; }
.mobile-header { display:none; background:var(--sidebar); border-bottom:1px solid var(--line); padding:14px 0; }
.hero { position:relative; overflow:hidden; padding:84px 0 56px; border-bottom:1px solid var(--line); background: radial-gradient(circle at 78% 18%, rgba(226,0,26,.25), transparent 32%), linear-gradient(180deg, #11161b 0%, var(--bg) 100%); }
.hero::after { content:""; position:absolute; right:-120px; top:80px; width:480px; height:220px; background:var(--accent); transform:skewX(28deg); opacity:.11; }
.hero-grid { position:relative; z-index:1; display:grid; grid-template-columns:1.25fr .75fr; gap:34px; align-items:center; }
.eyebrow { color:var(--muted); text-transform:uppercase; letter-spacing:2px; font-size:12px; margin:0 0 12px; }
h1 { font-size:58px; line-height:1.03; margin:0; letter-spacing:-1.5px; }
h2 { font-size:30px; line-height:1.2; margin:0 0 12px; }
h3 { margin:0 0 8px; font-size:20px; }
p { color:var(--muted-strong); margin:0 0 16px; }
.hero p.lead { font-size:19px; max-width:740px; margin:22px 0 28px; color:#d7dde2; }
.actions { display:flex; flex-wrap:wrap; gap:12px; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:38px; border:1px solid var(--line-strong); border-radius:7px; background:var(--surface-soft); color:var(--text); padding:9px 14px; font-weight:700; font-size:14px; }
.btn:hover { background:#293039; border-color:var(--muted); }
.btn.primary { background:var(--accent); border-color:var(--accent); color:#fff; }
.btn.primary:hover { background:var(--accent-hover); border-color:var(--accent-hover); }
.btn.disabled { opacity:.55; cursor:not-allowed; }
.status-card, .panel { background:var(--surface); border:1px solid var(--line); border-radius:14px; box-shadow:0 18px 40px var(--shadow); }
.status-card { padding:22px; }
.app-logo-large { width:92px; height:92px; object-fit:contain; margin-bottom:18px; }
.stat-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-top:18px; }
.stat { background:var(--field); border:1px solid var(--line); border-radius:10px; padding:12px; }
.stat span { display:block; color:var(--muted); font-size:12px; }
.stat strong { display:block; margin-top:4px; color:#fff; }
.section { padding:58px 0; }
.section.alt { background:#111417; border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.section-head { margin-bottom:26px; max-width:780px; }
.grid { display:grid; gap:18px; }
.grid.three { grid-template-columns:repeat(3,1fr); }
.grid.two { grid-template-columns:repeat(2,1fr); }
.card { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:22px; }
.card:hover { border-color:var(--line-strong); }
.tag { display:inline-flex; align-items:center; background:#252b31; border:1px solid var(--line-strong); color:#dfe5ea; border-radius:999px; font-size:11px; letter-spacing:1px; text-transform:uppercase; padding:4px 8px; margin-bottom:12px; }
.tag.red { background:rgba(226,0,26,.12); border-color:rgba(226,0,26,.55); color:#fff; }
.screenshot { border:1px solid var(--line); border-radius:14px; overflow:hidden; background:var(--surface); }
.screenshot img { aspect-ratio:16/9; object-fit:cover; width:100%; }
.docs-layout { display:grid; grid-template-columns:260px 1fr; gap:22px; align-items:start; }
.docs-nav { position:sticky; top:22px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:14px; }
.docs-nav a { display:block; color:var(--muted-strong); padding:8px 10px; border-radius:7px; font-size:14px; }
.docs-nav a:hover { background:var(--surface-soft); color:#fff; }
.doc-content { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:28px; }
.doc-content h2 { margin-top:34px; padding-top:18px; border-top:1px solid var(--line); }
.doc-content h2:first-child { margin-top:0; padding-top:0; border-top:0; }
.doc-content code, pre { background:var(--field); border:1px solid var(--line); border-radius:8px; }
.doc-content code { padding:2px 6px; }
pre { padding:14px; overflow:auto; color:#dfe5ea; }
.table { width:100%; border-collapse:collapse; overflow:hidden; border-radius:12px; }
.table th, .table td { border:1px solid var(--line); padding:12px; text-align:left; vertical-align:top; }
.table th { background:var(--surface-soft); color:#fff; }
.table td { color:var(--muted-strong); }
.notice { border-left:4px solid var(--accent); background:#15191d; padding:14px 16px; border-radius:8px; margin:16px 0; }
.timeline { display:grid; gap:14px; }
.version { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:20px; }
.version h3 { color:#fff; display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; }
ul.clean { margin:0; padding-left:18px; color:var(--muted-strong); }
ul.clean li { margin:6px 0; }
.footer { border-top:1px solid var(--line); padding:26px 0; color:var(--muted); font-size:13px; }
.footer .container { display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; }
.footer a { color:var(--muted-strong); margin-left:14px; }
.legal-box { background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:28px; }
.countdown { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin:18px 0; }
.countdown div { background:var(--field); border:1px solid var(--line); border-radius:10px; padding:14px; text-align:center; }
.countdown strong { display:block; font-size:24px; color:#fff; }
.countdown span { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:1px; }
@media (max-width: 980px) {
  .site-shell { display:block; }
  .sidebar { display:none; }
  .mobile-header { display:block; position:sticky; top:0; z-index:20; }
  .mobile-header .brand { border:0; padding:0; }
  .mobile-nav { display:flex; gap:8px; overflow:auto; margin-top:12px; padding-bottom:4px; }
  .mobile-nav a { white-space:nowrap; background:var(--surface); border:1px solid var(--line); border-radius:7px; padding:7px 10px; color:var(--muted-strong); }
  .hero-grid, .docs-layout, .grid.three, .grid.two { grid-template-columns:1fr; }
  h1 { font-size:42px; }
  .docs-nav { position:static; }
}
@media (max-width: 560px) {
  h1 { font-size:34px; }
  .hero { padding:54px 0 38px; }
  .countdown { grid-template-columns:repeat(2,1fr); }
}

/* Index Splash Header */

.main {
  min-height: 100vh;
}

.splash-index {
  min-height: calc(100vh - 69px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 20%, rgba(226, 0, 26, 0.32), transparent 34%),
    radial-gradient(circle at 18% 86%, rgba(226, 0, 26, 0.16), transparent 38%),
    linear-gradient(135deg, #080a0c 0%, #11161b 48%, #1b0709 100%);
}

.splash-index::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.32;
  pointer-events: none;
}

.splash-index::after {
  content: "";
  position: absolute;
  top: -18%;
  right: -10%;
  width: 560px;
  height: 560px;
  background: rgba(226, 0, 26, 0.18);
  filter: blur(84px);
  border-radius: 50%;
  pointer-events: none;
}

.splash-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 46px;
  align-items: center;
  padding: 70px 0;
}

.splash-content {
  max-width: 720px;
}

.splash-label {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid rgba(226, 0, 26, 0.7);
  background: rgba(226, 0, 26, 0.12);
  color: #ffb8bb;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 18px;
  border-radius: 999px;
}

.splash-title {
  margin: 0;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.95;
  letter-spacing: -3px;
  color: #ffffff;
}

.splash-title .accent {
  color: var(--accent);
  text-shadow: 0 0 26px rgba(226, 0, 26, 0.55);
}

.splash-lead {
  max-width: 640px;
  margin: 26px 0 32px;
  font-size: 18px;
  line-height: 1.7;
  color: #cfd6dc;
  animation: softPulse 2.8s ease-in-out infinite;
}

@keyframes softPulse {
  0%, 100% {
    opacity: 0.72;
    text-shadow: 0 0 0 rgba(255,255,255,0);
  }

  50% {
    opacity: 1;
    text-shadow: 0 0 18px rgba(226, 0, 26, 0.35);
  }
}

.splash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.splash-countdown {
  max-width: 560px;
  margin-top: 10px;
}

.splash-countdown div {
  background: rgba(18, 18, 18, 0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-top: 2px solid var(--accent);
  border-radius: 10px;
  padding: 18px 14px;
  box-shadow: 0 14px 32px rgba(0,0,0,0.3);
}

.splash-countdown strong {
  font-size: 32px;
  line-height: 1;
}

.release-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.release-note strong {
  color: #ffffff;
}

.video-frame {
  position: relative;
  background: #111111;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
  box-shadow:
    0 0 0 1px rgba(226, 0, 26, 0.18),
    0 28px 70px rgba(0,0,0,0.52),
    0 0 55px rgba(226, 0, 26, 0.20);
  overflow: hidden;
}

.video-frame::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}

.video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.05), rgba(0,0,0,0.22)),
    linear-gradient(90deg, rgba(226, 0, 26, 0.08), transparent);
  pointer-events: none;
}

.video-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 7px 10px;
  background: rgba(0,0,0,0.72);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  color: #d8d8d8;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.video-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--accent), transparent);
}

@media (max-width: 980px) {
  .splash-index {
    min-height: calc(100vh - 95px);
  }

  .splash-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 44px 0;
  }

  .video-frame {
    order: -1;
  }
}

@media (max-width: 560px) {
  .splash-title {
    font-size: 38px;
    letter-spacing: -1.8px;
  }

  .splash-lead {
    font-size: 16px;
  }

  .splash-countdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .splash-countdown strong {
    font-size: 28px;
  }
}

/* Full Site Navigation */
.nav-group-title {
  display: block;
  margin: 14px 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
}

.nav-group-title:first-child {
  margin-top: 0;
}

.nav a {
  position: relative;
  display: flex;
  align-items: center;
}

.nav a.active {
  padding-left: 16px;
}

.nav a.active::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 50%;
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 999px;
  transform: translateY(-50%);
  box-shadow: 0 0 12px rgba(226, 0, 26, 0.5);
}

.mobile-nav a.active {
  background: var(--surface-soft);
  border-color: var(--accent);
  color: #ffffff;
}

@media (max-width: 980px) {
  .mobile-nav {
    scrollbar-width: thin;
  }
}


/* Normal Top Navigation - RoadBoard */
.site-shell {
  display: block;
  min-height: auto;
}

.sidebar,
.mobile-header {
  display: none !important;
}

.main {
  min-width: 0;
  min-height: calc(100vh - 72px);
}

.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(20, 23, 26, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.top-header-inner {
  width: min(1180px, 92%);
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.top-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.top-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.top-brand span {
  color: #ffffff;
  font-size: 18px;
}

.top-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.top-nav a {
  position: relative;
  color: var(--muted-strong);
  font-size: 14px;
  font-weight: 500;
  padding: 25px 0 22px;
  transition: color 0.18s ease;
}

.top-nav a:hover,
.top-nav a.active {
  color: #ffffff;
}

.top-nav a.active::after,
.top-nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  border-radius: 999px;
}

.top-nav a.active::after {
  background: #ffffff;
}

.top-nav a:hover::after {
  background: rgba(255, 255, 255, 0.55);
}

.top-nav a.active:hover::after {
  background: #ffffff;
}

.top-spacer {
  justify-self: end;
}

.splash-index {
  min-height: calc(100vh - 72px);
}

@media (max-width: 760px) {
  .top-header-inner {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px 0;
  }

  .top-brand,
  .top-nav,
  .top-spacer {
    justify-self: center;
  }

  .top-nav {
    width: 100%;
    gap: 18px;
    flex-wrap: wrap;
  }

  .top-nav a {
    padding: 8px 0 10px;
  }

  .top-nav a.active::after,
  .top-nav a:hover::after {
    bottom: 4px;
  }

  .main {
    min-height: calc(100vh - 118px);
  }

  .splash-index {
    min-height: calc(100vh - 118px);
  }
}
