:root {
  --bg: #f7f9fb;
  --bg-soft: #eef3f7;
  --panel: rgba(255, 255, 255, 0.78);
  --panel-strong: #ffffff;
  --text: #121923;
  --muted: #526173;
  --faint: #7a8796;
  --line: rgba(18, 25, 35, 0.12);
  --accent: #007c89;
  --accent-2: #16804f;
  --danger: #c83f3f;
  --warn: #9a6a12;
  --terminal: #09111a;
  --shadow: 0 24px 80px rgba(33, 45, 61, 0.14);
  --font-body: "IBM Plex Sans", "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "IBM Plex Sans Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --font-mono: "Berkeley Mono", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 16% 10%, rgba(0, 124, 137, 0.12), transparent 24rem),
    radial-gradient(circle at 84% 4%, rgba(22, 128, 79, 0.1), transparent 25rem),
    linear-gradient(180deg, #fbfcfd 0%, var(--bg) 58%, #edf2f6 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    linear-gradient(rgba(18, 25, 35, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 25, 35, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

main {
  position: relative;
  overflow: hidden;
}

a {
  color: inherit;
}

.hero {
  width: min(1160px, calc(100% - 40px));
  min-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 1.04fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  margin: 0 auto;
  padding: 5rem 0 3rem;
}

.hero__copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.045em;
}

h1 {
  max-width: 720px;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.9;
}

h2 {
  max-width: 800px;
  font-size: clamp(2.1rem, 4.5vw, 4.4rem);
  line-height: 0.96;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.1;
}

.lede {
  max-width: 620px;
  margin: 1.4rem 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.55;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.actions--center {
  justify-content: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.1rem;
  border: 1px solid rgba(18, 25, 35, 0.16);
  border-radius: 0.65rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.64);
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.button:hover {
  border-color: rgba(0, 124, 137, 0.5);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(33, 45, 61, 0.12);
}

.button--primary {
  color: #ffffff;
  border-color: var(--accent);
  background: var(--accent);
}

.button--primary:hover {
  color: #ffffff;
  background: #006b76;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.62);
}

.signal-card {
  position: relative;
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(0, 124, 137, 0.3), rgba(22, 128, 79, 0.16), rgba(18, 25, 35, 0.14));
  filter: blur(24px);
  opacity: 0.8;
}

.terminal {
  overflow: hidden;
  border: 1px solid rgba(18, 25, 35, 0.16);
  border-radius: 1.2rem;
  background: var(--terminal);
  box-shadow: var(--shadow);
}

.terminal__bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(232, 237, 244, 0.12);
  background: #111b26;
}

.terminal__bar span {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--danger);
}

.terminal__bar span:nth-child(2) {
  background: var(--warn);
}

.terminal__bar span:nth-child(3) {
  background: var(--accent-2);
}

pre {
  margin: 0;
  padding: clamp(1rem, 3vw, 1.45rem);
  white-space: pre-wrap;
}

code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
}

pre code {
  color: #d9f7ff;
  line-height: 1.75;
}

.section {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.8rem) 0;
  border-top: 1px solid var(--line);
}

.section__header {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section__header p:not(.eyebrow) {
  max-width: 700px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.section__header--left {
  margin-bottom: 0;
}

.pipeline,
.case-grid {
  display: grid;
  gap: 0.9rem;
}

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

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

.pipeline article,
.case,
.cta {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.48)),
    var(--panel);
  box-shadow: 0 16px 50px rgba(33, 45, 61, 0.08);
  backdrop-filter: blur(12px);
}

.pipeline article,
.case {
  min-height: 13rem;
  padding: 1.1rem;
}

.pipeline span,
.case span {
  display: inline-block;
  margin-bottom: 2.4rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pipeline p,
.case p {
  color: var(--muted);
  line-height: 1.58;
}

.pipeline p,
.case p {
  margin-bottom: 0;
}

.demo {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.case--blocked {
  border-color: rgba(200, 63, 63, 0.22);
}

.case--blocked span {
  color: var(--danger);
}

.case--allowed {
  border-color: rgba(22, 128, 79, 0.22);
}

.case--allowed span {
  color: var(--accent-2);
}

.case--warn {
  border-color: rgba(154, 106, 18, 0.24);
}

.case--warn span {
  color: var(--warn);
}

.cta {
  width: min(900px, calc(100% - 40px));
  margin: 4rem auto 5.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

.cta p {
  max-width: 690px;
  margin: 1rem auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  max-width: 560px;
  margin: 1.6rem auto 0;
}

.signup input {
  min-height: 3rem;
  width: 100%;
  border: 1px solid rgba(18, 25, 35, 0.16);
  border-radius: 0.65rem;
  padding: 0.8rem 1rem;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.76);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.signup input:focus {
  border-color: rgba(0, 124, 137, 0.58);
  box-shadow: 0 0 0 4px rgba(0, 124, 137, 0.12);
}

.signup input::placeholder {
  color: var(--faint);
}

.cta .cta__note {
  max-width: 520px;
  margin-top: 0.9rem;
  color: var(--faint);
  font-size: 0.82rem;
}

.form-status {
  min-height: 1.3rem;
  margin-top: 0.85rem;
  color: var(--faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.form-status[data-status="success"] {
  color: var(--accent-2);
}

.form-status[data-status="error"] {
  color: var(--danger);
}

.form-status[data-status="pending"] {
  color: var(--accent);
}

.reveal {
  animation: rise 680ms ease both;
}

.reveal--late {
  animation-delay: 120ms;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 900px) {
  .hero,
  .demo {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3.5rem;
  }

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

@media (max-width: 620px) {
  h1 {
    font-size: clamp(3.2rem, 16vw, 4.7rem);
  }

  .pipeline,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3rem 0;
  }

  .button {
    width: 100%;
  }

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

  .terminal {
    border-radius: 0.9rem;
  }
}
