:root {
  --bg: #f7f9fc;
  --bg-warm: #fafbfe;
  --bg-white: #ffffff;
  --bg-mist: #eef3f8;
  --bg-deep: #0f2744;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #64748b;
  --navy: #1e3a5f;
  --navy-deep: #0f2744;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-glow: rgba(13, 148, 136, 0.08);
  --blue-glow: rgba(37, 99, 235, 0.06);
  --max-width: 1360px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;

  /* Type scale */
  --text-body: clamp(1.0625rem, 0.95rem + 0.25vw, 1.1875rem);
  --text-sm: 1rem;
  --text-xs: 0.9375rem;
  --text-2xs: 0.875rem;
  --text-lead: clamp(1.1875rem, 0.5vw + 1.0625rem, 1.375rem);
  --text-h3: clamp(1.1875rem, 0.35vw + 1.0625rem, 1.3125rem);
  --text-section: clamp(2.125rem, 2.75vw + 1rem, 3.125rem);
  --text-hero: clamp(2.5rem, 3.75vw + 1rem, 4.25rem);
  --text-page-hero: clamp(2.25rem, 2.75vw + 1rem, 3.625rem);
  --text-cta: clamp(2rem, 2.25vw + 1rem, 2.875rem);
  --text-auth: clamp(1.9375rem, 2.25vw + 1rem, 2.375rem);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 106.25%;
}

@media (min-width: 640px) {
  html { font-size: 112.5%; }
}

@media (min-width: 1024px) {
  html { font-size: 118.75%; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, .brand-name {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

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

.page { min-height: 100vh; display: flex; flex-direction: column; }

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

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 249, 252, 0.88);
  backdrop-filter: blur(16px);
}

.header-inner {
  width: min(var(--max-width), calc(100% - clamp(2rem, 5vw, 4rem)));
  margin: 0 auto;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  width: auto;
  height: 56px;
  max-width: min(200px, 46vw);
  object-fit: contain;
}

.page-home .brand-mark {
  display: none;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin-left: 24px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--navy-deep);
  background: rgba(15, 39, 68, 0.05);
}

.nav-link:focus-visible,
.button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-greeting {
  font-size: var(--text-2xs);
  color: var(--text-light);
  font-weight: 500;
}

/* ── Buttons ── */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.button-sm { min-height: 44px; padding: 0 20px; font-size: var(--text-2xs); }
.button-xs { min-height: 34px; padding: 0 14px; font-size: var(--text-2xs); }

.button-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal-dark), var(--teal));
}

.button-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--teal), #14b8a6);
}

.button-secondary {
  color: var(--navy-deep);
  background: rgba(15, 39, 68, 0.06);
}

.button-secondary:hover {
  background: rgba(15, 39, 68, 0.1);
  transform: translateY(-1px);
}

.button-ghost {
  color: var(--text-muted);
  background: transparent;
}

.button-ghost:hover { color: var(--navy-deep); }

.button-danger {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.08);
}

.inline-form { display: inline; margin: 0; }

