:root {
  color-scheme: light;
  --ink: #171717;
  --muted: #5f6468;
  --paper: #ffffff;
  --mist: #f4f6f5;
  --line: #d8ded9;
  --road: #202426;
  --signal: #d9151f;
  --gold: #f3b31a;
  --green: #176a42;
  --focus: #0c6fb4;
  --shadow: 0 16px 42px rgba(10, 16, 20, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { min-height: 44px; }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 16px;
  z-index: 50;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 14px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-140%);
  transition: opacity 120ms ease, transform 120ms ease;
}
.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(255,255,255,0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand {
  display: grid;
  text-decoration: none;
  line-height: 1.05;
}
.brand strong { font-size: 1.35rem; }
.brand span { color: var(--muted); font-size: 0.82rem; font-weight: 800; }
.top-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-weight: 850;
}
.top-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
}
.top-nav a:hover { color: var(--signal); }
.menu-button {
  display: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  font-weight: 900;
}
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
  gap: clamp(24px, 5vw, 60px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: clamp(48px, 8vw, 104px) clamp(16px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(120deg, rgba(0,0,0,0.95), rgba(25,29,31,0.9)),
    linear-gradient(155deg, transparent 0 54%, rgba(243,179,26,0.9) 54.2% 55.2%, transparent 55.4%),
    radial-gradient(circle at 80% 20%, rgba(217,21,31,0.22), transparent 28%),
    var(--road);
}
.hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -18% 36%;
  height: 44%;
  z-index: -1;
  transform: rotate(-8deg);
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.16) 0 64px, transparent 64px 112px),
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0));
  border-top: 1px solid rgba(255,255,255,0.18);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.hero::after {
  content: "";
  position: absolute;
  right: clamp(14px, 4vw, 70px);
  bottom: clamp(18px, 5vw, 60px);
  z-index: -1;
  width: min(420px, 58vw);
  aspect-ratio: 2.6 / 1;
  border-radius: 8px;
  opacity: 0.24;
  background:
    linear-gradient(90deg, transparent 0 8%, #fff 8% 13%, transparent 13% 22%, #fff 22% 30%, transparent 30% 100%),
    linear-gradient(180deg, transparent 0 48%, #fff 48% 58%, transparent 58% 100%);
  filter: blur(0.2px);
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.9rem, 4vw, 3.3rem);
  line-height: 1.02;
}
h3 { margin: 0; font-size: 1.15rem; }
.lead {
  max-width: 760px;
  color: #f2f2ee;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}
.notice {
  color: #ffe39b;
  font-weight: 900;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--signal); color: #fff; }
.button.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.hero-panel,
.module-card,
.tier-card,
.request-form,
.packet-output,
.role-grid article,
.backend-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.hero-panel {
  padding: 20px;
}
.hero-panel ul,
.module-card ul {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
}
.band {
  padding: clamp(44px, 7vw, 88px) clamp(16px, 5vw, 72px);
}
.service-area {
  text-align: center;
  background: var(--mist);
  border-bottom: 1px solid var(--line);
}
.area-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.area-grid span {
  display: grid;
  place-items: center;
  min-height: 70px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 900;
}
.section-head {
  max-width: 860px;
  margin-bottom: 24px;
}
.section-head p,
.module-card p,
.tier-card p,
.split p,
.backend-grid p {
  color: var(--muted);
}
.label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}
.module-grid,
.pricing-grid,
.backend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.module-card,
.tier-card,
.backend-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}
.pricing {
  background: var(--mist);
}
.tier-card strong {
  color: var(--signal);
  font-size: 1.45rem;
}
.intake {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
  background: var(--road);
  color: #fff;
}
.intake .section-head {
  grid-column: 1 / -1;
}
.intake .section-head p {
  color: #d9dedb;
}
.request-form,
.packet-output {
  padding: 20px;
  color: var(--ink);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 850;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
}
textarea { resize: vertical; }
.wide { grid-column: 1 / -1; }
.checks {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.checks label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted);
}
.checks input {
  width: auto;
  min-height: auto;
  margin-top: 5px;
}
.form-error {
  min-height: 24px;
  color: var(--signal);
  font-weight: 900;
}
.packet-output pre {
  max-height: 520px;
  overflow: auto;
  padding: 14px;
  border-radius: 8px;
  background: #111;
  color: #e9f3ec;
  font-size: 0.82rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: start;
}
.role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
.role-grid article {
  padding: 16px;
}
.role-grid strong {
  display: block;
  text-transform: capitalize;
}
.role-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}
.backend {
  background: #f9faf9;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 22px clamp(16px, 5vw, 72px);
  background: var(--ink);
  color: #fff;
}
footer span {
  color: #d7ddd8;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }
  .top-nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
  }
  body.menu-open .top-nav {
    display: grid;
  }
  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero,
  .intake,
  .split {
    grid-template-columns: 1fr;
  }
  .area-grid,
  .module-grid,
  .pricing-grid,
  .backend-grid,
  .role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .band,
  footer {
    padding-left: 12px;
    padding-right: 12px;
  }
  h1 {
    font-size: clamp(2.35rem, 13vw, 3.5rem);
  }
  .area-grid,
  .module-grid,
  .pricing-grid,
  .backend-grid,
  .role-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .actions .button {
    width: 100%;
  }
  footer {
    display: grid;
  }
}
