:root {
  --surface-primary: #f4f9fc;
  --surface-inverse: #04253c;
  --ocean-deep: #03182b;
  --ocean-mid: #0a4568;
  --ocean-bright: #1a8fb0;
  --gold: #e8b84a;
  --aqua: #3ecfb2;
  --text-primary: #0c2438;
  --text-secondary: #5b7388;
  --text-inverse: #ffffff;
  --text-muted-inv: #9bb4c4;
  --copyright-bg: #010b16;
  --header-h: 5.5rem;
  --container: 80rem;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --radius-full: 999px;
  --font-heading: "Funnel Sans", "Segoe UI", sans-serif;
  --font-body: Inter, "Segoe UI", sans-serif;
  --shadow-phone: 0 0.25rem 0.5rem rgb(0 0 0 / 0.12), 0 1.125rem 2.5rem rgb(0 0 0 / 0.25);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--surface-primary);
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

address {
  font-style: normal;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--aqua);
  color: var(--ocean-deep);
  font-weight: 600;
  border-radius: 0.5rem;
}

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

.container {
  width: min(100% - var(--gutter) * 2, var(--container));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ocean-deep);
  padding-top: env(safe-area-inset-top);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  flex-wrap: nowrap;
}

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

.brand img {
  width: clamp(9.5rem, 42vw, 12.5rem);
  height: auto;
  aspect-ratio: 200 / 58;
  object-fit: contain;
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 1.35rem;
  height: 0.125rem;
  background: var(--text-inverse);
  border-radius: var(--radius-full);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(0.475rem) rotate(45deg);
}

.nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-0.475rem) rotate(-45deg);
}

.site-nav {
  position: fixed;
  top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem var(--gutter) 1.25rem;
  background: var(--ocean-deep);
  box-shadow: none;
}

.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 1.5rem;
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.4), transparent);
}

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

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  background: transparent;
}

.nav-open .nav-backdrop {
  display: block;
}

html.nav-open,
body.nav-open {
  overscroll-behavior: none;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  width: 100%;
}

.nav-list a {
  display: block;
  padding: 0.7rem 0.5rem;
  color: #c5d8e4;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.nav-list a.is-active,
.nav-list a:hover,
.nav-list a:focus-visible {
  color: var(--text-inverse);
}

.nav-list a.is-active {
  font-weight: 600;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.5625rem;
  padding: 0.75rem 1.375rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--aqua);
  color: var(--ocean-deep);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  filter: brightness(1.06);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

.header-cta {
  width: fit-content;
  align-self: center;
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32rem;
  color: var(--text-inverse);
  background-color: #073a58;
  background-image:
    linear-gradient(90deg, rgb(3 24 43 / 0.4) 0%, rgb(7 58 88 / 0.4) 36%, rgb(14 106 136 / 0) 100%),
    url("../images/banner1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.hero-inner {
  padding-block: clamp(3.5rem, 8vw, 5rem);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
  max-width: 38.75rem;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
}

.hero p {
  max-width: 31.25rem;
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.55;
}

.btn-hero {
  min-height: 3.125rem;
  padding: 1rem 1.75rem;
  font-size: 0.9375rem;
}

.btn-arrow {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.section-head {
  display: grid;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head-center {
  text-align: center;
  justify-items: center;
}

.section-head h2,
.showcase-copy h3,
.module h3,
.feature-grid h3,
.approach-grid h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

.section-head h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  color: var(--text-primary);
}

.section-head p {
  max-width: 46rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  color: var(--ocean-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.about,
.approach {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--surface-primary);
}

.module-grid,
.feature-grid,
.approach-grid,
.footer-grid {
  display: grid;
  gap: 1.75rem;
}

.module {
  display: grid;
  gap: 0.85rem;
  align-content: start;
}

.module-accent {
  width: 2.25rem;
  height: 0.18rem;
  border-radius: var(--radius-full);
  background: var(--aqua);
}

.module h3,
.feature-grid h3,
.approach-grid h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.module-icon {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--ocean-mid);
  flex: 0 0 auto;
}

.module p,
.feature-grid p,
.approach-grid p {
  color: var(--text-secondary);
}

.game {
  padding-block: clamp(3.5rem, 8vw, 7rem);
  background: var(--surface-inverse);
  color: var(--text-inverse);
}

.section-head-inverse h2,
.showcase-copy h3 {
  color: var(--text-inverse);
}

.section-head-inverse p {
  color: var(--text-muted-inv);
}

.section-head-inverse .game-kicker {
  color: var(--aqua);
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 500;
}

.showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vw, 4rem);
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(#06324abf, #06324abf),
    url("../images/banner3.jpg") center / cover no-repeat;
}

.phone {
  width: min(18.25rem, 100%);
  width: auto;
  padding: 0.625rem;
  border-radius: 2.75rem;
  background: #071018;
  box-shadow: var(--shadow-phone);
  flex: 0 0 auto;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
}

.showcase-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 32.5rem;
}

.showcase-copy .eyebrow {
  font-size: 0.75rem;
}

.showcase-copy h3 {
  font-size: clamp(1.7rem, 4vw, 2.75rem);
  line-height: 1.12;
}

.showcase-copy p:last-child {
  max-width: 28.75rem;
  color: var(--text-muted-inv);
  font-size: 1.0625rem;
  line-height: 1.55;
}

.feature-num,
.approach-num {
  display: block;
  color: var(--aqua);
  font-weight: 700;
}

.feature-num {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 0.85rem;
  margin-bottom: 0.45rem;
}

.feature-grid h3,
.approach-grid h3 {
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.5rem;
}

.feature-grid h3 {
  font-size: 1.35rem;
  color: var(--text-inverse);
}

.feature-grid p {
  color: var(--text-muted-inv);
}

.approach-num {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.approach-grid h3 {
  font-size: 1.65rem;
}

.site-footer {
  padding-block: clamp(3rem, 6vw, 4.5rem);
  background: var(--ocean-deep);
  color: var(--text-muted-inv);
}

.footer-grid {
  align-items: start;
}

.footer-brand p {
  margin-top: 1rem;
}

.footer-col h2 {
  margin-bottom: 0.9rem;
  color: var(--text-inverse);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.footer-col ul,
.footer-contact {
  display: grid;
  gap: 0.7rem;
}

.footer-col a {
  color: var(--text-muted-inv);
  text-decoration: none;
}

.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--text-inverse);
}

.footer-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0;
  min-height: 1.6em;
}

