:root {
  --bg: #050607;
  --bg-soft: #0a0c0e;
  --card: #0d1013;
  --card-hover: #11161a;

  --blue: #2E7FE8;
  --blue-bright: #5598EE;
  --blue-dark: #1F64C2;

  --white: #f6f8f9;
  --silver: #c5cbd0;
  --muted: #818b93;

  --border: rgba(255, 255, 255, 0.09);

  --max-width: 1180px;
}


/* =========================================
   RESET
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background: var(--bg);
  color: var(--white);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  line-height: 1.5;
}

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

img {
  max-width: 100%;
}

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}


/* =========================================
   NAV
   ========================================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;

  background: rgba(5, 6, 7, 0.82);
  backdrop-filter: blur(18px);

  border-bottom: 1px solid var(--border);
}

.nav-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;

  gap: 12px;
}

.brand-logo {
  width: 44px;
  height: 44px;

  object-fit: contain;

  flex-shrink: 0;
}

.brand-wordmark {
  display: block;

  width: 145px;
  max-height: 38px;

  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  gap: 34px;

  color: var(--silver);

  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-download {
  padding: 11px 18px;

  background: var(--blue);
  color: white;

  border-radius: 9px;

  font-size: 14px;
  font-weight: 800;

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.nav-download:hover {
  background: var(--blue-bright);

  transform: translateY(-1px);
}


/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;

  min-height: 760px;

  display: flex;
  align-items: center;

  overflow: hidden;

  border-bottom: 1px solid var(--border);
}

.hero-glow {
  position: absolute;

  width: 700px;
  height: 700px;

  right: -220px;
  top: 40px;

  background:
    radial-gradient(
      circle,
      rgba(46, 127, 232, 0.16),
      transparent 67%
    );

  pointer-events: none;
}

.hero-grid {
  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  gap: 60px;

  align-items: center;

  padding-top: 85px;
  padding-bottom: 85px;
}

.eyebrow,
.section-kicker {
  color: var(--blue);

  font-size: 12px;
  font-weight: 900;

  letter-spacing: 0.18em;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;

  background: var(--blue);

  border-radius: 50%;

  box-shadow: 0 0 16px var(--blue);
}

.hero h1 {
  max-width: 780px;

  margin: 20px 0 24px;

  font-size: clamp(58px, 6vw, 88px);

  line-height: 0.96;

  letter-spacing: -0.055em;
}

.hero h1 span {
  color: var(--blue);
}

.hero-description {
  max-width: 590px;

  margin-bottom: 34px;

  color: var(--silver);

  font-size: 19px;

  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;

  gap: 18px;

  flex-wrap: wrap;
}


/* =========================================
   APP STORE BUTTON
   ========================================= */

.app-store-button {
  min-width: 178px;

  display: inline-flex;
  align-items: center;

  gap: 11px;

  padding: 10px 20px 11px;

  background: var(--white);
  color: #050607;

  border-radius: 11px;

  transition: transform 0.2s ease;
}

.app-store-button:hover {
  transform: translateY(-2px);
}

.app-store-button small {
  display: block;

  font-size: 10px;
  line-height: 1;
}

.app-store-button strong {
  display: block;

  font-size: 20px;
  line-height: 1.15;
}

.apple-logo {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-shrink: 0;

  color: #050607;
}

.secondary-button {
  color: var(--silver);

  font-size: 14px;
  font-weight: 700;
}


/* =========================================
   ROTATING REFBOX'D SCREENSHOTS
   ========================================= */

.hero-preview {
  display: flex;
  align-items: center;
  justify-content: center;

  min-width: 0;
}

.phone-showcase {
  position: relative;

  width: 100%;
  max-width: 560px;
  height: 560px;

  margin-left: auto;
}

.phone {
  position: absolute;

  cursor: pointer;

  filter:
    drop-shadow(
      0 32px 45px rgba(0, 0, 0, 0.65)
    );

  transition:
    left 0.55s ease,
    right 0.55s ease,
    top 0.55s ease,
    width 0.55s ease,
    transform 0.55s ease,
    opacity 0.55s ease;
}

