@import 'tailwindcss';

:root {
  --color-page: #faf9f5;
  --color-ink: #111111;
  --color-muted: #5f5f5f;
  --color-soft: #f1eee8;
  --color-line: #dfd9ce;
  --color-line-strong: #bdb3a4;
  --color-accent: #ff6900;
  --color-accent-soft: #fff0e6;
  --color-accent-wash: #fff7ed;
  --color-allow: #11884b;
  --color-rewrite: #b26a00;
  --color-block: #c73520;
  --color-escalate: #7c3aed;

  /* Compatibility aliases for existing code block tokens. */
  --color-canvas-tint: var(--color-soft);
  --color-ink-dim: var(--color-muted);
  --color-ink-mute: var(--color-muted);
  --color-hairline: var(--color-line);
  --color-accent-deep: var(--color-accent);
}

@theme inline {
  --color-background: var(--color-page);
  --color-foreground: var(--color-ink);
  --font-sans: var(--font-geist-sans, ui-sans-serif, system-ui, sans-serif);
  --font-mono: var(--font-geist-mono, ui-monospace, SFMono-Regular, monospace);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-page);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

::selection {
  background: var(--color-accent-soft);
  color: var(--color-ink);
}

.section {
  margin-inline: auto;
  max-width: 72rem;
  padding: 5rem 1.25rem;
}

.section-compact {
  padding-block: 3.5rem;
}

.section-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .section-grid {
    grid-template-columns: 0.85fr 1.15fr;
    align-items: start;
  }
}

.quickstart-grid {
  gap: 2.25rem;
}

@media (min-width: 1024px) {
  .quickstart-grid {
    grid-template-columns: 0.86fr 1.14fr;
  }
}

.section-title {
  margin-top: 1.25rem;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.08;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 3.5rem;
  }
}

.section-copy {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-muted);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-accent);
}

.integration-tab {
  display: grid;
  grid-template-columns: 2rem 1fr;
  align-items: start;
  gap: 0.8rem;
  border: 1px solid var(--color-line);
  border-radius: 0.5rem;
  background: white;
  padding: 0.8rem 1rem;
  text-align: left;
  color: var(--color-muted);
  box-shadow: 0 12px 36px rgb(18 15 12 / 0.04);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.integration-tab > span {
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.integration-tab p {
  margin: 0;
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 0.75rem;
  line-height: 1.2;
  color: var(--color-muted);
}

.integration-tab strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  line-height: 1.25;
  color: var(--color-ink);
}

.integration-tab-active {
  border-color: var(--color-accent);
  color: var(--color-accent);
  box-shadow:
    inset 4px 0 0 var(--color-accent),
    0 18px 48px rgb(255 105 0 / 0.1);
}

.logo-mark {
  display: inline-block;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.08);
}

.button-primary,
.button-accent,
.button-secondary,
.button-invert,
.button-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  font-weight: 600;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button-primary {
  background: var(--color-ink);
  color: white;
}

.button-primary:hover {
  background: var(--color-accent);
  color: black;
}

.button-accent {
  border: 1px solid color-mix(in oklch, var(--color-accent) 72%, black);
  background: var(--color-accent);
  color: black;
}

.button-accent:hover {
  background: #ff7f22;
}

.button-secondary {
  border: 1px solid var(--color-line-strong);
  background: transparent;
  color: var(--color-ink);
}

.button-secondary:hover {
  border-color: var(--color-ink);
}

.button-invert {
  background: white;
  color: var(--color-ink);
}

.button-invert:hover {
  background: var(--color-accent);
  color: black;
}

.button-dark {
  border: 1px solid rgb(255 255 255 / 0.28);
  color: white;
}

.button-dark:hover {
  border-color: white;
}

.hero-shell {
  background: var(--color-page);
}

.hero-panel {
  border-color: var(--color-line-strong);
  border-radius: 0.125rem;
  box-shadow:
    inset 0 0 0 1px rgb(17 17 17 / 0.06),
    12px 12px 0 rgb(17 17 17 / 0.05);
}

.hero-panel::after {
  position: absolute;
  inset: 3rem auto 0 0;
  width: 0.45rem;
  content: '';
  background: var(--color-accent);
  pointer-events: none;
}

