:root {
  --royal-blue: #063a8f;
  --deep-blue: #04172f;
  --ink: #07111f;
  --gold: #d6a227;
  --gold-bright: #f2c14f;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ─── PAGE SHELL ─── */

.launch-page {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: 0 clamp(20px, 5vw, 72px);
  isolation: isolate;
}

/* ─── BACKGROUND LAYERS ─── */

.hero-media,
.hero-shade,
.floodlight-glow,
.gold-sweep,
.noise-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-media {
  z-index: -5;
  background-image: url("assets/royal-rugby-hero.png");
  background-position: 60% center;
  background-size: cover;
  transform: scale(1.02);
}

/* Lighter, more directional gradient — image breathes on the right */
.hero-shade {
  z-index: -4;
  background:
    linear-gradient(180deg, rgba(7, 17, 31, 0.55) 0%, transparent 22%),
    linear-gradient(0deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.22) 38%),
    linear-gradient(108deg,
      rgba(4, 23, 47, 0.97) 0%,
      rgba(4, 23, 47, 0.88) 28%,
      rgba(4, 23, 47, 0.52) 50%,
      rgba(4, 23, 47, 0.18) 68%,
      transparent 82%
    );
}

.floodlight-glow {
  z-index: -3;
  background:
    radial-gradient(ellipse at 86% 6%, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.18) 7%, transparent 18%),
    radial-gradient(ellipse at 74% 22%, rgba(242, 193, 79, 0.32) 0%, transparent 26%),
    radial-gradient(ellipse at 93% 18%, rgba(214, 162, 39, 0.24) 0%, transparent 16%);
  opacity: 0.82;
}

.gold-sweep {
  z-index: -2;
  width: 48%;
  background: linear-gradient(
    115deg,
    transparent 0%,
    rgba(242, 193, 79, 0.07) 38%,
    rgba(242, 193, 79, 0.15) 56%,
    transparent 100%
  );
  transform: translateX(-160%) skewX(-14deg);
  animation: sweep 7s ease-in-out infinite;
}

/* Grain texture for depth */
.noise-layer {
  z-index: -1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
}

/* ─── HEADER ─── */

.site-header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: block;
  width: 60px;
  height: 60px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 14px rgba(242, 193, 79, 0.3)) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  transition: filter 0.3s ease;
}

.brand-mark:hover {
  filter: drop-shadow(0 0 22px rgba(242, 193, 79, 0.55)) drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.05;
}

.brand strong {
  font-size: 0.97rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-pill {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(242, 193, 79, 0.38);
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(4, 23, 47, 0.7);
  color: var(--gold-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 4px 20px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(214, 162, 39, 0.08);
}

/* Shimmer sweep on pill */
.status-pill::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: pillShimmer 3.8s ease-in-out infinite 1.2s;
}

/* ─── HERO CONTENT ─── */

.hero-content {
  position: relative;
  z-index: 5;
  align-self: center;
  max-width: 740px;
  padding: 40px 0 110px;
}

/* Gold rule + eyebrow */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--gold-bright);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 30px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
}

h1,
p {
  margin-top: 0;
}

/* Gold-to-white headline */
h1 {
  max-width: 820px;
  margin-bottom: 28px;
  font-family: "Barlow Condensed", Inter, sans-serif;
  font-size: clamp(4rem, 12vw, 9.4rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 0.86;
  text-transform: uppercase;
  background: linear-gradient(
    155deg,
    var(--gold-bright) 0%,
    #ffe49a 18%,
    var(--white) 42%,
    var(--white) 68%,
    rgba(255, 255, 255, 0.78) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── GLASS PANEL ─── */

.hero-glass {
  position: relative;
  overflow: hidden;
  max-width: 480px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 26px 28px 26px;
  background: rgba(4, 23, 47, 0.76);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 24px 56px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(214, 162, 39, 0.07);
}

/* Gold left accent bar */
.hero-glass::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 60%, transparent 100%);
}

/* Inner top highlight line */
.hero-glass::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.1), transparent 60%);
}

