:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-2: #eef3f8;
  --ink: #101828;
  --muted: #4b5565;
  --soft: #667085;
  --line: #dfe5ee;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-2: #0f766e;
  --neon-cyan: #22d3ee;
  --neon-teal: #2dd4bf;
  --neon-blue: #60a5fa;
  --neon-lime: #a3e635;
  --dark: #0b1220;
  --dark-2: #111827;
  --shadow: 0 22px 55px rgba(16, 24, 40, 0.1);
  --shadow-sm: 0 12px 28px rgba(16, 24, 40, 0.07);
  --radius: 8px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(34, 211, 238, 0.08), transparent 28%, rgba(163, 230, 53, 0.05) 74%, transparent),
    linear-gradient(180deg, rgba(248, 250, 252, 0), rgba(238, 243, 248, 0.58) 46%, rgba(248, 250, 252, 0) 100%),
    var(--bg);
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

main {
  position: relative;
  overflow: hidden;
}

main::before {
  position: fixed;
  inset: 72px 0 0;
  z-index: -1;
  background-image: url("../img/bladenox-logo.png");
  background-position: center 7vh;
  background-repeat: repeat-y;
  background-size: min(920px, 104vw) auto;
  content: "";
  opacity: 0.052;
  pointer-events: none;
}

main > * {
  position: relative;
  z-index: 1;
}

.section > .container,
.section-tight > .container,
.hero > .container,
.page-hero > .container {
  position: relative;
  z-index: 1;
}

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(223, 229, 238, 0.9);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(16px);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.55), rgba(163, 230, 53, 0.36), transparent);
  content: "";
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 40px, var(--container));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--dark), #1d4ed8);
  font-size: 0.92rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 550;
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-lime));
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  object-fit: cover;
  background: #050505;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.28), 0 0 22px rgba(34, 211, 238, 0.18);
}

.brand-name {
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name small {
  margin-top: 4px;
  color: var(--soft);
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.mobile-toggle span::before {
  transform: translateY(-6px);
}

.mobile-toggle span::after {
  transform: translateY(4px);
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-muted {
  border-block: 1px solid rgba(223, 229, 238, 0.72);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 250, 252, 0.9)),
    var(--surface-2);
}

.about-strip {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.brand-story {
  position: relative;
  z-index: 1;
}

.cta-section {
  padding-top: 40px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--neon-cyan);
  box-shadow: 0 0 14px rgba(34, 211, 238, 0.85);
  content: "";
}

.section-header {
  max-width: 760px;
  margin-bottom: 36px;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-size: clamp(2.65rem, 5.2vw, 4.45rem);
  font-weight: 780;
  background: linear-gradient(110deg, #07111f 0%, #0f172a 46%, #155e75 74%, #0f766e 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  font-weight: 740;
}

h3 {
  font-size: 1.05rem;
  font-weight: 720;
}

.lead {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.62;
}

.copy {
  color: var(--muted);
  font-size: 1rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, #07111f, #12304d 58%, #0f766e);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.24), 0 16px 34px rgba(15, 118, 110, 0.24), 0 0 28px rgba(34, 211, 238, 0.18);
}

.button-primary:hover {
  background: linear-gradient(135deg, #0b1220, #164e63 58%, #0f766e);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.42), 0 18px 42px rgba(15, 118, 110, 0.32), 0 0 34px rgba(34, 211, 238, 0.24);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.72);
}

.button-secondary:hover {
  border-color: #9aa4b2;
  background: #fff;
}

.button-light {
  color: var(--dark);
  background: #fff;
}

.button-ghost {
  color: #dbe7ff;
  border-color: rgba(255, 255, 255, 0.22);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(238, 243, 248, 0.46));
  background-size: 76px 76px, 76px 76px, auto;
}

.hero::before {
  position: absolute;
  inset: 0;
  background: none;
  content: "";
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 56px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
  color: var(--soft);
  font-size: 0.94rem;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.trust-pill::before {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-2);
  content: "";
}

.capability-strip {
  border-block: 1px solid rgba(34, 211, 238, 0.18);
  background: rgba(7, 17, 31, 0.94);
  backdrop-filter: blur(10px);
}

.capability-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
}

.capability-row span {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  color: #d8f8ff;
  font-size: 0.92rem;
  font-weight: 720;
  text-align: center;
}

.capability-row span + span {
  border-left: 1px solid rgba(34, 211, 238, 0.16);
}

.dashboard-visual {
  position: relative;
  min-height: 490px;
  padding: 18px;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow), 0 0 42px rgba(34, 211, 238, 0.12);
}

.dashboard-window {
  height: 100%;
  min-height: 452px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7f9fc);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #cbd5e1;
}

