@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400..600;1,14..32,400..600&family=JetBrains+Mono:wght@400;500&display=swap");

:root {
  --background: #f7f8f8;
  --background-raised: #ffffff;

  --surface-1: #ffffff;
  --surface-2: #f3f4f5;
  --surface-3: #eceeef;
  --surface-hover: #eef0f1;

  --border-subtle: rgba(15, 16, 18, 0.08);
  --border-default: rgba(15, 16, 18, 0.1);
  --border-hover: rgba(15, 16, 18, 0.16);

  --text-primary: #0f1012;
  --text-secondary: #3c4046;
  --text-muted: #6a7078;
  --text-dim: #8b9098;

  --cyra-red: #e10214;
  --cyra-red-bright: #f01224;
  --cyra-red-deep: #b80110;

  --cyra-red-08: rgba(225, 2, 20, 0.07);
  --cyra-red-12: rgba(225, 2, 20, 0.11);
  --cyra-red-18: rgba(225, 2, 20, 0.16);
  --cyra-red-30: rgba(225, 2, 20, 0.28);

  --success: #46a758;
  --warning: #f2b84b;
  --fault: #8b8d98;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-fast: 180ms;
  --duration-normal: 320ms;
  --duration-reveal: 580ms;
  --duration-slow: 900ms;

  --nav-height: 60px;
  --container: 1400px;
  --gutter: 40px;

  --font: "Inter Variable", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  color-scheme: light;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text-primary);
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  font-optical-sizing: auto;
  font-weight: 450;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.011em;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(rgba(15, 16, 18, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 16, 18, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.7;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

button,
input {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--cyra-red);
  outline-offset: 3px;
}

::selection {
  background: var(--cyra-red-30);
  color: var(--text-primary);
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 80;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--text-primary);
  color: var(--background);
  font-size: 13px;
  font-weight: 500;
}

.skip-link:focus {
  top: 12px;
}

.container,
.container--wide {
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  max-width: none;
  margin-inline: auto;
  padding-inline: 0;
}

.mono {
  font-family: var(--mono);
  font-feature-settings: "ss01", "ss02";
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--accent::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyra-red);
  box-shadow: 0 0 0 4px var(--cyra-red-12);
}

.section {
  position: relative;
  z-index: 1;
  padding-block: 160px;
}

.section--tight {
  padding-top: 40px;
}

.section__intro {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 64px 80px;
  align-items: end;
  margin-bottom: 56px;
}

.section__intro--single {
  grid-template-columns: minmax(0, 720px);
  align-items: start;
}

.section__intro--single .section__copy {
  margin-top: 18px;
}

.section__kicker {
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 520;
  line-height: 1.04;
  letter-spacing: -0.038em;
}

.section__copy,
.lede,
.hero__copy {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

.section__copy p + p,
.hero__copy p + p {
  margin-top: 14px;
}

.divider {
  height: 1px;
  background: var(--border-subtle);
  border: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.014em;
  transition:
    background var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

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

.btn--primary {
  background: var(--text-primary);
  color: #ffffff;
}

.btn--primary:hover {
  background: #1a1b1e;
}

.btn--primary .btn__mark {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyra-red);
}

.btn--login {
  min-height: 32px;
  padding: 0 11px 0 9px;
  border: 1px solid var(--border-default);
  background: var(--surface-1);
  color: var(--text-primary);
  font-size: 13px;
}

.btn--login svg {
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-out), transform var(--duration-fast) var(--ease-out);
}

.btn--login:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.btn--login:hover svg {
  color: var(--cyra-red);
  transform: translateX(1px);
}

.btn--ghost {
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  background: transparent;
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  transition: color var(--duration-fast) var(--ease-out);
}

.text-link:hover {
  color: var(--text-primary);
}

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  height: var(--nav-height);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    backdrop-filter var(--duration-normal) var(--ease-out);
}