.phone-frame {
  position: relative;

  width: 100%;

  overflow: hidden;

  background: #050607;

  border: 6px solid #1b2025;

  border-radius: 38px;

  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 30px 70px rgba(0, 0, 0, 0.65);
}

.phone-frame img {
  display: block;

  width: 100%;
  max-width: 100%;
  height: auto;

  object-fit: cover;
}


/* ACTIVE / CENTER PHONE */

.phone-center {
  width: 235px;

  left: 50%;
  right: auto;
  top: 10px;

  transform:
    translateX(-50%)
    rotate(0deg);

  z-index: 3;

  opacity: 1;
}


/* LEFT PHONE */

.phone-left {
  width: 195px;

  left: 15px;
  right: auto;
  top: 95px;

  transform:
    rotate(-7deg);

  z-index: 1;

  opacity: 0.72;
}


/* RIGHT PHONE */

.phone-right {
  width: 195px;

  left: auto;
  right: 15px;
  top: 95px;

  transform:
    rotate(7deg);

  z-index: 2;

  opacity: 0.76;
}


/* PHONE HOVER */

.phone-left:hover {
  opacity: 1;

  transform:
    rotate(-5deg)
    translateY(-6px);
}

.phone-right:hover {
  opacity: 1;

  transform:
    rotate(5deg)
    translateY(-6px);
}

.phone-center:hover {
  transform:
    translateX(-50%)
    translateY(-7px);
}


/* =========================================
   PHONE CAROUSEL ARROWS
   ========================================= */

.phone-arrow {
  position: absolute;

  top: 50%;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0;

  background: rgba(5, 6, 7, 0.82);

  color: var(--blue);

  border:
    1px solid rgba(46, 127, 232, 0.32);

  border-radius: 50%;

  font-size: 29px;
  line-height: 1;

  cursor: pointer;

  z-index: 10;

  backdrop-filter: blur(10px);

  transform: translateY(-50%);

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.phone-arrow:hover {
  background:
    rgba(46, 127, 232, 0.15);

  border-color: var(--blue);
}

.phone-arrow-left {
  left: -5px;
}

.phone-arrow-right {
  right: -5px;
}


/* =========================================
   FEATURE STRIP
   ========================================= */

.feature-strip {
  background: #080a0c;

  border-bottom: 1px solid var(--border);
}

.feature-strip-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);
}

.strip-item {
  display: flex;

  gap: 18px;

  padding: 30px;

  border-right: 1px solid var(--border);
}

.strip-item:last-child {
  border-right: 0;
}

.strip-number {
  color: var(--blue);

  font-weight: 900;
}

.strip-item strong {
  font-size: 13px;

  letter-spacing: 0.06em;
}

.strip-item p {
  margin: 5px 0 0;

  color: var(--muted);

  font-size: 13px;
}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

.section {
  padding: 125px 0;

  border-bottom: 1px solid var(--border);
}

.two-column {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 100px;

  align-items: center;
}

.section-copy h2,
.center-heading h2,
.download-content h2 {
  margin: 14px 0 22px;

  font-size: clamp(42px, 5vw, 68px);

  line-height: 1;

  letter-spacing: -0.045em;
}

.section-copy p,
.center-heading p {
  max-width: 570px;

  color: var(--silver);

  font-size: 17px;

  line-height: 1.75;
}

.center-heading {
  max-width: 720px;

  margin: 0 auto 60px;

  text-align: center;
}

.center-heading p {
  margin-left: auto;
  margin-right: auto;
}


/* =========================================
   HISTORY
   ========================================= */

.history-section {
  background: var(--bg);
}

.history-visual {
  position: relative;

  padding-left: 32px;
}

.history-line {
  position: absolute;

  left: 7px;
  top: 10px;
  bottom: 10px;

  width: 1px;

  background:
    linear-gradient(
      var(--blue),
      rgba(46, 127, 232, 0.05)
    );
}

