:root {
  --bg: #050816;
  --bg-soft: rgba(11, 16, 34, 0.72);
  --panel: rgba(12, 18, 40, 0.78);
  --panel-strong: rgba(17, 24, 53, 0.95);
  --line: rgba(180, 204, 255, 0.08);
  --line-strong: rgba(180, 204, 255, 0.16);
  --text: #eef4ff;
  --muted: #9ea9c6;
  --accent: #87e6d1;
  --accent-2: #8cb3ff;
  --accent-3: #ffd697;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --radius-xl: 14px;
  --radius-lg: 10px;
  --radius-md: 8px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(140, 179, 255, 0.13), transparent 34rem),
    linear-gradient(180deg, rgba(4, 6, 15, 0.36), rgba(4, 6, 15, 0.92)),
    url("data:image/svg+xml,%3Csvg width='96' height='96' viewBox='0 0 96 96' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23263b64' stroke-opacity='.36'%3E%3Cpath d='M0 .5h96M0 24.5h96M0 48.5h96M0 72.5h96M.5 0v96M24.5 0v96M48.5 0v96M72.5 0v96'/%3E%3C/g%3E%3Cg fill='%23142135' fill-opacity='.26'%3E%3Crect x='1' y='1' width='22' height='22'/%3E%3Crect x='49' y='25' width='22' height='22'/%3E%3Crect x='25' y='73' width='22' height='22'/%3E%3C/g%3E%3Cg fill='%2387e6d1' fill-opacity='.035'%3E%3Crect x='25' y='1' width='22' height='22'/%3E%3Crect x='73' y='49' width='22' height='22'/%3E%3C/g%3E%3C/svg%3E"),
    linear-gradient(180deg, #04060f 0%, #070b16 42%, #04060f 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  background-position: center top, center top, center top, center top;
  background-size: auto, auto, 96px 96px, auto;
  font-family: "Manrope", sans-serif;
}

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

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

.nowrap {
  white-space: nowrap;
}

.page-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.grid-backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(135, 230, 209, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 179, 255, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 10%, rgba(135, 230, 209, 0.1), transparent 38rem),
    linear-gradient(180deg, rgba(3, 5, 14, 0.02), rgba(3, 5, 14, 0.5));
  background-size: 96px 96px, 96px 96px, 24px 24px, 100% 100%, 100% 100%;
  background-position: center top;
  opacity: 0.42;
}

.grid-backdrop::before,
.grid-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: 0.14;
}

.grid-backdrop::before {
  background-image:
    linear-gradient(rgba(135, 230, 209, 0.05) 0 0),
    linear-gradient(rgba(135, 230, 209, 0.05) 0 0),
    linear-gradient(rgba(135, 230, 209, 0.05) 0 0),
    linear-gradient(rgba(135, 230, 209, 0.05) 0 0);
  background-size: 108px 1px, 1px 108px, 108px 1px, 1px 108px;
  background-position:
    44px 92px,
    44px 92px,
    44px 200px,
    152px 92px;
}

.grid-backdrop::after {
  background-image:
    linear-gradient(rgba(124, 165, 255, 0.04) 0 0),
    linear-gradient(rgba(124, 165, 255, 0.04) 0 0),
    linear-gradient(rgba(124, 165, 255, 0.04) 0 0),
    linear-gradient(rgba(124, 165, 255, 0.04) 0 0);
  background-size: 88px 1px, 1px 88px, 88px 1px, 1px 88px;
  background-position:
    760px 154px,
    760px 154px,
    760px 242px,
    848px 154px;
}

.grid-square {
  position: absolute;
  width: 9rem;
  height: 9rem;
  border: 1px solid rgba(140, 179, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(135, 230, 209, 0.05), transparent 52%),
    rgba(255, 255, 255, 0.006);
  box-shadow:
    inset 0 0 0 1px rgba(120, 155, 255, 0.04),
    0 1.8rem 5rem rgba(0, 0, 0, 0.18);
}

.grid-square::before,
.grid-square::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.055);
}

.grid-square::after {
  inset: 2.2rem;
  border-color: rgba(135, 230, 209, 0.07);
  background: transparent;
}

.square-a {
  top: 112px;
  right: 92px;
}

.square-b {
  top: 548px;
  left: 44px;
  width: 120px;
  height: 120px;
}