.nav.is-scrolled {
  background: rgba(247, 248, 248, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(15, 16, 18, 0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.03em;
}

.brand__mark {
  width: 22px;
  height: 22px;
}

.brand__wordmark {
  height: 20px;
  width: auto;
}

.product__bar .brand__wordmark {
  height: 15px;
}

.product__bar .brand__mark {
  width: 16px;
  height: 16px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 450;
  letter-spacing: -0.01em;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: var(--text-primary);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav__toggle {
  display: none;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 14px;
  height: 1.5px;
  background: var(--text-primary);
  position: relative;
  transition: transform var(--duration-fast) var(--ease-out);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav__toggle span::before {
  top: -5px;
}

.nav__toggle span::after {
  top: 5px;
}

.page {
  position: relative;
  overflow: clip;
}

.hero {
  position: relative;
  padding: calc(var(--nav-height) + 88px) 0 120px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(700px circle at 72% 18%, rgba(225, 2, 20, 0.055), transparent 62%);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 470px) minmax(0, 1fr);
  gap: 64px 48px;
  align-items: center;
}

.hero__label {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}

.hero__title {
  margin: 18px 0 22px;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 530;
  line-height: 0.98;
  letter-spacing: -0.042em;
}

.hero__copy {
  max-width: 46ch;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.hero__visual {
  min-width: 0;
}

.hero .reveal-item,
.hero__visual .product {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}

body.is-ready .hero .reveal-item,
body.is-ready .hero__visual .product {
  animation: rise var(--duration-reveal) var(--ease-out) forwards;
}

body.is-ready .hero__label { animation-delay: 80ms; }
body.is-ready .hero__title { animation-delay: 180ms; }
body.is-ready .hero__copy { animation-delay: 300ms; }
body.is-ready .hero__actions { animation-delay: 400ms; }
body.is-ready .hero__visual .product { animation-delay: 520ms; }

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.product {
  position: relative;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 16, 18, 0.03), 0 18px 40px rgba(15, 16, 18, 0.05);
}

.product--hero {
  min-height: 0;
}

.product__shot {
  overflow: hidden;
  background: #f3f4f6;
}

.product__shot img {
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.product--hero .product__shot {
  max-height: 540px;
}

.product--workspace .product__shot,
.flow-window .product__shot {
  max-height: 560px;
}

.workspace-caption {
  margin: 0;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
}

.product--hero::after {
  display: none;
}

.product__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--background-raised);
}

.product__identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.product__app {
  font-size: 13px;
  font-weight: 530;
  letter-spacing: -0.02em;
}

.product__crumb {
  color: var(--text-dim);
  font-size: 12px;
}

.product__crumb span {
  color: var(--text-muted);
}

.live-clock,
.product__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(70, 167, 88, 0.16);
}

.live-dot--fire {
  background: var(--cyra-red);
  box-shadow: 0 0 0 3px var(--cyra-red-18);
}

.live-dot--pulse {
  animation: pulse 1.6s var(--ease-out) infinite;
}

@keyframes pulse {
  0%,
  100% { box-shadow: 0 0 0 3px var(--cyra-red-12); }
  50% { box-shadow: 0 0 0 6px var(--cyra-red-18); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--border-subtle);
}

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

.stat {
  padding: 12px 14px 13px;
  border-right: 1px solid var(--border-subtle);
}

.stat:last-child {
  border-right: 0;
}

.stat__label {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stat__value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 530;
  letter-spacing: -0.03em;
}

.stat__value.is-alert {
  color: var(--cyra-red-bright);
}

.stat__value.is-warn {
  color: var(--warning);
}

.product__body {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-height: 360px;
}

.side-list {
  border-right: 1px solid var(--border-subtle);
  background: var(--surface-2);
}

.side-list__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid transparent;
  transition: background var(--duration-fast) var(--ease-out);
}

.row:hover,
.row.is-selected {
  background: var(--surface-hover);
}

.row.is-selected {
  box-shadow: inset 2px 0 0 var(--cyra-red);
}

.row.is-flash {
  background: var(--cyra-red-08);
}

.row__copy {
  min-width: 0;
  flex: 1;
}