.history-game {
  position: relative;

  margin-bottom: 22px;
}

.history-game::before {
  content: "";

  position: absolute;

  width: 9px;
  height: 9px;

  left: -29px;
  top: 8px;

  background: var(--blue);

  border-radius: 50%;

  box-shadow:
    0 0 15px rgba(46, 127, 232, 0.6);
}

.history-year {
  margin-bottom: 7px;

  color: var(--blue);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.history-game-card {
  display: flex;
  flex-direction: column;

  padding: 20px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 14px;
}

.history-game-card span {
  color: var(--blue);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.1em;
}

.history-game-card strong {
  margin: 6px 0;

  font-size: 18px;
}

.history-game-card small {
  color: var(--muted);
}

.history-game-card.faded {
  opacity: 0.6;
}


/* =========================================
   STATS
   ========================================= */

.stats-section {
  background: var(--bg-soft);
}

.stats-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 15px;
}

.stat-card {
  min-height: 190px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  padding: 24px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 16px;
}

.stat-card-featured {
  background:
    linear-gradient(
      145deg,
      rgba(46, 127, 232, 0.1),
      var(--card)
    );

  border-color:
    rgba(46, 127, 232, 0.42);
}

.stat-card span {
  color: var(--muted);

  font-size: 10px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.stat-card strong {
  font-size: 52px;

  line-height: 1;
}

.stat-card small {
  color: var(--blue);
}

.stat-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;

  gap: 10px;

  margin-top: 35px;
}

.stat-features span {
  padding: 8px 13px;

  border: 1px solid var(--border);

  border-radius: 100px;

  color: var(--silver);

  font-size: 10px;
  font-weight: 800;

  letter-spacing: 0.1em;
}


/* =========================================
   COMMUNITY
   ========================================= */

.community-visual {
  display: flex;
  justify-content: center;
}

.crew-card {
  width: 100%;
  max-width: 470px;

  overflow: hidden;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 20px;
}

.crew-header {
  display: flex;
  justify-content: space-between;

  padding: 20px 22px;

  border-bottom: 1px solid var(--border);

  color: var(--blue);

  font-size: 11px;
  font-weight: 900;

  letter-spacing: 0.12em;
}

.crew-header small {
  color: var(--muted);
}

.official-row {
  display: grid;

  grid-template-columns: auto 1fr auto;

  gap: 14px;

  align-items: center;

  padding: 18px 20px;

  border-bottom: 1px solid var(--border);
}

.official-row:last-child {
  border-bottom: 0;
}

.avatar {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #171c20;

  border:
    1px solid rgba(46, 127, 232, 0.28);

  border-radius: 50%;

  color: var(--blue);

  font-size: 11px;
  font-weight: 900;
}

.official-row div:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.official-row span {
  color: var(--muted);

  font-size: 12px;
}

.friend-status {
  color: var(--muted);

  font-size: 9px;
  font-weight: 900;

  letter-spacing: 0.1em;
}

.friend-status.active {
  color: var(--blue);
}

.community-features {
  margin-top: 32px;
}

.community-features > div {
  display: flex;
  flex-direction: column;

  padding: 17px 0;

  border-bottom: 1px solid var(--border);
}

.community-features strong {
  margin-bottom: 3px;
}

.community-features span {
  color: var(--muted);

  font-size: 14px;
}


/* =========================================
   BUILT FOR OFFICIALS
   ========================================= */

.built-section {
  background: var(--bg-soft);
}

.built-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 15px;
}

