/* ProMesh.ai — public marketing site
   Design tokens tuned to the reference composition: deep navy base,
   electric-blue accent, glassmorphism, restrained glow. */

:root {
  --bg-0: #06131f;
  --bg-1: #071c2c;
  --bg-2: #0b2234;
  --bg-deep: #040d16;
  --accent: #1787ff;
  --accent-bright: #3f9dff;
  --accent-soft: #58a9ff;
  --cyan: #58c4ff;
  --text-hi: #f2f7fc;
  --text-mid: #b6c8da;
  --text-low: #7d93a8;
  --line: rgba(122, 172, 222, 0.14);
  --line-strong: rgba(122, 172, 222, 0.26);
  --glow-blue: rgba(23, 135, 255, 0.28);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 76px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container: 1240px;
  --gutter: 32px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-mid);
  background: var(--bg-0);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: rgba(23, 135, 255, 0.35);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transform: translateY(-64px);
}

.skip-link:focus {
  transform: translateY(0);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(5, 15, 25, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--accent-bright);
}

.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
  filter: drop-shadow(0 0 8px rgba(63, 157, 255, 0.45));
}

.brand-mark-nodes {
  fill: #9fd4ff;
}

.brand-word {
  font-size: 19px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text-hi);
  white-space: nowrap;
}

.brand-ai {
  color: var(--accent-bright);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  display: inline-block;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: #b9cbdd;
  transition: color 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 6px;
  height: 1.5px;
  background: var(--accent-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.main-nav a:hover {
  color: var(--text-hi);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-hi);
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--line);
  background: rgba(5, 15, 25, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  padding: 10px var(--gutter) 22px;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 550;
  color: var(--text-hi);
  border-bottom: 1px solid var(--line);
}

.mobile-signin {
  margin-top: 16px;
  width: 100%;
  justify-content: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn-primary {
  background: linear-gradient(180deg, #2c95ff, #1379ea);
  color: #fff;
  box-shadow: 0 8px 24px rgba(23, 135, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 12px 32px rgba(23, 135, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-light {
  background: #f4f8fb;
  color: #0f2740;
  box-shadow: 0 8px 22px rgba(2, 10, 18, 0.45);
}

.btn-light:hover {
  transform: translateY(-1px);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(2, 10, 18, 0.55);
}

.ms-logo {
  width: 16px;
  height: 16px;
}

.btn-ghost,
.btn-outline {
  border-color: var(--line-strong);
  color: #d9e7f4;
  background: rgba(10, 28, 45, 0.25);
}

.btn-ghost:hover,
.btn-outline:hover {
  background: rgba(90, 155, 220, 0.12);
  border-color: rgba(140, 190, 240, 0.4);
}

.btn-signin {
  padding: 10px 20px;
  min-height: 44px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: clamp(660px, 94vh, 940px);
  display: flex;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media picture {
  position: absolute;
  inset: 0;
  display: block;
}

.hero-scene {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 38%;
}

.hero-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.net-lines path {
  stroke-width: 1;
  opacity: 0.32;
}

.net-dash {
  stroke-dasharray: 6 8;
}

.net-nodes circle {
  fill: #79c4ff;
  opacity: 0.75;
}

.net-marks path {
  stroke-width: 1;
  opacity: 0.4;
  fill: none;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 11, 19, 0.88) 0%, rgba(3, 11, 19, 0.55) 32%, rgba(3, 11, 19, 0.1) 58%, rgba(3, 11, 19, 0.32) 100%),
    linear-gradient(180deg, rgba(2, 9, 15, 0.55) 0%, rgba(2, 9, 15, 0) 24%, rgba(2, 9, 15, 0) 60%, var(--bg-0) 99%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 72px;
}

/* Glass panel */

.glass-panel {
  width: min(620px, 100%);
  padding: clamp(30px, 3.4vw, 46px);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(9, 26, 42, 0.68), rgba(6, 18, 30, 0.52));
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid rgba(125, 180, 235, 0.17);
  box-shadow:
    0 30px 80px rgba(1, 6, 12, 0.55),
    0 0 70px rgba(23, 135, 255, 0.08),
    inset 0 1px 0 rgba(185, 220, 255, 0.14);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.badge-ai {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(96, 165, 255, 0.38);
  background: rgba(23, 135, 255, 0.1);
  color: #9fd0ff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 22px rgba(23, 135, 255, 0.16);
}

.badge-ai svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  flex: none;
}

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(88, 196, 255, 0.32);
  background: rgba(9, 32, 50, 0.55);
  color: #7fd0ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(88, 196, 255, 0.9);
}

.badge-status-lg {
  padding: 9px 18px;
  font-size: 11.5px;
}

.hero-title {
  margin: 24px 0 18px;
  font-size: clamp(42px, 4.9vw, 71px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.026em;
  color: var(--text-hi);
  text-wrap: balance;
}

.hero-title .accent {
  color: var(--accent-bright);
  text-shadow: 0 0 26px rgba(63, 157, 255, 0.55);
}

.hero-copy p {
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--text-mid);
  max-width: 54ch;
}

.hero-copy p + p {
  margin-top: 12px;
}

.hero-copy strong {
  color: #e2ecf6;
  font-weight: 600;
}

.accent-text {
  color: var(--accent-soft);
  font-weight: 600;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-low);
}

.hero-trust svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: #6f9ec9;
}

/* Floating intelligence cards */

.hero-cards {
  position: absolute;
  top: 50%;
  right: clamp(16px, 4.5vw, 72px);
  transform: translateY(-52%);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  width: 320px;
  pointer-events: none;
}

.float-card {
  border-radius: var(--radius-md);
  padding: 15px 18px;
  background: linear-gradient(165deg, rgba(9, 24, 39, 0.78), rgba(6, 17, 28, 0.62));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(125, 180, 235, 0.18);
  box-shadow: 0 18px 44px rgba(1, 6, 12, 0.5), inset 0 1px 0 rgba(185, 220, 255, 0.12);
  min-width: 210px;
}

.float-card-status {
  margin-right: 26px;
}

.float-card-ai {
  align-self: flex-start;
  margin-left: -6px;
}

.float-card-quality {
  margin-right: 44px;
}

.float-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  color: #7d99b4;
  margin-bottom: 8px;
}

.float-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #e9f2fa;
}