.visual-body {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 16px;
  padding: 18px;
}

.visual-panel {
  min-height: 128px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.visual-panel.dark {
  color: #fff;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(163, 230, 53, 0.06)),
    var(--dark);
  box-shadow: inset 0 0 0 1px rgba(34, 211, 238, 0.16);
}

.visual-label {
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.visual-panel.dark .visual-label {
  color: #b9c7d8;
}

.metric {
  margin-top: 12px;
  font-size: 2rem;
  font-weight: 780;
  line-height: 1;
}

.mini-bars {
  display: grid;
  align-items: end;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  height: 90px;
  margin-top: 20px;
}

.mini-bars span {
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, var(--neon-cyan), #0f766e);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.18);
}

.flow-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.flow-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.88rem;
}

.status {
  color: var(--accent-2);
  font-weight: 750;
}

.span-2 {
  grid-column: span 2;
}

.card {
  position: relative;
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(203, 213, 225, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.7), rgba(163, 230, 53, 0.42), transparent);
  content: "";
  opacity: 0.72;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow: var(--shadow), 0 0 34px rgba(34, 211, 238, 0.12);
}

.card p {
  margin-top: 12px;
  color: var(--muted);
}

.problem-card,
.outcome-card {
  position: relative;
  overflow: hidden;
}

.problem-card span {
  display: inline-flex;
  margin-bottom: 24px;
  color: rgba(14, 116, 144, 0.42);
  font-size: 2.35rem;
  font-weight: 780;
  line-height: 1;
}

.problem-card::after,
.outcome-card::after {
  position: absolute;
  right: -36px;
  bottom: -36px;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(34, 211, 238, 0.18);
  border-radius: 999px;
  content: "";
}

.card-kicker {
  margin-bottom: 22px;
  color: #0e7490;
  font-size: 0.78rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.service-card ul,
.check-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Form field improvements */
.form-card form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
}

.form-card input,
.form-card select,
.form-card textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

.form-card select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px; /* space for custom arrow */
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) calc(50% - 3px), calc(100% - 15px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  position: relative;
  z-index: 2;
}

.form-card select option {
  color: var(--ink) !important;
  background: #ffffff !important;
  padding: 6px 10px;
  font-weight: 600;
}

/* Stronger rules to override browser/system dropdown styling */
.form-card select,
.form-card select option {
  color: #0b1220 !important;
  background-color: #ffffff !important;
}

.form-card select:focus {
  outline: 3px solid rgba(37,99,235,0.16);
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.12);
}

.form-card textarea { min-height: 120px; }

.service-card li,
.check-list li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
}

.service-card li::before,
.check-list li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--neon-cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.52);
  content: "";
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 60px;
}

.dark-band {
  position: relative;
  overflow: hidden;
  color: #dbe7ff;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(163, 230, 53, 0.08)),
    linear-gradient(135deg, var(--dark), #152136);
}

.dark-band::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 86%);
  pointer-events: none;
}

.dark-band > .container {
  position: relative;
}

.dark-band h2,
.dark-band h3 {
  color: #fff;
}

.dark-band .copy,
.dark-band .lead {
  color: #c4d0e3;
}

.dark-band .card,
.dark-band .process-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.94);
}

.dark-band .card h3,
.dark-band .process-item h3 {
  color: var(--ink);
}

.dark-band .card p,
.dark-band .card li,
.dark-band .process-item .copy {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.metric-card strong {
  display: block;
  color: #fff;
  font-size: 1.6rem;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: #c4d0e3;
}

.cta-band {
  position: relative;
  overflow: hidden;
  padding: 52px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(163, 230, 53, 0.1)),
    linear-gradient(115deg, transparent 0 58%, rgba(34, 211, 238, 0.16) 58.3%, transparent 59.4%),
    var(--dark);
  color: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22), 0 0 42px rgba(34, 211, 238, 0.12);
}

.cta-band h2 {
  color: #fff;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-content p {
  max-width: 640px;
  margin-top: 16px;
  color: #d3def0;
}

.page-hero {
  padding: 92px 0 72px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(34, 211, 238, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(163, 230, 53, 0.05)),
    var(--bg);
  background-size: 76px 76px, 76px 76px, auto, auto;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(2.35rem, 4.6vw, 3.75rem);
}

