/* =============================================================================
   1891 Arena — Marcom revamp (Phase A + C)
   ============================================================================
   Loads after sport-demos.css. Augments — never replaces — the existing
   marcom CSS. Three modules:

     1. Hero gradient-mesh treatment (.hero--athletic)
     2. Simplicity strip (.no-app-strip) — "Open a tab. That's the install."
     3. Fan-experience showcase (.fan-showcase) — phone frame + spectator pitch
     4. Phone-scoreboard demo chrome (.phone-frame) — used by data-demo="phone-scoreboard"
     5. Motion polish — scroll-reveal, tilt-hover, athletic CTA sheen

   All animations honour prefers-reduced-motion.
   ============================================================================= */

/* ── Athletic hero (gradient mesh) ─────────────────────────────────
   Stacks a slow-drifting radial-gradient mesh under the existing
   hero content. Pure CSS, no JS, GPU-friendly. */

.hero--home,
.hub-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero--home::before,
.hub-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% -10% -10%;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 15% 20%, rgba(232, 155, 60, 0.22) 0%, transparent 70%),
    radial-gradient(55% 45% at 85% 12%, rgba(15, 184, 168, 0.20) 0%, transparent 70%),
    radial-gradient(70% 60% at 50% 100%, rgba(255, 61, 166, 0.16) 0%, transparent 75%),
    radial-gradient(45% 40% at 75% 85%, rgba(108, 92, 231, 0.18) 0%, transparent 70%);
  filter: blur(8px) saturate(115%);
  animation: arena-mesh-drift 28s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero--home::after,
.hub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(253, 246, 233, 0.35) 100%),
    repeating-linear-gradient(
      90deg,
      rgba(42, 29, 18, 0.018) 0 2px,
      transparent 2px 88px
    );
  pointer-events: none;
}

