/* =========================================================
   Eagle Sport Group — landing page (navy / blue / gold)
   ========================================================= */

:root {
  /* Palette */
  --navy-950: #04070f;
  --navy-900: #060a16;
  --navy-800: #0a1122;
  --navy-700: #0e1a35;
  --navy-600: #12233f;

  --blue:        #3b82f6;
  --blue-bright: #5aa9ff;
  --blue-glow:   rgba(74, 150, 255, 0.55);

  --gold:        #e6be5a;
  --gold-light:  #f6e199;
  --gold-dark:   #b8860b;

  --silver-hi:   #ffffff;
  --silver-lo:   #9fb0c8;

  --text-muted:  #93a3bd;

  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --maxw: 1180px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--text-muted);
  background: var(--navy-900);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* Lock scroll while preloader is active */
body.is-loading { overflow: hidden; height: 100vh; }

/* =========================================================
   Ambient background
   ========================================================= */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 8%, #142a52 0%, #0b1730 38%, var(--navy-900) 72%, var(--navy-950) 100%);
}

/* Central soft glow behind the title */
.bg__glow {
  position: absolute;
  top: -18%;
  left: 50%;
  width: 90vmax;
  height: 70vmax;
  transform: translateX(-50%);
  background: radial-gradient(circle at 50% 40%, rgba(46, 96, 180, 0.38), transparent 58%);
  filter: blur(10px);
  will-change: transform;
}

/* Diagonal light beams (top-left) */
.bg__beams {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    116deg,
    transparent 0 46px,
    rgba(130, 185, 255, 0.045) 46px 48px,
    transparent 48px 96px
  );
  -webkit-mask: radial-gradient(70% 65% at 12% 6%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 75%);
          mask: radial-gradient(70% 65% at 12% 6%, #000 0%, rgba(0,0,0,0.35) 45%, transparent 75%);
}
/* A couple of brighter individual rays */
.bg__beams::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(116deg, transparent 15.5%, rgba(150, 200, 255, 0.16) 16%, transparent 16.5%),
    linear-gradient(116deg, transparent 22.5%, rgba(150, 200, 255, 0.10) 23%, transparent 23.5%),
    linear-gradient(116deg, transparent 29.5%, rgba(150, 200, 255, 0.13) 30%, transparent 30.5%);
  -webkit-mask: radial-gradient(65% 60% at 10% 4%, #000 0%, transparent 70%);
          mask: radial-gradient(65% 60% at 10% 4%, #000 0%, transparent 70%);
}

/* =========================================================
   Preloader
   ========================================================= */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--navy-900);
}
.preloader__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.preloader__logo {
  width: clamp(200px, 34vw, 300px);
  height: clamp(200px, 34vw, 300px);
  object-fit: contain;
  filter: drop-shadow(0 0 26px rgba(74, 150, 255, 0.45));
}
.preloader__bar {
  width: 180px;
  height: 3px;
  border-radius: 3px;
  background: rgba(90, 150, 240, 0.16);
  overflow: hidden;
}
.preloader__fill {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright), #9ecbff);
}