.row__title {
  font-size: 13px;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row__meta {
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 2px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--success);
}

.status-dot--fire {
  background: var(--cyra-red);
  box-shadow: 0 0 0 3px var(--cyra-red-18);
}

.status-dot--fault {
  background: var(--fault);
}

.status-dot--warn {
  background: var(--warning);
}

.status-dot--offline {
  background: var(--text-dim);
}

.status-dot--idle {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--text-dim);
}

.detail {
  padding: 16px 18px 18px;
}

.detail__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  font-size: 11px;
  background: var(--surface-2);
}

.pill--fire {
  border-color: var(--cyra-red-30);
  background: var(--cyra-red-08);
  color: var(--cyra-red-deep);
}

.pill--live {
  border-color: rgba(70, 167, 88, 0.28);
  background: rgba(70, 167, 88, 0.08);
  color: #2f7a3f;
}

.detail__title {
  margin-top: 8px;
  font-size: 20px;
  font-weight: 530;
  letter-spacing: -0.03em;
}

.detail__sub {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.kv {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 18px 0;
}

.kv__item {
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.kv__label,
.tiny-label {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.kv__value {
  margin-top: 5px;
  font-size: 13px;
  color: var(--text-secondary);
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline__row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.timeline__row.is-new {
  color: var(--text-primary);
}

.timeline__row.is-new .timeline__text::after {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-left: 8px;
  border-radius: 50%;
  background: var(--cyra-red);
  vertical-align: middle;
}

.happening {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 56px 48px;
  align-items: start;
}

.happening__copy .section__title {
  margin-bottom: 20px;
}

.stages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.stage {
  position: relative;
  padding: 18px 16px 4px 0;
}

.stage:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 18px;
  top: -1px;
  height: 1px;
  background: var(--border-subtle);
}

.stage.is-active .stage__index {
  color: var(--cyra-red-bright);
}

.stage__index {
  display: block;
  margin-bottom: 8px;
  color: var(--text-dim);
  font-size: 11px;
}

.stage__title {
  font-size: 16px;
  font-weight: 530;
  letter-spacing: -0.02em;
}

.stage__copy {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.signal-path {
  position: relative;
  height: 2px;
  margin: 8px 0 4px;
  background: var(--border-subtle);
  overflow: hidden;
}

.signal-path__bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--cyra-red), var(--cyra-red-bright));
  box-shadow: 0 0 12px var(--cyra-red-30);
  transition: width 700ms var(--ease-out);
}

.happening[data-step="1"] .signal-path__bar { width: 33%; }
.happening[data-step="2"] .signal-path__bar { width: 66%; }
.happening[data-step="3"] .signal-path__bar { width: 100%; }

.flow-window .product__body,
.flow-steps {
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 0;
}

.flow-steps {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.flow-feed {
  padding: 8px 0;
  border-right: 1px solid var(--border-subtle);
}

.flow-panel {
  padding: 16px 18px;
  background:
    radial-gradient(420px circle at 100% 0%, var(--cyra-red-08), transparent 55%),
    var(--surface-1);
}

.flow-item {
  opacity: 0.38;
  transition: opacity var(--duration-normal) var(--ease-out), background var(--duration-normal) var(--ease-out);
}

.flow-item.is-on {
  opacity: 1;
}

.workspace-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
}

.workspace-head .section__title {
  max-width: 14ch;
}

.workspace-head__copy {
  max-width: 42ch;
  color: var(--text-secondary);
}

.product--workspace {
  min-height: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background);
}

.tab {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 12px;
}

.tab.is-active,
.tab[aria-selected="true"] {
  background: var(--surface-3);
  color: var(--text-primary);
}

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--background);
  color: var(--text-dim);
  width: min(240px, 100%);
}

.search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--text-primary);
  font-size: 12px;
}

.search input::placeholder {
  color: var(--text-dim);
}

.workspace-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 280px;
  min-height: 500px;
}

.building-detail {
  padding: 18px;
  border-right: 1px solid var(--border-subtle);
}

