/* ==========================================================================
   Eagle Football — landing page
   Palette, spacing and motion are all driven by the tokens below.
   ========================================================================== */

:root {
  /* Surfaces — off-black, warm-tinted rather than pure #000 */
  --ink-900: #07070b;
  --ink-850: #0b0b11;
  --ink-800: #11111a;
  --ink-700: #191922;

  /* Gold ramp */
  --gold-100: #fbe7b4;
  --gold-200: #f3d28a;
  --gold-300: #e8b44a;
  --gold-400: #cf9a34;
  --gold-500: #a9752a;
  --gold-600: #6e4a16;

  /* Type */
  --paper: #f5f2ea;
  --paper-dim: #cfc9bd;
  --muted: #98917f;

  /* Signal */
  --live: #45d986;
  /* The exclamation mark beside the guarantee line — sampled from the ❗ emoji
     it replaced, so the mark kept its colour when it became real text. */
  --alert: #f21874;

  /* Alpha helpers */
  --gold-hair: rgba(232, 180, 74, 0.26);
  --gold-hair-soft: rgba(232, 180, 74, 0.12);
  --gold-wash: rgba(232, 180, 74, 0.07);

  /* Fonts */
  --font-display: "Anton", "Arial Narrow", "Haettenschweiler", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
  --font-caps: "Barlow Condensed", "Barlow", sans-serif;

  /* Rhythm */
  --card-max: 26.5rem;
  --radius-card: 1.75rem;
  --gutter: clamp(0.875rem, 4.6vw, 1.5rem);

  /* Size of the gold display values (stats + guarantee line) */
  --value-size: clamp(0.9375rem, 4.3vw, 1.3125rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: clamp(1.25rem, 5vw, 3rem) var(--gutter)
           calc(clamp(1.25rem, 5vw, 3rem) + env(safe-area-inset-bottom));
  background-color: var(--ink-900);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--gold-300); color: var(--ink-900); }

a { color: inherit; }

:where(a, button):focus-visible {
  outline: 2px solid var(--gold-200);
  outline-offset: 3px;
  border-radius: 0.5rem;
}

/* ==========================================================================
   Backdrop — fixed atmospheric layers, never scrolled or interactive
   ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop__glow {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  transform: translateX(-50%);
  filter: blur(60px);
}

.backdrop__glow--crown {
  top: -22vmax;
  width: 78vmax;
  height: 52vmax;
  background: radial-gradient(
    closest-side,
    rgba(232, 180, 74, 0.2),
    rgba(169, 117, 42, 0.07) 55%,
    transparent 100%
  );
}

.backdrop__glow--base {
  bottom: -30vmax;
  width: 62vmax;
  height: 46vmax;
  background: radial-gradient(
    closest-side,
    rgba(207, 154, 52, 0.13),
    transparent 100%
  );
}

/* Faint pitch striping for texture */
.backdrop__lines {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(232, 180, 74, 0.035) 0 1px,
    transparent 1px 5.5rem
  );
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 25%, transparent 78%);
}

.backdrop__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Shell + card
   ========================================================================== */

.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--card-max);
  /* auto margins centre the card while staying scroll-safe when it
     outgrows the viewport (unlike align-items: center, which clips) */
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.125rem, 4vw, 1.5rem);
}

.shell--wide { max-width: 34rem; }

.card {
  position: relative;
  width: 100%;
  padding: clamp(1.75rem, 7vw, 2.375rem) clamp(1.125rem, 5.2vw, 1.75rem)
           clamp(1.125rem, 4.5vw, 1.5rem);
  border: 1px solid var(--gold-hair);
  border-radius: var(--radius-card);
  text-align: center;
  background:
    linear-gradient(180deg, var(--gold-wash), transparent 38%),
    linear-gradient(180deg, rgba(17, 17, 26, 0.9), rgba(7, 7, 11, 0.95));
  box-shadow:
    inset 0 1px 0 rgba(251, 231, 180, 0.16),
    0 1.5rem 3.5rem -1.25rem rgba(0, 0, 0, 0.9),
    0 0 4rem -1.25rem rgba(232, 180, 74, 0.28);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  animation: card-in 0.9s var(--ease-out) both;
}

/* Bright gold highlight arc across the top edge of the card */
.card__edge {
  position: absolute;
  top: 0;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(251, 231, 180, 0.75) 35%,
    rgba(251, 231, 180, 0.85) 50%,
    rgba(251, 231, 180, 0.75) 65%,
    transparent
  );
  pointer-events: none;
}

/* Staggered entrance for the card's contents */
.brand,
.status,
.lede,
.stats,
.guarantee,
.cta,
.access {
  animation: rise-in 0.75s var(--ease-out) both;
}