/* ── Sections ── */
.section {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.section-mist {
  background: linear-gradient(180deg, var(--bg-mist) 0%, var(--bg) 100%);
}

.section-white {
  background: var(--bg-white);
}

.section-header {
  max-width: 720px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.wide {
  max-width: 820px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  font-size: var(--text-2xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

.section-title {
  font-size: var(--text-section);
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 20px;
  max-width: 22ch;
}

.section-header.centered .section-title {
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  font-size: var(--text-lead);
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 62ch;
}

.section-header.centered .section-lead {
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero ── */
.hero-full {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: clamp(7rem, 14vh, 9rem) 0 clamp(4rem, 8vh, 6rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(15, 39, 68, 0.9) 0%, rgba(15, 39, 68, 0.72) 38%, rgba(15, 39, 68, 0.38) 62%, rgba(15, 39, 68, 0.22) 100%),
    linear-gradient(180deg, rgba(15, 39, 68, 0.35) 0%, transparent 28%, transparent 72%, rgba(15, 39, 68, 0.45) 100%);
}

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

.hero-logo {
  display: block;
  width: min(480px, 82vw);
  max-width: 100%;
  height: auto;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  object-fit: contain;
  filter: drop-shadow(0 2px 12px rgba(15, 39, 68, 0.35));
}

.hero-full h1 {
  font-size: var(--text-hero);
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  max-width: 14ch;
  text-shadow:
    0 1px 2px rgba(15, 39, 68, 0.6),
    0 8px 32px rgba(15, 39, 68, 0.45);
}

.hero-full .eyebrow {
  color: #7dd3fc;
  text-shadow:
    0 1px 2px rgba(15, 39, 68, 0.55),
    0 4px 18px rgba(15, 39, 68, 0.4);
}

.hero-full .hero-sub {
  font-size: var(--text-lead);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 54ch;
  text-shadow:
    0 1px 2px rgba(15, 39, 68, 0.55),
    0 4px 24px rgba(15, 39, 68, 0.38);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}

.button-on-dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.button-on-dark:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 1px 12px rgba(15, 39, 68, 0.42);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-trust span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
}

/* Homepage header over hero */
.page-home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(15, 39, 68, 0.15);
  backdrop-filter: blur(10px);
}

.page-home .brand-name,
.page-home .user-greeting {
  color: #fff;
}

.page-home .nav-link {
  color: rgba(255, 255, 255, 0.82);
}

.page-home .nav-link:hover,
.page-home .nav-link.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.page-home .button-ghost {
  color: rgba(255, 255, 255, 0.9);
}

.page-home .button-ghost:hover {
  color: #fff;
}

.page-home .nav-toggle span {
  background: #fff;
}

.page-home .flash {
  position: relative;
  z-index: 3;
}

/* ── Open content grids (no boxes) — balanced rows, centered orphans ── */
.feature-grid,
.flow-grid,
.service-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.feature-grid {
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.flow-grid {
  gap: clamp(2rem, 4vw, 3rem);
}

.service-list {
  gap: clamp(3rem, 5vw, 4.5rem) clamp(2rem, 4vw, 3rem);
}

.feature-grid > *,
.flow-grid > *,
.service-list > * {
  grid-column: span 6;
}

@media (min-width: 640px) {
  .feature-grid > *,
  .flow-grid > *,
  .service-list > * {
    grid-column: span 3;
  }

  /* Center a single orphan in a 2-column row */
  .feature-grid > *:nth-child(2n + 1):nth-last-child(1),
  .flow-grid > *:nth-child(2n + 1):nth-last-child(1),
  .service-list > *:nth-child(2n + 1):nth-last-child(1) {
    grid-column: 2 / span 3;
  }
}

@media (min-width: 1024px) {
  .feature-grid > *,
  .flow-grid > *,
  .service-list > * {
    grid-column: span 2;
  }

  /* Center a single orphan in a 3-column row */
  .feature-grid > *:nth-child(3n + 1):nth-last-child(1),
  .flow-grid > *:nth-child(3n + 1):nth-last-child(1),
  .service-list > *:nth-child(3n + 1):nth-last-child(1) {
    grid-column: 3 / span 2;
  }

  /* Center two orphans in a 3-column row */
  .feature-grid > *:nth-child(3n + 1):nth-last-child(2),
  .flow-grid > *:nth-child(3n + 1):nth-last-child(2),
  .service-list > *:nth-child(3n + 1):nth-last-child(2) {
    grid-column: 2 / span 2;
  }

  .feature-grid > *:nth-child(3n + 2):nth-last-child(1),
  .flow-grid > *:nth-child(3n + 2):nth-last-child(1),
  .service-list > *:nth-child(3n + 2):nth-last-child(1) {
    grid-column: 4 / span 2;
  }
}

.feature-item h3,
.flow-step h3,
.service-block h3,
.process-block h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 12px;
}

.feature-item p,
.flow-step p,
.service-block p,
.process-block p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 38ch;
}

.flow-step {
  position: relative;
  padding-top: 8px;
}

.step-label {
  display: block;
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: var(--text-2xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-dark);
}

/* ── Services ── */
.service-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 4px;
}

.service-block .button {
  margin-top: 8px;
  align-self: flex-start;
}

.service-block-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: clamp(3rem, 6vw, 5rem);
  align-items: start;
}

