:root {
  --bg:
    radial-gradient(circle at 26% 14%, rgba(72, 95, 255, 0.22), transparent 24%),
    radial-gradient(circle at 78% 12%, rgba(0, 140, 255, 0.1), transparent 28%),
    linear-gradient(180deg, #050b1e 0%, #020617 48%, #01030a 100%);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.055);
  --surface-dark: rgba(6, 12, 30, 0.72);
  --text: #f5f7ff;
  --muted: #aab3cf;
  --muted-2: rgba(245, 247, 255, 0.45);
  --accent: #6d78ff;
  --accent-foreground: #cfd4ff;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.28);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

img {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border);
  background: rgba(4, 8, 23, 0.66);
  backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
}

.logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.links a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: 0.2s ease;
}

.links a:hover {
  color: #fff;
}

.page {
  padding: 34px 0 80px;
}

.page-head {
  max-width: 760px;
  padding: 32px 0 10px;
}

.page-head h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.page-head p,
.lead {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 17px;
  line-height: 1.8;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 24px;
  align-items: start;
  padding: 48px 0 22px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 10%;
  top: 0;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: rgba(72, 95, 255, 0.12);
  filter: blur(120px);
  pointer-events: none;
}

.hero-left {
  position: relative;
  max-width: 660px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(109, 120, 255, 0.22);
  background: rgba(109, 120, 255, 0.1);
  color: var(--accent-foreground);
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 18px 0 14px;
  font-size: 58px;
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.hero-sub {
  margin: 0;
  max-width: 58ch;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.8;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: white;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 28px rgba(109, 120, 255, 0.28);
}

.btn.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
  color: white;
}

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: none;
}

.kpi {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.kpi div {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 9px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
  background: rgba(255, 255, 255, 0.02);
}

.card,
.preview,
.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
}

.preview {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(6, 12, 30, 0.74);
}

.preview-shell {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.01);
}

.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.preview-title {
  margin: 0;
  font-size: 18px;
}

.preview-sub {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}

.preview-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 14px;
  padding-top: 16px;
}

.metric,
.stack {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  padding: 16px;
}

.preview-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.score {
  margin-top: 8px;
  font-size: 44px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.score-muted {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.3);
}

.bar {
  margin-top: 14px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.bar > span {
  display: block;
  height: 100%;
  width: 78%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(109, 120, 255, 0.95), rgba(86, 160, 255, 0.92));
}

.meta {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.meta span,
.item,
.line,
.note-box {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
}

.meta span {
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

.stack-title {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.item {
  padding: 12px 13px;
  margin-bottom: 10px;
}

.item:last-child {
  margin-bottom: 0;
}

.item strong {
  display: block;
  font-size: 14px;
  color: white;
}

.item small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.48);
}

.pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(109, 120, 255, 0.22);
  background: rgba(109, 120, 255, 0.1);
  color: var(--accent-foreground);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
}

.pill-ok {
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.1);
  color: rgba(209, 250, 229, 0.95);
}

.pill-warn {
  border-color: rgba(251, 191, 36, 0.18);
  background: rgba(251, 191, 36, 0.1);
  color: rgba(254, 243, 199, 0.95);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.preview-note {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 13px;
  line-height: 1.8;
}

.section {
  margin-top: 24px;
}

.grid2,
.grid3 {
  display: grid;
  gap: 20px;
}

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

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

.card h2,
.card h3 {
  margin: 0 0 10px;
}

.card h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.card h3 {
  font-size: 18px;
}

.small,
.card p,
.card li {
  color: rgba(255, 255, 255, 0.66);
  font-size: 14px;
  line-height: 1.9;
}

ul,
ol {
  margin: 0;
  padding-left: 20px;
}

hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 18px 0;
}

.link-card {
  display: block;
  padding: 22px;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.link-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--surface-strong);
}

.link-card .eyebrow {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.42);
}

.link-card .go {
  margin-top: 14px;
  font-size: 14px;
  color: white;
  font-weight: 600;
}

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

.field {
  display: grid;
  gap: 8px;
}

label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

input[type="file"],
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: white;
  padding: 14px 14px;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

pre.output {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  font-size: 13px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.8);
}

.helper {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.46);
}

.error {
  color: rgba(254, 202, 202, 0.94);
}

.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0 40px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 980px) {
  .hero,
  .preview-grid,
  .grid2,
  .grid3 {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 44px;
  }

  .page-head h1 {
    font-size: 36px;
  }

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

@media (max-width: 760px) {
  .nav-inner {
    flex-wrap: wrap;
  }

  .links {
    width: 100%;
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .page {
    padding-bottom: 56px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .logo-img {
    height: 36px;
    width: auto;
  }
}