/* ==========================================================================
   Felt Jets: Merge Shooter — base layer
   Design tokens, reset, typography, header, footer.
   Mobile-first: base rules target <= 768px, wider screens enhance below.
   ========================================================================== */

:root {
  /* Surfaces — deep petrol teal sampled from the app icon (#013548) */
  --surface-0: #06232f;
  --surface-1: #0b3141;
  --surface-2: #113f52;
  --surface-3: #175066;

  /* Accents — sky blue from the banner, felt ochre and signal red from the icon */
  --sky: #5cb2ec;
  --sky-deep: #2888d7;
  --ochre: #eab27c;
  --ochre-deep: #d1904f;
  --signal: #e2583c;

  /* Ink */
  --ink: #fdf6ec;
  --ink-soft: #c9dce5;
  --ink-mute: #9db7c4;

  /* Stitching and seams */
  --seam: rgba(234, 178, 124, 0.38);
  --seam-soft: rgba(201, 220, 229, 0.18);

  /* Type scale */
  --font-display: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --step-hero: clamp(2rem, 8.4vw, 3.9rem);
  --step-h2: clamp(1.6rem, 5.6vw, 2.6rem);
  --step-h3: clamp(1.1rem, 3.4vw, 1.3rem);
  --step-body: clamp(0.975rem, 2.9vw, 1.0625rem);

  /* Rhythm */
  --shell: 1140px;
  --gutter: clamp(1.15rem, 5vw, 2.5rem);
  --section-pad: clamp(3.5rem, 11vw, 6.5rem);
  --radius: 18px;
  --radius-lg: 26px;

  --header-h: 56px;
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------- reset -- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background-color: var(--surface-0);
  /* Felt fiber: soft overlapping tufts rather than a flat fill */
  background-image:
    radial-gradient(circle at 18% 8%, rgba(40, 136, 215, 0.18), transparent 46%),
    radial-gradient(circle at 86% 4%, rgba(234, 178, 124, 0.12), transparent 40%),
    radial-gradient(circle at 50% 96%, rgba(23, 80, 102, 0.55), transparent 58%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.65;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  margin: 0;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

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

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

:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 100;
  background: var(--ochre);
  color: var(--surface-0);
  font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 12px;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ochre);
  margin: 0 0 0.85rem;
}

.inline-link {
  color: var(--ochre);
  font-weight: 600;
  text-underline-offset: 3px;
}
.inline-link:hover,
.inline-link:active { color: var(--ink); }

/* -------------------------------------------------------------- header -- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(6, 35, 47, 0.93);
  border-bottom: 1px solid var(--seam-soft);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--seam);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-nav { display: none; }

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 14px;
  background: var(--ochre);
  color: var(--surface-0);
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s var(--ease-snap), background-color 0.2s ease;
}
.header-cta__text { display: none; }
.header-cta:hover { background: var(--ink); transform: translateY(-1px); }
.header-cta:active { transform: translateY(0) scale(0.97); }

/* -------------------------------------------------------------- footer -- */

.site-footer {
  border-top: 1px solid var(--seam-soft);
  background: rgba(4, 25, 34, 0.7);
  padding: clamp(2.5rem, 8vw, 3.5rem) 0 calc(6rem + env(safe-area-inset-bottom));
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.site-footer__brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--seam);
  flex-shrink: 0;
}

.site-footer__name {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.site-footer__tag {
  margin: 0.15rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-mute);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer__links a:hover,
.site-footer__links a:active {
  color: var(--ochre);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-mute);
  padding-top: 1.1rem;
  border-top: 1px dashed var(--seam-soft);
}

/* ------------------------------------------------- desktop enhancement -- */

@media (min-width: 768px) {
  :root { --header-h: 64px; }

  .brand__mark { width: 38px; height: 38px; }
  .brand__name { font-size: 1.15rem; }

  .site-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
  }

  .site-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.925rem;
    font-weight: 600;
    transition: color 0.18s ease;
  }
  .site-nav a:hover,
  .site-nav a:active { color: var(--ochre); }

  .header-cta {
    padding: 0.6rem 1.25rem;
    min-height: 44px;
  }
  .header-cta__text { display: inline; font-size: 0.9rem; }
  .header-cta__icon { display: none; }

  .site-footer {
    padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
  }

  .site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 1.5rem 2.5rem;
    align-items: start;
  }

  .site-footer__links { justify-content: flex-end; }

  .site-footer__legal {
    grid-column: 1 / -1;
  }
}
