:root {
  --bg: #08111f;
  --bg-2: #101b2e;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --ink: #111827;
  --muted: #657386;
  --line: #d7dfeb;
  --cyan: #22d3ee;
  --teal: #14b8a6;
  --lime: #a3e635;
  --blue: #2563eb;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.26);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  overflow-x: hidden;
}

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

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.design-counter {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 80;
  padding: 9px 12px;
  color: #06111f;
  background: var(--lime);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  box-shadow: 0 14px 30px rgba(163, 230, 53, 0.26);
}

.header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
  background: rgba(8, 17, 31, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

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

.brand-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), var(--lime));
  border-radius: var(--radius);
  font-weight: 950;
}

.brand span:last-child {
  display: grid;
  line-height: 1.12;
}

.brand small {
  color: #a8b3c5;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-right: 104px;
  color: #cbd5e1;
}

.nav a {
  text-decoration: none;
}

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

.menu {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 82px);
  padding: 86px 0 96px;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    radial-gradient(circle at 76% 20%, rgba(34, 211, 238, 0.22), transparent 28%),
    radial-gradient(circle at 10% 80%, rgba(37, 99, 235, 0.18), transparent 35%);
  background-size: 46px 46px, 46px 46px, auto, auto;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: 56px;
  align-items: center;
}

.hero-copy,
.command-panel,
.system-grid > *,
.proof-grid > *,
.contact-grid > *,
.process-grid > *,
.module-grid > * {
  min-width: 0;
}

.kicker,
.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 8px 11px;
  color: #06111f;
  background: var(--cyan);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
  text-wrap: balance;
}

h1 {
  max-width: 950px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.92;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 4.45rem);
  line-height: 1;
}

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

.lead {
  max-width: 760px;
  color: #c6d2e3;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  border-radius: var(--radius);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
}

.primary {
  color: #06111f;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
}

.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.command-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: rgba(16, 27, 46, 0.78);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel-top,
.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel-top span {
  color: #9fb0c8;
}

.panel-top strong {
  color: var(--lime);
}

.signal {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 24px;
  background: #0b1628;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}

.signal span {
  color: #9fb0c8;
}

.signal strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  font-size: 5.2rem;
  line-height: 1;
}

.ring {
  position: absolute;
  right: -28px;
  bottom: -40px;
  width: 190px;
  height: 190px;
  border: 28px solid rgba(34, 211, 238, 0.18);
  border-radius: 50%;
}

.panel-list {
  display: grid;
  gap: 12px;
}

.panel-list div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #d8e3f3;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
}

.panel-list span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lime);
}

.light-section,
.modules,
.contact {
  color: var(--ink);
  background: var(--surface);
}

.system-grid,
.proof-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
  padding: 94px 0;
}

.light-section .eyebrow,
.section .eyebrow,
.modules .eyebrow,
.proof .eyebrow,
.contact .eyebrow {
  color: #052e2b;
  background: #ccfbf1;
}

.system-copy {
  color: var(--muted);
  font-size: 1.1rem;
}

.mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.mini-stats span {
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.section {
  padding: 96px 0;
}

.section-head {
  margin-bottom: 34px;
}

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

.process-grid article,
.module-grid article,
.proof-cards article,
form {
  padding: 24px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
}

.process-grid span {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--cyan);
  font-weight: 950;
}

.modules {
  padding: 96px 0;
}

.module-grid {
  grid-template-columns: 1fr 1fr 0.9fr;
}

.module-grid article,
form {
  background: var(--surface-2);
  border-color: var(--line);
}

.module-grid ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.highlight-card {
  color: var(--white);
  background: linear-gradient(135deg, #0f172a, #0f766e) !important;
}

.highlight-card strong {
  display: block;
  margin-top: 20px;
  color: var(--lime);
}

.proof {
  background: var(--bg-2);
}

.proof-grid {
  color: var(--white);
}

.proof-grid p {
  color: #c6d2e3;
}

.proof-cards {
  display: grid;
  gap: 16px;
}

.proof-cards span {
  color: var(--cyan);
  font-weight: 900;
  text-transform: uppercase;
}

.proof-cards strong {
  display: block;
  margin: 10px 0;
  font-size: 1.35rem;
}

.contact-grid {
  color: var(--ink);
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
}

.footer {
  padding: 28px 0;
  color: #c6d2e3;
  background: #050b14;
}

.footer a {
  color: var(--white);
}

@media (max-width: 940px) {
  .menu {
    display: grid;
    gap: 4px;
    width: 48px;
    height: 48px;
    place-content: center;
    color: var(--white);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius);
  }

  .menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--white);
  }

  .menu em {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 82px 0 auto;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    margin-right: 0;
    padding: 16px 20px 24px;
    background: var(--bg);
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }

  .nav.open {
    display: grid;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .hero-grid,
  .system-grid,
  .proof-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 36px), 1160px);
  }

  .design-counter {
    top: auto;
    right: 12px;
    bottom: 12px;
  }

  .hero,
  .section,
  .modules {
    padding: 68px 0;
  }

  .system-grid,
  .proof-grid,
  .contact-grid {
    padding: 68px 0;
  }

  h1 {
    font-size: clamp(2.05rem, 8.8vw, 2.35rem);
    line-height: 1;
    overflow-wrap: anywhere;
    text-wrap: auto;
  }

  h2 {
    font-size: 1.95rem;
  }

  .lead {
    font-size: 1rem;
  }

  .actions,
  .button,
  .process-grid,
  .module-grid,
  .footer-grid {
    width: 100%;
  }

  .actions,
  .process-grid,
  .module-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .command-panel,
  .signal,
  .process-grid article,
  .module-grid article,
  .proof-cards article,
  form {
    padding: 18px;
  }

  .signal strong {
    font-size: clamp(3.6rem, 17vw, 4.4rem);
  }

  .panel-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .ring {
    right: -64px;
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 400px) {
  .container {
    width: calc(100% - 24px);
  }

  .header {
    padding-inline: 14px;
  }

  .brand {
    gap: 10px;
  }

  .brand-icon {
    width: 46px;
    height: 46px;
  }

  .brand strong,
  .brand small {
    max-width: 230px;
  }

  .kicker,
  .eyebrow {
    max-width: 100%;
    white-space: normal;
  }

  .design-counter {
    right: 10px;
    bottom: 10px;
    max-width: calc(100vw - 20px);
  }
}
