:root {
  --bg: #07100d;
  --bg-soft: #091612;
  --panel: rgba(9, 18, 15, 0.88);
  --panel-strong: rgba(7, 15, 12, 0.96);
  --line: rgba(52, 211, 153, 0.14);
  --line-strong: rgba(52, 211, 153, 0.26);
  --text: #ecfff8;
  --muted: #97b7ae;
  --accent: #34d399;
  --accent-strong: #87f5c8;
  --danger: #f8b4b4;
  --warning: #f2d278;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Inter", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(52, 211, 153, 0.14), transparent 24%),
    radial-gradient(circle at 90% 8%, rgba(135, 245, 200, 0.08), transparent 28%),
    linear-gradient(180deg, #06100d 0%, #07110e 45%, #08120f 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  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: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 88%);
  opacity: 0.25;
}

body::after {
  background: radial-gradient(circle at center, transparent 54%, rgba(0, 0, 0, 0.18) 100%);
}

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

button {
  font: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(52, 211, 153, 0.28);
  outline-offset: 2px;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 28px), var(--max));
  margin: 0 auto;
  padding: 18px 0 56px;
}

.header {
  position: sticky;
  top: 10px;
  z-index: 20;
  margin-bottom: 22px;
}

.header__inner,
.hero,
.panel,
.footer {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(9, 18, 15, 0.88), rgba(7, 15, 12, 0.97));
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  color: #07100d;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 24px rgba(52, 211, 153, 0.22);
}

.brand__text strong,
.brand__text span {
  display: block;
}

.brand__text strong {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand__text span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.nav,
.header__actions,
.hero__actions,
.panel__actions,
.footer__actions,
.platform-pills,
.handoff-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.nav a,
.button,
.chip,
.platform-link,
.hero__eyebrow,
.section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.nav a,
.chip,
.platform-link,
.button--ghost {
  border: 1px solid rgba(52, 211, 153, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.button {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button:hover,
.nav a:hover,
.platform-link:hover {
  transform: translateY(-1px);
  border-color: rgba(52, 211, 153, 0.26);
}

.button--primary {
  color: #05100c;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 18px 34px rgba(52, 211, 153, 0.18);
}

.platform-link--current {
  color: #05100c;
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.hero {
  padding: 30px;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 260px;
  height: 260px;
  border-radius: 28px;
  transform: rotate(12deg);
  border: 1px solid rgba(52, 211, 153, 0.08);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.09), rgba(52, 211, 153, 0));
}

.hero__eyebrow,
.section-tag {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(52, 211, 153, 0.16);
  background: rgba(52, 211, 153, 0.05);
  color: var(--accent-strong);
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__eyebrow::before {
  content: "$";
  color: var(--accent);
  font-weight: 700;
}

.section-tag::before {
  content: "<";
  color: var(--accent);
}

.section-tag::after {
  content: "/>";
  color: var(--accent);
}

.hero__layout,
.panel-grid {
  display: grid;
  gap: 16px;
}

.hero__layout {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: stretch;
}

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

.panel-grid--triple {
  grid-template-columns: repeat(3, 1fr);
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.04em;
}

h1 {
  margin-top: 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.94;
  font-weight: 900;
  text-transform: uppercase;
}

.hero__lead,
.panel__copy,
.footer p,
.hero__note,
.status,
.section__copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.74;
}

.hero__lead {
  max-width: 760px;
  margin-top: 18px;
  font-size: 18px;
}

.hero__actions {
  margin-top: 24px;
}

.hero__sidebar,
.panel {
  padding: 22px;
}

.hero__sidebar {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(52, 211, 153, 0.12);
  background: linear-gradient(180deg, rgba(7, 15, 12, 0.96), rgba(5, 11, 9, 0.98));
}

.hero__value,
.page-value {
  display: block;
  margin-top: 12px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
  color: var(--accent-strong);
  font-weight: 900;
  text-transform: uppercase;
}

.hero__note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(52, 211, 153, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.hero__note--success {
  color: var(--accent-strong);
  border-color: rgba(52, 211, 153, 0.22);
  background: rgba(52, 211, 153, 0.08);
}

.hero__note--warning {
  color: #fff6d1;
  border-color: rgba(242, 210, 120, 0.18);
  background: rgba(242, 210, 120, 0.09);
}

.section {
  padding-top: 28px;
}

.section__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.section__copy {
  max-width: 520px;
}

.panel--accent {
  border-color: rgba(52, 211, 153, 0.24);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.10), rgba(8, 17, 14, 0.98));
}

.panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel__head .chip {
  flex-shrink: 0;
}

.panel__payload {
  margin-top: 16px;
  padding: 16px;
  min-height: 160px;
  border-radius: 20px;
  background: rgba(3, 8, 6, 0.94);
  border: 1px solid rgba(52, 211, 153, 0.10);
  color: #d9fff2;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.68;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.panel__actions {
  margin-top: 16px;
}

.panel__actions .button {
  flex: 1 1 210px;
}

.handoff-field {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.handoff-label {
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.handoff-input {
  width: 100%;
  min-height: 108px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(52, 211, 153, 0.12);
  background: rgba(3, 8, 6, 0.94);
  color: #d9fff2;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  line-height: 1.65;
  resize: vertical;
}

.handoff-input::selection {
  background: rgba(52, 211, 153, 0.28);
}

.handoff-actions {
  margin-top: 16px;
}

.handoff-actions .button {
  flex: 1 1 190px;
}

.install-shell {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(52, 211, 153, 0.12);
  background: linear-gradient(180deg, rgba(52, 211, 153, 0.08), rgba(7, 15, 12, 0.98));
}

.install-shell .chip {
  width: fit-content;
}

.install-shell .page-value {
  margin-top: 12px;
}

.panel__list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}

.panel__list li {
  position: relative;
  padding-left: 18px;
  line-height: 1.62;
  color: var(--text);
}

.panel__list li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
}

.status {
  margin-top: 14px;
  font-size: 13px;
}

.status--success {
  color: var(--accent-strong);
}

.status--warning {
  color: #fff6d1;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 22px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .hero__layout,
  .panel-grid,
  .panel-grid--triple {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 16px), var(--max));
  }

  .header {
    position: static;
  }

  .header__inner,
  .section__head,
  .nav,
  .header__actions,
  .hero__actions,
  .panel__actions,
  .footer,
  .footer__actions,
  .platform-pills,
  .handoff-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nav a,
  .button,
  .chip,
  .platform-link {
    width: 100%;
  }

  .hero,
  .hero__sidebar,
  .panel,
  .footer {
    padding: 18px;
  }

  h1 {
    font-size: clamp(38px, 14vw, 60px);
  }
}