:root {
  --bg: #f5f7f8;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --border: rgba(18, 50, 74, 0.12);
  --border-strong: rgba(18, 50, 74, 0.2);
  --navy: #12324a;
  --steel: #3f647f;
  --slate: #5e6b75;
  --charcoal: #1e2328;
  --teal: #2c7a7b;
  --teal-dark: #256566;
  --green: #6b8f71;
  --shadow: 0 10px 24px rgba(18, 50, 74, 0.05);
  --radius-xl: 24px;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --max: 1160px;
  --gap: clamp(1rem, 2vw, 1.5rem);
}

* {
  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(--charcoal);
  background:
    radial-gradient(circle at top left, rgba(63, 100, 127, 0.08), transparent 34%),
    radial-gradient(circle at top right, rgba(44, 122, 123, 0.08), transparent 28%),
    linear-gradient(180deg, #f9fbfc 0%, var(--bg) 100%);
  min-height: 100vh;
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(18, 50, 74, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 50, 74, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 92%);
}

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

a:hover {
  color: var(--teal);
}

img {
  max-width: 100%;
  display: block;
}

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 1rem;
  background: var(--navy);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(245, 247, 248, 0.82);
  border-bottom: 1px solid rgba(18, 50, 74, 0.08);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--navy), var(--steel));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  position: relative;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 5px;
}

.brand small {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.nav a {
  color: var(--slate);
  font-size: 0.96rem;
  font-weight: 500;
}

.nav a[aria-current="page"] {
  color: var(--navy);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0.9rem 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 10px 30px rgba(44, 122, 123, 0.18);
}

.button-primary:hover {
  background: var(--teal-dark);
  color: white;
}

.button-secondary {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--navy);
}

.button-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.page {
  padding: 1.1rem 0 2.8rem;
}

.hero,
.section {
  margin-top: 0.85rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: clamp(0.95rem, 2vw, 1.6rem);
  align-items: start;
  padding: clamp(0.95rem, 1.7vw, 1.2rem);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.75));
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 1.4rem;
  height: 1px;
  background: currentColor;
}

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

h1 {
  margin-top: 0.6rem;
  font-size: clamp(1.7rem, 3.7vw, 2.9rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
  color: var(--navy);
  max-width: 16ch;
}

.hero-title {
  max-width: 22ch;
}

.hero-title-line {
  display: block;
}

.lead {
  margin-top: 0.75rem;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
  color: var(--slate);
  max-width: 58ch;
}

.hero-visual {
  margin-top: 1rem;
  max-width: 34rem;
}

.hero-image-stack {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(18, 50, 74, 0.1);
  background: linear-gradient(180deg, rgba(18, 50, 74, 0.04), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 24px rgba(18, 50, 74, 0.08);
}

.hero-image {
  position: absolute;
  display: block;
  object-fit: cover;
}

.hero-image-main {
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image-accent {
  right: 1rem;
  bottom: 1rem;
  width: min(38%, 12rem);
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  border: 3px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 22px rgba(18, 50, 74, 0.18);
}

.hero-credit {
  margin-top: 0.45rem;
  color: var(--steel);
  font-size: 0.82rem;
  line-height: 1.35;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.hero-meta {
  margin-top: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(63, 100, 127, 0.08);
  color: var(--steel);
  border: 1px solid rgba(63, 100, 127, 0.12);
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
}

.tag strong {
  color: var(--navy);
}

.hero-panel {
  display: grid;
  gap: 0.8rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(18, 50, 74, 0.04);
  padding: 1rem;
}

.diagram {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.75rem;
  background:
    radial-gradient(circle at top right, rgba(44, 122, 123, 0.15), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #f8fbfc 100%);
}

.diagram .title {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.diagram .title h2 {
  font-size: 1.2rem;
  line-height: 1.14;
  color: var(--navy);
}

.diagram .title p {
  color: var(--slate);
  font-size: 0.88rem;
  max-width: 24ch;
}

.flow {
  display: grid;
  gap: 0.7rem;
}

.flow-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

.flow-node {
  border-radius: 8px;
  padding: 0.95rem;
  min-height: 84px;
  background: white;
  border: 1px solid rgba(18, 50, 74, 0.12);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flow-node strong {
  color: var(--navy);
  font-size: 0.96rem;
}

.flow-node span {
  font-size: 0.82rem;
  color: var(--slate);
}

.flow-connector {
  display: flex;
  justify-content: center;
  color: rgba(63, 100, 127, 0.45);
  font-size: 1.05rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
}

.kpi {
  background: rgba(255, 255, 255, 0.86);
  border-radius: 10px;
  border: 1px solid rgba(18, 50, 74, 0.1);
  padding: 0.85rem;
}

.kpi strong {
  display: block;
  color: var(--navy);
  font-size: 1.28rem;
  letter-spacing: -0.04em;
}

.kpi span {
  display: block;
  color: var(--slate);
  font-size: 0.82rem;
  margin-top: 0.2rem;
}

.section {
  padding: clamp(1rem, 1.6vw, 1.25rem);
  border: 1px solid rgba(18, 50, 74, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 18px rgba(18, 50, 74, 0.03);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: end;
  margin-bottom: 0.7rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  color: var(--navy);
}

.section-head p {
  color: var(--slate);
  max-width: 48ch;
  font-size: 0.95rem;
}

.visual-grid,
.media-grid,
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 0.8rem;
}

.media-grid,
.visual-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

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

.visual-card {
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-strong);
  box-shadow: 0 4px 8px rgba(18, 50, 74, 0.02);
}

.visual-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  background: #e9eef1;
}

.media-card img {
  aspect-ratio: 16 / 9;
}

.visual-card figcaption {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.9rem;
}

.visual-card strong {
  color: var(--navy);
  font-size: 1rem;
}

.visual-card span {
  color: var(--slate);
  font-size: 0.92rem;
}

.visual-card a {
  color: inherit;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.14em;
}

.visual-card a:hover {
  color: var(--teal);
}

.card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.9rem;
  box-shadow: 0 4px 8px rgba(18, 50, 74, 0.02);
}

.card h3 {
  font-size: 1.08rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.card p,
.card li {
  color: var(--slate);
  font-size: 0.96rem;
}

.card ul {
  margin: 0.6rem 0 0;
  padding-left: 1.05rem;
}

.card li + li {
  margin-top: 0.45rem;
}

.rule-list {
  display: grid;
  gap: 0.55rem;
}

.rule {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding: 0.72rem 0.82rem;
  border-radius: 8px;
  border: 1px solid rgba(18, 50, 74, 0.09);
  background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(248,251,252,0.98));
}

.rule::before {
  content: "";
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 6px;
  background: linear-gradient(180deg, var(--teal), var(--steel));
  margin-top: 0.35rem;
  flex: none;
}

.rule strong,
.stat strong {
  color: var(--navy);
}

.rule p {
  color: var(--slate);
  margin-top: 0.15rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}

.stat {
  padding: 0.8rem;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(18, 50, 74, 0.04), rgba(255, 255, 255, 0.92));
  border: 1px solid rgba(18, 50, 74, 0.09);
}

.stat strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}

.stat p {
  color: var(--slate);
  font-size: 0.95rem;
}

.cta-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 0.65rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(18, 50, 74, 0.94), rgba(63, 100, 127, 0.96));
  color: white;
  padding: clamp(0.9rem, 1.4vw, 1.1rem);
}

