:root {
  --bg: #050507;
  --bg-soft: #0b0c12;
  --text: #f7f7fb;
  --muted: #a9adbd;
  --line: rgba(255, 255, 255, 0.13);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.13);
  --blue: #5bbcff;
  --violet: #8f7bff;
  --pink: #ff6fbc;
  --radius: 28px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 10%, rgba(77, 151, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 82% 18%, rgba(174, 88, 255, 0.16), transparent 32rem),
    linear-gradient(180deg, #030306 0%, var(--bg) 42%, #070711 100%);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet), var(--pink));
  box-shadow: 0 0 18px rgba(143, 123, 255, 0.65);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 16px clamp(16px, 4vw, 44px);
}

.nav {
  width: min(1120px, 100%);
  min-height: 56px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px 10px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(12, 13, 20, 0.58);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.brand {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a,
.nav-cta {
  transition: color 180ms ease, transform 180ms ease, background 180ms ease;
}

.nav-links a:hover,
.nav-cta:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 700;
}

.section-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100svh;
  width: 100%;
  display: grid;
  align-content: center;
  padding: 118px 0 70px;
  overflow: hidden;
  isolation: isolate;
  background: #030306;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at 50% 34%,
      rgba(0, 0, 0, 0.24) 0%,
      rgba(0, 0, 0, 0.36) 31%,
      rgba(0, 0, 0, 0.68) 68%,
      rgba(0, 0, 0, 0.86) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.18) 0%,
      rgba(0, 0, 0, 0.30) 48%,
      rgba(0, 0, 0, 0.94) 100%
    );
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 1;
  height: 26vh;
  background: linear-gradient(180deg, rgba(5, 5, 7, 0), #050507 82%);
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  opacity: 0.78;
  filter: saturate(1.18) contrast(1.08) brightness(1.08);
  transform: translate3d(0, 0, 0) scale(1.035);
  pointer-events: none;
  contain: paint;
  backface-visibility: hidden;
}

.poster-wall {
  position: absolute;
  inset: -16vh -10vw;
  display: grid;
  grid-template-columns: repeat(9, minmax(120px, 1fr));
  gap: clamp(12px, 1.4vw, 24px);
  transform: translate3d(0, -5%, 0) rotate(-7deg) scale(1.08);
  will-change: auto;
  backface-visibility: hidden;
}

.poster-tile {
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.65);
  animation: none;
}

.poster-tile:nth-child(3n) {
  transform: translateY(22px);
}

.poster-tile:nth-child(4n) {
  transform: translateY(-14px);
}

.poster-tile img,
.rank-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.22), transparent 30%),
    linear-gradient(135deg, rgba(91, 188, 255, 0.28), rgba(143, 123, 255, 0.22) 45%, rgba(255, 111, 188, 0.16)),
    #11111a;
}

.poster-placeholder span {
  max-width: 100%;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  will-change: transform;
}

.hero-content,
.notice,
.site-header {
  position: relative;
  z-index: 2;
}

.hero h1 {
  max-width: 950px;
  margin: 22px auto 0;
  font-size: clamp(3.2rem, 6.5vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
  background: linear-gradient(180deg, #fff 8%, #d9e6ff 42%, #a790ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 720px;
  margin: 28px auto 0;
  color: #d3d6e4;
  font-size: clamp(1.08rem, 2.1vw, 1.45rem);
  line-height: 1.55;
}

.badge,
.eyebrow {
  margin: 0;
  color: #cfd7ff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 23px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px) scale(1.015);
}

.button-primary {
  background: linear-gradient(135deg, #f7f8ff, #a9c8ff 50%, #9f7cff);
  color: #070810;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35), 0 18px 44px rgba(114, 113, 255, 0.32);
}

.button-primary:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55), 0 22px 54px rgba(123, 112, 255, 0.5);
}

.button-secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.button-large {
  min-height: 56px;
  padding-inline: 30px;
}

.notice {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  width: min(980px, calc(100% - 32px));
  margin: clamp(58px, 9vh, 104px) auto 0;
  padding: 18px 24px;
  border: 1px solid rgba(151, 140, 255, 0.28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(42, 30, 76, 0.86), rgba(24, 28, 78, 0.86));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.notice-icon {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 10px 16px rgba(255, 106, 173, 0.22));
}

.notice-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.notice p {
  margin: 0;
  display: grid;
  gap: 4px;
}

.notice strong {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

.notice span {
  color: #eef0ff;
  font-weight: 650;
}

.notice a {
  padding: 13px 18px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.17);
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease;
}

.notice a:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.25);
}

