:root {
  --ink: #000000;
  --signal: #00e676;
  --signal-strong: #00a854;
  --signal-soft: rgba(0, 230, 118, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  background: #fff;
  color: #000;
}

/* Header */

.site-header {
  transition:
    background-color 220ms ease,
    backdrop-filter 220ms ease;
}

.site-logo {
  font-size: 1.5rem;
  line-height: 1;
  color: #000;
  transition: color 220ms ease;
}

.site-nav a {
  color: rgba(0, 0, 0, 0.7);
  transition: color 180ms ease;
}

.site-nav a:hover {
  color: #000;
}

.site-header-actions {
  padding-left: 0;
  border-left: none;
}

@media (min-width: 768px) {
  .site-header-actions {
    padding-left: 1.25rem;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
  }
}

.site-header-login {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.7);
  transition: color 180ms ease;
}

.site-header-login:hover {
  color: #000;
}

.site-header-cta {
  background: var(--signal);
  color: #000;
  transition:
    background-color 220ms ease,
    color 220ms ease,
    filter 220ms ease;
}

.site-header-cta:hover {
  filter: brightness(1.06);
}

.site-header.is-over-hero,
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled .site-header-cta {
  background: #000000;
  color: #ffffff;
  filter: none;
}

.site-header.is-scrolled .site-header-cta:hover {
  background: rgba(0, 0, 0, 0.9);
}

/* Hero copy */

.hero-copy {
  animation: rise 900ms var(--ease) both;
}

.hero-headline {
  margin: 0;
  font-size: clamp(2.6rem, 5.8vw, 4.25rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.05;
  color: #000;
}

.hero-emphasis {
  color: var(--signal);
}

.hero-subhead {
  margin: 1.5rem 0 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  font-weight: 400;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.62);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.45rem;
  border-radius: 0.4rem;
  background: var(--signal);
  color: #000;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.3),
    0 10px 30px rgba(0, 230, 118, 0.22);
  transition:
    transform 200ms var(--ease),
    filter 200ms ease,
    box-shadow 200ms ease;
}

.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(0, 230, 118, 0.4),
    0 14px 36px rgba(0, 230, 118, 0.28);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 0.4rem;
  color: rgba(0, 0, 0, 0.78);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.btn-secondary:hover {
  color: #000;
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(0, 0, 0, 0.03);
}

/* Section slant */

.section-slant {
  --slant: clamp(1.75rem, 3.5vw, 3.25rem);
  position: relative;
  z-index: 1;
  clip-path: polygon(
    0 var(--slant),
    100% 0,
    100% calc(100% - var(--slant)),
    0 100%
  );
  margin-top: calc(var(--slant) * -1);
  padding-top: var(--slant);
  padding-bottom: var(--slant);
}

.section-slant--first {
  z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
  margin-top: 0;
  padding-top: 0;
}

.section-slant--last {
  clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%);
  padding-bottom: 0;
}

/* Hero layout */

.hero-section {
  min-height: calc(100svh - 4rem);
  display: flex;
  align-items: center;
}

.hero-inner {
  width: 100%;
}

/* Hero mock */

.hero-mock {
  animation: rise 900ms var(--ease) both;
  max-width: 22.5rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-mock {
    margin-right: 0;
  }
}

.mock-shell {
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 1.15rem;
  background: #f2f2f7;
  color: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.5) inset,
    0 16px 40px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(12px);
}

.mock-chrome span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.mock-chrome .dot-close {
  background: #ff5f57;
}

.mock-chrome .dot-min {
  background: #febc2e;
}

.mock-chrome .dot-max {
  background: #28c840;
}

.mock-chrome p {
  margin: 0 0 0 auto;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: rgba(0, 0, 0, 0.45);
}

.mock-body {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
}

.mock-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.8rem 0.95rem;
  border: none;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.mock-stat span {
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.45);
}

.mock-stat strong {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #000;
  font-variant-numeric: tabular-nums;
}

.mock-stat strong[data-traffic] {
  color: var(--signal-strong);
  transition: color 220ms ease;
}

.mock-shell[data-pulse-mode="drop"] .mock-stat strong[data-traffic] {
  color: #c2410c;
}

.mock-chart {
  position: relative;
  padding: 0.9rem;
  border: none;
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.mock-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

.traffic-area-surge,
.traffic-area-drop {
  fill: var(--signal-soft);
  transition: opacity 320ms ease;
}

.traffic-line-surge,
.traffic-line-drop {
  stroke: var(--signal);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.5s var(--ease) 0.2s forwards;
  transition: opacity 320ms ease;
}

.traffic-area-drop {
  fill: rgba(194, 65, 12, 0.12);
  opacity: 0;
}

.traffic-line-drop {
  stroke: #ea580c;
  opacity: 0;
  animation: none;
  stroke-dashoffset: 0;
}

.mock-shell[data-pulse-mode="drop"] .traffic-area-surge,
.mock-shell[data-pulse-mode="drop"] .traffic-line-surge {
  opacity: 0;
}

.mock-shell[data-pulse-mode="drop"] .traffic-area-drop,
.mock-shell[data-pulse-mode="drop"] .traffic-line-drop {
  opacity: 1;
}

.mock-shell[data-pulse-mode="surge"] .traffic-area-drop,
.mock-shell[data-pulse-mode="surge"] .traffic-line-drop {
  opacity: 0;
}

.mock-marker {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(0, 230, 118, 0.12);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--signal-strong);
  transition:
    background 220ms ease,
    color 220ms ease;
}