.hero-panel::before {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: '';
  background-image: radial-gradient(circle, rgb(255 105 0 / 0.15) 1px, transparent 1.3px);
  background-size: 12px 12px;
  mask-image: linear-gradient(transparent, black 28%, transparent);
  pointer-events: none;
}

.hero-audit-rail {
  position: absolute;
  inset: 0 0 auto;
  z-index: 12;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--color-line);
  background: rgb(250 249 245 / 0.86);
  backdrop-filter: blur(10px);
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--color-muted);
  text-align: left;
}

.hero-audit-rail span {
  min-width: 0;
  border-right: 1px solid var(--color-line);
  padding: 0.75rem 1rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-audit-rail span:last-child {
  border-right: 0;
  color: var(--color-accent);
}

.hero-animated-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(17 17 17 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(17 17 17 / 0.035) 1px, transparent 1px);
  background-position: 0 0;
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at center, black 0 34%, transparent 72%);
  opacity: 0.8;
  pointer-events: none;
  animation: hero-grid-drift 18s linear infinite;
}

.hero-watermark {
  position: absolute;
  left: 50%;
  top: 45%;
  width: min(34rem, 62vw);
  max-width: none;
  transform: translate(-50%, -50%);
  opacity: 0.055;
  pointer-events: none;
}

.hero-policy-stamp {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 1;
  transform: translate(-50%, -50%) rotate(-8deg);
  border: 2px solid rgb(255 105 0 / 0.22);
  color: rgb(255 105 0 / 0.2);
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: min(5rem, 10vw);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  padding: 0.35em 0.5em;
  text-transform: uppercase;
  pointer-events: none;
}

.hero-route {
  position: absolute;
  left: 50%;
  top: 52%;
  width: min(56rem, 86vw);
  height: min(18rem, 26vw);
  transform: translate(-50%, -50%);
  border: 1px solid rgb(255 105 0 / 0.22);
  border-bottom-color: transparent;
  border-radius: 999px 999px 0 0;
  pointer-events: none;
}

.hero-route::after {
  position: absolute;
  top: -3px;
  left: 12%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  content: '';
  background: var(--color-accent);
  box-shadow: 0 0 0 4px rgb(255 105 0 / 0.12);
  animation: hero-route-pulse 4.2s ease-in-out infinite;
}

.hero-route-b {
  top: 58%;
  width: min(40rem, 66vw);
  height: min(12rem, 19vw);
  border-color: rgb(17 136 75 / 0.16);
  border-bottom-color: transparent;
}

.hero-route-b::after {
  left: auto;
  right: 18%;
  background: var(--color-allow);
  box-shadow: 0 0 0 4px rgb(17 136 75 / 0.1);
  animation-delay: 1.4s;
}

.hero-glass-chip {
  position: absolute;
  z-index: 1;
  display: flex;
  min-width: 9rem;
  flex-direction: column;
  gap: 0.2rem;
  border: 1px solid rgb(17 17 17 / 0.18);
  border-left: 4px solid var(--color-accent);
  border-radius: 0;
  background: rgb(255 255 255 / 0.78);
  box-shadow:
    0 18px 44px rgb(18 15 12 / 0.08),
    inset 0 1px 0 rgb(255 255 255 / 0.9);
  backdrop-filter: blur(10px) saturate(1.1);
  padding: 0.68rem 0.82rem;
  text-align: left;
  pointer-events: none;
  opacity: 0.9;
  animation: hero-glass-float 8s ease-in-out infinite;
}

.hero-glass-chip span {
  font-family: var(--font-geist-mono), ui-monospace, monospace;
  font-size: 0.68rem;
  line-height: 1;
  color: var(--color-muted);
}

.hero-glass-chip strong {
  font-size: 0.86rem;
  line-height: 1.2;
  color: var(--color-ink);
}

.hero-glass-early {
  top: 8%;
  right: 8%;
}

.hero-glass-trace {
  bottom: 28%;
  left: 7%;
  border-color: rgb(17 136 75 / 0.18);
  animation-delay: 1.6s;
}

.hero-glass-verdict {
  right: 9%;
  bottom: 25%;
  min-width: 8rem;
  border-color: rgb(191 116 30 / 0.2);
  animation-delay: 3s;
}

.hero-signal {
  position: absolute;
  left: 50%;
  width: min(44rem, 72vw);
  height: 1px;
  transform: translateX(-50%);
  overflow: hidden;
  background: linear-gradient(90deg, transparent, rgb(255 105 0 / 0.16), transparent);
  pointer-events: none;
}

