/* ---------- Brand tokens ---------- */
:root {
  --navy: #0A1D3A;
  --navy-soft: #16305a;
  --teal: #00B2A9;
  --teal-light: #2CC5B3;
  --pale: #CFEFEC;
  --gray: #E6EBF1;
  --white: #FFFFFF;
  --ink: #1B2430;
  --muted: #5B6779;

  --font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container: 1180px;
  --radius: 14px;
  --shadow: 0 20px 45px -25px rgba(10, 29, 58, 0.35);
  --transition: 200ms ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
ul, ol { list-style: none; margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-weight: 800; color: var(--navy); margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; color: var(--muted); }
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-light); }
.btn-outline { border-color: rgba(10, 29, 58, 0.25); color: var(--navy); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.section-dark .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.section-dark .btn-outline:hover { border-color: var(--teal-light); color: var(--teal-light); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 34px; width: auto; }
.brand-text { display: flex; flex-direction: column; gap: 2px; }
.brand-word {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--navy);
  white-space: nowrap;
}
.brand-word-light { color: var(--white); }
.brand-accent { color: var(--teal); }

.logo-caption {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-size: 0.42rem;
  font-weight: 700;
  color: var(--teal);
  white-space: nowrap;
}
.logo-caption .cap-line { width: 6px; height: 1px; background: var(--teal); opacity: 0.6; }
.logo-caption-light { color: var(--teal-light); }
.logo-caption-light .cap-line { background: var(--teal-light); }

.primary-nav { display: flex; align-items: center; gap: 20px; }
.primary-nav ul { display: flex; gap: 18px; }
.nav-link {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--navy);
  position: relative;
  padding: 6px 0;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px;
  width: 0;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--teal); }
.nav-cta { padding: 9px 18px; font-size: 0.85rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Section rhythm ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--gray); }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark p { color: var(--white); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 10px;
}
.eyebrow-light { color: var(--teal-light); }
.section-heading { max-width: 820px; margin: 0 auto 56px; text-align: center; }
.section-heading h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.section-sub { font-size: 1.02rem; }
.text-teal { color: var(--teal); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-soft) 60%, #103356 100%);
  overflow: hidden;
  padding: 64px 0 56px;
}
.hero-arc {
  position: absolute;
  right: -220px;
  top: 50%;
  transform: translateY(-50%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  border: 90px dashed rgba(44, 197, 179, 0.14);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.hero .eyebrow { color: var(--teal-light); margin-bottom: 6px; }
.hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.4vw, 2.75rem); margin-bottom: 0.35em; }
.hero-lead { color: rgba(255,255,255,0.78); font-size: 1rem; max-width: 560px; margin: 0 auto 0.7em; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-top: 4px; flex-wrap: wrap; }
.hero .btn-outline { border-color: rgba(255,255,255,0.35); color: var(--white); }
.hero .btn-outline:hover { border-color: var(--teal-light); color: var(--teal-light); }

.hero-gauge { width: 96px; margin: 0 auto 6px; }
.gauge-svg { width: 100%; height: auto; overflow: visible; }
.gauge-track { fill: none; stroke: rgba(255,255,255,0.18); stroke-width: 6; stroke-linecap: round; }
.gauge-progress {
  fill: none;
  stroke: var(--teal-light);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 3 4;
}
.gauge-needle { stroke: var(--teal-light); stroke-width: 3; stroke-linecap: round; }
.gauge-needle-group {
  transform-origin: 50px 65px;
  animation: gauge-sweep 3.2s ease-in-out infinite;
}
.gauge-hub { fill: var(--teal-light); }
@keyframes gauge-sweep {
  0%, 100% { transform: rotate(-55deg); }
  50% { transform: rotate(55deg); }
}
@media (prefers-reduced-motion: reduce) {
  .gauge-needle-group { animation: none; }
}

