:root {
  color-scheme: light;
  --ink: #121a2b;
  --muted: #657386;
  --soft: #f4f7fa;
  --panel: #ffffff;
  --line: #dfe6ef;
  --navy: #10294d;
  --red: #c7333d;
  --green: #18735f;
  --gold: #e4b657;
  --shadow: 0 28px 90px rgba(18, 26, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 76px);
  border-bottom: 1px solid rgba(223, 230, 239, 0.88);
  background: rgba(244, 247, 250, 0.92);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-kicker,
.hero-gallery,
.mock-toolbar,
.mock-tabs,
.mock-row,
.profile-head,
.stat-grid,
.badge-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-weight: 850;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
}

.site-nav {
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 750;
}

.site-nav a:hover {
  color: var(--ink);
}

.showcase-hero {
  min-height: calc(100vh - 71px);
  padding: clamp(42px, 6vw, 88px) clamp(20px, 5vw, 76px) clamp(54px, 7vw, 98px);
  background:
    radial-gradient(circle at 72% 24%, rgba(24, 115, 95, 0.12), transparent 30%),
    linear-gradient(135deg, rgba(16, 41, 77, 0.07), rgba(199, 51, 61, 0.04)),
    var(--soft);
}

.hero-kicker {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: clamp(26px, 4vw, 44px);
}