.float-row-split {
  justify-content: space-between;
  gap: 14px;
}

.float-big {
  margin-top: 4px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}

.float-bar {
  margin-top: 8px;
  height: 4px;
  border-radius: 4px;
  background: rgba(125, 180, 235, 0.16);
  overflow: hidden;
}

.float-bar-fill {
  display: block;
  width: 92%;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1787ff, #58c4ff);
  box-shadow: 0 0 12px rgba(63, 157, 255, 0.7);
}

.float-sub {
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-low);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.dot-green {
  background: #46d68f;
  box-shadow: 0 0 9px rgba(70, 214, 143, 0.8);
}

.chip {
  padding: 3.5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-blue {
  color: #79c0ff;
  background: rgba(23, 135, 255, 0.14);
  border: 1px solid rgba(88, 160, 255, 0.35);
}

.chip-green {
  color: #62e2a4;
  background: rgba(60, 214, 140, 0.12);
  border: 1px solid rgba(80, 220, 150, 0.32);
}

/* ---------- Trust strip ---------- */

.trust-strip {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 0 34px;
}

.strip-label {
  text-align: center;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-low);
}

.strip-items {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px 28px;
}

.strip-items li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 550;
  letter-spacing: 0.02em;
  color: #8aa2b9;
  transition: color 0.25s ease;
}

.strip-items li:hover {
  color: #cfe0f0;
}

.strip-items svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

/* ---------- Capability cards ---------- */

.capabilities {
  background: var(--bg-0);
  padding: 64px 0 72px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.capability {
  padding: 4px 34px;
}

.capability:first-child {
  padding-left: 0;
}

.capability:last-child {
  padding-right: 0;
}

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

.capability-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(23, 135, 255, 0.1);
  border: 1px solid rgba(88, 160, 255, 0.28);
  box-shadow: 0 0 24px rgba(23, 135, 255, 0.18);
}

.capability-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.capability h2 {
  margin: 18px 0 8px;
  font-size: 16.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text-hi);
}

.capability p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-low);
}