.building-detail__name {
  font-size: 22px;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.map-lite {
  position: relative;
  height: 148px;
  margin: 16px 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 62% 40%, var(--cyra-red-12), transparent 28%),
    linear-gradient(180deg, #eef1f3, #e4e7ea);
  overflow: hidden;
}

.map-lite::before {
  content: "";
  position: absolute;
  inset: 12px;
  background:
    linear-gradient(rgba(15, 16, 18, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 16, 18, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.7;
}

.map-pin {
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--text-dim);
}

.map-pin.is-active {
  background: var(--cyra-red);
  box-shadow: 0 0 0 6px var(--cyra-red-18);
}

.incident-col {
  padding: 16px 16px 18px;
  background: var(--surface-2);
}

.workflow-layout {
  display: grid;
  gap: 0;
}

.workflow-board {
  padding: 28px 8px 22px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.workflow-step {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0 20px 6px;
  opacity: 0.34;
  transform: translate3d(0, 6px, 0);
  transition:
    opacity 420ms var(--ease-out),
    transform 420ms var(--ease-out);
}

.workflow-step:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.workflow-step.is-active {
  opacity: 1;
  transform: none;
}

.workflow-step__n {
  display: block;
  margin-bottom: 10px;
  color: var(--text-dim);
  font-size: 11px;
}

.workflow-step.is-active .workflow-step__n {
  color: var(--cyra-red-bright);
}

.workflow-step h3 {
  font-size: 18px;
  font-weight: 520;
  letter-spacing: -0.025em;
}

.workflow-step p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
}

.workflow-step__nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
}

.workflow-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  background: var(--background);
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
}

.workflow-chip.is-active {
  border-color: var(--cyra-red-30);
  background: var(--cyra-red-08);
  color: var(--text-primary);
}

.path {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 18px;
}

.path__node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 92px;
  padding: 12px 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  color: var(--text-dim);
  text-align: center;
  font-size: 12px;
  transition:
    border-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    background var(--duration-normal) var(--ease-out);
}

.path__node::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% + 1px);
  width: 8px;
  height: 1px;
  background: var(--border-default);
}

.path__node:last-child::after {
  display: none;
}

.path__node.is-active {
  border-color: var(--cyra-red-30);
  background: var(--cyra-red-08);
  color: var(--text-primary);
}

.path__node.is-active::after {
  background: var(--cyra-red);
}

.path__node .status-dot {
  margin: 0;
}

.signals-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

.signal-board {
  padding: 8px 6px 10px;
}

.signal-board__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 12px;
}

.signal-row {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr) 88px 72px;
  gap: 12px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid var(--border-subtle);
}

.signal-row:hover {
  background: var(--surface-hover);
}

.signal-row__name {
  font-size: 14px;
}

.signal-row__id,
.signal-row__time {
  color: var(--text-dim);
  font-size: 11px;
  text-align: right;
}

.note {
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 15px;
  max-width: 62ch;
}

.incident-split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 48px 40px;
  align-items: start;
}