/* ---------- About ---------- */
.mission-quote {
  max-width: 700px;
  margin: 0 auto 48px;
  padding: 20px 24px;
  text-align: center;
  background: var(--pale);
  border-radius: 10px;
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

/* ---------- Card grids ---------- */
.card-grid { display: grid; gap: 24px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid-6 { grid-template-columns: repeat(6, 1fr); }
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--gray);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon {
  width: 48px; height: 48px;
  color: var(--teal);
  background: var(--pale);
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 16px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-card h3 { font-size: 1.08rem; }
.feature-card p { font-size: 0.92rem; margin: 0; }

.industry-card {
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.industry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--teal-light); }
.industry-icon { width: 40px; height: 40px; margin: 0 auto 14px; color: var(--navy); }
.industry-icon svg { width: 100%; height: 100%; }
.industry-card h3 { font-size: 0.92rem; margin: 0; }

.solution-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 34px;
  text-align: left;
}
.badge {
  display: inline-block;
  background: var(--pale);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.solution-icon { width: 46px; height: 46px; color: var(--teal); margin-bottom: 16px; }
.solution-icon svg { width: 100%; height: 100%; }
.solution-card h3 { font-size: 1.2rem; }
.solution-card .btn { margin-top: 10px; }

/* ---------- Customers ---------- */
.customer-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.customer-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.customer-solution-title { color: var(--teal); font-weight: 700; font-size: 0.95rem; margin-bottom: 16px; }
.customer-highlights { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.customer-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink);
}
.customer-highlights svg { flex-shrink: 0; width: 20px; height: 20px; color: var(--teal); margin-top: 1px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tech-tags span {
  background: var(--gray);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-weight: 700; font-size: 0.85rem; color: var(--navy); }
.form-row input, .form-row textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1.5px solid var(--gray);
  border-radius: 8px;
  color: var(--ink);
  resize: vertical;
  transition: border-color var(--transition);
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.form-status {
  min-height: 1.2em;
  margin: 14px 0 0;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
}
.form-status.success { color: var(--teal); }
.form-status.error { color: #c0392b; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.8); padding-top: 56px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-brand .brand-mark {
  width: 32px;
  height: 32px;
  background: var(--white);
  border-radius: 50%;
  padding: 5px;
  align-self: flex-start;
}
.footer-nav { display: flex; flex-direction: column; gap: 10px; }
.footer-nav a:hover { color: var(--teal-light); }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-contact a:hover { color: var(--teal-light); }
.footer-bottom { padding: 20px 0; font-size: 0.82rem; color: rgba(255,255,255,0.45); }

/* ---------- Our Process ---------- */
.process-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  counter-reset: step;
}
.process-step {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
}
.process-flow .process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 54px;
  right: -22px;
  width: 24px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal-light) 0 6px, transparent 6px 10px);
}
.process-icon {
  width: 48px; height: 48px;
  margin: 0 auto 10px;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--navy));
  border-radius: 50%;
  padding: 12px;
}
.process-icon svg { width: 100%; height: 100%; }
.process-num {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.process-step h3 { font-size: 1.05rem; }
.process-step p { font-size: 0.9rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-6 { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* Nav switches to the hamburger menu well before the grid/section
   breakpoints below — with 7 links + CTA + the full brand lockup, it
   crowds against the logo on any viewport narrower than ~1080px. */
@media (max-width: 1080px) {
  .primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px 28px;
    border-bottom: 1px solid var(--gray);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    gap: 18px;
  }
  .primary-nav.open { transform: translateY(0); opacity: 1; }
  .primary-nav ul { flex-direction: column; gap: 16px; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 760px) {
  .card-grid-3, .card-grid-2 { grid-template-columns: 1fr; }
  .card-grid-6 { grid-template-columns: repeat(2, 1fr); }
  .process-flow { grid-template-columns: 1fr; }
  .process-flow .process-step:not(:last-child)::after {
    top: auto;
    bottom: -22px;
    right: auto;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
  }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 120px 0 72px; }
}
