:root {
  color-scheme: light;
  --bg: #f7f8f5;
  --ink: #10201d;
  --muted: #5d6d67;
  --line: #dce3dc;
  --surface: #ffffff;
  --accent: #e35235;
  --accent-dark: #b73822;
  --teal: #167c78;
  --green: #77a64b;
  --shadow: 0 20px 60px rgba(16, 32, 29, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(247, 248, 245, 0.88);
  border-bottom: 1px solid rgba(220, 227, 220, 0.8);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.panel-header,
.panel-stats,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.site-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
  min-height: calc(100vh - 73px);
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.hero-content {
  max-width: 760px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

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

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
}

.signal-panel {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 124, 120, 0.16), transparent 55%),
    var(--surface);
  box-shadow: var(--shadow);
}

.signal-panel::before {
  position: absolute;
  inset: 28px;
  content: "";
  border: 1px solid rgba(16, 32, 29, 0.08);
  background-image:
    linear-gradient(rgba(16, 32, 29, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 32, 29, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.panel-header,
.panel-stats {
  position: relative;
  z-index: 2;
  justify-content: space-between;
  font-weight: 800;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(119, 166, 75, 0.18);
}

.signal-map {
  position: relative;
  z-index: 1;
  height: 350px;
}

.node,
.link {
  position: absolute;
  display: block;
}

.node {
  z-index: 2;
  width: 30px;
  height: 30px;
  border: 7px solid var(--surface);
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 8px 30px rgba(22, 124, 120, 0.35);
}

.node-a {
  left: 14%;
  top: 30%;
}

.node-b {
  left: 44%;
  top: 16%;
  background: var(--accent);
}

.node-c {
  left: 62%;
  top: 54%;
}

.node-d {
  left: 24%;
  top: 72%;
  background: var(--green);
}

.link {
  height: 3px;
  transform-origin: left center;
  background: rgba(16, 32, 29, 0.18);
}

.link-ab {
  left: 19%;
  top: 34%;
  width: 32%;
  transform: rotate(-26deg);
}

.link-bc {
  left: 49%;
  top: 23%;
  width: 40%;
  transform: rotate(58deg);
}

.link-cd {
  left: 31%;
  top: 77%;
  width: 36%;
  transform: rotate(-28deg);
}

.panel-stats {
  gap: 16px;
}

.panel-stats div {
  flex: 1;
  padding: 18px;
  border: 1px solid rgba(220, 227, 220, 0.85);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.panel-stats strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.panel-stats span {
  color: var(--muted);
  font-size: 0.88rem;
}

.section {
  padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.mission {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.9fr);
  gap: clamp(24px, 6vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mission p:last-child,
.contact p {
  color: var(--muted);
  font-size: 1.12rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.feature-card {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 48px;
  color: var(--accent-dark);
  font-weight: 900;
}

.feature-card p {
  color: var(--muted);
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: var(--ink);
  color: #fff;
}

.contact p,
.contact .section-kicker {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 73px;
    right: 20px;
    display: none;
    width: min(260px, calc(100vw - 40px));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav a {
    padding: 12px;
  }

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

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

  .hero {
    min-height: auto;
  }

  .signal-panel {
    min-height: 430px;
  }

  .signal-map {
    height: 260px;
  }

  .contact,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding-inline: 16px;
  }

  .hero,
  .section {
    padding-inline: 16px;
  }

  .panel-stats {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