@keyframes arena-mesh-drift {
  0%   { transform: translate(0, 0)       scale(1);    }
  35%  { transform: translate(-3%, 1.5%)  scale(1.04); }
  65%  { transform: translate(2.5%, -2%)  scale(1.02); }
  100% { transform: translate(-1.5%, 2%)  scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .hero--home::before, .hub-hero::before { animation: none; }
}

/* Athletic hero spacing/type lift on home — bigger H1, more breathing room. */
.hero--home .hero__inner > h1 {
  font-size: clamp(2.15rem, 4.6vw + 0.5rem, 3.8rem);
  letter-spacing: -0.018em;
  line-height: 1.04;
}
.hero--home .hero__sub {
  max-width: 64ch;
}

/* ── Simplicity strip — "No app. Open a tab." ──────────────────────
   Sits directly under the hero, full-width, monochrome punch.
   Carries the anti-SportsEngine wedge. */

.no-app-strip {
  background: linear-gradient(180deg, #11161d 0%, #1a212b 100%);
  color: #fdf6e9;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 225, 168, 0.10);
  border-bottom: 1px solid rgba(255, 225, 168, 0.10);
  position: relative;
  overflow: hidden;
}
.no-app-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 80% at 12% 50%, rgba(232, 155, 60, 0.12) 0%, transparent 70%),
    radial-gradient(40% 80% at 88% 50%, rgba(15, 184, 168, 0.10) 0%, transparent 70%);
  pointer-events: none;
}
.no-app-strip__inner {
  position: relative;
  max-width: var(--c-container-max);
  margin: 0 auto;
  padding-inline: var(--c-container-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.no-app-strip__claim {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.no-app-strip__big {
  font-family: var(--c-font-mono);
  font-size: clamp(1.1rem, 2vw + 0.4rem, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.005em;
  color: #fff8e3;
}
.no-app-strip__big em {
  color: #ffc878;
  font-style: normal;
  font-weight: 800;
}
.no-app-strip__small {
  font-size: 0.92rem;
  color: rgba(253, 246, 233, 0.7);
  max-width: 56ch;
}
.no-app-strip__pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.no-app-strip__pill {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 225, 168, 0.10);
  color: #ffc878;
  border: 1px solid rgba(255, 225, 168, 0.18);
  white-space: nowrap;
}

/* ── Fan-experience showcase ─────────────────────────────────────── */

.fan-showcase {
  padding-block: 3.5rem 4rem;
  background:
    radial-gradient(60% 50% at 80% 30%, rgba(15, 184, 168, 0.10) 0%, transparent 70%),
    radial-gradient(50% 40% at 18% 75%, rgba(232, 155, 60, 0.10) 0%, transparent 70%),
    linear-gradient(180deg, #faf8f4 0%, #f4f0e7 100%);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.fan-showcase__inner {
  max-width: var(--c-container-max);
  margin: 0 auto;
  padding-inline: var(--c-container-pad);
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: center;
}
.fan-showcase__copy h2 {
  font-size: clamp(1.6rem, 2.4vw + 0.6rem, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0.5rem 0 0.9rem;
}
.fan-showcase__copy h2 em {
  font-style: normal;
  background: linear-gradient(90deg, #E89B3C 0%, #b54a00 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.fan-showcase__copy p {
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 56ch;
  color: var(--c-ink-soft);
}
.fan-showcase__beats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1.25rem;
  margin: 1.4rem 0;
  list-style: none;
  padding: 0;
}
.fan-showcase__beats li {
  font-size: 0.95rem;
  color: var(--c-ink);
  padding-left: 1.55rem;
  position: relative;
}
.fan-showcase__beats li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.42em;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #fdf6e9 0 30%, #E89B3C 32% 70%, transparent 72%);
  box-shadow: 0 0 0 2px rgba(232, 155, 60, 0.25);
}
.fan-showcase__phone {
  justify-self: center;
}

@media (max-width: 880px) {
  .fan-showcase__inner { grid-template-columns: 1fr; }
  .fan-showcase__phone { order: -1; }
  .fan-showcase__beats { grid-template-columns: 1fr; }
}

/* ── Phone frame (used by data-demo="phone-scoreboard" too) ────── */

.phone-frame {
  --phone-w: 280px;
  --phone-h: 580px;
  width: var(--phone-w);
  height: var(--phone-h);
  position: relative;
  background: #0d0a07;
  border-radius: 38px;
  padding: 14px 12px;
  box-shadow:
    0 30px 70px -25px rgba(20, 12, 6, 0.55),
    0 12px 30px -12px rgba(20, 12, 6, 0.25),
    inset 0 0 0 1px rgba(255, 225, 168, 0.08);
  overflow: hidden;
  transition: transform 380ms var(--c-ease-out);
}
.phone-frame::before {
  /* Notch */
  content: "";
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  background: #0d0a07;
  border-radius: 0 0 14px 14px;
  z-index: 3;
}
.phone-frame__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #11161d 0%, #1a212b 100%);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.phone-frame__url {
  font-family: var(--c-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  color: rgba(253, 246, 233, 0.55);
  text-align: center;
  padding: 30px 8px 8px;
  background: linear-gradient(180deg, #0d0a07 0%, #11161d 100%);
  border-bottom: 1px solid rgba(255, 225, 168, 0.08);
}
.phone-frame__url::before {
  content: "🔒 ";
  opacity: 0.55;
}
.phone-frame__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 18px;
  gap: 12px;
  overflow: hidden;
}
.phone-frame__title {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 200, 120, 0.8);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-frame__title::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #ff5454;
  box-shadow: 0 0 0 3px rgba(255, 84, 84, 0.22);
  animation: phone-pulse 1.6s ease-in-out infinite;
}
@keyframes phone-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 84, 84, 0.25); }
  50%      { box-shadow: 0 0 0 7px rgba(255, 84, 84, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .phone-frame__title::before { animation: none; }
}
.phone-frame__score {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 4px 16px;
  background: rgba(255, 225, 168, 0.03);
  border-radius: 12px;
  border: 1px solid rgba(255, 225, 168, 0.10);
}
.phone-frame__team {
  font-family: var(--c-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: rgba(253, 246, 233, 0.78);
  text-align: center;
  text-transform: uppercase;
  padding-inline: 4px;
  line-height: 1.25;
}
.phone-frame__team strong {
  display: block;
  font-family: var(--c-font-mono);
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffe1a8;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.phone-frame__sep {
  font-size: 0.7rem;
  color: rgba(253, 246, 233, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.phone-frame__meta {
  font-size: 0.7rem;
  color: rgba(253, 246, 233, 0.55);
  text-align: center;
  font-family: var(--c-font-mono);
  letter-spacing: 0.02em;
}
.phone-frame__feed {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 200px;
  overflow: hidden;
}
.phone-frame__feed li {
  font-family: var(--c-font-mono);
  font-size: 0.72rem;
  color: rgba(253, 246, 233, 0.82);
  padding: 6px 8px;
  border-radius: 6px;
  background: rgba(255, 225, 168, 0.04);
  border-left: 2px solid var(--demo-accent, #E89B3C);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  animation: phone-feed-in 320ms var(--c-ease-out);
}
.phone-frame__feed li:first-child {
  background: rgba(232, 155, 60, 0.16);
  border-left-color: #ffc878;
  color: #fff8e3;
}
.phone-frame__feed time {
  color: rgba(253, 246, 233, 0.5);
  font-size: 0.65rem;
  white-space: nowrap;
}
@keyframes phone-feed-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.phone-frame__sub {
  margin-top: auto;
  padding: 10px 12px;
  background: rgba(15, 184, 168, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(15, 184, 168, 0.22);
  font-size: 0.72rem;
  line-height: 1.4;
  color: #c4f5ec;
  text-align: center;
}
.phone-frame__sub strong { color: #fff; }

/* ── Phone-scoreboard demo (embedded variant — sits in .demo-frame) ── */

.phone-scoreboard {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem 0;
}
.phone-scoreboard__phone { justify-self: center; }
.phone-scoreboard__copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.phone-scoreboard__copy h3 {
  margin: 0;
  font-size: 1.3rem;
  letter-spacing: -0.012em;
  line-height: 1.18;
}
.phone-scoreboard__copy p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
}
.phone-scoreboard__beats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.phone-scoreboard__beats li {
  font-size: 0.92rem;
  padding-left: 1.4rem;
  position: relative;
  color: var(--c-ink);
}
.phone-scoreboard__beats li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--demo-accent, #E89B3C);
  font-weight: 700;
}

@media (max-width: 720px) {
  .phone-scoreboard { grid-template-columns: 1fr; }
  .phone-scoreboard__phone { order: -1; }
}

/* ── Tilt hover (driven by marcom-revamp.js) ─────────────────────── */

.tilt-host {
  transform-style: preserve-3d;
  transition: transform 280ms var(--c-ease-out), box-shadow 280ms var(--c-ease-out);
  will-change: transform;
}
.tilt-host[data-tilt-active="true"] {
  transition: transform 60ms linear, box-shadow 280ms var(--c-ease-out);
}
.tilt-host > * {
  transform: translateZ(0);
}

@media (prefers-reduced-motion: reduce) {
  .tilt-host, .tilt-host[data-tilt-active="true"] { transform: none !important; }
}

/* ── Scroll reveal ──────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--c-ease-out), transform 620ms var(--c-ease-out);
  will-change: opacity, transform;
}
.reveal[data-revealed="true"] {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-reveal-delay="1"] { transition-delay: 80ms; }
.reveal[data-reveal-delay="2"] { transition-delay: 160ms; }
.reveal[data-reveal-delay="3"] { transition-delay: 240ms; }
.reveal[data-reveal-delay="4"] { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Athletic CTA sheen ─────────────────────────────────────────── */

.btn--bloom {
  position: relative;
  overflow: hidden;
}
.btn--bloom::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 720ms var(--c-ease-out);
  pointer-events: none;
  z-index: 1;
}
.btn--bloom:hover::before,
.btn--bloom:focus-visible::before {
  transform: translateX(110%);
}
.btn--bloom > * { position: relative; z-index: 2; }

@media (prefers-reduced-motion: reduce) {
  .btn--bloom::before { display: none; }
}

/* ── Sport-tile micro-lift (additive — works with existing .nine-tile) ── */

.nine-tile {
  background-image: linear-gradient(180deg, #ffffff 0%, #fdfbf7 100%);
  position: relative;
  overflow: hidden;
}
.nine-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    180px 120px at var(--tile-x, 50%) var(--tile-y, 50%),
    rgba(232, 155, 60, 0.10) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 280ms var(--c-ease-out);
  pointer-events: none;
}
.nine-tile:hover::before,
.nine-tile:focus-visible::before {
  opacity: 1;
}