.footer-icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.3em;
  flex: 0 0 auto;
  color: var(--aqua);
}

.copyright {
  padding: 1.15rem var(--gutter);
  background: var(--copyright-bg);
  color: #6e8798;
  text-align: center;
  font-size: 0.8125rem;
}

.back-top {
  position: fixed;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--aqua);
  color: var(--ocean-deep);
  box-shadow: 0 0.5rem 1.25rem rgb(3 24 43 / 0.28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-top svg {
  width: 1.15rem;
  height: 1.15rem;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.back-top:hover,
.back-top:focus-visible {
  filter: brightness(1.06);
}

.legal-page .legal {
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}

.legal-card {
  max-width: 52rem;
  margin-inline: auto;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
  color: var(--ocean-mid);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

.legal-back svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.legal-back:hover,
.legal-back:focus-visible {
  color: var(--ocean-deep);
}

.legal-card h1 {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal-doc-id {
  margin: 0 0 0.35rem;
  color: var(--ocean-bright);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-updated {
  margin-bottom: 1.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.legal-card h2 {
  margin: 2rem 0 0.7rem;
  font-family: var(--font-heading);
  font-size: 1.2rem;
}

.legal-card h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--font-heading);
  font-size: 1rem;
}

.legal-card p {
  margin: 0;
}

.legal-card p + p {
  margin-top: 0.85rem;
}

.legal-card p,
.legal-card li {
  color: var(--text-secondary);
}

.legal-card ul {
  display: grid;
  gap: 0.4rem;
  margin: 0.7rem 0 0.85rem;
  padding-left: 1.2rem;
  list-style: disc;
}

.legal-card a {
  color: var(--ocean-mid);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

@media (max-width: 63.99rem) {
  .hero {
    background-image:
      linear-gradient(180deg, rgb(3 24 43 / 0.72) 0%, rgb(7 58 88 / 0.64) 48%, rgb(3 24 43 / 0.58) 100%),
      url("../images/banner1.jpg");
    background-position: 88% center;
  }

  .hero-inner,
  .hero-copy {
    align-items: center;
    text-align: center;
  }

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

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

  .about,
  .game,
  .approach,
  .site-footer {
    text-align: center;
  }

  .module,
  .feature-grid li,
  .approach-grid li,
  .showcase-copy {
    justify-items: center;
    text-align: center;
  }

  .module-accent {
    margin-inline: auto;
  }

  .module h3,
  .feature-grid h3,
  .approach-grid h3 {
    justify-content: center;
  }

  .showcase-copy {
    align-items: center;
    width: 100%;
  }

  .showcase-copy p:last-child {
    max-width: 100%;
  }

  .footer-grid,
  .footer-col,
  .footer-col ul,
  .footer-contact,
  .footer-brand {
    justify-items: center;
    text-align: center;
  }

  .footer-brand .brand {
    justify-content: center;
  }

  .footer-line {
    justify-content: center;
  }
}

@media (min-width: 48rem) {
  .module-grid,
  .feature-grid,
  .approach-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 2.5rem;
  }
}

@media (min-width: 64rem) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .brand {
    justify-self: start;
  }

  .nav-toggle {
    display: none;
  }

  .nav-open .nav-backdrop {
    display: none;
  }

  .site-nav {
    display: contents;
  }

  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 2.25rem;
    justify-self: center;
  }

  .nav-list a {
    padding: 0;
    font-size: 0.875rem;
  }

  .header-cta {
    justify-self: end;
  }

  .hero {
    height: 47.5rem;
    min-height: 47.5rem;
    padding: 0;
    background-position: center;
  }

  .hero-inner {
    padding-block: 0;
  }

  .hero-copy {
    width: 38.75rem;
    max-width: 38.75rem;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .showcase {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: clamp(2rem, 5vw, 4rem);
    padding: 3.5rem clamp(2rem, 11vw, 10rem);
    min-height: 39.5625rem;
  }

  .phone {
    height: 32rem;
  }

  .showcase-copy {
    flex: 1 1 20rem;
    width: auto;
    max-width: 32.5rem;
  }

  .showcase-copy h3 {
    font-size: 2.75rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