.breadcrumb {
  margin-bottom: 20px;
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-list {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.process-item {
  position: relative;
  padding: 22px 22px 22px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.process-item::before {
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  content: counter(step);
  counter-increment: step;
  font-size: 0.82rem;
  font-weight: 760;
}

.case-card {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  justify-content: space-between;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  background: #f8fafc;
  font-size: 0.8rem;
  font-weight: 650;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: 56px;
  align-items: start;
}

.form-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.form-note {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font-size: 0.92rem;
}

form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

textarea {
  min-height: 132px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--neon-cyan);
  outline: 3px solid rgba(34, 211, 238, 0.16);
}

.site-footer {
  padding: 54px 0 34px;
  border-top: 1px solid rgba(34, 211, 238, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 243, 248, 0.72));
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.footer-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-weight: 550;
}

.footer-note {
  margin-top: 28px;
  color: var(--soft);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-links,
  .nav-actions .button {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 20px 24px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.98);
  }

  .nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .mobile-cta {
    display: inline-flex;
    margin-top: 18px;
  }

  .hero-layout,
  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-visual {
    min-height: auto;
  }

  .grid-4,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-row span:nth-child(3) {
    border-left: 0;
  }

  .capability-row span:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .cta-content,
  .footer-layout {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 981px) {
  .mobile-cta {
    display: none;
  }
}

@media (max-width: 680px) {
  .container,
  .nav {
    width: min(100% - 28px, var(--container));
  }

  .section,
  .section-tight {
    padding: 64px 0;
  }

  .hero {
    padding: 64px 0 52px;
  }

  main::before {
    background-position: center 68px;
    background-size: 560px auto;
    opacity: 0.042;
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
  }

  h2 {
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .button {
    justify-content: center;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .metric-grid,
  .capability-row {
    grid-template-columns: 1fr;
  }

  .capability-row span + span,
  .capability-row span:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .visual-body {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .card,
  .form-card {
    padding: 22px;
  }

  .cta-band {
    padding: 30px 22px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

/* V3 reference-led visual system: quieter, darker, and less block-template oriented. */
:root {
  --bg: #05070b;
  --surface: rgba(12, 16, 24, 0.78);
  --surface-2: rgba(11, 18, 32, 0.86);
  --ink: #f8fafc;
  --muted: #aab6c7;
  --soft: #748195;
  --line: rgba(148, 163, 184, 0.16);
  --line-strong: rgba(226, 232, 240, 0.24);
  --accent: #e5faff;
  --accent-2: #75e8d5;
  --neon-cyan: #6ee7ff;
  --neon-teal: #7dd3c7;
  --neon-blue: #8ab4ff;
  --neon-lime: #d8ff8f;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  --shadow-sm: 0 18px 54px rgba(0, 0, 0, 0.28);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(110, 231, 255, 0.18), transparent 24rem),
    radial-gradient(circle at 86% 18%, rgba(216, 255, 143, 0.09), transparent 28rem),
    linear-gradient(180deg, #080b12 0%, #05070b 34%, #090d14 100%);
}

main::before {
  opacity: 0.032;
  filter: invert(1);
  mix-blend-mode: screen;
}

.site-header {
  border-bottom-color: rgba(148, 163, 184, 0.14);
  background: rgba(5, 7, 11, 0.78);
}

.site-header::after {
  background: linear-gradient(90deg, transparent, rgba(110, 231, 255, 0.28), transparent);
}

.brand-name,
.nav-links a,
.footer-links a {
  color: #dbe7f6;
}

.brand-name small,
.footer-note {
  color: #748195;
}

.mobile-toggle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 78% 42%, rgba(110, 231, 255, 0.13), transparent 24rem);
  background-size: 96px 96px, 96px 96px, auto;
}

.hero::before {
  background: none;
}

.hero-layout {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 0.88fr);
}

h1,
.page-hero h1 {
  max-width: 900px;
  background: linear-gradient(110deg, #ffffff 0%, #dce8ff 48%, #8eefff 78%, #d8ff8f 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

h2,
h3 {
  color: #f8fafc;
}

.lead,
.copy,
.card p,
.service-card li,
.check-list li {
  color: var(--muted);
}

.eyebrow {
  color: #9ff8ec;
}

.button-primary {
  border-color: rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), transparent),
    linear-gradient(135deg, #0f172a, #155e75 58%, #0f766e);
}

.button-light,
.button-secondary {
  color: #06111d;
  background: linear-gradient(135deg, #ffffff, #dffaff);
}

.trust-pill {
  color: #dce8ff;
  border-color: rgba(110, 231, 255, 0.18);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.capability-strip {
  border-block-color: rgba(148, 163, 184, 0.14);
  background: rgba(5, 7, 11, 0.86);
}

.capability-row {
  width: min(100% - 40px, var(--container));
}

.capability-row span {
  min-height: 88px;
  color: #dbe7f6;
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-visual {
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transform-origin: center;
  border-color: rgba(226, 232, 240, 0.16);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(5, 7, 11, 0.9));
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.58),
    0 0 80px rgba(110, 231, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.dashboard-window {
  border-color: rgba(226, 232, 240, 0.12);
  background: #070a10;
}

.window-bar {
  border-bottom-color: rgba(226, 232, 240, 0.1);
}

.visual-panel {
  border-color: rgba(226, 232, 240, 0.12);
  background: rgba(255, 255, 255, 0.045);
}

.flow-item {
  border-color: rgba(226, 232, 240, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #c9d5e6;
}

.section,
.section-tight,
.page-hero {
  background: transparent;
}

.section-muted,
.about-strip {
  border-block-color: rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
    transparent;
}

.section-header {
  max-width: 880px;
}

.grid {
  gap: 18px;
}

.card,
.form-card,
.process-item {
  border-color: rgba(226, 232, 240, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.035)),
    rgba(8, 12, 20, 0.74);
  box-shadow: none;
}

.card::before {
  right: 0;
  left: 0;
  opacity: 0.42;
}

.card:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 231, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(110, 231, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(8, 12, 20, 0.82);
}

.problem-card span {
  color: rgba(110, 231, 255, 0.36);
}

.problem-card::after,
.outcome-card::after {
  border-color: rgba(110, 231, 255, 0.12);
}

.dark-band {
  border-block: 1px solid rgba(148, 163, 184, 0.14);
  background:
    radial-gradient(circle at 30% 18%, rgba(110, 231, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.dark-band::before {
  background-size: 84px 84px;
  opacity: 0.45;
}

.dark-band .card,
.dark-band .process-item {
  border-color: rgba(226, 232, 240, 0.13);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(8, 12, 20, 0.74);
}

.dark-band .card h3,
.dark-band .process-item h3 {
  color: #f8fafc;
}

.dark-band .card p,
.dark-band .card li,
.dark-band .process-item .copy {
  color: var(--muted);
}

.cta-band {
  border-color: rgba(226, 232, 240, 0.16);
  background:
    radial-gradient(circle at 16% 20%, rgba(110, 231, 255, 0.16), transparent 20rem),
    radial-gradient(circle at 90% 80%, rgba(216, 255, 143, 0.1), transparent 22rem),
    linear-gradient(135deg, #080b12, #101827);
}

.page-hero {
  border-bottom-color: rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    radial-gradient(circle at 72% 20%, rgba(110, 231, 255, 0.13), transparent 24rem);
  background-size: 96px 96px, 96px 96px, auto;
}

input,
select,
textarea {
  color: #f8fafc;
  border-color: rgba(226, 232, 240, 0.15);
  background: rgba(255, 255, 255, 0.055);
}

input::placeholder,
textarea::placeholder {
  color: #748195;
}

.form-note,
.tag {
  color: #aab6c7;
  border-color: rgba(226, 232, 240, 0.13);
  background: rgba(255, 255, 255, 0.055);
}

.site-footer {
  border-top-color: rgba(148, 163, 184, 0.14);
  background: rgba(5, 7, 11, 0.92);
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-visual {
    transform: none;
  }

  .nav-links {
    background: rgba(5, 7, 11, 0.98);
  }
}

/* V4 type scale: restrained, executive, and easier to scan. */
h1 {
  font-size: clamp(2.65rem, 5.2vw, 4.45rem);
  line-height: 1.08;
  padding-bottom: 0.08em;
  overflow: visible;
}

h2 {
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.16;
  overflow: visible;
}

h3 {
  font-size: 1.05rem;
  line-height: 1.28;
}

.page-hero h1 {
  font-size: clamp(2.35rem, 4.6vw, 3.75rem);
  line-height: 1.1;
  padding-bottom: 0.1em;
}

.lead {
  font-size: clamp(1rem, 1.55vw, 1.16rem);
}

@media (max-width: 680px) {
  h1 {
    font-size: clamp(2.25rem, 10.5vw, 3rem);
    line-height: 1.1;
  }

  h2 {
    font-size: clamp(1.55rem, 7.2vw, 2.15rem);
    line-height: 1.18;
  }
}

/* V4 polish pass: prevent clipped gradient text and small layout glitches. */
.page-hero,
.hero,
.section,
.section-tight {
  isolation: isolate;
}

.section-header,
.breadcrumb,
.lead,
.card,
.cta-band,
.form-card,
.process-item {
  min-width: 0;
}

.card,
.process-item,
.form-card {
  overflow-wrap: break-word;
}

.service-card,
.case-card,
.outcome-card,
.problem-card {
  contain: layout paint;
}

.page-hero h1,
.hero h1 {
  display: inline-block;
  margin-bottom: -0.08em;
}

.split > *,
.grid > *,
.contact-layout > *,
.hero-layout > * {
  min-width: 0;
}
