@font-face {
  font-family: 'Geist';
  src: url('/admin/static/fonts/geist/Geist-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('/admin/static/fonts/geist/GeistMono-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #09090b;
  --surface: #121214;
  --surface-2: #1b1b1f;
  --surface-3: #24242a;
  --text: #fafafa;
  --muted: #c8c8cf;
  --soft: #8f8f99;
  --line: #2d2d34;
  --line-strong: #44444c;
  --teal: #14a3a1;
  --teal-bright: #5eeae8;
  --blue: #60a5fa;
  --green: #4ade80;
  --amber: #fbbf24;
  --rose: #fb7185;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --font-sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 44px 44px;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 16px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 9, 11, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.header-action,
.btn,
.site-footer div {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav a,
.site-footer a {
  text-decoration: none;
  transition: color 160ms ease;
}

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

.header-action {
  min-height: 40px;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.header-action svg,
.btn svg,
.feature-card svg {
  width: 17px;
  height: 17px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(520px, 0.95fr) minmax(480px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(38px, 6vw, 70px) clamp(18px, 4vw, 56px) 36px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--bg);
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
}

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

.hero-visual {
  order: 2;
  min-height: 460px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-bright);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  font-size: clamp(46px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h2 {
  max-width: 860px;
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.btn {
  min-height: 48px;
  gap: 10px;
  padding: 0 18px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.primary {
  border: 1px solid var(--teal);
  background: var(--teal);
  color: #ffffff;
}

.btn.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(27, 27, 31, 0.74);
  color: var(--text);
}

.ops-frame {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(18, 18, 20, 0.94);
  box-shadow: var(--shadow);
}

.ops-main {
  position: absolute;
  right: 0;
  top: 18px;
  width: min(720px, 100%);
  min-height: 404px;
  padding: 14px;
}

.ops-side {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: min(350px, 52%);
  padding: 12px;
  background: rgba(18, 18, 20, 0.98);
}

.ops-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  color: var(--soft);
  font-family: var(--font-mono);
  font-size: 12px;
}

.dot,
.status {
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 999px;
}

.dot {
  width: 8px;
  height: 8px;
}

.dot.ok,
.status.done {
  background: var(--green);
}

.dot.warn,
.status.queued {
  background: var(--amber);
}

.status.running {
  background: var(--blue);
}

.ops-chip {
  margin-left: auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--green);
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.metric {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
}

.metric span,
.metric small {
  display: block;
  color: var(--soft);
  font-size: 12px;
}

.metric strong {
  display: block;
  margin: 10px 0 4px;
  color: var(--text);
  font-size: 34px;
  line-height: 1;
}

.run-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.run-row {
  display: grid;
  grid-template-columns: 12px minmax(120px, 1fr) minmax(120px, 0.95fr) minmax(130px, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(36, 36, 42, 0.72);
  font-size: 13px;
}

.status {
  width: 8px;
  height: 8px;
}

.run-row b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-row em,
.run-row code {
  overflow: hidden;
  color: var(--soft);
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-row code,
.terminal,
.code-panel {
  font-family: var(--font-mono);
}

.terminal {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #0b0b0d;
  color: var(--green);
  font-size: 12px;
}

.terminal span:nth-child(2) {
  color: var(--muted);
}

.timeline {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 12px;
  padding: 8px 2px 4px;
}

.timeline span {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border: 2px solid var(--teal-bright);
  border-radius: 999px;
}

.timeline p {
  color: var(--muted);
  font-size: 13px;
}

.signal-strip,
.section,
.site-footer {
  padding-right: clamp(18px, 4vw, 56px);
  padding-left: clamp(18px, 4vw, 56px);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  background: rgba(18, 18, 20, 0.96);
  border-bottom: 1px solid var(--line);
}

.signal-strip div {
  min-height: 126px;
  padding: 24px;
  background: rgba(18, 18, 20, 0.96);
  border-right: 1px solid var(--line);
}

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

.signal-strip strong,
.signal-strip span {
  display: block;
}

.signal-strip strong {
  margin-bottom: 8px;
  font-size: 17px;
}

.signal-strip span {
  color: var(--soft);
}

.section {
  padding-top: clamp(72px, 10vw, 132px);
  padding-bottom: clamp(72px, 10vw, 132px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: clamp(22px, 5vw, 80px);
  align-items: end;
  margin-bottom: 34px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -4px;
}

.section-heading p:not(.eyebrow),
.proof-copy p,
.quickstart-section p {
  color: var(--muted);
  font-size: 18px;
}

.section-heading.compact {
  display: block;
  max-width: 900px;
}

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

.feature-card,
.workflow-columns article,
.proof-board div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18, 18, 20, 0.92);
}

.feature-card {
  min-height: 250px;
  padding: 22px;
}

.feature-card svg {
  margin-bottom: 34px;
  color: var(--teal-bright);
}

.feature-card h3,
.workflow-columns h3 {
  margin-bottom: 12px;
}

.feature-card p,
.workflow-columns p {
  color: var(--soft);
}

.operate-section {
  background: #101012;
  border-block: 1px solid var(--line);
}

.workflow-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 36px;
}

.workflow-columns article {
  min-height: 272px;
  padding: 22px;
}

.column-kicker {
  display: inline-flex;
  margin-bottom: 34px;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.column-kicker.event {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber);
}

.column-kicker.observe {
  background: rgba(96, 165, 250, 0.12);
  color: var(--blue);
}

.column-kicker.improve {
  background: rgba(20, 163, 161, 0.15);
  color: var(--teal-bright);
}

.column-kicker.scale {
  background: rgba(251, 113, 133, 0.12);
  color: var(--rose);
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 74px);
  align-items: start;
}

.proof-copy p {
  margin-top: 22px;
}

.proof-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.proof-board div {
  min-height: 132px;
  padding: 18px;
}

.proof-board strong,
.proof-board span {
  display: block;
}

.proof-board strong {
  margin-bottom: 8px;
}

.proof-board span {
  color: var(--soft);
}

.quickstart-section {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  background: #111113;
  border-top: 1px solid var(--line);
}

.quickstart-section p {
  margin-top: 18px;
}

.code-panel {
  min-height: 360px;
  margin: 0;
  padding: 24px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #08080a;
  color: var(--green);
  font-size: 13px;
  line-height: 1.7;
  box-shadow: var(--shadow);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  background: var(--bg);
}

.site-footer div {
  gap: 9px;
  color: var(--text);
  font-weight: 700;
}

@media (max-width: 1120px) {
  .hero,
  .proof-section,
  .quickstart-section {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual {
    order: 2;
  }

  .hero-visual {
    min-height: 460px;
  }

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

@media (max-width: 760px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 64px;
  }

  .site-nav {
    display: none;
  }

  .header-action span {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
    overflow: hidden;
  }

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

  .hero-visual {
    position: absolute;
    right: -430px;
    bottom: 70px;
    z-index: 0;
    width: 660px;
    min-height: 390px;
    opacity: 0.16;
    pointer-events: none;
  }

  .ops-main {
    width: 660px;
    min-height: 380px;
  }

  .ops-side {
    display: none;
  }

  h1 {
    font-size: clamp(36px, 10.5vw, 44px);
  }

  h2 {
    font-size: clamp(31px, 10vw, 44px);
  }

  .ops-grid,
  .signal-strip,
  .section-heading,
  .feature-grid,
  .workflow-columns,
  .proof-board {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: 92px;
  }

  .hero-actions {
    width: 100%;
  }

  .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .run-row {
    grid-template-columns: 12px minmax(0, 1fr);
    min-height: 62px;
  }

  .run-row em,
  .run-row code {
    display: none;
  }

  .feature-card,
  .workflow-columns article {
    min-height: 212px;
  }

  .signal-strip div {
    min-height: auto;
  }
}

@media (max-width: 480px) {
  .brand span {
    display: none;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .btn {
    justify-content: center;
  }

  .hero-visual {
    right: -420px;
    bottom: 8px;
    min-height: 360px;
  }

  .ops-main {
    padding: 10px;
  }

  .ops-grid {
    gap: 8px;
  }

  .ops-side {
    left: 10px;
    width: calc(100% - 20px);
  }

  .terminal {
    display: none;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
