:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-alt: #edf5fb;
  --text: #17324f;
  --muted: #5f7185;
  --accent: #173f6f;
  --accent-dark: #102f56;
  --border: #d6e2ec;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

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

.narrow {
  max-width: 800px;
}

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

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.header-inner {
  min-height: 96px;
  transition: min-height 180ms ease;
}

.brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo img {
  display: block;
  width: auto;
  height: 72px;
  transition: height 180ms ease;
}

.site-header.is-scrolled .header-inner {
  min-height: 64px;
}

.site-header.is-scrolled .brand-logo img {
  height: 44px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.hero {
  padding: 96px 0 84px;
}

.hero-grid,
.split,
.contact-inner {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 64px;
  align-items: center;
}

.eyebrow,
.card-kicker {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 860px;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 24px;
  max-width: 800px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.2rem;
}

.lead {
  max-width: 760px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

.hero-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.card-title {
  margin-bottom: 16px;
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
}

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface-alt);
}

.cards,
.examples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.card,
.examples article {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.split {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.contact {
  background: #16395f;
  color: #fff;
}

.contact .eyebrow {
  color: #b9def4;
}

.contact p {
  max-width: 760px;
  color: #e1edf6;
}

.contact .text-link {
  color: #ffffff;
}

.contact .button {
  justify-self: end;
  background: #fff;
  border-color: #fff;
  color: var(--accent-dark);
}

.site-footer {
  padding: 28px 0;
  background: #102b49;
  color: #cad9e7;
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-link {
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: #fff;
}

.project-status-dialog {
  width: min(calc(100% - 40px), 720px);
  max-height: min(80vh, 760px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(16, 47, 86, 0.28);
}

.project-status-dialog::backdrop {
  background: rgba(10, 31, 54, 0.62);
}

.dialog-content {
  padding: 32px;
  overflow: auto;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.dialog-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.03em;
}

.dialog-close {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  background: var(--surface-alt);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-close:hover,
.dialog-close:focus-visible {
  border-color: var(--accent);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 28px;
}

@media (max-width: 820px) {
  .nav a:not(.button) {
    display: none;
  }

  .header-inner {
    min-height: 78px;
  }

  .brand-logo img {
    height: 56px;
  }

  .site-header.is-scrolled .header-inner {
    min-height: 58px;
  }

  .site-header.is-scrolled .brand-logo img {
    height: 38px;
  }

  .hero {
    padding-top: 64px;
  }

  .hero-grid,
  .split,
  .contact-inner,
  .cards,
  .examples {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .split,
  .contact-inner {
    gap: 36px;
  }

  .contact .button {
    justify-self: start;
  }

  .footer-inner,
  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .project-status-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }

  .dialog-content {
    padding: 20px;
    overflow: visible;
  }

  .dialog-header {
    margin-bottom: 14px;
  }

  .dialog-header h2 {
    font-size: 1.55rem;
  }

  .project-status-dialog p {
    margin-bottom: 12px;
    font-size: 0.95rem;
    line-height: 1.45;
  }

  .dialog-actions {
    margin-top: 18px;
  }
}