.hero-kicker span {
  padding: 7px 11px;
  border: 1px solid rgba(16, 41, 77, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(280px, 0.3fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  max-width: 1640px;
  margin: 0 auto clamp(34px, 5vw, 68px);
}

.hero-intro h1 {
  font-size: clamp(4rem, 11vw, 10.5rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-intro p {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.34rem);
}

.hero-gallery {
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
  max-width: 1540px;
  margin: 0 auto;
}

.device-card {
  width: min(26vw, 340px);
  min-width: 240px;
}

.device-card-large {
  width: min(32vw, 430px);
}

.device-card-offset {
  transform: translateY(28px);
}

.device-card figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 800;
  text-align: center;
}

.phone-shell {
  aspect-ratio: 0.52;
  padding: 14px;
  overflow: hidden;
  border: 10px solid #111827;
  border-radius: 42px;
  background: #111827;
  box-shadow: var(--shadow);
}

.phone-top {
  width: 54px;
  height: 5px;
  margin: 4px auto 14px;
  border-radius: 999px;
  background: #344055;
}

.mock-screen {
  height: calc(100% - 23px);
  overflow: hidden;
  border-radius: 28px;
  background: #fbfcfe;
}

.leaderboard-screen,
.player-screen,
.bracket-screen {
  padding: clamp(14px, 2vw, 24px);
}

.mock-toolbar {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 17px;
  color: var(--navy);
  font-size: 0.95rem;
  font-weight: 850;
}

.mock-tabs {
  gap: 7px;
  margin-bottom: 14px;
}

.mock-tabs span {
  flex: 1;
  min-width: 0;
  padding: 7px 8px;
  border-radius: 8px;
  background: #edf2f7;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-align: center;
}

.mock-tabs .active {
  background: rgba(199, 51, 61, 0.12);
  color: var(--red);
}

.metric-panel {
  display: grid;
  gap: 10px;
  min-height: 118px;
  margin-bottom: 16px;
  padding: 18px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
}

.metric-panel span,
.profile-head span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.82rem;
  font-weight: 760;
}

.metric-panel strong {
  align-self: end;
  font-size: 1.25rem;
}

.mock-row {
  justify-content: space-between;
  gap: 10px;
  min-height: 49px;
  margin-bottom: 9px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.mock-row span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(228, 182, 87, 0.28);
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.mock-row p {
  flex: 1;
  min-width: 0;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 760;
}

.mock-row strong {
  color: var(--ink);
}

.mock-row.emphasized {
  border-color: rgba(199, 51, 61, 0.22);
  background: rgba(199, 51, 61, 0.04);
}

.player-screen {
  background:
    linear-gradient(180deg, #10294d 0%, #10294d 34%, #fbfcfe 34%, #fbfcfe 100%);
}

.profile-head {
  gap: 12px;
  margin-bottom: 26px;
  color: #fff;
}

.avatar-placeholder {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.profile-head strong {
  display: block;
  margin-top: 2px;
  font-size: 1.25rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.stat-grid div {
  min-height: 76px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.stat-grid strong {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 1.2rem;
}

.timeline-placeholder {
  height: 72px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0%, transparent 7%, rgba(37, 95, 159, 0.13) 7%, rgba(37, 95, 159, 0.13) 12%, transparent 12%, transparent 23%, rgba(24, 115, 95, 0.13) 23%, rgba(24, 115, 95, 0.13) 30%, transparent 30%, transparent 43%, rgba(199, 51, 61, 0.13) 43%, rgba(199, 51, 61, 0.13) 50%, transparent 50%, transparent 100%),
    #fff;
}

.timeline-placeholder.short {
  height: 54px;
}

.badge-row {
  gap: 8px;
  flex-wrap: wrap;
}

.badge-row span {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(228, 182, 87, 0.24);
  color: var(--navy);
  font-size: 0.74rem;
  font-weight: 900;
}

.bracket-screen {
  position: relative;
  background:
    linear-gradient(180deg, rgba(16, 41, 77, 0.07), transparent 42%),
    #fbfcfe;
}

.bracket-lines {
  position: absolute;
  inset: 94px 40px auto;
  display: grid;
  gap: 70px;
}

.bracket-lines span {
  display: block;
  height: 2px;
  background: rgba(16, 41, 77, 0.14);
}

.series-card {
  position: relative;
  z-index: 1;
  min-height: 64px;
  margin: 0 0 18px;
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-weight: 900;
}

.series-card + .series-card {
  margin-left: 18px;
}

.series-card.winner {
  margin-left: 44px;
  border-color: rgba(24, 115, 95, 0.26);
  background: rgba(24, 115, 95, 0.08);
}

.gallery-section,
.views-section,
.notes-section {
  padding: clamp(60px, 8vw, 112px) clamp(20px, 5vw, 76px);
}

.gallery-section,
.notes-section {
  background: #fff;
}

.section-label {
  display: grid;
  grid-template-columns: minmax(150px, 0.24fr) minmax(280px, 0.76fr);
  gap: clamp(18px, 4vw, 52px);
  align-items: end;
  max-width: 1480px;
  margin: 0 auto 28px;
}

.section-label > span,
.note-label {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-label p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.5rem, 3vw, 2.9rem);
  font-weight: 850;
  line-height: 1.08;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
}

.gallery-item {
  display: grid;
  gap: 13px;
}

.gallery-item.wide {
  grid-row: span 2;
}

.image-placeholder {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.gallery-item.wide .image-placeholder {
  min-height: 740px;
}

.image-placeholder::before {
  position: absolute;
  inset: 32px;
  content: "";
  border: 1px solid rgba(16, 41, 77, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(16, 41, 77, 0.08) 0%, rgba(16, 41, 77, 0.08) 24%, transparent 24%, transparent 100%),
    repeating-linear-gradient(0deg, rgba(17, 24, 39, 0.055) 0, rgba(17, 24, 39, 0.055) 1px, transparent 1px, transparent 54px);
}

.image-placeholder::after {
  position: absolute;
  inset: auto 32px 32px;
  height: 24%;
  content: "";
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 -18px 36px rgba(17, 24, 39, 0.06);
}

.image-placeholder span {
  position: relative;
  z-index: 2;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  font-weight: 900;
}

.image-placeholder.standings {
  background:
    linear-gradient(140deg, rgba(37, 95, 159, 0.08), rgba(228, 182, 87, 0.12)),
    #f8fafc;
}

.image-placeholder.roster {
  background:
    linear-gradient(140deg, rgba(199, 51, 61, 0.08), rgba(37, 95, 159, 0.08)),
    #f8fafc;
}

.image-placeholder.splits {
  background:
    linear-gradient(140deg, rgba(24, 115, 95, 0.1), rgba(228, 182, 87, 0.09)),
    #f8fafc;
}

.gallery-item figcaption {
  display: grid;
  gap: 3px;
}

.gallery-item figcaption strong {
  color: var(--ink);
}

.gallery-item figcaption span {
  color: var(--muted);
}

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

.view-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1480px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.view-list article {
  min-height: 300px;
  padding: 24px;
  background: #fff;
}

.view-list article > span {
  display: block;
  margin-bottom: 88px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
}

.view-list h2 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.view-list p {
  color: var(--muted);
}

.notes-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.62fr) minmax(280px, 0.38fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.notes-section h2,
.notes-section p {
  max-width: 1480px;
}

.notes-section h2 {
  margin-top: 12px;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.notes-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(20px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer span:first-child {
  color: var(--ink);
  font-weight: 900;
}

@media (max-width: 1120px) {
  .hero-gallery {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .device-card {
    flex: 0 0 min(72vw, 360px);
    scroll-snap-align: start;
  }

  .device-card-large {
    flex-basis: min(82vw, 430px);
  }

  .device-card-offset {
    transform: none;
  }

  .view-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .hero-intro,
  .section-label,
  .gallery-grid,
  .notes-section {
    grid-template-columns: 1fr;
  }

  .hero-intro h1 {
    font-size: clamp(4.1rem, 20vw, 7rem);
  }

  .gallery-item.wide {
    grid-row: auto;
  }

  .gallery-item.wide .image-placeholder,
  .image-placeholder {
    min-height: 460px;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .showcase-hero {
    min-height: auto;
  }

  .device-card,
  .device-card-large {
    flex-basis: min(86vw, 330px);
    min-width: 250px;
  }

  .view-list {
    grid-template-columns: 1fr;
  }

  .view-list article {
    min-height: 230px;
  }

  .view-list article > span {
    margin-bottom: 54px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