/* ---------- Sections ---------- */

.section-head {
  max-width: 560px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-soft);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(28px, 3.1vw, 40px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  text-wrap: balance;
}

.solutions {
  background: linear-gradient(180deg, var(--bg-0), var(--bg-1));
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.solution-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.solution-card {
  padding: 28px 28px 30px;
  border-radius: 16px;
  background: rgba(11, 34, 52, 0.5);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-3px);
  border-color: rgba(88, 160, 255, 0.4);
  box-shadow: 0 18px 44px rgba(1, 6, 12, 0.45), 0 0 34px rgba(23, 135, 255, 0.1);
}

.solution-card h3 {
  font-size: 17px;
  font-weight: 650;
  color: var(--text-hi);
  margin-bottom: 10px;
}

.solution-card p {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--text-low);
}

.about {
  background: var(--bg-1);
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.about-layout {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}

.about-copy p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-mid);
}

.about-copy p:first-child {
  color: #d6e3f0;
}

.about-copy p + p {
  margin-top: 18px;
}

/* ---------- Launch ---------- */

.launch {
  position: relative;
  background:
    radial-gradient(720px 340px at 50% 12%, rgba(23, 135, 255, 0.1), rgba(23, 135, 255, 0) 70%),
    var(--bg-0);
  border-top: 1px solid var(--line);
  padding: 116px 0 124px;
  overflow: hidden;
}

.launch-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.launch h2 {
  margin: 26px 0 16px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--text-hi);
  text-wrap: balance;
}

.launch p {
  max-width: 58ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-mid);
}

.launch-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 34px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: #050f19;
  border-top: 1px solid var(--line);
  padding: 46px 0 26px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-tagline {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-low);
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.footer-nav a {
  display: inline-block;
  padding: 10px 12px;
  font-size: 14px;
  color: #92a9bf;
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--text-hi);
}