/* =========================================================
   Hero layout
   ========================================================= */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(32px, 6vh, 80px) clamp(18px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Title ---------- */
.hero__title {
  font-size: clamp(2.4rem, 8vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1.02;
  display: flex;
  flex-wrap: wrap;
  gap: 0.28em;
  justify-content: center;
}
.hero__title-silver,
.hero__title-gold {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero__title-silver {
  background-image: linear-gradient(180deg, #ffffff 0%, #eef3fb 30%, #b4c2d8 58%, #8595b0 72%, #e6ecf6 100%);
  filter: drop-shadow(0 2px 18px rgba(180, 205, 245, 0.18));
}
.hero__title-gold {
  font-weight: 500;
  background-image: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 48%, var(--gold-dark) 100%);
  filter: drop-shadow(0 2px 18px rgba(214, 168, 67, 0.22));
}

/* ---------- Subtitle ---------- */
.hero__subtitle {
  margin-top: clamp(18px, 3vh, 30px);
  max-width: 640px;
  color: var(--text-muted);
  font-size: clamp(0.95rem, 1.9vw, 1.28rem);
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* ---------- Scroll indicator ---------- */
.scroll {
  margin: clamp(28px, 5vh, 52px) 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  width: min(560px, 82%);
}
.scroll__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 155, 245, 0.55));
}
.scroll__line:last-child {
  background: linear-gradient(90deg, rgba(90, 155, 245, 0.55), transparent);
}
.scroll__mouse {
  position: relative;
  width: 26px;
  height: 42px;
  border: 1.6px solid rgba(120, 175, 255, 0.75);
  border-radius: 14px;
  flex: 0 0 auto;
  box-shadow: 0 0 16px rgba(74, 150, 255, 0.35);
}
.scroll__wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--blue-bright);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
.scroll__chevron {
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -4px;
  border-right: 1.6px solid rgba(120, 175, 255, 0.75);
  border-bottom: 1.6px solid rgba(120, 175, 255, 0.75);
  transform: rotate(45deg);
}
@keyframes scroll-dot {
  0%   { opacity: 0; transform: translateY(0); }
  40%  { opacity: 1; }
  80%  { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; }
}

/* =========================================================
   Logo bar
   ========================================================= */
.logobar {
  position: relative;
  width: min(1060px, 100%);
  display: flex;
  align-items: stretch;
  gap: clamp(4px, 1vw, 10px);
  padding: clamp(18px, 2.6vw, 30px) clamp(14px, 2.5vw, 34px);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(20, 38, 72, 0.55), rgba(9, 18, 38, 0.62));
  backdrop-filter: blur(6px);
  box-shadow:
    0 22px 60px rgba(4, 10, 26, 0.55),
    inset 0 1px 0 rgba(120, 170, 255, 0.06);
  will-change: transform;
}

/* Glowing gradient border, brighter at bottom-left & top-right */
.logobar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    45deg,
    var(--blue-bright) 0%,
    rgba(90, 150, 240, 0.10) 32%,
    rgba(90, 150, 240, 0.10) 68%,
    var(--blue-bright) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Corner blooms (bottom-left / top-right) */
.logobar::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background:
    radial-gradient(28% 60% at 2% 100%, rgba(74, 150, 255, 0.40), transparent 70%),
    radial-gradient(28% 60% at 98% 0%,  rgba(74, 150, 255, 0.40), transparent 70%);
  filter: blur(6px);
  opacity: 0.9;
  pointer-events: none;
  z-index: -1;
}

.logobar__item {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(10px, 1.4vw, 18px);
  padding: clamp(6px, 1vw, 14px) clamp(6px, 1.1vw, 16px);
  border-radius: 14px;
  will-change: transform;
}
.logobar__head {
  min-height: 2.4em;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.6rem, 1.05vw, 0.78rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: center;
  color: #d8c79a;
  text-shadow: 0 1px 8px rgba(74, 150, 255, 0.15);
}
.logobar__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
}
.logobar__item img {
  width: auto;
  height: clamp(74px, 10.5vw, 132px);
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(184, 134, 11, 0.28));
  will-change: transform, filter;
}

/* Vertical separators */
.logobar__sep {
  flex: 0 0 1px;
  align-self: stretch;
  margin: clamp(4px, 1vh, 10px) 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(140, 175, 230, 0.28) 20%,
    rgba(140, 175, 230, 0.28) 80%,
    transparent
  );
}

/* Keyboard focus */
.logobar__item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--navy-900), 0 0 0 4px var(--blue-bright);
}

/* =========================================================
   Exit transition overlay
   ========================================================= */
.transition {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: radial-gradient(circle at 50% 50%, #0d1e3f, var(--navy-950));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================================
   Fallbacks
   ========================================================= */
.no-js .preloader { display: none; }

@media (prefers-reduced-motion: reduce) {
  .scroll__wheel { animation: none !important; }
}

/* ---------- Responsive: stack logos on small screens ---------- */
@media (max-width: 720px) {
  .logobar {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 20px 16px;
  }
  .logobar__item { flex: 0 0 40%; }
  .logobar__sep { display: none; }
}
@media (max-width: 420px) {
  .logobar__item { flex: 0 0 46%; }
}