.question-list {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.question {
  text-align: left;
  padding-left: 14px;
  border-left: 1px solid var(--border-subtle);
  color: var(--text-muted);
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}

.question.is-active {
  border-left-color: var(--cyra-red);
  color: var(--text-primary);
}

.question h3 {
  font-size: 16px;
  font-weight: 520;
  letter-spacing: -0.02em;
  color: inherit;
}

.question p {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.incident-card .highlight {
  outline: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: outline-color var(--duration-normal) var(--ease-out), background var(--duration-normal) var(--ease-out);
}

.incident-card [data-answer].is-lit {
  background: var(--cyra-red-08);
  outline-color: var(--cyra-red-18);
}

.roles-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 40px 48px;
}

.role-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.role-tab {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
}

.role-tab[aria-selected="true"] {
  border-color: var(--border-hover);
  background: var(--surface-3);
  color: var(--text-primary);
}

.role-panel[hidden] {
  display: none;
}

.role-shot {
  margin: 16px 0 4px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  max-height: 240px;
}

.role-rows {
  margin: 18px 0 4px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.ops-surface {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  overflow: hidden;
}

.ops-cell {
  padding: 28px 24px 26px;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.ops-cell:nth-child(3n) {
  border-right: 0;
}

.ops-cell:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.ops-cell__n {
  color: var(--text-dim);
  font-size: 11px;
}

.ops-cell h3 {
  margin: 12px 0 10px;
  font-size: 16px;
  font-weight: 520;
  letter-spacing: -0.02em;
}

.ops-cell p {
  color: var(--text-muted);
  font-size: 14px;
}

.ops-cell__value {
  margin-top: 18px;
  color: var(--text-secondary);
  font-size: 13px;
}

.infra {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: center;
}

.stack {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0;
}

.stack__node {
  position: relative;
  z-index: 1;
  min-width: min(100%, 280px);
  padding: 14px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  text-align: center;
}

.stack__node.is-core {
  border-color: var(--cyra-red-30);
  background:
    radial-gradient(circle at 50% 0%, var(--cyra-red-12), transparent 60%),
    var(--surface-1);
}

.stack__label {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stack__name {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 520;
}

.stack__line {
  position: relative;
  width: 1px;
  height: 28px;
  background: var(--border-default);
}

.stack__pulse {
  position: absolute;
  left: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyra-red);
  box-shadow: 0 0 10px var(--cyra-red-30);
  animation: travel 2.4s var(--ease-out) infinite;
}

@keyframes travel {
  0% { top: -2px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 24px; opacity: 0; }
}

.stack__branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 520px);
  margin-top: 8px;
}

.stack__branch {
  padding: 12px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-1);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}

.closing {
  padding-top: 120px;
  padding-bottom: 88px;
}

.closing__inner {
  max-width: none;
}

.closing__title {
  margin-top: 16px;
  max-width: 12ch;
  font-size: clamp(40px, 5.6vw, 68px);
  font-weight: 520;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.closing__lede {
  margin-top: 22px;
  color: var(--text-secondary);
  font-size: 18px;
}

.closing__systems {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 48px;
  border-top: 1px solid var(--border-subtle);
}

.closing__system {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0;
  padding: 22px 32px 22px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 17px;
}

.closing__system:nth-child(odd) {
  padding-right: 32px;
  border-right: 1px solid var(--border-subtle);
}

.closing__system:nth-child(even) {
  padding-left: 32px;
}

.closing__system span {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 500;
  min-width: 22px;
}

.closing__system--end {
  color: var(--text-primary);
}

.closing__system--end span {
  color: var(--cyra-red);
}

.closing__end {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px 48px;
  margin-top: 36px;
}

.closing__body {
  max-width: 46ch;
  color: var(--text-muted);
}

.closing__closer {
  font-size: 20px;
  font-weight: 520;
  letter-spacing: -0.03em;
}

.closing__cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.closing__cta .text-link {
  color: var(--text-muted);
}

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-subtle);
  padding: 22px 0 28px;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-dim);
  font-size: 13px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.footer__legal {
  color: var(--text-dim);
  font-size: 12px;
}

.footer__partner {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-default);
}

.footer__partner:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-primary);
}

.footer__credit {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  color: var(--text-dim);
  font-size: 12px;
  text-align: right;
}

.footer__credit a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border-default);
}

.footer__credit a:hover {
  color: var(--text-primary);
  text-decoration-color: var(--text-primary);
}

.footer__credit a.footer__mark,
.footer__mark {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  color: #c5c7c8;
  text-decoration: none;
}

.footer__credit a.footer__mark:hover,
.footer__mark:hover {
  color: #a8aaab;
  text-decoration: none;
}

.footer__mark svg {
  display: block;
}

.footer__tip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  padding: 7px 10px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 11px;
  letter-spacing: -0.015em;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(15, 16, 18, 0.06);
  opacity: 0;
  transform: translate3d(0, 4px, 0);
  pointer-events: none;
  transition:
    opacity var(--duration-fast) var(--ease-out),
    transform var(--duration-fast) var(--ease-out);
}

