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

:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #f5f2ec;
  --bg-card: #ffffff;
  --bg-card-hover: #f0ede8;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --text-primary: #1a1a22;
  --text-secondary: #5a5a6a;
  --text-muted: #8a8a9a;
  --accent: #b8922e;
  --accent-light: #d4ad4a;
  --accent-glow: rgba(184, 146, 46, 0.2);
  --red: #e04545;
  --green: #3dba6e;
  --spade: #f0f0f5;
  --heart: #e04545;
  --diamond: #e04545;
  --club: #f0f0f5;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.015;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: rgba(201, 164, 74, 0.1);
}

.glow-2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
  background: rgba(201, 164, 74, 0.06);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
}

.logo-img {
  height: 52px;
  width: auto;
  max-width: min(240px, 72vw);
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 13px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #a8842e);
  color: #0a0a0f;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 120px 0 60px;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.app-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.06);
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(201, 164, 74, 0.1);
  border: 1px solid rgba(201, 164, 74, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 0;
}

.hero-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--text-primary);
}

.stat-suffix {
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.download-btn {
  display: inline-block;
  line-height: 0;
  transition: transform var(--transition), opacity var(--transition);
}

.download-btn:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.download-btn-img {
  height: 52px;
  width: auto;
  display: block;
  border-radius: 8px;
}

.hero-note {
  font-size: 12px;
  color: var(--text-muted);
}

/* Hero App Image */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual--mobile {
  display: none;
}

.phone-showcase {
  padding: 10px;
  background: #1a1a1a;
  border-radius: 36px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.08);
}

.hero-app-img {
  display: block;
  width: auto;
  max-width: 260px;
  max-height: 560px;
  height: auto;
  border-radius: 28px;
  object-fit: contain;
}

/* Section Common */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 800;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Hall of Fame */
.hall-of-fame {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: var(--bg-secondary);
}

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

.hall-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform var(--transition);
}

.hall-card:hover {
  transform: translateY(-6px);
}

.hall-img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 250 / 331;
  object-fit: cover;
  object-position: top center;
}

.hall-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 16px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  color: #fff;
}

.hall-rank {
  display: inline-block;
  padding: 2px 10px;
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  border-radius: 4px;
  margin-bottom: 8px;
}

.hall-info h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.hall-info p {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.hall-card--featured .hall-rank {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
}

/* App Screens */
.app-screens {
  position: relative;
  z-index: 1;
  padding: 80px 0;
}

.screens-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.screen-item {
  flex: 0 0 auto;
  width: 220px;
  scroll-snap-align: start;
  text-align: center;
}

.screen-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border);
}

.screen-caption {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Partners */
.partners {
  position: relative;
  z-index: 1;
  padding: 80px 0;
  background: var(--bg-secondary);
}

.partners-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.partners-grid::-webkit-scrollbar {
  display: none;
}

.partner-item {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  padding: 20px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  scroll-snap-align: start;
  transition: all var(--transition);
}

.partner-item:hover {
  border-color: rgba(184, 146, 46, 0.25);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  transform: translateY(-3px);
}

.partner-logo {
  width: auto;
  height: 40px;
  max-width: 180px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  line-height: 0;
}

.footer-logo {
  height: 40px;
  width: auto;
  max-width: min(200px, 60vw);
  object-fit: contain;
  display: block;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* Responsive */
@media (min-width: 769px) {
  .screens-track {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    overflow-x: visible;
    padding: 0;
  }

  .screen-item {
    width: auto;
  }

  .partners-grid {
    justify-content: space-between;
    overflow-x: visible;
    padding: 0;
  }

  .partner-item {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 1024px) {
  .hall-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-badge-row {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
    margin-bottom: 0;
  }

  .hero-visual--desktop {
    display: none;
  }

  .hero-visual--mobile {
    display: flex;
    margin: 32px auto 24px;
  }

  .hero-note {
    margin-top: 0;
  }

  .hero-app-img {
    max-width: 220px;
    max-height: 480px;
  }

  .phone-showcase {
    padding: 8px;
    border-radius: 32px;
  }

  .header {
    padding: 10px 0;
  }

  .header-inner {
    min-height: 44px;
  }

  .logo-img {
    height: 40px;
    max-width: min(200px, 78vw);
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-logo {
    height: 32px;
    max-width: min(180px, 70vw);
  }

  .app-logo {
    width: 32px;
    height: 32px;
    border-radius: 7px;
  }

  .download-btn-img {
    height: 44px;
  }

  .hero {
    padding-top: 120px;
  }

  .hall-of-fame,
  .app-screens {
    padding: 60px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .hall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .hall-info h3 {
    font-size: 14px;
  }

  .screen-item {
    width: 180px;
  }

  .partners {
    padding: 60px 0;
  }

  .partner-item {
    min-width: 140px;
    padding: 16px 20px;
  }

  .partner-logo {
    height: 36px;
    max-width: 140px;
  }
}