.brand     { animation-delay: 0.14s; }
.status    { animation-delay: 0.28s; }
.lede      { animation-delay: 0.36s; }
.stats     { animation-delay: 0.44s; }
.guarantee { animation-delay: 0.5s; }
.cta       { animation-delay: 0.58s; }
.access    { animation-delay: 0.66s; }

/* ==========================================================================
   Crest
   ========================================================================== */

.brand { margin: 0; }

.crest {
  position: relative;
  display: grid;
  place-items: center;
  margin-inline: auto;
  width: clamp(11.5rem, 60vw, 15rem);
}

/* A soft gold ring around the crest rather than a disc behind it — the crest
   art is screen-blended (below), so anything painted behind it shows through. */
.crest__halo {
  position: absolute;
  width: 122%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    transparent 40%,
    rgba(232, 180, 74, 0.2) 60%,
    transparent 78%
  );
  filter: blur(20px);
  animation: halo 5.5s var(--ease-soft) infinite;
}

/* The crest ships as a square image on a black ground (the official artwork).
   `screen` drops that black into the card so the crest reads as artwork
   instead of a pasted-in tile — a swapped-in logo must also sit on black. */
.crest__img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: screen;
  animation: hover-float 7s var(--ease-soft) infinite;
}

/* The brand name lives inside the crest artwork, so the <h1> is exposed to
   assistive tech and crawlers only. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Decorative football flourish */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: clamp(0.75rem, 3vw, 1rem);
  color: var(--gold-400);
}

.flourish__rule {
  height: 1px;
  width: clamp(2.25rem, 14vw, 4rem);
  background: linear-gradient(90deg, transparent, var(--gold-hair) 40%, var(--gold-300));
}

.flourish__rule:last-child {
  background: linear-gradient(270deg, transparent, var(--gold-hair) 40%, var(--gold-300));
}

.flourish__mark {
  width: 1.125rem;
  height: 1.125rem;
  flex: none;
  opacity: 0.85;
}

/* ==========================================================================
   Community status pill
   ========================================================================== */

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: clamp(1rem, 4vw, 1.375rem) auto 0;
  padding: 0.4375rem 0.875rem;
  border: 1px solid var(--gold-hair);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(232, 180, 74, 0.09), rgba(232, 180, 74, 0.02));
  box-shadow: 0 0 1.5rem -0.5rem rgba(232, 180, 74, 0.5),
              inset 0 1px 0 rgba(251, 231, 180, 0.12);
  font-family: var(--font-caps);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.045em;
  color: var(--paper-dim);
  white-space: nowrap;
}

.status__dot {
  position: relative;
  flex: none;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0.5rem var(--live);
}

.status__dot::after {
  content: "";
  position: absolute;
  inset: -0.1875rem;
  border-radius: 50%;
  border: 1px solid var(--live);
  animation: ping 2.4s var(--ease-out) infinite;
}

/* ==========================================================================
   Lede
   ========================================================================== */

.lede {
  margin: clamp(1rem, 4vw, 1.25rem) auto 0;
  max-width: 21.5rem;
  font-size: clamp(0.9375rem, 3.9vw, 1.0625rem);
  line-height: 1.65;
  color: var(--paper-dim);
  text-wrap: pretty;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: clamp(1.25rem, 5vw, 1.625rem) 0 0;
  padding: clamp(0.875rem, 3.6vw, 1.125rem) 0;
  border-top: 1px solid var(--gold-hair-soft);
  border-bottom: 1px solid var(--gold-hair-soft);
}

.stat {
  display: flex;
  flex-direction: column-reverse; /* value renders above its label */
  gap: 0.3125rem;
  padding-inline: 0.25rem;
  min-width: 0;
}

.stat + .stat {
  border-left: 1px solid var(--gold-hair-soft);
}

/* The gold display treatment shared by the stat values and the guarantee line
   above the CTA — one definition so the three stay identical. */
.stat__value,
.guarantee__text {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--value-size);
  line-height: 1.1;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-100), var(--gold-300) 60%, var(--gold-400));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 0.75rem rgba(232, 180, 74, 0.28));
}

