/* STAT-TIS marketing + shared chrome */
:root {
  --navy: #052545;
  --navy-deep: #03182d;
  --blue: #0170c2;
  --blue-hover: #015a9c;
  --body: #0d141a;
  --muted: #56585e;
  --border: #dadce0;
  --surface: #f2f3f6;
  --white: #ffffff;
  --font-head: "Outfit", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --header-h: 105px;
  --max: 1120px;
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue);
}

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

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

/* —— Header —— */
.chrome-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--white);
  border-bottom: 1px solid rgba(5, 37, 69, 0.06);
}

.chrome-header__inner {
  width: min(100% - 32px, 1240px);
  margin: 0 auto;
  min-height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.chrome-logo {
  display: flex;
  align-items: center;
  width: 294px;
  max-width: 100%;
  height: 59px;
}

.chrome-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chrome-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 35px;
  flex-wrap: wrap;
}

.chrome-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}

.chrome-nav a:hover,
.chrome-nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 7px;
}

.chrome-cta {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}

.chrome-cta:hover {
  background: var(--blue);
  color: var(--white);
}

/* —— Footer —— */
.chrome-footer {
  margin-top: auto;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}

.chrome-footer a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

.chrome-footer a:hover {
  text-decoration: underline;
  color: var(--white);
}

.chrome-footer__inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 2.5rem 0 1.75rem;
  display: grid;
  gap: 1.5rem;
}

.chrome-footer__brand img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}

.chrome-footer__tag {
  margin: 0.75rem 0 0;
  max-width: 26rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

.chrome-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.chrome-footer__nav a {
  font-weight: 600;
}

.chrome-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.chrome-footer__legal-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 1rem 0 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  justify-content: space-between;
}

.chrome-footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.chrome-footer__links {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.45rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
}

.btn-light:hover {
  background: var(--surface);
  color: var(--navy);
}

.btn-light-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-light-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

/* —— Marketing layout —— */
.mkt-main {
  flex: 1;
}

.mkt-wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.mkt-hero {
  background:
    radial-gradient(900px 420px at 85% -20%, rgba(1, 112, 194, 0.16), transparent 55%),
    linear-gradient(180deg, #f4f7fb 0%, var(--white) 70%);
  padding: 4rem 0 3.25rem;
}

.mkt-hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .mkt-hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.mkt-kicker {
  margin: 0 0 0.65rem;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}

.mkt-hero h1,
.mkt-section h2,
.mkt-page-title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--navy);
}

.mkt-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.15rem);
  max-width: 14ch;
}

.mkt-lede {
  margin: 1rem 0 0;
  font-size: 1.125rem;
  color: #243039;
  max-width: 38rem;
}

.mkt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.mkt-hero__media {
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: 0 18px 50px rgba(5, 37, 69, 0.18);
}

.mkt-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.mkt-section {
  padding: 3.25rem 0;
}

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

.mkt-section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.9);
}

.mkt-section--navy h2,
.mkt-section--navy .mkt-kicker {
  color: var(--white);
}

.mkt-section--navy .mkt-kicker {
  color: #8ec5f0;
}

.mkt-section--navy p {
  color: rgba(255, 255, 255, 0.78);
}

.mkt-section h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
}

.mkt-section p {
  margin: 0;
  max-width: 42rem;
  color: #243039;
}

.mkt-section p + p {
  margin-top: 0.85rem;
}

.mkt-grid-3 {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 760px) {
  .mkt-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mkt-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.mkt-card h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
}

.mkt-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.mkt-split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .mkt-split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.mkt-person {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.35rem;
}

.mkt-person h3 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
}

.mkt-person .role {
  margin: 0.2rem 0 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
}

.mkt-person p {
  margin: 0;
  color: #243039;
  font-size: 0.98rem;
}

.mkt-page {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(1000px 420px at 80% -10%, rgba(1, 112, 194, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f8fb 0%, var(--white) 40%);
}

.mkt-page-title {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 0.5rem;
}

.mkt-meta {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.mkt-prose {
  max-width: 720px;
}

.mkt-prose p {
  margin: 0 0 1rem;
  color: #243039;
}

.mkt-prose h2 {
  margin: 2rem 0 0.6rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
  color: var(--navy);
}

.mkt-news-list {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  max-width: 720px;
}

.mkt-news-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}

.mkt-news-item:hover {
  border-color: rgba(1, 112, 194, 0.45);
}

.mkt-news-item h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--navy);
}

.mkt-news-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.mkt-form {
  display: grid;
  gap: 0.85rem;
  max-width: 32rem;
  margin-top: 1.5rem;
}

.mkt-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.mkt-form input,
.mkt-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  color: var(--body);
  background: var(--white);
}

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

.mkt-form button {
  justify-self: start;
  cursor: pointer;
  font: inherit;
}

.mkt-contact-email {
  margin-top: 1rem;
  font-size: 1rem;
}

/* —— Legal / 404 leftovers —— */
.legal-main,
.miss-main {
  flex: 1;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(1, 112, 194, 0.08), transparent 60%),
    linear-gradient(180deg, #f7f8fb 0%, var(--white) 42%);
}

.miss-main {
  display: flex;
  align-items: center;
}

.miss-card {
  width: min(100% - 32px, 680px);
  margin: 3.5rem auto 4.5rem;
  text-align: center;
}

.miss-code {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(4.5rem, 16vw, 8rem);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.9;
  color: var(--navy);
}

.miss-card h1 {
  margin: 0.85rem 0 0.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.miss-card p {
  margin: 0 auto 1.6rem;
  max-width: 36rem;
  color: var(--muted);
}

.miss-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.miss-more {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.1rem;
  font-size: 0.92rem;
}

.miss-more a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.miss-more a:hover {
  text-decoration: underline;
}

@media (max-width: 920px) {
  :root {
    --header-h: 82px;
  }

  .chrome-header__inner {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "logo cta"
      "nav nav";
    min-height: 0;
    padding: 16px 0 12px;
  }

  .chrome-logo {
    grid-area: logo;
    width: 171px;
    height: 34px;
  }

  .chrome-cta {
    grid-area: cta;
    padding: 10px 20px;
    font-size: 14px;
  }

  .chrome-nav {
    grid-area: nav;
    justify-content: flex-start;
    gap: 16px 20px;
    padding-top: 8px;
  }
}
