:root {
  --navy: #003366;
  --navy-light: #004c8c;
  --blue: #0066cc;
  --blue-dark: #00509e;
  --ink: #1a1a1a;
  --body: #333333;
  --border: #e0e0e0;
  --surface: #ffffff;
  --bg: #ffffff;
  --success-bg: #dcfce7;
  --success-ink: #166534;
  --error-bg: #fee2e2;
  --error-ink: #991b1b;
  --radius: 12px;
  --max-width: 1120px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--navy);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--body);
  transition: color 0.15s ease;
}

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

.nav-cta {
  background: var(--navy);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
}

.nav-cta:hover {
  background: var(--navy-light);
}

/* Hero */

.hero {
  position: relative;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 15% 20%, rgba(0, 102, 204, 0.35), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, #001a33 100%);
  background-size: 24px 24px, auto, auto;
  color: #fff;
  padding: 5.5rem 1.5rem 6rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -60% auto;
  width: 55%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.28), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  color: #93b4ff;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: #cbd5f5;
  max-width: 600px;
  margin: 0 auto 2.25rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 102, 204, 0.35);
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.btn-block {
  width: 100%;
}

/* Page hero (subpages) */

.page-hero {
  position: relative;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    radial-gradient(circle at 15% 20%, rgba(0, 102, 204, 0.35), transparent 45%),
    linear-gradient(160deg, var(--navy) 0%, #001a33 100%);
  background-size: 24px 24px, auto, auto;
  color: #fff;
  padding: 4rem 1.5rem 4.5rem;
  text-align: center;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -70% auto;
  width: 45%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0, 102, 204, 0.28), transparent 70%);
  pointer-events: none;
}

.page-hero .hero-inner {
  position: relative;
  z-index: 1;
}

.page-hero .eyebrow {
  color: #93b4ff;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1.1rem;
}

.page-hero .hero-sub {
  color: #cbd5f5;
}

/* Intro */

.intro {
  max-width: 760px;
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
  text-align: center;
}

.intro h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.intro p {
  font-size: 1.15rem;
  color: var(--body);
  line-height: 1.7;
}

/* Services */

.services {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  position: relative;
}

.section-heading {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.section-heading p {
  color: var(--body);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-top-color 0.15s ease;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
  border-top-color: var(--blue);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eaf0ff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-icon.icon-warn {
  background: #fef3e2;
  color: #b45309;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.feature p {
  color: var(--body);
  font-size: 0.95rem;
}

.feature-link {
  display: inline-block;
  margin-top: 0.85rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.feature-link:hover {
  text-decoration: underline;
}

/* Approach */

.approach {
  background: linear-gradient(180deg, #f4f7ff 0%, #eef2fc 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
}

.approach-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  counter-reset: step;
}

.approach-item {
  position: relative;
  text-align: left;
  padding-top: 0.25rem;
}

@media (min-width: 900px) {
  .approach-item:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 26px;
    left: 100%;
    width: 2.5rem;
    border-top: 2px dashed #c7d4f0;
  }
}

.approach-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--navy));
  border-radius: 50%;
  margin-bottom: 1.25rem;
  box-shadow: 0 6px 16px rgba(0, 102, 204, 0.3);
}

.approach-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.approach-item p {
  color: var(--body);
  font-size: 0.95rem;
}

/* Contact */

.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 6rem;
}

.contact-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: 0 20px 50px rgba(16, 24, 40, 0.06);
  text-align: center;
}

.contact-card h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.contact-card > p {
  color: var(--body);
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.contact-form label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink);
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.flash-messages {
  margin-bottom: 1.25rem;
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  text-align: left;
}

.flash-success {
  background: var(--success-bg);
  color: var(--success-ink);
}

.flash-error {
  background: var(--error-bg);
  color: var(--error-ink);
}

/* Footer */

.site-footer {
  background: var(--navy);
  color: #cbd5f5;
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.footer-brand .logo {
  color: #fff;
}

.footer-brand p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #93a5d1;
  max-width: 260px;
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93a5d1;
  margin-bottom: 0.85rem;
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: #dbe3f7;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: #93a5d1;
}

/* Mobile */

@media (max-width: 640px) {
  .nav-links {
    gap: 0.75rem;
    font-size: 0.85rem;
  }

  .hero {
    padding: 3.5rem 1.25rem 4rem;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .services {
    padding: 3.5rem 1.25rem;
  }

  .contact-card {
    padding: 1.75rem 1.25rem;
  }
}
