:root {
  --red: #d71920;
  --red-dark: #a90f17;
  --ink: #111318;
  --ink-soft: #2b2f38;
  --muted: #667085;
  --line: #e8eaf0;
  --paper: #ffffff;
  --paper-soft: #f6f7f9;
  --smoke: #f0f2f5;
  --charcoal: #171a21;
  --charcoal-2: #222733;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(17, 19, 24, 0.14);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

a:hover {
  color: var(--red);
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 1000;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  border-radius: 999px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(232, 234, 240, 0.86);
}

.nav-shell {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: var(--paper);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 12px 30px rgba(215, 25, 32, 0.35);
}

.brand-text {
  font-size: 1.2rem;
}

.brand-text strong {
  color: var(--red);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
}

.site-nav a:hover {
  color: var(--red);
  background: rgba(215, 25, 32, 0.08);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  position: relative;
  overflow: hidden;
  min-height: 660px;
  padding: 78px 0 74px;
  background:
    radial-gradient(circle at 82% 14%, rgba(215, 25, 32, 0.22), transparent 32%),
    radial-gradient(circle at 14% 20%, rgba(31, 36, 48, 0.14), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.54;
  background-image:
    linear-gradient(rgba(17, 19, 24, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 90%);
}

.hero::before {
  content: "";
  position: absolute;
  right: -20vw;
  top: 120px;
  width: 64vw;
  height: 64vw;
  border: 1px solid rgba(215, 25, 32, 0.22);
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  right: 5vw;
  top: 210px;
  width: 36vw;
  height: 36vw;
  border: 1px solid rgba(17, 19, 24, 0.1);
  border-radius: 50%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 64px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  line-height: 1.03;
  letter-spacing: -0.052em;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 5.2vw, 5.2rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.95rem, 3.45vw, 3.7rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: clamp(1.02rem, 1.45vw, 1.18rem);
}

.hero-actions,
.contact-direct {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
  color: var(--paper);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  box-shadow: 0 16px 30px rgba(215, 25, 32, 0.26);
}

.btn-primary:hover {
  color: var(--paper);
  box-shadow: 0 20px 38px rgba(215, 25, 32, 0.34);
}

.btn-secondary {
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(17, 19, 24, 0.12);
}

.btn-light {
  color: var(--red);
  background: var(--paper);
}

.hero-panel {
  position: relative;
  padding: 28px;
  color: var(--paper);
  background:
    linear-gradient(145deg, rgba(34, 39, 51, 0.98), rgba(17, 19, 24, 0.98)),
    var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -120px -90px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(215, 25, 32, 0.38);
  filter: blur(8px);
}

.panel-topline,
.panel-footer,
.signal-card {
  position: relative;
  z-index: 1;
}

.panel-topline,
.signal-card,
.strip-grid,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-topline {
  margin-bottom: 22px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pulse {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a7f3d0;
}

.pulse span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.12);
}

.signal-card {
  min-height: 74px;
  margin-bottom: 12px;
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
}

.signal-card.active {
  background: rgba(215, 25, 32, 0.18);
  border-color: rgba(215, 25, 32, 0.34);
}

.signal-card strong {
  color: var(--paper);
  font-size: 1.1rem;
}

.panel-footer {
  margin-top: 20px;
  padding-top: 18px;
  color: rgba(255, 255, 255, 0.66);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
}

.intro-strip {
  position: relative;
  z-index: 2;
  margin-top: -44px;
}

.strip-grid {
  gap: 20px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 22px 70px rgba(17, 19, 24, 0.12);
}

.strip-grid div {
  flex: 1;
  min-width: 180px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}

.strip-grid div:last-child {
  border-right: 0;
}

.metric {
  display: block;
  color: var(--red);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
}

.strip-grid span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.section {
  padding: 96px 0;
}

.split-inner,
.capabilities-grid,
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 72px;
}

.section-copy p:not(.eyebrow),
.section-heading p,
.capability-item p,
.feature-card p {
  color: var(--muted);
}

.section-copy p:not(.eyebrow),
.section-heading p {
  font-size: 1.08rem;
}

.diagram {
  position: relative;
  min-height: 420px;
  padding: 28px;
  background:
    radial-gradient(circle at 70% 20%, rgba(215, 25, 32, 0.14), transparent 26%),
    linear-gradient(135deg, var(--paper-soft), #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.diagram::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 19, 24, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
}

.node,
.line {
  position: absolute;
}

.node {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 142px;
  min-height: 76px;
  padding: 14px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(17, 19, 24, 0.1);
  font-weight: 900;
  text-align: center;
}

.node-cloud { top: 48px; left: 50px; }
.node-core {
  top: 158px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--paper);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  border-color: transparent;
}
.node-edge { right: 54px; top: 72px; }
.node-last { right: 90px; bottom: 58px; }

.line {
  z-index: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(215, 25, 32, 0), rgba(215, 25, 32, 0.78), rgba(215, 25, 32, 0));
  transform-origin: left center;
}