/* ── Process ── */
.process-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
}

.process-block {
  text-align: left;
}

.process-num {
  display: block;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.25vw, 3rem);
  font-weight: 800;
  color: rgba(15, 39, 68, 0.12);
  line-height: 1;
}

/* ── Split layouts ── */
.hero-visual-frame {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
}

.hero-visual-frame img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}

.split-grid.reverse {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
}

.download-content h3 {
  font-size: clamp(1.5rem, 1.1vw + 1rem, 1.9375rem);
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 16px;
  max-width: 20ch;
}

.download-content p {
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 46ch;
}

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 28px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-light);
}

.meta-list span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.meta-list span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── Video ── */
.video-shell {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #0a1628;
}

.video-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
}

.video-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 22, 40, 0.4);
  transition: opacity 0.2s;
}

.video-loading.hidden { opacity: 0; visibility: hidden; }

.video-loading span {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Resource links ── */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(2rem, 4vw, 3rem);
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: clamp(3rem, 5vw, 4.5rem);
  background: linear-gradient(180deg, transparent, rgba(15, 39, 68, 0.02));
}

.link-block h4 {
  font-size: var(--text-h3);
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.link-block p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}

.text-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--teal-dark);
}

.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── CTA band ── */
.cta-band {
  padding: clamp(3.5rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  text-align: center;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(13, 148, 136, 0.18), transparent 60%),
    linear-gradient(135deg, var(--navy-deep) 0%, #1a3d5c 50%, #1e4a6e 100%);
  border-radius: 32px;
  color: #fff;
}

.cta-band h2 {
  font-size: var(--text-cta);
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  max-width: 22ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band p {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

/* ── Page hero ── */
.page-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2.5rem, 4vw, 3.5rem);
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, var(--teal-glow), transparent 50%),
    var(--bg-white);
}

.page-hero h1 {
  font-size: var(--text-page-hero);
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 20px;
  max-width: 18ch;
}

.page-hero-copy {
  font-size: var(--text-lead);
  color: var(--text-muted);
  max-width: 62ch;
  line-height: 1.8;
}

/* ── Forms (borderless) ── */
.form-wrap,
.auth-wrap {
  padding: clamp(2rem, 4vw, 3rem) 0;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.optional { font-weight: 400; color: var(--text-light); }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-bottom: 1px solid rgba(15, 39, 68, 0.12);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: var(--text-sm);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-bottom-color: var(--teal);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}

.aside-stack {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3.5rem);
}

.aside-block h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 12px;
}

.aside-block p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.75;
}

.auth-section {
  flex: 1;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 6vw, 5rem) 24px;
}

.auth-wrap {
  width: min(480px, 100%);
}

.auth-wrap h1 {
  font-size: var(--text-auth);
  font-weight: 800;
  color: var(--navy-deep);
  margin: 12px 0 16px;
}

.auth-copy {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-bottom: 32px;
  line-height: 1.75;
}

.auth-submit { width: 100%; margin-top: 8px; }

.auth-switch {
  text-align: center;
  margin-top: 28px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.auth-switch a {
  color: var(--teal-dark);
  font-weight: 600;
}

/* ── Flash ── */
.flash {
  width: min(var(--max-width), calc(100% - clamp(2rem, 5vw, 4rem)));
  margin: 20px auto 0;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--text-sm);
}

.flash-success {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.flash-error {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

/* ── Checklist ── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: grid;
  gap: 12px;
}

.checklist li {
  padding-left: 22px;
  position: relative;
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* ── Social ── */
.social-icons { display: flex; gap: 12px; }

.social-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(15, 39, 68, 0.05);
  transition: background 0.2s, transform 0.2s;
}

.social-icon svg { width: 18px; height: 18px; fill: var(--text-muted); }

.social-icon:hover {
  background: rgba(13, 148, 136, 0.12);
  transform: translateY(-2px);
}

.social-icon:hover svg { fill: var(--teal-dark); }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - clamp(2rem, 5vw, 4rem)));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
}