.footer__credit a.footer__mark:hover .footer__tip,
.footer__mark:hover .footer__tip,
.footer__mark:focus-visible .footer__tip {
  opacity: 1;
  transform: none;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  will-change: opacity, transform;
}

.mobile-menu {
  display: none;
}

@media (max-width: 1100px) {
  :root {
    --gutter: 24px;
  }

  .section {
    padding-block: 116px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 64px);
    padding-bottom: 88px;
  }

  .hero__grid,
  .happening,
  .section__intro,
  .incident-split,
  .roles-layout,
  .infra,
  .signals-grid,
  .workflow-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .workspace-grid {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .incident-col {
    display: none;
  }

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

  .stat:nth-child(3) {
    border-right: 0;
  }

  .stat:nth-child(n + 4) {
    border-top: 1px solid var(--border-subtle);
  }

  .workflow-board {
    padding: 22px 4px 16px;
  }

  .workflow-step {
    padding-left: 12px;
    padding-right: 12px;
  }

  .workflow-step h3 {
    font-size: 16px;
  }

  .ops-surface {
    grid-template-columns: 1fr 1fr;
  }

  .ops-cell:nth-child(3n) {
    border-right: 1px solid var(--border-subtle);
  }

  .ops-cell:nth-child(2n) {
    border-right: 0;
  }

  .ops-cell:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--border-subtle);
  }

  .ops-cell:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  html,
  body,
  .page,
  main,
  .section,
  .container,
  .container--wide,
  .hero__grid,
  .happening,
  .workflow-layout,
  .workspace-head,
  .product,
  .toolbar,
  .tabs,
  .role-tabs,
  .path {
    min-width: 0;
    max-width: 100%;
  }

  :root {
    --gutter: 20px;
  }

  .section {
    padding-block: 72px;
  }

  .nav {
    width: 100%;
    height: calc(var(--nav-height) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
  }

  .nav__inner {
    height: var(--nav-height);
    gap: 12px;
  }

  .brand {
    flex: 0 0 auto;
  }

  .nav__links {
    display: none;
  }

  .nav__cta {
    flex: 0 0 auto;
    gap: 8px;
  }

  .nav__toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    border-color: var(--border-default);
    background: var(--surface-1);
  }

  .btn--login {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    inset: calc(var(--nav-height) + env(safe-area-inset-top, 0px)) 0 auto;
    z-index: 39;
    padding: 8px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    background: rgba(247, 248, 248, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(15, 16, 18, 0.06);
  }

  .mobile-menu.is-open {
    display: grid;
    gap: 0;
  }

  .mobile-menu a {
    padding: 16px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 17px;
  }

  .hero {
    padding-top: calc(var(--nav-height) + env(safe-area-inset-top, 0px) + 36px);
    padding-bottom: 48px;
  }

  .hero__grid {
    gap: 24px;
  }

  .hero__grid > *,
  .happening > *,
  .infra > *,
  .incident-split > *,
  .roles-layout > *,
  .workflow-layout > * {
    min-width: 0;
  }

  .hero__title,
  .closing__title {
    font-size: 40px;
    letter-spacing: -0.04em;
    line-height: 1.05;
    max-width: none;
  }

  .hero__copy,
  .workspace-head .section__title,
  .workspace-head__copy {
    max-width: none;
  }

  .section__title {
    font-size: 32px;
  }

  .hero__visual,
  .happening .flow-window,
  .incident-split .incident-card {
    width: calc(100% + var(--gutter));
    max-width: calc(100% + var(--gutter));
    margin-right: calc(var(--gutter) * -1);
    overflow: hidden;
  }

  .product--hero,
  .product--workspace,
  .flow-window,
  .incident-card {
    min-height: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .product__bar {
    min-height: 40px;
    padding: 0 12px;
    gap: 10px;
  }

  .product__crumb,
  .product__meta [data-clock] {
    display: none;
  }

  .product__shot {
    width: 100%;
    max-width: 100%;
    max-height: 280px;
    overflow: hidden;
  }

  .product--hero .product__shot,
  .product--workspace .product__shot,
  .flow-window .product__shot,
  .incident-card .product__shot {
    max-height: 280px;
  }

  .product__shot img {
    width: 220%;
    min-width: 0;
    max-width: none;
    height: 280px;
    object-fit: cover;
    object-position: left top;
  }

  .role-shot {
    max-height: 200px;
  }

  .role-shot img {
    width: 200%;
    min-width: 0;
    height: 200px;
  }

  .product__body,
  .workspace-grid,
  .flow-window .product__body,
  .flow-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .side-list,
  .workspace-grid .side-list {
    display: none;
  }

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

  .stat {
    padding: 12px;
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border-subtle);
    border-right: 1px solid var(--border-subtle);
  }

  .stat:nth-child(4) {
    border-right: 0;
  }

  .toolbar,
  .tabs,
  .role-tabs,
  .path {
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .toolbar::-webkit-scrollbar,
  .tabs::-webkit-scrollbar,
  .role-tabs::-webkit-scrollbar,
  .path::-webkit-scrollbar {
    display: none;
  }

  .toolbar,
  .tabs,
  .role-tabs {
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
  }

  .tab,
  .role-tab {
    white-space: nowrap;
    flex: 0 0 auto;
  }

  .stages,
  .workflow-steps,
  .signals-grid,
  .ops-surface,
  .stack__branches {
    grid-template-columns: minmax(0, 1fr);
  }

  .workflow-board {
    padding: 8px 16px 12px;
  }

  .workflow-step {
    padding: 16px 0 18px;
    border-right: 0;
    border-bottom: 0;
    border-left: 1px solid var(--border-subtle);
    padding-left: 16px;
  }

  .workflow-step:nth-child(-n + 3),
  .workflow-step:last-child,
  .workflow-step:nth-child(2n) {
    border-right: 0;
    border-bottom: 0;
  }

  .workflow-step.is-active {
    border-left-color: var(--cyra-red);
  }

  .stage {
    padding: 16px 0 18px;
  }

  .stage:not(:last-child)::after {
    display: none;
  }

  .stage__copy,
  .section__copy,
  .workflow-step p,
  .hero__copy {
    overflow-wrap: break-word;
  }

  .path {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    padding: 14px;
  }

  .path__node {
    flex: 0 0 112px;
    min-height: 84px;
  }

  .path__node::after {
    display: none;
  }

  .signal-row {
    grid-template-columns: 14px minmax(0, 1fr);
  }

  .signal-row__id,
  .signal-row__time {
    display: none;
  }

  .ops-cell,
  .ops-cell:nth-child(3n),
  .ops-cell:nth-child(2n),
  .ops-cell:nth-last-child(-n + 3),
  .ops-cell:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--border-subtle);
  }

  .ops-cell:last-child {
    border-bottom: 0;
  }

  .ops-cell {
    padding: 20px 18px 22px;
  }

  .closing {
    padding-top: 80px;
    padding-bottom: 56px;
  }

  .closing__lede {
    font-size: 17px;
  }

  .closing__systems {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 28px;
  }

  .closing__system,
  .closing__system:nth-child(odd),
  .closing__system:nth-child(even) {
    padding: 16px 0;
    border-right: 0;
  }

  .closing__system {
    font-size: 16px;
  }

  .closing__closer {
    font-size: 18px;
  }

  .workspace-head,
  .closing__cta,
  .closing__end,
  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__inner {
    align-items: center;
  }

  .footer__credit {
    text-align: right;
  }

  .footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .footer__brand {
    gap: 8px;
  }

  .footer__credit a {
    display: inline-block;
    padding: 2px 0;
  }

  .search {
    width: 100%;
    margin-left: 0;
  }

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

@media (max-width: 390px) {
  .hero__title,
  .closing__title {
    font-size: 38px;
  }

  .section__title {
    font-size: 30px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .hero .reveal-item,
  .hero__visual .product {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