.line-one {
  width: 165px;
  left: 168px;
  top: 120px;
  transform: rotate(31deg);
}

.line-two {
  width: 175px;
  left: calc(50% + 4px);
  top: 182px;
  transform: rotate(-21deg);
}

.line-three {
  width: 172px;
  left: calc(50% + 6px);
  top: 236px;
  transform: rotate(57deg);
}

.dark-section {
  color: var(--paper);
  background:
    radial-gradient(circle at 18% 16%, rgba(215, 25, 32, 0.26), transparent 32%),
    linear-gradient(180deg, var(--charcoal) 0%, #0f1117 100%);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 46px;
}

.dark-section .section-heading p,
.dark-section .feature-card p {
  color: rgba(255, 255, 255, 0.68);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  min-height: 310px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
}

.feature-card .icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 26px;
  color: var(--paper);
  background: rgba(215, 25, 32, 0.9);
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 900;
}

.capability-list {
  display: grid;
  gap: 16px;
}

.capability-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 20px;
  padding: 22px;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.capability-item > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--red);
  background: rgba(215, 25, 32, 0.08);
  border-radius: 14px;
  font-weight: 900;
}

.capability-item h3,
.capability-item p {
  margin-bottom: 0;
}

.capability-item h3 {
  margin-bottom: 6px;
}

.cta-band {
  color: var(--paper);
  background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.cta-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 52px 0;
}

.cta-inner h2 {
  margin-bottom: 8px;
  font-size: clamp(1.85rem, 3.1vw, 3rem);
}

.cta-inner p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.contact-section {
  background: var(--paper-soft);
}

.contact-direct {
  margin-top: 26px;
}

.contact-direct a {
  padding: 12px 14px;
  color: var(--red);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.contact-form {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 70px rgba(17, 19, 24, 0.09);
}

.contact-form label {
  display: block;
  margin: 16px 0 8px;
  color: var(--ink-soft);
  font-weight: 800;
}

.contact-form label:first-child {
  margin-top: 0;
}

input,
textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  font: inherit;
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  background: var(--paper);
  border-color: rgba(215, 25, 32, 0.46);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.12);
}

.contact-form button {
  width: 100%;
  margin-top: 22px;
}

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

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  min-height: 1.5em;
  margin: 16px 0 0;
  font-size: 0.94rem;
  font-weight: 800;
}

.form-status[data-type="success"] {
  color: #047857;
}

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

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

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.footer-inner {
  gap: 20px;
}

.footer-brand .brand-text {
  color: var(--paper);
}

.footer-inner p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-inner,
  .split-inner,
  .capabilities-grid,
  .contact-grid,
  .cta-inner {
    grid-template-columns: 1fr;
  }

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

  .cta-inner {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 76px 14px auto 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
    background: var(--paper-soft);
  }

  .nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero {
    padding-bottom: 70px;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.55rem, 11vw, 3.85rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8.5vw, 2.85rem);
  }

  .hero-panel {
    padding: 20px;
  }

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

  .strip-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .strip-grid div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .section {
    padding: 82px 0;
  }

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

  .feature-card {
    min-height: auto;
  }

  .diagram {
    min-height: 520px;
  }

  .node {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
  }

  .node-cloud { top: 36px; }
  .node-core { top: 170px; }
  .node-edge { top: 304px; }
  .node-last { bottom: 36px; }

  .line-one,
  .line-two,
  .line-three {
    width: 2px;
    height: 86px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .line-one { top: 112px; }
  .line-two { top: 246px; }
  .line-three { bottom: 112px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero-actions,
  .contact-direct {
    flex-direction: column;
  }

  .btn,
  .contact-direct a {
    width: 100%;
  }

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

  .strip-grid div:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .strip-grid div:last-child {
    border-bottom: 0;
  }

  .capability-item {
    grid-template-columns: 1fr;
  }
}