.stat__label {
  font-family: var(--font-caps);
  font-size: clamp(0.5625rem, 2.4vw, 0.6875rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Guarantee line
   ========================================================================== */

/* Sits tight above the CTA so the two read as one block. The words themselves
   wear the shared gold display treatment (see `.stat__value`); this block only
   sets the spacing and the size the mark inherits. */
.guarantee {
  margin: clamp(1.125rem, 4.5vw, 1.5rem) 0 0;
  font-family: var(--font-display);
  font-size: var(--value-size);
  line-height: 1.1;
}

/* The mark is a real "!" set in Anton, so it inherits the line's font and size
   from `.guarantee` and lands on the caps' baseline at their cap height with no
   nudge — the sizing, `inline-block` and `translateY` this rule used to carry
   existed only to fight a colour-emoji glyph's metrics. It stays outside
   `.guarantee__text` because that rule paints its gradient through a
   transparent text fill, which would swallow the colour. */
.guarantee__bang {
  color: var(--alert);
}

/* `background-clip: text` paints the gradient across the element's own box. As
   an inline span that box is the font's content area — taller than the 1.1
   line box of the `<dd>` the stat values sit in — so the same gradient landed
   on the glyphs a shade lighter. `inline-block` gives it the identical box
   height, and with it the identical gold. */
.guarantee__text {
  display: inline-block;
}

.guarantee + .cta {
  margin-top: clamp(0.5rem, 2.2vw, 0.6875rem);
}

/* ==========================================================================
   CTA
   ========================================================================== */

.cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: clamp(1.25rem, 5vw, 1.625rem);
  padding: clamp(0.9375rem, 4vw, 1.125rem) 1rem;
  border: 1px solid rgba(251, 231, 180, 0.6);
  border-radius: 1rem;
  overflow: hidden;
  text-decoration: none;
  color: #1c1305;
  background: linear-gradient(165deg, var(--gold-100) 2%, var(--gold-300) 42%, var(--gold-400) 78%, var(--gold-500));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(110, 74, 22, 0.5),
    0 0.75rem 1.75rem -0.75rem rgba(232, 180, 74, 0.6),
    0 0 2.5rem -1rem rgba(232, 180, 74, 0.55);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s var(--ease-out);
  will-change: transform;
}

.cta__icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.cta__label {
  font-family: var(--font-display);
  font-size: clamp(0.9375rem, 4vw, 1.125rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.15;
  text-wrap: balance;
}

/* Sheen sweep on hover */
.cta__sheen {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

@media (hover: hover) {
  .cta:hover {
    transform: translateY(-2px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.6),
      inset 0 -1px 0 rgba(110, 74, 22, 0.5),
      0 1rem 2.25rem -0.75rem rgba(232, 180, 74, 0.72),
      0 0 3.25rem -0.75rem rgba(232, 180, 74, 0.7);
  }

  .cta:hover .cta__sheen {
    animation: sheen 0.75s var(--ease-soft);
  }
}

.cta:active { transform: translateY(0) scale(0.99); }

/* ==========================================================================
   Access note
   ========================================================================== */

.access {
  margin: clamp(0.875rem, 3.4vw, 1.0625rem) 0 0;
  font-family: var(--font-caps);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.foot {
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  animation: rise-in 0.75s var(--ease-out) 0.82s both;
}

.foot__copy { margin: 0; }

.foot__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 0.375rem;
  flex-wrap: wrap;
}

.foot__nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s var(--ease-soft);
}

.foot__nav a:hover { color: var(--gold-300); }

.foot__sep {
  width: 1px;
  height: 0.75rem;
  background: var(--gold-hair);
}

/* ==========================================================================
   Legal pages
   ========================================================================== */

.legal {
  width: 100%;
  max-width: 34rem;
  text-align: left;
  padding: clamp(1.5rem, 6vw, 2.25rem) clamp(1.25rem, 5vw, 2rem);
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-family: var(--font-caps);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-300);
  text-decoration: none;
}

.legal__back:hover { color: var(--gold-100); }

.legal h1 {
  margin: 1.25rem 0 0.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 7vw, 2rem);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--paper);
}

.legal h2 {
  margin: 1.75rem 0 0.375rem;
  font-family: var(--font-caps);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-300);
}

.legal p,
.legal li {
  color: var(--paper-dim);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal ul { padding-left: 1.125rem; margin: 0.375rem 0; }

.legal__meta {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

/* 375 × 812 — tighten the vertical rhythm on the smallest target */
@media (max-width: 24.125rem) {
  :root { --gutter: 1rem; }
  .status { font-size: 0.75rem; padding-inline: 0.75rem; }
  .lede { font-size: 0.9375rem; }
}

/* Desktop — keep the vertical card, never stretch it */
@media (min-width: 48rem) {
  :root {
    --card-max: 27.5rem;
    --radius-card: 2rem;
  }

  .card { padding: 2.75rem 2.25rem 1.75rem; }
  .backdrop__lines { opacity: 0.7; }
}

/* ==========================================================================
   Motion
   ========================================================================== */

@keyframes card-in {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(0.75rem); }
  to   { opacity: 1; transform: none; }
}

@keyframes halo {
  0%, 100% { opacity: 0.55; transform: scale(0.95); }
  50%      { opacity: 1;    transform: scale(1.04); }
}

@keyframes hover-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-0.3125rem); }
}

@keyframes ping {
  0%        { opacity: 0.9; transform: scale(0.6); }
  70%, 100% { opacity: 0;   transform: scale(2.1); }
}

@keyframes sheen {
  from { transform: translateX(0) skewX(-18deg); }
  to   { transform: translateX(360%) skewX(-18deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .cta:hover { transform: none; }
}