.mock-shell[data-pulse-mode="drop"] .mock-marker {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.marker-dot,
.pulse-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--signal);
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.45);
  animation: ping 2s ease-out infinite;
  transition: background 220ms ease;
}

.mock-shell[data-pulse-mode="drop"] .marker-dot {
  background: #ea580c;
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.45);
  animation: ping-drop 2s ease-out infinite;
}

.mock-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0.95rem;
  border-radius: 0.75rem;
  border: none;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}

.signal-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.4);
}

.signal-action {
  margin: 0.15rem 0 0;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--signal-strong);
  transition: color 220ms ease;
}

.mock-shell[data-pulse-mode="drop"] .signal-action {
  color: #c2410c;
}

.signal-delta {
  text-align: right;
}

.signal-delta span {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(0, 0, 0, 0.4);
}

.signal-delta strong {
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--signal-strong);
  font-variant-numeric: tabular-nums;
  transition: color 220ms ease;
}

.mock-shell[data-pulse-mode="drop"] .signal-delta strong {
  color: #c2410c;
}

/* Pipeline */

.pipeline-step {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 700ms var(--ease),
    transform 700ms var(--ease);
}

.pipeline-step.is-visible {
  opacity: 1;
  transform: none;
}

.step-num {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  opacity: 0.35;
}

.code-snip {
  margin-top: 1.25rem;
  padding: 0.95rem 1rem;
  overflow-x: auto;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background: #111;
  color: #e8e8e8;
  font-size: 0.72rem;
  line-height: 1.55;
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.pulse-panel,
.webhook-panel {
  margin-top: 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  background: #fff;
}

.pulse-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  color: rgba(0, 0, 0, 0.55);
}

.pulse-row + .pulse-row {
  margin-top: 0.55rem;
}

.pulse-row strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pulse-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.3rem;
  align-items: end;
  height: 2.5rem;
  margin-top: 0.9rem;
}

.pulse-bars i {
  display: block;
  height: var(--h, 40%);
  border-radius: 0.15rem;
  background: rgba(0, 0, 0, 0.12);
  animation: bar 2.4s ease-in-out infinite;
}

.pulse-bars i:nth-child(1) {
  --h: 35%;
  animation-delay: 0s;
}
.pulse-bars i:nth-child(2) {
  --h: 55%;
  animation-delay: 0.1s;
}
.pulse-bars i:nth-child(3) {
  --h: 42%;
  animation-delay: 0.2s;
}
.pulse-bars i:nth-child(4) {
  --h: 78%;
  animation-delay: 0.3s;
  background: rgba(0, 230, 118, 0.55);
}
.pulse-bars i:nth-child(5) {
  --h: 64%;
  animation-delay: 0.4s;
  background: rgba(0, 230, 118, 0.35);
}
.pulse-bars i:nth-child(6) {
  --h: 88%;
  animation-delay: 0.5s;
  background: var(--signal);
}
.pulse-bars i:nth-child(7) {
  --h: 50%;
  animation-delay: 0.6s;
}
.pulse-bars i:nth-child(8) {
  --h: 38%;
  animation-delay: 0.7s;
}

.webhook-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 0.25rem;
  background: rgba(0, 230, 118, 0.14);
  color: var(--signal-strong);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.webhook-panel code {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  color: var(--ink);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.webhook-payload {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.55);
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

/* Features */

.features-layout {
  display: grid;
  gap: 3rem;
}

@media (min-width: 900px) {
  .features-layout {
    grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.25fr);
    gap: clamp(3rem, 8vw, 6rem);
    align-items: start;
  }

  .features-intro {
    position: sticky;
    top: 6rem;
  }
}

.features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.features-list li {
  display: grid;
  grid-template-columns: 3.25rem 1fr;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.features-index {
  padding-top: 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--signal-strong);
}

.features-list h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.features-list p {
  margin: 0.55rem 0 0;
  max-width: 34rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.58);
}

/* Motion */

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

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

@keyframes ping-drop {
  0% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0.5);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(234, 88, 12, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
  }
}

@keyframes bar {
  0%,
  100% {
    transform: scaleY(0.85);
  }
  50% {
    transform: scaleY(1.15);
  }
}

.footer-logo {
  font-size: 1.25rem;
  line-height: 1;
}

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