.square-c {
  top: 936px;
  right: 164px;
  width: 92px;
  height: 92px;
}

.site-header,
.hero,
.proof-strip,
.video-section,
.feature-grid,
.runtime-section,
.guide-section,
.quote-section,
.install-section {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  background: rgba(5, 8, 18, 0.7);
  backdrop-filter: blur(18px);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  overflow: hidden;
  border-radius: 6px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  filter: contrast(1.04) brightness(1.04);
}

.brand-text {
  font-size: 1.05rem;
}

.site-nav {
  display: inline-flex;
  gap: 1.4rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.header-actions,
.hero-actions,
.install-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  color: #09101d;
  background: linear-gradient(135deg, #eaf2ff, #87e6d1);
  box-shadow: 0 10px 26px rgba(135, 230, 209, 0.2);
}

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

.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 5.5rem 0 2rem;
}

.hero-logo-lockup {
  width: 140px;
  margin-bottom: 0.8rem;
}

.hero-logo-lockup img {
  width: 100%;
  height: auto;
  opacity: 0.92;
  filter: contrast(1.04) brightness(1.03);
}

.eyebrow,
.proof-kicker,
.feature-label,
.runtime-chip,
.command-label,
.status-pill,
.feed-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 800;
}

.eyebrow {
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1,
.section-heading h2,
.install-copy h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.install-copy h2 {
  line-height: 1.08;
  max-width: 14ch;
  text-wrap: balance;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.7rem, 8vw, 7.1rem);
}

.hero h1 span {
  display: inline-block;
  font-family: "Instrument Serif", serif;
  font-weight: 400;
  font-style: italic;
  color: #d8e7ff;
}

.hero-text,
.section-heading p,
.feature-card p,
.runtime-card p,
.install-copy p,
.quote-attribution,
.status-copy,
.proof-strip p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 62ch;
  margin: 1.4rem 0 1.8rem;
  font-size: 1.08rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0;
  margin: 1.5rem 0 0;
  list-style: none;
}

.hero-meta li {
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  color: #cdd8f5;
  background: rgba(255, 255, 255, 0.045);
}

.hero-panel,
.video-shell,
.quote-panel,
.install-card {
  position: relative;
}

.hero-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.95rem;
  border-radius: 8px;
  color: #0a1120;
  background: linear-gradient(135deg, var(--accent-3), #fff4d7);
}

.status-copy {
  max-width: 24rem;
  margin: 0;
  font-size: 0.95rem;
}

.workspace-card,
.video-frame,
.feature-card,
.runtime-card,
.quote-panel,
.install-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.workspace-card {
  display: grid;
  grid-template-columns: 14rem 1fr;
  min-height: 34rem;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 90px rgba(0, 0, 0, 0.45);
}

.workspace-sidebar {
  padding: 1.2rem;
  background: rgba(8, 12, 28, 0.88);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}

.sidebar-title {
  display: block;
  margin-bottom: 1rem;
  color: #6c7a9c;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.workspace-sidebar ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.workspace-sidebar li {
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.35rem;
  border-radius: 6px;
  color: #9ba9ca;
  background: transparent;
}

.workspace-sidebar li.active {
  color: var(--text);
  background: rgba(140, 179, 255, 0.12);
}

.workspace-main {
  display: flex;
  flex-direction: column;
}

.workspace-tabs {
  display: flex;
  gap: 0.55rem;
  padding: 1rem 1rem 0;
  color: #bac8e9;
  font-size: 0.92rem;
}

.workspace-tabs span {
  padding: 0.65rem 0.9rem;
  border-radius: 6px 6px 0 0;
  background: rgba(255, 255, 255, 0.035);
}

.workspace-tabs .muted {
  color: #7887aa;
}

.workspace-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 16rem;
  gap: 1rem;
  padding: 1rem;
  height: 100%;
}