.hero-copy {
  max-width: 100%;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.95rem, 1.4vw, 1.06rem);
  line-height: 1.7;
}

/* ─── SOCIAL CHANNELS ─── */

.social-channels {
  margin: 0;
  padding: 0;
}

.social-channels__label {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.social-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.social-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 16px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.24s, border-color 0.24s, box-shadow 0.24s, transform 0.2s;
}

.social-pill:hover {
  border-color: transparent;
  transform: translateY(-2px);
}

.social-pill--ig:hover {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  box-shadow: 0 8px 26px rgba(220, 39, 67, 0.45);
}

.social-pill--fb:hover {
  background: #1877f2;
  box-shadow: 0 8px 26px rgba(24, 119, 242, 0.45);
}

/* ─── TICKER ─── */

.ticker {
  position: absolute;
  z-index: 10;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  border-top: 2px solid var(--gold);
  background: var(--gold-bright);
  /* Fade edges */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 4%,
    black 10%,
    black 90%,
    rgba(0, 0, 0, 0.7) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.7) 4%,
    black 10%,
    black 90%,
    rgba(0, 0, 0, 0.7) 96%,
    transparent 100%
  );
}

.ticker-track {
  display: flex;
  width: max-content;
  min-width: 100%;
  animation: tickerMove 34s linear infinite;
}

.ticker span {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  padding: 0 30px;
  color: var(--ink);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ticker span::before {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  margin-right: 18px;
  border-radius: 50%;
  background: var(--ink);
  content: "";
}

/* ─── KEYFRAMES ─── */

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.52;
    transform: scale(1);
  }

  50% {
    opacity: 0.92;
    transform: scale(1.03);
  }
}

@keyframes sweep {
  0%, 42% {
    transform: translateX(-160%) skewX(-14deg);
  }

  74%, 100% {
    transform: translateX(340%) skewX(-14deg);
  }
}

@keyframes tickerMove {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@keyframes pillShimmer {
  0% {
    left: -100%;
  }

  100% {
    left: 220%;
  }
}

/* ─── REDUCED MOTION ─── */

@media (prefers-reduced-motion: reduce) {
  .gold-sweep,
  .ticker-track,
  .status-pill::after {
    animation: none;
  }
}

/* ─── 760px ─── */

@media (max-width: 760px) {
  .launch-page {
    min-height: 100svh;
  }

  .hero-media {
    background-position: 68% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(7, 17, 31, 0.6) 0%, transparent 20%),
      linear-gradient(0deg, rgba(7, 17, 31, 0.98) 0%, rgba(7, 17, 31, 0.28) 42%),
      linear-gradient(108deg,
        rgba(4, 23, 47, 0.98) 0%,
        rgba(4, 23, 47, 0.92) 45%,
        rgba(4, 23, 47, 0.6) 70%,
        rgba(4, 23, 47, 0.25) 100%
      );
  }

  .site-header {
    align-items: flex-start;
    padding: 20px 0;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
  }

  .status-pill {
    max-width: 144px;
    padding: 9px 12px;
    font-size: 0.65rem;
    text-align: center;
  }

  .hero-content {
    align-self: end;
    padding-bottom: 100px;
  }

  h1 {
    font-size: clamp(3.4rem, 18vw, 5.4rem);
  }

  .hero-glass {
    padding: 22px 22px 22px;
  }
}

/* ─── 520px ─── */

@media (max-width: 520px) {
  .site-header {
    gap: 10px;
  }

  .brand {
    gap: 10px;
  }

  .brand strong {
    font-size: 0.88rem;
  }

  .brand small {
    font-size: 0.68rem;
  }

  .status-pill {
    padding: 8px 10px;
    font-size: 0.62rem;
  }

  .hero-copy {
    font-size: 0.95rem;
  }

  .hero-glass {
    padding: 18px 18px 20px;
  }
}
