:root {
  color-scheme: dark;
  --ink: #f7f5ef;
  --muted: #aeb5bd;
  --panel: rgba(13, 17, 20, 0.76);
  --panel-solid: #10151a;
  --line: rgba(247, 245, 239, 0.16);
  --cyan: #54d7c7;
  --green: #8ae36d;
  --amber: #f0bd55;
  --coral: #ff7a68;
  --bg: #080b0d;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(247, 245, 239, 0.1);
  background: rgba(8, 11, 13, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.brand img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.site-nav,
.footer-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 28px);
  color: var(--muted);
  font-size: 14px;
}

.site-nav a,
.footer-links a {
  white-space: nowrap;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 120px clamp(18px, 4vw, 64px) 92px;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(180deg, rgba(8, 11, 13, 0), var(--bg));
  pointer-events: none;
}

.hero-canvas,
.hero-scene {
  position: absolute;
  inset: 0;
}

.hero-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.78;
}

.hero-scene {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 112px clamp(18px, 6vw, 92px) 70px;
  opacity: 0.9;
}

.browser-shell {
  width: min(720px, 58vw);
  min-height: 450px;
  border: 1px solid rgba(247, 245, 239, 0.2);
  border-radius: 8px;
  background: rgba(13, 17, 20, 0.68);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  transform: perspective(1100px) rotateY(-10deg) rotateX(3deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(247, 245, 239, 0.12);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-bar span:nth-child(1) {
  background: var(--coral);
}

.browser-bar span:nth-child(2) {
  background: var(--amber);
}

.browser-bar span:nth-child(3) {
  background: var(--green);
}

.browser-bar strong {
  margin-left: 8px;
  font-weight: 500;
}

.browser-app {
  display: grid;
  grid-template-columns: 186px 1fr;
  min-height: 408px;
}

.demo-browser-app {
  display: block;
  min-height: 408px;
  padding: 18px;
}

.app-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(247, 245, 239, 0.1);
}

.app-topbar div:first-child {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.app-topbar strong {
  font-size: 15px;
}

.app-topbar span,
.app-badges span {
  color: var(--muted);
  font-size: 12px;
}

.app-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.app-badges span {
  padding: 6px 8px;
  border: 1px solid rgba(247, 245, 239, 0.12);
  border-radius: 8px;
}

.demo-layout {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  min-height: 342px;
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 18px 16px 0 0;
  border-right: 1px solid rgba(247, 245, 239, 0.1);
  color: var(--muted);
  font-size: 13px;
}

.demo-sidebar b {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.demo-main {
  min-width: 0;
  padding: 18px 0 0 18px;
}

.demo-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.demo-tabs span {
  padding: 7px 10px;
  border: 1px solid rgba(247, 245, 239, 0.1);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
}

.demo-tabs .active {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.08);
}

.code-tabs {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.terminal-window {
  height: 100%;
  min-height: 282px;
  border: 1px solid rgba(247, 245, 239, 0.14);
  border-radius: 8px;
  background: rgba(5, 9, 10, 0.74);
  overflow: hidden;
}

.terminal-toolbar,
.terminal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(247, 245, 239, 0.1);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.terminal-toolbar strong {
  color: var(--cyan);
  font-weight: 700;
}

.terminal-window pre {
  padding: 20px 18px;
}

.terminal-footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  border-top: 1px solid rgba(247, 245, 239, 0.1);
  border-bottom: 0;
}

.terminal-footer span {
  padding: 6px 8px;
  border: 1px solid rgba(247, 245, 239, 0.12);
  border-radius: 8px;
}

pre {
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
  color: #d9f8ef;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  font-size: clamp(72px, 10vw, 132px);
  line-height: 0.82;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin-bottom: 32px;
  color: #d7dde0;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 700;
}

.button-primary {
  background: var(--ink);
  color: #0b0f12;
  border-color: var(--ink);
}

.button-secondary {
  color: var(--ink);
  background: rgba(247, 245, 239, 0.08);
}

.signal-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #0d1114;
}

.signal-strip div {
  padding: 22px clamp(18px, 4vw, 56px);
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.signal-strip strong {
  font-size: clamp(18px, 2vw, 24px);
}

.signal-strip strong a,
.architecture-grid h3 a,
.build-copy a,
.oss-row a {
  text-decoration: none;
}

.signal-strip strong a:hover,
.architecture-grid h3 a:hover,
.build-copy a:hover,
.oss-row a:hover {
  color: var(--cyan);
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
}

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

.open-source {
  background: #0b1011;
}

.oss-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  max-width: 1120px;
}

.oss-row p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.55;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
}

.architecture-grid,
.workload-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.architecture-grid article,
.workload-list article,
.code-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-solid);
}

.architecture-grid article,
.workload-list article {
  padding: 28px;
  min-height: 250px;
}

.architecture-grid p,
.workload-list p,
.build-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.layer-index {
  display: block;
  margin-bottom: 52px;
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

.split {
  background:
    linear-gradient(90deg, rgba(84, 215, 199, 0.06), transparent 42%),
    #0a0e10;
}

.build-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
}

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

.build-copy p:last-child {
  margin-top: 24px;
  max-width: 620px;
}

.code-panel {
  min-width: 0;
  padding: 22px;
  background: #0f1618;
}

.code-tabs {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 64px);
  background: #080b0d;
}

@media (max-width: 940px) {
  .site-header {
    position: absolute;
  }

  .site-nav {
    gap: 18px;
  }

  .site-nav a:not(.nav-external) {
    display: none;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 110px;
    padding-bottom: 42px;
  }

  .hero-scene {
    position: relative;
    order: 2;
    inset: auto;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    margin-top: 28px;
  }

  .browser-shell {
    width: min(100%, 680px);
    min-height: 360px;
    transform: none;
  }

  .browser-app {
    min-height: 318px;
  }

  .demo-browser-app {
    padding: 12px;
  }

  .app-topbar {
    gap: 8px;
    padding-bottom: 10px;
  }

  .app-badges {
    gap: 6px;
  }

  .app-badges span {
    padding: 5px 7px;
  }

  .hero-content {
    order: 1;
    max-width: none;
  }

  .signal-strip,
  .architecture-grid,
  .workload-list,
  .oss-row,
  .build-section {
    grid-template-columns: 1fr;
  }

  .signal-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .signal-strip div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 620px) {
  .hero {
    padding-left: 18px;
    padding-right: 18px;
    padding-bottom: 28px;
  }

  .browser-app {
    grid-template-columns: 1fr;
    min-height: 258px;
  }

  .browser-shell {
    min-height: 0;
  }

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

  .app-badges {
    justify-content: flex-start;
  }

  .demo-layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .demo-sidebar {
    display: none;
  }

  .demo-main {
    padding: 12px 0 0;
  }

  .demo-tabs {
    display: none;
  }

  .terminal-window {
    min-height: 174px;
  }

  .terminal-toolbar {
    padding: 10px 12px;
  }

  .terminal-window pre {
    max-height: 112px;
    overflow: hidden;
    padding: 12px;
  }

  .terminal-footer {
    display: none;
  }

  .hero-actions .button {
    flex: 1 1 170px;
  }

  pre {
    font-size: 12px;
  }

  h1 {
    font-size: clamp(56px, 18vw, 74px);
  }

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