.preview-window {
  overflow: hidden;
  border-radius: 8px;
  background: #0a1022;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.preview-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.build-feed {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.build-feed > div,
.note-card,
.command-block {
  padding: 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.feed-label {
  display: inline-block;
  color: #a2b5dd;
  margin-bottom: 0.4rem;
}

.feed-label.success {
  color: var(--accent);
}

.feed-label.warning {
  color: var(--accent-3);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  margin-bottom: 6rem;
}

.proof-strip > div {
  padding: 1.25rem 1.35rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.proof-kicker {
  color: #e2eaff;
}

.section-heading {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-heading.narrow {
  max-width: 48rem;
}

.section-heading h2,
.install-copy h2 {
  font-size: clamp(2.5rem, 5vw, 4.4rem);
}

.video-section,
.feature-grid,
.runtime-section,
.guide-section,
.quote-section,
.install-section {
  padding: 2rem 0 6rem;
}

.video-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18rem;
  gap: 1rem;
  align-items: stretch;
}

.video-frame {
  padding: 1rem;
  border-radius: var(--radius-xl);
}

.video-toolbar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.video-toolbar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.demo-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  overflow: hidden;
  border-radius: 8px;
  background: #040813;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.feature-card h3,
.runtime-card h3 {
  margin: 0.4rem 0 0.6rem;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.video-notes {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.note-card span,
.command-label {
  display: block;
  color: #94a5c9;
  margin-bottom: 0.45rem;
}

.feature-grid .grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  grid-column: span 4;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.feature-card-large {
  grid-column: span 8;
  min-height: 16rem;
}

.feature-label {
  color: var(--accent);
}

.runtime-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.runtime-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
}

.runtime-chip {
  display: inline-flex;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: #071221;
  background: linear-gradient(135deg, #d9e6ff, #9ac7ff);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1rem;
  align-items: start;
}

.tree-panel,
.guide-notes article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    var(--panel);
  box-shadow: var(--shadow);
}

.tree-panel {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
}

.setup-tree {
  position: relative;
  display: grid;
  gap: 1.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.setup-tree::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  bottom: 1.1rem;
  left: 1.15rem;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2), var(--accent-3));
  opacity: 0.68;
}

.setup-tree li {
  position: relative;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 1rem;
}

.tree-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  color: #06111f;
  font-weight: 800;
  background: linear-gradient(135deg, #ecf5ff, var(--accent));
  box-shadow: 0 10px 26px rgba(135, 230, 209, 0.16);
}

.setup-tree h3,
.guide-notes strong {
  margin: 0;
  color: var(--text);
  line-height: 1.28;
}

.setup-tree p {
  margin: 0.45rem 0 0.75rem;
  color: var(--muted);
  line-height: 1.65;
}

.setup-tree a {
  color: #dce8ff;
  font-weight: 800;
}

.setup-tree a:hover,
.setup-tree a:focus-visible {
  color: var(--accent);
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.branch-grid a {
  min-height: 2.65rem;
  padding: 0.72rem 0.85rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045);
}

.guide-notes {
  display: grid;
  gap: 1rem;
}

.guide-notes article {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
}

.guide-notes span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--accent-3);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-panel {
  padding: 2rem;
  border-radius: var(--radius-xl);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 30px 90px rgba(0, 0, 0, 0.45);
}

.quote-mark {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: 5rem;
  line-height: 0.8;
  color: var(--accent);
}

blockquote {
  margin: 0.5rem 0 1rem;
  max-width: 42rem;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  line-height: 1.3;
  letter-spacing: -0.04em;
}

.install-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.install-card {
  padding: 1.2rem;
  border-radius: var(--radius-xl);
}

.install-card > * + * {
  margin-top: 1.25rem;
}

.install-card .command-block + .command-block {
  margin-top: 1.25rem;
}

.install-card .install-actions {
  padding-top: 1.1rem;
  margin-top: 1.3rem;
  border-top: 1px solid rgba(180, 204, 255, 0.12);
}

.command-block code {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.98rem;
  color: #e7efff;
  word-break: break-word;
}

@media (max-width: 1080px) {
  .hero,
  .install-section,
  .video-shell,
  .runtime-panels,
  .guide-layout,
  .proof-strip {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-card-large {
    grid-column: span 12;
  }

  .hero-panel-top,
  .workspace-card,
  .workspace-preview {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .workspace-card {
    display: block;
  }

  .workspace-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-copy {
    max-width: none;
  }

  .branch-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 10px;
    padding: 1rem;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 17vw, 4.6rem);
  }

  .workspace-preview {
    min-height: 22rem;
  }

  .section-heading h2,
  .install-copy h2 {
    font-size: clamp(2.1rem, 12vw, 3rem);
  }

  blockquote {
    font-size: 1.45rem;
  }
}
