:root {
  --blue-900: #17305f;
  --blue-800: #1f4f8e;
  --blue-700: #2b78c2;
  --blue-600: #38a0de;
  --blue-100: #eaf4fb;
  --grey-050: #f7f9fb;
  --grey-100: #edf1f5;
  --grey-300: #c8d2de;
  --grey-700: #415261;
  --text: #1d2b38;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(23, 48, 95, 0.12);
  --radius: 20px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(56,160,222,0.08), rgba(255,255,255,0) 220px),
    var(--grey-050);
  line-height: 1.6;
}

body.page-home {
  background: var(--blue-100);
}
body.page-contact {
  background: #444;
  color: var(--white);
}
body.page-contact a {
  color: var(--blue-100);
}
body.page-contact a:hover {
  color: var(--blue-600);
}
body.page-contact .eyebrow {
  color: var(--blue-600);
}
body.page-contact .lead {
  color: var(--grey-300);
}
body.page-contact .site-header {
  background: rgba(68, 68, 68, 0.9);
}
body.page-contact .site-nav a {
  color: var(--grey-300);
}
body.page-contact .site-nav a.active,
body.page-contact .site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}
body.page-contact .brand {
  color: var(--white);
}
body.page-contact .brand-text span {
  color: var(--grey-300);
}
body.page-contact .contact-panel {
  background: var(--blue-800);
  border-color: var(--blue-700);
}
body.page-contact .site-footer {
  background: #333;
  border-top-color: rgba(255, 255, 255, 0.1);
}
body.page-contact .footer-wrap p {
  color: var(--grey-300);
}

body.page-about .panel {
  background: var(--grey-300);
  border-color: var(--grey-300);
}

a { color: var(--blue-800); text-decoration: none; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; display: block; }

.container {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}
.narrow { max-width: 760px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 249, 251, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(31, 79, 142, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--text);
}
.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-text strong {
  font-size: 1.35rem;
  letter-spacing: 0.01em;
}
.brand-text span {
  font-size: 0.88rem;
  color: var(--grey-700);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.site-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--grey-700);
  font-weight: 600;
}
.site-nav a.active,
.site-nav a:hover {
  background: var(--blue-100);
  color: var(--blue-900);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--grey-300);
  background: var(--white);
  color: var(--text);
  border-radius: 999px;
  padding: 0.65rem 0.95rem;
  font: inherit;
}

.hero,
.page-hero {
  padding: 5rem 0 3rem;
}
.page-hero.small { padding-bottom: 1rem; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  color: var(--blue-800);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

h1, h2, h3 {
  line-height: 1.15;
  margin: 0 0 1rem;
}

h1 {
  font-size: clamp(2.2rem, 4vw, 4rem);
  max-width: 12ch;
}

.lead {
  font-size: 1.1rem;
  color: var(--grey-700);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(23, 48, 95, 0.12);
}
.button.primary {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-600));
  color: var(--white);
}
.button.secondary {
  background: var(--white);
  border: 1px solid var(--grey-300);
  color: var(--text);
}

.hero-card,
.card,
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.98));
  border: 1px solid rgba(31, 79, 142, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -30% auto;
  width: 240px;
  height: 240px;
  background: linear-gradient(135deg, rgba(56,160,222,0.18), rgba(31,79,142,0.06));
  transform: rotate(35deg);
}
.hero-card > * { position: relative; }

.highlights,
.content-section {
  padding: 1rem 0 4rem;
}

.cards,
.split-grid,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card,
.panel {
  padding: 1.5rem;
}

.placeholder {
  color: var(--grey-700);
}
.contact-panel p {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid rgba(31, 79, 142, 0.08);
  background: var(--white);
}
.footer-wrap {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 0 2rem;
  flex-wrap: wrap;
}
.footer-wrap p {
  margin: 0;
  color: var(--grey-700);
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .split-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  h1 { max-width: 16ch; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute;
    right: 1rem;
    top: calc(100% + 0.5rem);
    display: none;
    flex-direction: column;
    align-items: stretch;
    min-width: 180px;
    background: var(--white);
    border: 1px solid rgba(31, 79, 142, 0.08);
    border-radius: 18px;
    padding: 0.5rem;
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { border-radius: 12px; }
  .nav-wrap { position: relative; }
  .hero,
  .page-hero { padding-top: 3.5rem; }
}