.hero-signal::after {
  position: absolute;
  inset-block: 0;
  width: 8rem;
  content: '';
  background: linear-gradient(90deg, transparent, rgb(255 105 0 / 0.72), transparent);
  animation: hero-signal-scan 4.8s ease-in-out infinite;
}

.hero-signal-a {
  top: 28%;
}

.hero-signal-b {
  bottom: 24%;
  opacity: 0.65;
}

.hero-signal-b::after {
  animation-delay: 1.8s;
}

.hero-corner {
  position: absolute;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--color-line);
}

.hero-visual {
  position: relative;
  border-radius: 0.875rem;
}

.hero-visual-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 88%, rgb(17 136 75 / 0.2), transparent 16rem),
    radial-gradient(circle at 50% 20%, rgb(255 105 0 / 0.15), transparent 18rem),
    radial-gradient(circle at 88% 80%, rgb(124 58 237 / 0.12), transparent 14rem);
  pointer-events: none;
}

.hero-core {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  border: 1px solid color-mix(in oklch, var(--color-accent) 38%, var(--color-line));
  background: color-mix(in oklch, var(--color-accent-wash) 72%, white);
  padding: 1.5rem;
  text-align: center;
}

.visual-node {
  border: 1px solid var(--color-line);
  background: rgb(255 255 255 / 0.84);
  padding: 1rem;
}

.visual-node-accent {
  border-color: color-mix(in oklch, var(--color-accent) 40%, var(--color-line));
  background: var(--color-accent-wash);
}

.monitoring-band {
  overflow: hidden;
  background: #0f0b1f;
  color: white;
}

.monitoring-inner {
  position: relative;
  display: grid;
  min-height: 28rem;
  max-width: 72rem;
  margin-inline: auto;
  padding: 3.25rem 1.25rem;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .monitoring-inner {
    grid-template-columns: 0.78fr 1.22fr;
    align-items: center;
  }
}

.monitoring-copy {
  position: relative;
  z-index: 2;
}

.monitoring-copy .section-title {
  max-width: 11ch;
  color: white;
}

@media (min-width: 768px) {
  .monitoring-copy .section-title {
    font-size: 4.4rem;
  }
}

.monitoring-row {
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 0.5rem;
  background: rgb(255 255 255 / 0.035);
  padding: 0.85rem 1.1rem;
}

.monitoring-row span {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 0 5px rgb(255 105 0 / 0.12);
}

.monitoring-row strong {
  font-size: 1.08rem;
}

.monitoring-visual {
  position: relative;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 0.75rem;
  background: rgb(255 255 255 / 0.08);
  box-shadow: 0 32px 90px rgb(0 0 0 / 0.42);
  transform: rotate(4deg) translateX(2rem);
  transform-origin: center;
}

.monitoring-visual img {
  display: block;
  border-radius: 0.6rem;
}

@media (max-width: 1023px) {
  .monitoring-inner {
    min-height: auto;
  }

  .monitoring-visual {
    transform: none;
  }
}

.verdict-text-allow {
  color: var(--color-allow);
}

.verdict-text-rewrite {
  color: var(--color-rewrite);
}

.verdict-text-block {
  color: var(--color-block);
}

.verdict-chip {
  border: 1px solid currentColor;
  border-radius: 0.25rem;
  padding: 0.5rem 0.625rem;
  font-family: var(--font-geist-mono, ui-monospace, monospace);
  font-size: 0.75rem;
}

.verdict-chip-allow {
  color: var(--color-allow);
}

.verdict-chip-rewrite {
  color: var(--color-rewrite);
}

.verdict-chip-block {
  color: var(--color-block);
}

.verdict-chip-escalate {
  color: var(--color-escalate);
}

@keyframes hero-grid-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 42px 42px;
  }
}

@keyframes hero-signal-scan {
  0% {
    left: -8rem;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes hero-route-pulse {
  0%,
  100% {
    opacity: 0.28;
    transform: scale(0.86);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes hero-glass-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-animated-grid,
  .hero-signal::after,
  .hero-route::after,
  .hero-glass-chip {
    animation: none;
  }
}

@media (max-width: 1180px) {
  .hero-glass-chip {
    display: none;
  }
}
