:root {
  --navy: #001f3f;
  --steel: #2a4d69;
  --graphite: #2c2c2c;
  --muted: #6b7280;
  --cyber: #ffd300;
  --light: #f8fafc;
  --white: #ffffff;
  --text: #111827;
  --aqua-100: #e3fdfd;
  --aqua-300: #a6e3e9;
  --shadow: 0 22px 60px rgba(0, 31, 63, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--light);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

::selection {
  background: var(--cyber);
  color: var(--navy);
}

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

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

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--white);
}

.engineering-grid,
.hero-wash,
.cad-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.engineering-grid {
  background-image:
    linear-gradient(90deg, rgba(0, 31, 63, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(0, 31, 63, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.72;
}

.hero-wash {
  background:
    radial-gradient(circle at 82% 18%, rgba(113, 201, 206, 0.25), transparent 30%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.68), rgba(255, 255, 255, 0.96));
}

.cad-overlay {
  top: 48px;
  height: 68vh;
  width: 100%;
  color: var(--steel);
  opacity: 0.4;
}

.cad-line {
  stroke-dasharray: 12 10;
  animation: dash 14s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -220;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 32px;
}

.topbar,
.hero-content,
.button-row,
.trust-bar,
.panel-meta,
.metric-grid,
.scope-heading,
.footer-grid {
  display: flex;
}

.topbar {
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav-cta {
  border: 1px solid rgba(0, 31, 63, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.75rem 1rem;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 31, 63, 0.06);
}

.hero-content {
  flex: 1;
  align-items: center;
  gap: 3rem;
  padding: 4rem 0;
}

.hero-copy {
  flex: 1.05;
}

.eyebrow,
.section-kicker {
  margin: 0;
  color: var(--steel);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(42, 77, 105, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 0.65rem 0.9rem;
  box-shadow: 0 6px 18px rgba(0, 31, 63, 0.06);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 980px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(3rem, 7vw, 6.8rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.hero-subtitle {
  max-width: 680px;
  margin: 1.75rem 0 0;
  color: var(--graphite);
  font-size: 1.18rem;
  line-height: 1.75;
}

.button-row {
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 0.95rem 1.35rem;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--cyber);
  color: var(--navy);
}

.btn-secondary {
  border-color: rgba(0, 31, 63, 0.18);
  background: var(--white);
  color: var(--navy);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

.blueprint-panel {
  flex: 0.95;
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel-meta,
.metric-grid {
  justify-content: space-between;
  gap: 0.75rem;
}

.panel-meta {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
}

.module-map {
  display: grid;
  aspect-ratio: 4 / 3;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.5rem;
  border: 1px solid rgba(0, 31, 63, 0.15);
  border-radius: 8px;
  background: var(--light);
  padding: 1.25rem;
}

.module-map span {
  border: 1px solid rgba(42, 77, 105, 0.2);
  border-radius: 3px;
  background: var(--white);
  animation: modulePulse 1.8s ease-in-out infinite alternate;
}

.module-map span:nth-child(7n) {
  animation-delay: 0.25s;
}

.module-map span:nth-child(11n) {
  animation-delay: 0.5s;
}

@keyframes modulePulse {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 1;
  }
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.25rem;
}

.metric-grid div {
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 8px;
  padding: 1rem;
}

.metric-grid small {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.metric-grid strong {
  display: block;
  margin-top: 0.5rem;
  color: var(--navy);
  font-size: 1.35rem;
  font-weight: 900;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(0, 31, 63, 0.1);
  border-bottom: 1px solid rgba(0, 31, 63, 0.1);
  background: rgba(255, 255, 255, 0.8);
  padding: 1rem 0;
}

.trust-bar div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

.trust-bar span {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--aqua-100);
  font-size: 0.74rem;
}

.section {
  background: var(--white);
  padding: 5rem 0;
  scroll-margin-top: 5rem;
}

.section-light {
  background: var(--light);
}

.section-header {
  max-width: 780px;
  margin: 0 auto 3.25rem;
  text-align: center;
}

.section-header h2 {
  margin: 0.75rem 0 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.section-header p:last-child {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.service-grid,
.reason-grid,
.proof-grid,
.expertise-layout {
  display: grid;
  gap: 1.25rem;
}

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

.card,
.reason,
.step {
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 8px;
  background: var(--white);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card {
  padding: 1.5rem;
}

.card:hover,
.reason:hover,
.step:hover {
  transform: translateY(-7px);
  border-color: var(--cyber);
  box-shadow: var(--shadow);
}

.icon {
  display: flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--cyber);
  font-size: 0.74rem;
  font-weight: 900;
}

.card h3,
.reason h3,
.step h3,
.contact-note h3 {
  margin: 1.5rem 0 0;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.card ul {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.card li {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.45;
}

.card li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  margin-top: 0.45rem;
  border-radius: 999px;
  background: var(--cyber);
}

.center-cta {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.proof-section {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.proof-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
}

.proof-section .container {
  position: relative;
  z-index: 1;
}

.proof-section .section-kicker {
  color: var(--cyber);
}

.proof-section .section-header h2,
.proof-section .section-header p:last-child {
  color: var(--white);
}

.proof-section .section-header p:last-child {
  opacity: 0.76;
}

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

.proof-card {
  min-height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  padding: 1.35rem;
  backdrop-filter: blur(10px);
}

.proof-card span {
  color: var(--cyber);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.proof-card strong {
  display: block;
  margin-top: 1.4rem;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.proof-card p {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.94rem;
  line-height: 1.65;
}

.expertise-layout {
  grid-template-columns: repeat(3, 1fr);
}

.expertise-panel {
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(0, 31, 63, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(0, 31, 63, 0.04) 1px, transparent 1px),
    #ffffff;
  background-size: 34px 34px;
  padding: 1.5rem;
}

.expertise-panel h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.expertise-panel ul {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.expertise-panel li {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.5;
}

.expertise-panel li::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 0.44rem;
  border: 2px solid var(--steel);
  border-radius: 2px;
}

.scope-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
}

.scope-tabs {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}

.scope-tab {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 8px;
  background: var(--light);
  padding: 1rem 1.15rem;
  color: var(--navy);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}

.scope-tab.active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.scope-tab.active span {
  color: var(--cyber);
}

.scope-panel {
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 8px;
  background: var(--light);
  padding: 2rem;
}

.scope-heading {
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(0, 31, 63, 0.1);
  padding-bottom: 1.5rem;
}

.scope-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scope-heading h3 {
  margin: 0.45rem 0 0;
  color: var(--navy);
  font-size: 2rem;
  font-weight: 900;
}

.scope-items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.scope-item {
  min-height: 78px;
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 8px;
  background: var(--white);
  padding: 1rem;
  color: var(--graphite);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.5;
}

.scope-item::before {
  content: "▣";
  margin-right: 0.5rem;
  color: var(--steel);
}

.process-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.scope-item::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.5rem;
  border: 2px solid var(--steel);
  border-radius: 2px;
}

.process-grid::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 39px;
  height: 1px;
  background: rgba(0, 31, 63, 0.15);
}

.step {
  position: relative;
  padding: 1.25rem;
}

.step span {
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--cyber);
  font-size: 0.8rem;
  font-weight: 900;
}

.step p,
.reason p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.phase-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 2rem;
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 8px;
  background: var(--white);
  padding: 0.75rem;
}

.phase-strip div {
  min-height: 96px;
  border-radius: 8px;
  background: var(--light);
  padding: 1rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1.35;
}

.phase-strip span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--steel);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reason-grid {
  grid-template-columns: repeat(5, 1fr);
}

.reason {
  background: var(--light);
  padding: 1.35rem;
}

.contact-section {
  background: var(--navy);
  color: var(--white);
}

.inverted .section-kicker {
  color: var(--cyber);
}

.inverted h2,
.inverted p:last-child {
  color: var(--white);
}

.inverted p:last-child {
  opacity: 0.75;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-note {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
}

.contact-note h3 {
  color: var(--white);
  font-size: 2rem;
}

.contact-note p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}

.contact-note span {
  display: block;
  margin-top: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-form {
  border-radius: 8px;
  background: var(--white);
  padding: 2rem;
  color: var(--text);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

label {
  display: block;
  margin-bottom: 1.25rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 900;
}

input,
textarea {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  border: 1px solid rgba(0, 31, 63, 0.16);
  border-radius: 8px;
  padding: 0.95rem 1rem;
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 650;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

input:focus,
textarea:focus {
  border-color: var(--steel);
  box-shadow: 0 0 0 4px var(--aqua-100);
}

.form-message {
  min-height: 22px;
  margin: 0 0 1rem;
  color: #b91c1c;
  font-size: 0.9rem;
  font-weight: 800;
}

.form-message.success {
  border: 1px solid var(--aqua-300);
  border-radius: 8px;
  background: var(--aqua-100);
  padding: 0.85rem 1rem;
  color: var(--navy);
}

.mobile-sticky {
  display: none;
}

.footer {
  background: var(--white);
  padding: 2.5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: end;
  border-top: 1px solid rgba(0, 31, 63, 0.1);
  padding-top: 2rem;
}

.footer p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.footer-actions {
  display: grid;
  gap: 0.9rem;
  justify-items: end;
}

.footer-actions > a:first-child {
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.footer nav {
  display: flex;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  .hero-content,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-content {
    display: grid;
  }

  .blueprint-panel {
    display: none;
  }

  .trust-bar,
  .service-grid,
  .reason-grid,
  .proof-grid,
  .expertise-layout,
  .phase-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .scope-layout {
    grid-template-columns: 1fr;
  }

  .scope-tabs {
    grid-template-columns: repeat(2, 1fr);
  }

  .scope-items {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .process-grid::before {
    display: none;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1240px);
  }

  .nav-cta {
    display: none;
  }

  .hero-inner {
    min-height: auto;
  }

  .hero-content {
    padding: 4rem 0 2rem;
  }

  h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .button-row,
  .btn,
  .scope-heading,
  .footer-grid {
    width: 100%;
  }

  .button-row,
  .scope-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .trust-bar,
  .service-grid,
  .scope-tabs,
  .scope-items,
  .reason-grid,
  .proof-grid,
  .expertise-layout,
  .phase-strip,
  .field-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4rem 0;
  }

  .section-header {
    text-align: left;
  }

  .contact-form,
  .scope-panel {
    padding: 1.25rem;
  }

  .footer-actions {
    justify-items: start;
  }

  .footer nav {
    flex-wrap: wrap;
  }

  .mobile-sticky {
    position: fixed;
    z-index: 20;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    display: block;
    border-radius: 8px;
    background: var(--cyber);
    padding: 1rem;
    color: var(--navy);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow: var(--shadow);
  }
}