.built-card {
  padding: 27px;

  background: var(--card);

  border: 1px solid var(--border);

  border-radius: 16px;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.built-card:hover {
  transform: translateY(-4px);

  border-color:
    rgba(46, 127, 232, 0.35);
}

.built-icon {
  color: var(--blue);

  font-size: 12px;
  font-weight: 900;
}

.built-card h3 {
  margin: 35px 0 10px;

  font-size: 20px;
}

.built-card p {
  margin: 0;

  color: var(--muted);

  font-size: 14px;

  line-height: 1.65;
}


/* =========================================
   DOWNLOAD
   ========================================= */

.download-section {
  position: relative;

  overflow: hidden;

  padding: 140px 0;

  text-align: center;
}

.download-glow {
  position: absolute;

  width: 800px;
  height: 500px;

  left: 50%;
  top: 50%;

  transform:
    translate(-50%, -50%);

  background:
    radial-gradient(
      circle,
      rgba(46, 127, 232, 0.15),
      transparent 68%
    );

  pointer-events: none;
}

.download-content {
  position: relative;
}

.download-logo {
  width: 105px;

  margin-bottom: 30px;
}

.download-content h2 {
  font-size: clamp(52px, 7vw, 86px);
}

.download-content p {
  margin-bottom: 30px;

  color: var(--silver);

  font-size: 17px;
}

.app-store-button.large {
  margin: 0 auto;
}


/* =========================================
   FOOTER
   ========================================= */

footer {
  padding: 30px 0;

  background: #030405;

  border-top: 1px solid var(--border);
}

.footer-inner {
  display: grid;

  grid-template-columns: 1fr auto 1fr;

  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;

  gap: 10px;

  font-size: 12px;

  letter-spacing: 0.08em;
}

.footer-brand img {
  width: 34px;
}

.footer-links {
  display: flex;

  gap: 24px;

  color: var(--muted);

  font-size: 12px;
}

.copyright {
  text-align: right;

  color: var(--muted);

  font-size: 12px;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 900px) {

  .nav-links {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;

    gap: 55px;

    padding-top: 80px;
    padding-bottom: 60px;
  }

  .phone-showcase {
    margin: 0 auto;
  }

  .feature-strip-grid {
    grid-template-columns: 1fr;
  }

  .strip-item {
    border-right: 0;

    border-bottom: 1px solid var(--border);
  }

  .strip-item:last-child {
    border-bottom: 0;
  }

  .two-column {
    grid-template-columns: 1fr;

    gap: 65px;
  }

  .stats-grid,
  .built-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}


/* =========================================
   MOBILE
   ========================================= */

@media (max-width: 600px) {

  .container {
    width:
      min(
        calc(100% - 28px),
        var(--max-width)
      );
  }

  .nav-inner {
    min-height: 66px;
  }

  .brand {
    gap: 8px;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-wordmark {
    width: 105px;
    max-height: 30px;
  }

  .nav-download {
    padding: 9px 13px;

    font-size: 12px;
  }

  .hero-grid {
    padding-top: 65px;
    padding-bottom: 45px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-description {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;

    align-items: flex-start;
  }


  /* ROTATING PHONES */

  .phone-showcase {
    max-width: 340px;
    height: 430px;

    margin: 0 auto;
  }

  .phone-center {
    width: 185px;

    left: 50%;
    right: auto;
    top: 0;
  }

  .phone-left {
    width: 150px;

    left: 0;
    right: auto;
    top: 80px;
  }

  .phone-right {
    width: 150px;

    left: auto;
    right: 0;
    top: 80px;
  }

  .phone-frame {
    border-width: 4px;

    border-radius: 28px;
  }

  .phone-arrow {
    width: 36px;
    height: 36px;

    font-size: 25px;
  }

  .phone-arrow-left {
    left: -8px;
  }

  .phone-arrow-right {
    right: -8px;
  }


  /* OTHER SECTIONS */

  .section {
    padding: 90px 0;
  }

  .section-copy h2,
  .center-heading h2 {
    font-size: 43px;
  }

  .stats-grid,
  .built-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    min-height: 160px;
  }

  .footer-inner {
    grid-template-columns: 1fr;

    gap: 22px;

    text-align: center;
  }

  .footer-brand,
  .footer-links {
    justify-content: center;
  }

  .copyright {
    text-align: center;
  }

}