:root {
  color-scheme: dark;
  font-family:
    "Space Grotesk",
    "Segoe UI",
    sans-serif;
  --bg: #060911;
  --bg-soft: rgba(12, 17, 30, 0.8);
  --panel: rgba(12, 17, 30, 0.82);
  --panel-strong: rgba(17, 24, 38, 0.96);
  --panel-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(166, 178, 255, 0.16);
  --line-strong: rgba(166, 178, 255, 0.28);
  --text: #f3f5ff;
  --muted: #9aa5c7;
  --muted-strong: #c4caea;
  --primary: #7a6dff;
  --primary-strong: #9f95ff;
  --secondary: #74e7ff;
  --accent: #7d90ff;
  --success: #7cf7c1;
  --warn: #ffcf7b;
  --danger: #ff8f9c;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --hero-shadow: 0 30px 120px rgba(122, 109, 255, 0.18);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(122, 109, 255, 0.28), transparent 30%),
    radial-gradient(circle at top right, rgba(116, 231, 255, 0.14), transparent 24%),
    radial-gradient(circle at bottom center, rgba(67, 93, 255, 0.18), transparent 26%),
    linear-gradient(180deg, #080b13 0%, #04060d 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

.page-root {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.page-root::before,
.page-root::after {
  content: "";
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(110px);
  pointer-events: none;
  opacity: 0.45;
  z-index: 0;
}

.page-root::before {
  top: -160px;
  left: -120px;
  background: rgba(122, 109, 255, 0.3);
}

.page-root::after {
  right: -120px;
  bottom: -200px;
  background: rgba(116, 231, 255, 0.16);
}

.topbar,
.hero-card,
.section-card,
.feature-card,
.form-card,
.side-card,
.metric-card,
.timeline-card,
.status-banner,
.download-card,
.log-card,
.dev-panel {
  position: relative;
  z-index: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 22px;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-glyph {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(122, 109, 255, 0.96), rgba(66, 98, 255, 0.72));
  box-shadow: 0 16px 36px rgba(122, 109, 255, 0.28);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-copy strong {
  display: block;
  font-size: 17px;
  letter-spacing: 0.04em;
}

.brand-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.topnav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topnav a {
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 14px;
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.topnav a:hover,
.topnav a.active {
  color: var(--text);
  border-color: rgba(122, 109, 255, 0.28);
  background: rgba(122, 109, 255, 0.1);
  transform: translateY(-1px);
}

.utility-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.signal-chip {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
  font-size: 13px;
}

.signal-chip strong {
  font-size: 13px;
  color: var(--text);
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  margin-top: 18px;
  padding: 28px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow), var(--hero-shadow);
}

.hero-copy {
  display: grid;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 109, 255, 0.3);
  background: rgba(122, 109, 255, 0.14);
  color: var(--primary-strong);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

.hero-actions,
.inline-actions,
.form-actions,
.stack-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button,
.ghost-button,
.pill-link {
  min-height: 48px;
  padding: 0 18px;
  border-radius: 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    transform 140ms ease,
    opacity 140ms ease,
    border-color 140ms ease,
    background 140ms ease;
}

.primary-button,
.pill-link.is-primary {
  background: linear-gradient(135deg, rgba(122, 109, 255, 1), rgba(84, 130, 255, 0.96));
  color: #ffffff;
  font-weight: 700;
}

.secondary-button,
.pill-link.is-secondary {
  border-color: rgba(116, 231, 255, 0.24);
  background: rgba(116, 231, 255, 0.08);
  color: var(--secondary);
}

.ghost-button {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.pill-link:hover {
  transform: translateY(-1px);
}

.hero-pane,
.timeline-card,
.status-banner,
.form-card,
.side-card,
.section-card,
.download-card,
.dev-panel {
  border-radius: var(--radius-lg);
}

.hero-pane {
  display: grid;
  gap: 14px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card,
.download-card {
  padding: 18px;
  border-radius: var(--radius-md);
}

.metric-card span,
.tiny-label,
.form-grid label span,
.note {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.section-grid,
.content-grid,
.feature-grid,
.status-grid,
.download-grid {
  display: grid;
  gap: 18px;
}

.section-grid {
  margin-top: 18px;
}

.section-card {
  padding: 26px;
}

.section-title,
.stack-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title h2,
.stack-title h2,
.timeline-card h3,
.download-card h3 {
  margin: 0;
}

.section-title p,
.stack-title p,
.download-card p,
.timeline-card p,
.hero-pane p,
.step-text p,
.status-banner p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  padding: 20px;
  border-radius: var(--radius-lg);
}

.feature-card strong {
  display: block;
  font-size: 18px;
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.content-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.74fr);
  margin-top: 18px;
}

.form-card,
.side-card,
.timeline-card,
.status-banner,
.download-card,
.log-card,
.dev-panel {
  padding: 24px;
}

.stack-layout {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-grid label {
  display: grid;
  gap: 8px;
}

input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(166, 178, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

input::placeholder {
  color: rgba(154, 165, 199, 0.56);
}

input:focus {
  border-color: rgba(122, 109, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(122, 109, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.status-banner {
  background:
    linear-gradient(135deg, rgba(122, 109, 255, 0.14), rgba(116, 231, 255, 0.05)),
    var(--panel);
}

.status-banner strong {
  display: block;
  font-size: 24px;
}

.status-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-grid .metric-card {
  background: var(--panel-soft);
}

.timeline-card {
  display: grid;
  gap: 14px;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: flex-start;
}

.step-number {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(122, 109, 255, 0.28);
  background: rgba(122, 109, 255, 0.14);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-strong);
  font-weight: 700;
}

.step-text strong {
  display: block;
  font-size: 16px;
}

.log-card {
  margin: 0;
  min-height: 168px;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  color: #d6ddff;
  font-size: 13px;
  line-height: 1.65;
  background: var(--panel-strong);
}

.inline-link {
  color: var(--secondary);
}

.text-list {
  display: grid;
  gap: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.text-list strong {
  color: var(--text);
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-card strong {
  display: block;
  font-size: 17px;
}

.download-card p {
  margin-bottom: 18px;
}

.card-link {
  color: var(--secondary);
  font-size: 14px;
}

.dev-panel summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.dev-panel summary::-webkit-details-marker {
  display: none;
}

.dev-panel .form-grid {
  margin-top: 18px;
}

.empty-state {
  color: var(--muted);
}

.footer-note {
  margin-top: 18px;
  text-align: center;
  color: rgba(154, 165, 199, 0.72);
  font-size: 12px;
  position: relative;
  z-index: 1;
}

@media (max-width: 1080px) {
  .topbar,
  .hero-card,
  .content-grid,
  .feature-grid,
  .status-grid,
  .download-grid,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .utility-row {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(calc(100vw - 20px), 1220px);
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .topbar,
  .hero-card,
  .section-card,
  .form-card,
  .side-card,
  .timeline-card,
  .status-banner,
  .download-card,
  .dev-panel {
    padding: 20px;
    border-radius: 20px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .topnav {
    gap: 8px;
  }

  .topnav a {
    padding: 10px 12px;
    font-size: 13px;
  }
}