.footer-logo {
  width: auto;
  height: 52px;
  max-width: 180px;
  object-fit: contain;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: var(--text-sm);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  max-width: 36ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  transition: color 0.2s;
}

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

.footer-social .social-icon {
  background: rgba(255, 255, 255, 0.08);
}

.footer-social .social-icon svg { fill: rgba(255, 255, 255, 0.72); }

.footer-copy {
  width: min(var(--max-width), calc(100% - clamp(2rem, 5vw, 4rem)));
  margin: 40px auto 0;
  text-align: center;
  font-size: var(--text-2xs);
  color: rgba(255, 255, 255, 0.4);
}

/* ── Admin (minimal borders) ── */
.admin-page { background: var(--bg); }

.admin-header {
  background: var(--bg-white);
  padding: 20px 0;
}

.admin-header-inner {
  width: min(var(--max-width), calc(100% - clamp(2rem, 5vw, 4rem)));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-brand { display: flex; align-items: center; gap: 12px; }

.admin-title {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy-deep);
}

.admin-subtitle { font-size: var(--text-2xs); color: var(--text-light); }

.admin-main {
  width: min(var(--max-width), calc(100% - clamp(2rem, 5vw, 4rem)));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 48px;
}

.stat-block {
  padding: 8px 0;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.25vw, 3rem);
  font-weight: 800;
  color: var(--teal-dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--text-2xs);
  color: var(--text-muted);
  font-weight: 500;
}

.admin-section {
  margin-bottom: clamp(3rem, 5vw, 4rem);
}

.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  gap: 16px;
}

.admin-section-head h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy-deep);
}

.admin-section-head span {
  font-size: var(--text-2xs);
  color: var(--text-light);
}

.table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.admin-table th {
  text-align: left;
  padding: 12px 0;
  font-weight: 600;
  color: var(--text-light);
  font-size: var(--text-2xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(15, 39, 68, 0.08);
}

.admin-table td {
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid rgba(15, 39, 68, 0.06);
  vertical-align: top;
}

.admin-table tr:last-child td { border-bottom: none; }

.cell-date { white-space: nowrap; color: var(--text-light); font-size: var(--text-2xs); }

.cell-message { max-width: 280px; color: var(--text-muted); word-break: break-word; }

.table-link { color: var(--teal-dark); font-weight: 500; }

.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: var(--text-2xs);
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(13, 148, 136, 0.1);
  color: var(--teal-dark);
}

.role-user {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

.empty-state {
  padding: 32px 0;
  color: var(--text-muted);
  line-height: 1.75;
}

.muted-text { color: var(--text-light); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .split-grid,
  .contact-layout,
  .process-row {
    grid-template-columns: 1fr;
  }

  .hero-full .hero-scrim {
    background:
      linear-gradient(180deg, rgba(15, 39, 68, 0.88) 0%, rgba(15, 39, 68, 0.72) 55%, rgba(15, 39, 68, 0.55) 100%);
  }

  .footer-inner { grid-template-columns: 1fr; }

  .admin-stats { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 20px clamp(1rem, 5vw, 2rem) 24px;
    background: rgba(247, 249, 252, 0.98);
    backdrop-filter: blur(16px);
    margin-left: 0;
  }

  .site-nav.open { display: flex; }

  .page-home .site-nav.open {
    background: rgba(15, 39, 68, 0.96);
  }

  .page-home .site-nav.open .nav-link {
    color: rgba(255, 255, 255, 0.88);
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 80px;
    padding: 16px 0;
    position: relative;
    width: calc(100% - clamp(2rem, 5vw, 4rem));
  }

  .header-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .hero-actions { flex-direction: column; align-items: stretch; }

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

  .hero-full h1 { max-width: none; }

  .section-title { max-width: none; }

  .page-hero h1 { max-width: none; }
}