.hero-glow {
  position: absolute;
  z-index: 1;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.46;
  pointer-events: none;
}

.hero-glow-a {
  width: 42vw;
  height: 42vw;
  left: -18vw;
  top: 18vh;
  background: radial-gradient(circle, rgba(79, 156, 255, 0.36), transparent 68%);
}

.hero-glow-b {
  width: 38vw;
  height: 38vw;
  right: -16vw;
  top: 30vh;
  background: radial-gradient(circle, rgba(255, 111, 188, 0.26), transparent 68%);
}

.trending-section {
  position: relative;
  z-index: 3;
  margin-top: clamp(40px, 8vw, 96px);
  padding: 0 0 32px;
}

.ranking-carousel {
  position: relative;
  margin-top: 24px;
  overflow: visible;
}

.ranking-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(190px, 22vw, 270px);
  gap: clamp(20px, 2.8vw, 34px);
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding-top: 22px;
  padding-right: clamp(36px, 6vw, 96px);
  padding-bottom: 34px;
  padding-left: clamp(82px, 8vw, 132px);
  scroll-padding-left: clamp(82px, 8vw, 132px);
  scrollbar-width: none;
}

.ranking-track::-webkit-scrollbar {
  display: none;
}

.rank-card {
  position: relative;
  min-height: 350px;
  display: grid;
  align-items: end;
  scroll-snap-align: start;
  transition: transform 220ms ease, filter 220ms ease;
  isolation: isolate;
  cursor: default;
  overflow: visible;
}

.rank-number {
  position: absolute;
  z-index: 5;
  left: 0;
  bottom: 58px;
  transform: translateX(-46%);
  font-size: clamp(6rem, 12vw, 10rem);
  line-height: 0.82;
  font-weight: 950;
  letter-spacing: -0.08em;
  color: rgba(2, 3, 8, 0.62);
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.62);
  text-shadow:
    0 14px 34px rgba(0, 0, 0, 0.82),
    0 0 1px rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

.rank-number[data-rank="10"] {
  transform: translateX(-52%);
  font-size: clamp(5rem, 9.8vw, 8.2rem);
  letter-spacing: -0.12em;
}

.rank-poster-wrap {
  position: relative;
  z-index: 3;
  margin-left: 54px;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #232334, #101018);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.rank-card:hover .rank-poster-wrap {
  transform: translateY(-8px) scale(1.025);
}

.rank-meta {
  position: relative;
  z-index: 5;
  margin-left: 54px;
  margin-top: 12px;
}

.rank-meta h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff;
  line-height: 1.25;
}

.rank-meta p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.carousel-arrow {
  position: absolute;
  top: 42%;
  z-index: 5;
  width: 44px;
  height: 76px;
  border: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease;
}

.carousel-arrow:hover {
  transform: translateY(-50%) scale(1.04);
  background: rgba(255, 255, 255, 0.15);
}

.carousel-arrow:disabled {
  opacity: 0.28;
  cursor: default;
}

.carousel-arrow-left {
  left: -18px;
  transform: translateY(-50%);
}

.carousel-arrow-right {
  right: -18px;
  transform: translateY(-50%);
}

