:root {
  color-scheme: dark;
  --bg: #07130f;
  --bg-soft: #0d1f19;
  --panel: rgba(19, 45, 37, 0.74);
  --panel-strong: #163528;
  --line: rgba(191, 230, 207, 0.16);
  --text: #ecfff5;
  --muted: #a8c2b4;
  --muted-strong: #c6d9ce;
  --brand: #9cf0bf;
  --brand-strong: #5fe495;
  --gold: #e9cc7a;
  --blue: #9ed8ff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, rgba(95, 228, 149, 0.2), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(158, 216, 255, 0.16), transparent 30rem),
    linear-gradient(180deg, #07130f 0%, #081713 42%, #050d0a 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    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: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: inherit;
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: calc(var(--max-width) + 48px);
  margin: 0 auto;
  padding: 20px 24px;
  backdrop-filter: blur(18px);
}

.site-header.is-scrolled {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 19, 15, 0.76);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #062015;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(95, 228, 149, 0.26);
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--brand);
}

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 86px 24px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 78px);
  padding-top: 52px;
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 790px;
  margin-bottom: 24px;
  font-size: clamp(3.4rem, 8vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: -0.085em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4vw, 4.15rem);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.72;
}

.hero-lede {
  max-width: 660px;
  color: var(--muted-strong);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero-actions,
.cta-actions,
.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 750;
  text-decoration: none;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: #062015;
  background: linear-gradient(135deg, var(--brand), var(--gold));
  border-color: transparent;
}

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

.button.secondary:hover {
  border-color: rgba(156, 240, 191, 0.45);
  background: rgba(156, 240, 191, 0.08);
}

.status-strip {
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: 650px;
  margin-top: 28px;
  padding: 14px 16px;
  color: var(--muted-strong);
  background: rgba(156, 240, 191, 0.07);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.pulse {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  background: var(--brand);
  border-radius: 999px;
  box-shadow: 0 0 0 rgba(156, 240, 191, 0.65);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(156, 240, 191, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(156, 240, 191, 0);
  }
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  position: absolute;
  inset: -18px;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, rgba(156, 240, 191, 0.28), rgba(158, 216, 255, 0.12));
  border-radius: 34px;
  filter: blur(16px);
}

.terminal-card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(4, 14, 11, 0.86);
  border: 1px solid rgba(191, 230, 207, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.terminal-top {
  display: flex;
  gap: 8px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.terminal-top span {
  width: 11px;
  height: 11px;
  background: rgba(236, 255, 245, 0.36);
  border-radius: 999px;
}

.terminal-top span:first-child {
  background: #ffb4a9;
}

.terminal-top span:nth-child(2) {
  background: #f7d774;
}

.terminal-top span:nth-child(3) {
  background: var(--brand);
}

.terminal-card pre {
  margin: 0;
  padding: 24px;
  overflow-x: auto;
  color: #d9ffe8;
  font-size: clamp(0.78rem, 1.5vw, 0.95rem);
  line-height: 1.65;
}

.split,
.compatibility,
.cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
}

.copy-stack p:last-child {
  margin-bottom: 0;
}

.problem-grid,
.cards,
.capability-grid {
  display: grid;
  gap: 18px;
}

.problem-grid {
  grid-template-columns: repeat(4, 1fr);
}

.problem-grid article,
.feature-card,
.capability-grid article,
.status-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.problem-grid article {
  min-height: 270px;
  padding: 24px;
}

.card-number {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 800;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 32px;
}

.architecture {
  padding-top: 108px;
}

.layer-diagram {
  display: grid;
  gap: 14px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 34px;
}

.layer {
  display: grid;
  grid-template-columns: 0.42fr 0.58fr;
  gap: 24px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
}

.layer span {
  font-size: clamp(1.3rem, 3vw, 2.35rem);
  font-weight: 850;
  letter-spacing: -0.06em;
}

.layer p {
  margin-bottom: 0;
}

.layer.hub {
  background: linear-gradient(135deg, rgba(158, 216, 255, 0.18), rgba(255, 255, 255, 0.03));
}

.layer.primitives {
  background: linear-gradient(135deg, rgba(233, 204, 122, 0.16), rgba(255, 255, 255, 0.03));
}

.layer.core {
  background: linear-gradient(135deg, rgba(156, 240, 191, 0.16), rgba(255, 255, 255, 0.03));
}

.layer.git {
  background: rgba(255, 255, 255, 0.035);
}

.permissions {
  padding-top: 34px;
}

.permissions-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 34px;
  padding: clamp(28px, 5vw, 48px);
  background:
    radial-gradient(circle at top left, rgba(156, 240, 191, 0.2), transparent 22rem),
    radial-gradient(circle at 86% 12%, rgba(233, 204, 122, 0.12), transparent 20rem),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.permissions-panel h2 {
  max-width: 520px;
}

.permissions-panel p:last-child,
.permission-points p:last-child {
  margin-bottom: 0;
}

.permission-points {
  display: grid;
  gap: 16px;
}

.permission-points div {
  padding: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 24px;
}

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

.feature-card {
  min-height: 360px;
  padding: 34px;
}

.feature-card h3 {
  max-width: 420px;
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.feature-card p:last-child {
  margin-bottom: 0;
}

.accent-core {
  background:
    radial-gradient(circle at top right, rgba(156, 240, 191, 0.22), transparent 18rem),
    var(--panel);
}

.accent-hub {
  background:
    radial-gradient(circle at top right, rgba(158, 216, 255, 0.22), transparent 18rem),
    var(--panel);
}

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

.capability-grid article {
  min-height: 220px;
  padding: 26px;
}

.capability-grid p {
  margin-bottom: 0;
}

.timeline {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 22px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.timeline span {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.timeline h3 {
  margin-bottom: 6px;
}

.timeline p {
  margin-bottom: 0;
}

.timeline code {
  color: var(--text);
  font-size: 0.95em;
}

.project-status {
  padding-top: 42px;
}

.status-card {
  padding: clamp(28px, 5vw, 52px);
  background:
    linear-gradient(135deg, rgba(156, 240, 191, 0.14), rgba(158, 216, 255, 0.08)),
    var(--panel-strong);
}

.status-card p {
  max-width: 820px;
}

.link-row {
  margin-top: 24px;
}

.link-row a {
  color: var(--brand);
  font-weight: 760;
  text-decoration: none;
}

.link-row a:hover {
  text-decoration: underline;
}

.cta {
  align-items: center;
  margin-bottom: 46px;
  padding: clamp(30px, 5vw, 54px);
  background:
    radial-gradient(circle at 82% 20%, rgba(233, 204, 122, 0.2), transparent 20rem),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 34px;
}

.cta h2 {
  margin-bottom: 0;
}

.cta-actions {
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  gap: 18px;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 34px 24px 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 850;
}

@media (max-width: 960px) {
  .hero,
  .split,
  .compatibility,
  .permissions-panel,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 72px;
  }

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

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
  }

  .nav {
    max-width: 220px;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 16px;
  }

  .section {
    padding: 58px 18px;
  }

  .hero {
    padding-top: 44px;
  }

  .problem-grid,
  .cards,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .problem-grid article {
    min-height: auto;
  }

  .card-number {
    margin-bottom: 28px;
  }

  .layer,
  .timeline li {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
