:root {
  --bg: #020813;
  --bg2: #071525;
  --panel: rgba(7, 18, 31, 0.92);
  --panel2: rgba(10, 28, 45, 0.92);
  --line: rgba(93, 162, 204, 0.24);
  --line2: rgba(93, 162, 204, 0.14);
  --text: #f5f8fc;
  --soft: #b9c9d8;
  --muted: #7890a4;
  --cyan: #4cc7ff;
  --cyan2: #86e8ff;
  --green: #2ee58e;
  --yellow: #ffd24d;
  --orange: #ffad4d;
  --red: #ff6071;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 0%, rgba(42, 142, 207, 0.16), transparent 34%),
    radial-gradient(circle at 88% 16%, rgba(44, 120, 176, 0.12), transparent 34%),
    linear-gradient(135deg, #020813 0%, #03101e 45%, #071827 100%);
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image:
    linear-gradient(rgba(202, 238, 255, 0.72) 1px, transparent 1px),
    linear-gradient(90deg, rgba(202, 238, 255, 0.72) 1px, transparent 1px);
  background-size: 170px 170px;
}

button,
a,
input { font: inherit; }

button,
a.button { cursor: pointer; }

code {
  padding: 0.12rem 0.35rem;
  border: 1px solid rgba(140, 231, 255, 0.16);
  border-radius: 8px;
  color: #d9f6ff;
  background: rgba(2, 10, 18, 0.42);
}

* { scrollbar-width: thin; scrollbar-color: rgba(67, 129, 168, 0.62) rgba(5, 13, 22, 0.48); }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-track { background: rgba(5, 13, 22, 0.48); border-radius: 999px; }
*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(5, 13, 22, 0.48);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(60, 126, 169, 0.82), rgba(32, 79, 112, 0.82));
}

.page-glow {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(88px);
}

.page-glow--a {
  width: 520px;
  height: 320px;
  top: -120px;
  left: -140px;
  background: rgba(48, 159, 224, 0.12);
}

.page-glow--b {
  width: 640px;
  height: 420px;
  right: 0;
  top: 28%;
  background: rgba(29, 94, 150, 0.09);
}

.preview-shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 16px auto 32px;
}

.topbar,
.panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.045), transparent 90px),
    linear-gradient(135deg, rgba(9, 27, 43, 0.96), rgba(5, 16, 28, 0.96));
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.30);
  backdrop-filter: blur(16px);
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 78px;
  padding: 16px 18px;
  border-radius: var(--radius-xl);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(94, 190, 249, 0.48);
  border-radius: 14px;
  color: var(--cyan2);
  background: rgba(12, 54, 84, 0.74);
  box-shadow: inset 0 1px rgba(255,255,255,0.12), 0 0 28px rgba(60, 179, 255, 0.14);
  font-size: 20px;
  font-weight: 900;
}

.brand strong,
.card-head strong,
.download-box strong { display: block; }

.brand small,
.card-head small,
.download-box span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.topnav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--soft);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--text);
  border-color: rgba(76, 199, 255, 0.32);
  background: rgba(17, 50, 78, 0.54);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(46, 229, 142, 0.42);
  border-radius: 14px;
  color: #c6ffe2;
  background: rgba(13, 61, 40, 0.52);
  white-space: nowrap;
}

.status-pill i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(46, 229, 142, 0.72);
}

.panel {
  border-radius: var(--radius-xl);
  padding: 26px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  min-height: 430px;
  margin-top: 18px;
  overflow: hidden;
}