.intro {
  padding: 76px 0 118px;
  text-align: center;
  overflow: visible;
}

.intro p {
  display: inline-block;
  margin: 0 auto;
  max-width: 900px;
  font-size: clamp(2.2rem, 6vw, 5.4rem);
  line-height: 1.12;
  padding-bottom: 0.18em;
  overflow: visible;
  font-weight: 850;
  background: linear-gradient(135deg, #ffffff, #84d4ff 48%, #dd9bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 12px 0 0;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card,
.step,
.final-cta {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--glass-strong), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.24);
}

.feature-card {
  min-height: 232px;
  padding: 26px;
  border-radius: var(--radius);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(162, 177, 255, 0.38);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.065));
  box-shadow: 0 24px 66px rgba(73, 107, 255, 0.16);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(91, 188, 255, 0.25), rgba(255, 111, 188, 0.22));
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
}

.feature-card h3,
.step h3 {
  margin: 24px 0 0;
  font-size: 1.22rem;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.steps-section {
  padding-top: 128px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.step {
  min-height: 178px;
  padding: 24px;
  border-radius: 24px;
  transition: transform 220ms ease, border-color 220ms ease;
}

.step:hover {
  transform: translateY(-5px);
  border-color: rgba(91, 188, 255, 0.38);
}

.step span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #d9e7ff;
  font-weight: 900;
}

.final-cta {
  margin-top: 132px;
  margin-bottom: 72px;
  padding: clamp(34px, 7vw, 72px);
  border-radius: 32px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(91, 188, 255, 0.18), transparent 32rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05));
}

.final-cta h2 {
  margin: 0;
  font-size: clamp(2.2rem, 5.4vw, 5rem);
  line-height: 1;
}

.final-cta p {
  max-width: 620px;
  margin: 18px auto 28px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 46px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 700ms ease, transform 700ms ease;
  overflow: visible;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes posterFloat {
  0%,
  100% {
    filter: brightness(0.92);
  }
  50% {
    filter: brightness(1.08);
  }
}

@media (max-width: 960px) {
  .poster-wall {
    grid-template-columns: repeat(6, minmax(104px, 1fr));
  }
}

@media (max-width: 860px) {
  .nav {
    padding-left: 18px;
  }

  .nav-links {
    display: none;
  }

  .notice {
    grid-template-columns: 1fr;
    margin-top: 36px;
    text-align: left;
  }

  .notice a {
    grid-column: 1 / -1;
    text-align: center;
  }

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

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

@media (max-width: 640px) {
  .carousel-arrow {
    display: none;
  }

  .rank-card {
    min-height: 310px;
  }

  .rank-number {
    left: 0;
    bottom: 78px;
    transform: translateX(-46%);
    font-size: 5.2rem;
  }

  .rank-number[data-rank="10"] {
    transform: translateX(-52%);
    font-size: 4.4rem;
  }

  .rank-poster-wrap,
  .rank-meta {
    margin-left: 34px;
  }
}

@media (max-width: 560px) {
  .site-header {
    padding-inline: 12px;
  }

  .nav {
    gap: 10px;
    min-height: 52px;
  }

  .brand {
    font-size: 0.8rem;
  }

  .nav-cta {
    padding: 9px 13px;
  }

  .hero {
    min-height: 100svh;
    padding-top: 96px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 4rem);
  }

  .poster-wall {
    grid-template-columns: repeat(5, minmax(92px, 1fr));
    inset: -10vh -32vw;
    gap: 12px;
  }

  .hero-backdrop {
    opacity: 0.48;
    filter: blur(1px) saturate(1.1);
  }

  .notice {
    padding: 16px;
    gap: 12px;
  }

  .notice-icon {
    width: 46px;
    height: 46px;
  }

  .cards-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .step {
    min-height: auto;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .poster-wall {
    transform: translate3d(0, -5%, 0) rotate(-7deg) scale(1.08) !important;
  }
}
