/* =============================================================
   Watch Roulette — Landing page styles
   ============================================================= */

.landing {
  overflow-x: hidden;
}

/* ---------- Auto-hiding header ---------- */

.global-header {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-header.header-hidden {
  transform: translateY(-120%);
  opacity: 0;
  pointer-events: none;
}

/* ---------- Shared section scaffolding ---------- */

.section {
  position: relative;
  padding: 110px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background-color: var(--primary-light);
  border: 1px solid rgba(225, 29, 72, 0.3);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.section-title {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 18px;
  color: var(--text-color);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 620px;
}

.section-subtitle.center {
  margin: 0 auto;
  text-align: center;
}

.text-center {
  text-align: center;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 140px 24px 150px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 15% 10%, rgba(225, 29, 72, 0.22), transparent 60%), radial-gradient(ellipse 50% 40% at 85% 20%, rgba(139, 92, 246, 0.25), transparent 60%), radial-gradient(ellipse 70% 60% at 50% 100%, rgba(245, 158, 11, 0.08), transparent 55%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

.hero-title {
  font-size: 76px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
  margin-bottom: 26px;
  color: var(--text-color);
}

.hero-title .grad {
  background: linear-gradient(120deg, var(--primary), #a855f7, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 680px;
  margin: 0 auto 40px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-primary.btn-lg, .btn-outline.btn-lg {
  width: auto;
}

/* ---------- Hero showcase (floating cards) ---------- */

.hero-showcase {
  position: relative;
  z-index: 1;
  max-width: 1040px;
  margin: 80px auto 0;
  perspective: 1200px;
}

.showcase-main {
  background: linear-gradient(180deg, var(--card-bg), #0a0a0f);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  transform: rotateX(4deg);
}

.showcase-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 22px;
}

.showcase-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.showcase-dot.r {
  background: #ff5f57;
}

.showcase-dot.y {
  background: #febc2e;
}

.showcase-dot.g {
  background: #28c840;
}

.showcase-url {
  margin-left: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
  background-color: var(--tertiary-bg);
  padding: 6px 14px;
  border-radius: 8px;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.showcase-card {
  background-color: var(--tertiary-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
}

.showcase-card h5 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.showcase-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  background-color: var(--card-bg);
  margin-bottom: 10px;
}

.showcase-row:last-child {
  margin-bottom: 0;
}

.showcase-thumb {
  width: 34px;
  height: 48px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: var(--secondary-bg);
  flex-shrink: 0;
}

.showcase-name {
  font-size: 14px;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.showcase-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background-color: var(--primary-light);
  color: var(--primary);
  flex-shrink: 0;
}

.showcase-tag.watched {
  background-color: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

/* Wheel preview */

.wheel-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 0;
}

.wheel-preview svg {
  animation: wheel-spin 24s linear infinite;
}

.wheel-preview .pointer {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid var(--primary);
}

@keyframes wheel-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Logos strip ---------- */

.logos-section {
  padding: 28px 24px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--secondary-bg);
}

.logos-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  justify-content: center;
}

.logos-label {
  font-size: 13px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.logos-row {
  display: flex;
  gap: 44px;
  align-items: center;
  flex-wrap: wrap;
}

.logos-row span {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  opacity: 0.7;
}

/* ---------- Features grid ---------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  background: linear-gradient(180deg, var(--card-bg), #0b0b10);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(225, 29, 72, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  background: linear-gradient(135deg, var(--primary-light), rgba(139, 92, 246, 0.15));
  color: var(--primary);
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- How it works ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.step-card {
  position: relative;
  padding: 32px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background-color: var(--card-bg);
}

.step-number {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, var(--primary), #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---------- Testimonials ---------- */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.testimonial-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
}

.testimonial-stars {
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 22px;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: 14px;
  font-weight: 600;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ---------- CTA ---------- */

.cta-section {
  position: relative;
  padding: 120px 24px;
  overflow: hidden;
  text-align: center;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(225, 29, 72, 0.2), transparent 70%);
}

.cta-section .section-inner {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 20px;
}

.cta-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
  .hero-title {
    font-size: 54px;
  }
}

@media (max-width: 992px) {
  .features-grid, .steps-grid, .testimonials-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 992px) {
  .section-title {
    font-size: 36px;
  }
}

@media (max-width: 992px) {
  .cta-title {
    font-size: 42px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 100px 20px 110px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 42px;
  }
}

@media (max-width: 640px) {
  .hero-subtitle {
    font-size: 17px;
  }
}

@media (max-width: 640px) {
  .features-grid, .steps-grid, .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 72px 20px;
  }
}

@media (max-width: 640px) {
  .section-title {
    font-size: 30px;
  }
}