.hero-copy { align-self: center; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--cyan2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { margin-top: 0; }

h1 {
  max-width: 840px;
  margin-bottom: 14px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 9px;
  font-size: 20px;
}

.hero-text,
.panel p,
.check-list,
.runtime-list span,
.timeline p,
.note-grid p {
  color: var(--soft);
  line-height: 1.58;
}

.hero-text {
  max-width: 860px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 16px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid rgba(76, 199, 255, 0.34);
  border-radius: 14px;
  color: var(--text);
  background: rgba(11, 37, 61, 0.74);
  text-decoration: none;
  font-weight: 800;
}

.button:hover {
  border-color: rgba(76, 199, 255, 0.68);
  background: rgba(18, 63, 98, 0.88);
}

.button--primary {
  border-color: rgba(76, 199, 255, 0.58);
  background: linear-gradient(135deg, rgba(20, 122, 190, 0.96), rgba(11, 83, 136, 0.96));
  box-shadow: 0 18px 42px rgba(0, 38, 70, 0.34);
}

.button--ghost { background: rgba(255,255,255,0.035); }
.button--small { min-height: 38px; padding: 0 14px; font-size: 14px; }

.fineprint {
  max-width: 860px;
  color: var(--muted) !important;
  font-size: 13px;
}

.hero-card {
  align-self: stretch;
  display: grid;
  align-content: space-between;
  padding: 24px;
  border: 1px solid rgba(93, 162, 204, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 28% 0%, rgba(76, 199, 255, 0.14), transparent 42%),
    rgba(3, 13, 24, 0.64);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mini-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(76, 199, 255, 0.30);
  border-radius: 14px;
  color: var(--cyan2);
  background: rgba(17, 59, 89, 0.55);
  font-weight: 900;
}

.status-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
}

.status-list div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: rgba(255,255,255,0.025);
}

.status-list dt { color: var(--muted); }
.status-list dd { margin: 0; color: var(--text); font-weight: 800; }

.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.two-cols { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr); }
.three-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.download-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid rgba(76, 199, 255, 0.20);
  border-radius: 18px;
  background: rgba(2, 13, 24, 0.58);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.warning-panel {
  border-color: rgba(255, 178, 74, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 177, 74, 0.045), transparent 90px),
    linear-gradient(135deg, rgba(35, 22, 10, 0.82), rgba(8, 19, 31, 0.96));
}

.security-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 22px 0;
}

.security-flow span {
  padding: 10px 12px;
  border: 1px solid rgba(255, 178, 74, 0.22);
  border-radius: 14px;
  color: #ffe3b8;
  background: rgba(255, 178, 74, 0.08);
  font-weight: 800;
}

.security-flow b { color: var(--orange); }

.compact-panel { min-height: 180px; }
.compact-panel .mini-icon { margin-bottom: 18px; }

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: 28px;
  margin-top: 18px;
}

.runtime-list {
  display: grid;
  gap: 12px;
}

.runtime-list div {
  padding: 16px;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: rgba(255,255,255,0.028);
}

.runtime-list strong {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan2);
}

.changelog-panel,
.notes-panel { margin-top: 18px; }

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.timeline article {
  position: relative;
  padding: 18px 18px 18px 24px;
  border: 1px solid var(--line2);
  border-radius: 18px;
  background: rgba(255,255,255,0.026);
}

.timeline article::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 18px;
  bottom: 18px;
  width: 3px;
  border-radius: 99px;
  background: var(--cyan);
}

.timeline span {
  display: block;
  margin-bottom: 6px;
  color: var(--cyan2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.note-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.note-grid p {
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line2);
  border-radius: 16px;
  background: rgba(255,255,255,0.026);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 0;
  padding: 0 6px;
  color: var(--muted);
  font-size: 13px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 380px;
  transform: translateY(18px);
  padding: 14px 16px;
  border: 1px solid rgba(76, 199, 255, 0.36);
  border-radius: 16px;
  color: var(--text);
  background: rgba(3, 15, 27, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 980px) {
  .topbar,
  .hero,
  .two-cols,
  .three-cols,
  .split-panel,
  .note-grid {
    grid-template-columns: 1fr;
  }

  .topnav { justify-content: flex-start; overflow-x: auto; }
  .hero { min-height: auto; }
}

@media (max-width: 640px) {
  .preview-shell { width: min(100% - 20px, 1280px); margin-top: 10px; }
  .topbar { top: 8px; }
  .panel { padding: 20px; }
  .hero-actions,
  .download-box,
  .footer { display: grid; }
  .status-list div { grid-template-columns: 1fr; }
}