.footer-legal {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer-legal p {
  font-size: 12.5px;
  color: #63798e;
}

/* ---------- Modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 14, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.modal-panel {
  position: relative;
  width: min(600px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 36px clamp(24px, 4vw, 40px);
  border-radius: 20px;
  background: linear-gradient(165deg, rgba(10, 26, 42, 0.97), rgba(6, 17, 28, 0.97));
  border: 1px solid rgba(125, 180, 235, 0.2);
  box-shadow: 0 40px 110px rgba(0, 4, 9, 0.7), 0 0 70px rgba(23, 135, 255, 0.1), inset 0 1px 0 rgba(185, 220, 255, 0.14);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #9db4c9;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.modal-close:hover {
  color: var(--text-hi);
  background: rgba(120, 175, 235, 0.1);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal-mark {
  width: 42px;
  height: 42px;
  margin: 6px auto 18px;
  color: var(--accent-bright);
  filter: drop-shadow(0 0 12px rgba(63, 157, 255, 0.5));
}

.modal-mark .brand-mark-nodes {
  fill: #9fd4ff;
}

.modal-panel h2 {
  font-size: 23px;
  font-weight: 750;
  letter-spacing: -0.015em;
  color: var(--text-hi);
}

.modal-copy {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.62;
  color: var(--text-mid);
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.text-link {
  color: var(--accent-soft);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Request form */

.request-form .badge-status {
  margin-bottom: 16px;
}

.form-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: #a8bcd0;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text-hi);
  background: rgba(5, 15, 25, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 L6 6.5 L11 1.5' fill='none' stroke='%237d93a8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.form-field textarea {
  resize: vertical;
  min-height: 84px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: rgba(63, 157, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(23, 135, 255, 0.18);
}

.field-invalid {
  border-color: rgba(255, 107, 100, 0.7) !important;
}

.form-error {
  margin-top: 14px;
  font-size: 13.5px;
  color: #ff9a94;
}

.form-note {
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--text-low);
}

.request-success {
  text-align: center;
  padding: 18px 0 6px;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #5ce0a1;
  background: rgba(60, 214, 140, 0.1);
  border: 1px solid rgba(80, 220, 150, 0.35);
  box-shadow: 0 0 30px rgba(60, 214, 140, 0.2);
}

.success-mark svg {
  width: 24px;
  height: 24px;
}

.request-success .modal-actions {
  justify-content: center;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Subpages (privacy / 404) ---------- */

.subpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.subpage .site-header {
  position: static;
}

.subpage-main {
  flex: 1;
  padding: 72px 0 96px;
}

.subpage-copy {
  max-width: 720px;
}

.subpage-copy h1 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  margin-bottom: 10px;
}

.subpage-updated {
  font-size: 13px;
  color: var(--text-low);
  margin-bottom: 28px;
}

.subpage-copy p + p {
  margin-top: 16px;
}

.subpage-legal {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.notfound {
  max-width: 560px;
  text-align: center;
  padding-top: 10vh;
}

.notfound .modal-mark {
  width: 54px;
  height: 54px;
}

.notfound h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-hi);
  margin-bottom: 12px;
}

.notfound p + p {
  margin-top: 26px;
}

/* ---------- Entrance + ambient motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  html.js [data-animate] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  html.js [data-animate].in-view {
    opacity: 1;
    transform: translateY(0);
  }

  .float-card {
    animation: floaty 10s ease-in-out infinite;
  }

  .float-card-ai {
    animation-duration: 12s;
    animation-delay: -3.5s;
  }

  .float-card-quality {
    animation-duration: 11s;
    animation-delay: -6s;
  }

  .status-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(88, 196, 255, 0.7);
    animation: pulse 2.6s ease-out infinite;
  }

  .net-nodes circle {
    animation: shimmer 5s ease-in-out infinite;
  }

  .net-nodes circle:nth-child(2) { animation-delay: -1.2s; }
  .net-nodes circle:nth-child(3) { animation-delay: -2.4s; }
  .net-nodes circle:nth-child(4) { animation-delay: -3.1s; }
  .net-nodes circle:nth-child(5) { animation-delay: -4.2s; }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

@keyframes shimmer {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.95; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
  .hero-cards {
    width: 270px;
    right: 14px;
  }

  .float-card-status { margin-right: 8px; }
  .float-card-quality { margin-right: 20px; }

  .capability-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 0;
  }

  .capability:nth-child(odd) {
    padding-left: 0;
  }

  .capability:nth-child(even) {
    padding-right: 0;
  }

  .capability:nth-child(3) {
    border-left: 0;
  }
}

@media (max-width: 960px) {
  .main-nav,
  .btn-signin {
    display: none;
  }

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

  .hero {
    min-height: 0;
  }

  .hero-layout {
    padding-top: min(40vh, 360px);
    padding-bottom: 40px;
  }

  .hero-scene {
    object-position: 82% 30%;
  }

  .hero-cards {
    top: calc(var(--header-h) + 26px);
    right: 18px;
    transform: none;
    width: auto;
  }

  .float-card-status,
  .float-card-quality {
    display: none;
  }

  .float-card-ai {
    margin: 0;
    padding: 12px 15px;
    min-width: 0;
  }

  .float-sub {
    font-size: 11px;
  }

  .glass-panel {
    width: 100%;
  }

  .solution-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 20px;
  }

  .brand-word {
    font-size: 17.5px;
  }

  .brand-mark {
    width: 27px;
    height: 27px;
  }

  .hero-title {
    font-size: clamp(37px, 10.4vw, 46px);
  }

  .badge-ai,
  .badge-status {
    font-size: 10px;
    letter-spacing: 0.1em;
    padding: 7px 12px;
  }

  .hero-copy p {
    font-size: 15.5px;
  }

  .hero-ctas .btn {
    flex: 1 1 100%;
  }

  .strip-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
    justify-items: start;
  }

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

  .capability {
    display: grid;
    grid-template-columns: 44px 1fr;
    column-gap: 18px;
    padding: 22px 0;
  }

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

  .capability h2 {
    margin: 0 0 6px;
    grid-column: 2;
  }

  .capability p {
    grid-column: 2;
  }

  .capability-icon {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .capabilities {
    padding: 34px 0 40px;
  }

  .solutions,
  .about {
    padding: 64px 0;
  }

  .launch {
    padding: 78px 0 88px;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 18px;
  }

  .footer-nav a {
    padding: 10px 14px 10px 0;
  }
}