.cta-band h2,
.cta-band p {
  color: white;
}

.cta-band p {
  opacity: 0.88;
  max-width: 55ch;
}

.cta-band .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.cta-band .button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
}

.meta {
  font-size: 0.9rem;
  color: var(--slate);
}

.site-footer {
  padding: 1.1rem 0 1.6rem;
  color: var(--slate);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(18, 50, 74, 0.1);
  padding-top: 1rem;
}

.form {
  display: grid;
  gap: 0.55rem;
}

.field {
  display: grid;
  gap: 0.35rem;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

input,
textarea,
select {
  width: 100%;
  border-radius: 8px;
  border: 1px solid rgba(18, 50, 74, 0.14);
  background: rgba(255, 255, 255, 0.9);
  color: var(--charcoal);
  padding: 0.72rem 0.82rem;
  font: inherit;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
.button:focus-visible,
a:focus-visible {
  outline: 2px solid rgba(44, 122, 123, 0.65);
  outline-offset: 3px;
}

.detail-list {
  display: grid;
  gap: 0.55rem;
}

.detail {
  padding: 0.72rem 0.82rem;
  border-radius: 8px;
  border: 1px solid rgba(18, 50, 74, 0.08);
  background: rgba(255,255,255,0.9);
}

.detail strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.detail span {
  color: var(--slate);
}

@media (max-width: 980px) {
  .hero,
  .cta-band,
  .media-grid,
  .visual-grid,
  .grid-2,
  .grid-3,
  .grid-4,
  .stat-grid,
  .kpi-grid,
  .flow-row {
    grid-template-columns: 1fr;
  }

  .section-head,
  .header-inner,
  .cta-band {
    align-items: start;
    flex-direction: column;
  }

  .hero {
    padding: 0.85rem;
  }

  .hero-visual {
    max-width: 100%;
  }

  .hero-image-accent {
    right: 0.7rem;
    bottom: 0.7rem;
    width: min(42%, 9rem);
  }

  .diagram {
    min-height: unset;
  }
}

@media (max-width: 720px) {
  .nav {
    gap: 0.55rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .page-actions {
    flex-direction: column;
    gap: 0.55rem;
  }

  h1 {
    max-width: 15ch;
  }

  .hero-title {
    max-width: 100%;
  }

  .section,
  .panel {
    border-radius: 10px;
  }
}
