:root {
  --bg: #ffffff;
  --ink: #050505;
  --muted: #595959;
  --line: rgba(5, 5, 5, 0.14);
  --soft: rgba(5, 5, 5, 0.045);
  --green: #00a95c;
  --red: #ff1717;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

#particle-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.site-header,
main {
  position: relative;
  z-index: 1;
}

.site-header {
  width: min(var(--max), calc(100% - 48px));
  height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand,
.site-header nav,
.header-action {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 96px;
  height: auto;
}

.brand-mark {
  position: relative;
  width: 29px;
  height: 29px;
  display: inline-block;
}

.brand-mark span {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--ink);
}

.brand-mark span:nth-child(1) {
  left: 10px;
  top: 0;
}

.brand-mark span:nth-child(2) {
  left: 0;
  top: 10px;
}

.brand-mark span:nth-child(3) {
  left: 10px;
  top: 10px;
}

.brand-mark span:nth-child(4) {
  left: 20px;
  top: 10px;
}

.brand-mark span:nth-child(5) {
  left: 10px;
  top: 20px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-header nav a,
.header-action {
  text-decoration: none;
}

.header-action {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
}

.site-header nav a:hover,
.header-action:hover {
  text-decoration: underline;
}

.section-pad {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 104px 0;
}

.hero {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  padding-top: 54px;
}

.hero-copy,
.copy-block,
.section-heading {
  min-width: 0;
  overflow-wrap: break-word;
}

.hero-copy,
.copy-block,
.centered-section,
.section-heading,
.closing-section > div {
  padding: clamp(18px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(5, 5, 5, 0.08);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
}

.centered-section,
.section-heading {
  margin-left: auto;
  margin-right: auto;
}

.process-grid article {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
}

.eyebrow,
.section-label {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(4rem, 10vw, 10.8rem);
  line-height: 0.86;
  font-weight: 500;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

h1 span:nth-child(3) {
  font-size: 0.94em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.35rem, 5.2vw, 6.3rem);
  line-height: 0.94;
  font-weight: 500;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 16px;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  line-height: 1.02;
  font-weight: 600;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 34px;
  color: #121212;
  font-size: clamp(1.22rem, 2.1vw, 1.72rem);
  line-height: 1.3;
}

.green {
  color: var(--green);
}

.red {
  color: var(--red);
}

.hero-actions,
.closing-section {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

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

.button.secondary {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
  border-top: 1px solid var(--line);
}

.copy-block p,
.centered-section p {
  color: #161616;
  font-size: clamp(1.18rem, 2vw, 1.65rem);
  line-height: 1.34;
}

.copy-block p {
  margin-bottom: 24px;
}

.stat-strip {
  margin-top: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 12px 18px;
  align-items: baseline;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.stat-strip strong {
  font-size: clamp(2rem, 4vw, 4.6rem);
  line-height: 0.9;
  font-weight: 500;
  text-decoration: underline;
}

.stat-strip span {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.25;
}

.centered-section {
  max-width: 980px;
  text-align: center;
}

.centered-section h2 {
  margin-bottom: 32px;
}

.centered-section p {
  margin-bottom: 0;
}

.interface-showcase {
  width: min(1320px, calc(100% - 48px));
  margin: -28px auto 0;
  padding: 76px 0 150px;
}

.interface-copy {
  max-width: 760px;
  margin-bottom: 34px;
}

.interface-copy h2 {
  font-size: clamp(2.35rem, 5vw, 5.9rem);
}

.interface-stage {
  position: relative;
  min-height: clamp(610px, 68vw, 980px);
  padding-top: clamp(18px, 3vw, 42px);
}

.interface-frame {
  margin: 0;
  aspect-ratio: 16 / 9;
  border: 1px solid rgba(5, 5, 5, 0.12);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.22);
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.18);
  -webkit-backdrop-filter: blur(18px) saturate(1.18);
}

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

.overview-frame {
  position: absolute;
  left: 50%;
  top: clamp(180px, 20vw, 300px);
  z-index: 2;
  width: min(1180px, 92%);
  transform: translateX(-50%);
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.28);
}

.incident-frame {
  position: absolute;
  left: 50%;
  top: 0;
  z-index: 1;
  width: min(1040px, 82%);
  transform: translateX(-50%);
  box-shadow: 0 34px 105px rgba(0, 0, 0, 0.2);
}

.process-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 840px;
  margin: 0 auto 76px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4.8vw, 5.4rem);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.process-grid article {
  min-height: 360px;
  padding: 30px 28px 34px;
}

.process-grid article + article {
  border-left: 1px solid var(--line);
}

.step-number {
  width: 56px;
  height: 56px;
  margin-bottom: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 1.18rem;
}

.process-grid p {
  margin-bottom: 0;
  color: #1a1a1a;
  font-size: clamp(1rem, 1.35vw, 1.26rem);
  line-height: 1.28;
}

.closing-section {
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-bottom: 130px;
}

.closing-section div {
  max-width: 780px;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-shell.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.contact-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid rgba(5, 5, 5, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 38px 110px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(22px) saturate(1.2);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
}

.contact-modal h2 {
  margin-bottom: 28px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 2rem;
  line-height: 1;
}

.contact-modal form {
  display: grid;
  gap: 16px;
}

.contact-modal label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-modal input,
.contact-modal textarea {
  width: 100%;
  border: 1px solid rgba(5, 5, 5, 0.18);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  letter-spacing: 0;
  outline: 0;
}

.contact-modal input {
  height: 46px;
  padding: 0 13px;
}

.contact-modal textarea {
  min-height: 136px;
  padding: 12px 13px;
  resize: vertical;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
  border-color: var(--ink);
}

.contact-modal .button {
  width: 100%;
  margin-top: 4px;
}

.form-note {
  min-height: 1.4em;
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

body.modal-open {
  overflow: hidden;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 12px rgba(0, 169, 92, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 169, 92, 0);
  }
}

@keyframes radar {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 920px) {
  .site-header {
    width: min(var(--max), calc(100% - 34px));
  }

  .site-header nav {
    display: none;
  }

  .section-pad {
    width: min(var(--max), calc(100% - 34px));
    padding: 74px 0;
  }

  .interface-showcase {
    width: min(var(--max), calc(100% - 34px));
    padding: 62px 0 92px;
  }

  .hero,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 24px;
  }

  h1 {
    font-size: clamp(4.4rem, 20vw, 8rem);
  }

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

  .process-grid article:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-grid article:nth-child(4) {
    border-top: 1px solid var(--line);
  }

  .stat-strip {
    grid-template-columns: auto 1fr;
  }
}

@media (max-width: 580px) {
  .header-action {
    display: none;
  }

  .section-pad {
    padding: 62px 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-copy {
    width: calc(100vw - 34px);
    max-width: calc(100vw - 34px);
  }

  h1 {
    font-size: clamp(3.35rem, 15vw, 4.8rem);
    line-height: 0.96;
  }

  h2 {
    font-size: clamp(2.55rem, 13vw, 4.1rem);
  }

  .hero-text {
    max-width: 100%;
    font-size: 1.12rem;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .closing-section {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .modal-shell {
    padding: 16px;
  }

  .interface-showcase {
    padding-bottom: 76px;
  }

  .interface-stage {
    min-height: auto;
    display: grid;
    gap: 18px;
    padding-top: 0;
  }

  .overview-frame,
  .incident-frame {
    position: static;
    width: 100%;
    transform: none;
  }

  .incident-frame {
    order: 1;
  }

  .overview-frame {
    order: 2;
  }

  .process-grid {
    display: block;
  }

  .process-grid article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .process-grid article {
    min-height: auto;
    padding: 28px 4px 34px;
  }

  .step-number {
    margin-bottom: 26px;
  }
}

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

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