:root {
  --bg: #eef3fb;
  --bg-deep: #dbe8f9;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #1b6cff;
  --accent-dark: #1554c7;
  --border: rgba(15, 23, 42, 0.1);
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 243, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.nav-links {
  display: none;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.store-btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(27, 108, 255, 0.25);
}

.store-btn--ios {
  background: #0f172a;
  color: #fff;
}

.store-btn--android {
  background: var(--accent);
  color: #fff;
}

.store-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  padding: 3rem 0 3.5rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/pattern.jpg') center / cover no-repeat;
  opacity: 0.14;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-logo {
  width: 120px;
  height: 120px;
  margin-inline: auto;
  filter: drop-shadow(0 8px 24px rgba(15, 23, 42, 0.12));
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-tagline {
  margin: 0 auto 1.5rem;
  max-width: 36rem;
  text-align: center;
  font-size: 1.08rem;
  color: var(--text-muted);
}

.hero-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
}

.hero-stores .store-btn {
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
}

/* Sections */
section {
  padding: 3rem 0;
}

.section-label {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.feature-grid {
  display: grid;
  gap: 1.25rem;
}

.feature-card {
  padding: 1.35rem;
}

.feature-card img.icon {
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.banner-card {
  display: grid;
  gap: 0;
}

.banner-card img.banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}

.banner-card .banner-body {
  padding: 1.35rem 1.5rem 1.5rem;
}

.banner-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.banner-card p {
  margin: 0;
  color: var(--text-muted);
}

.feature-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.feature-list li {
  margin-bottom: 0.35rem;
}

.split {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

.highlight-band {
  background: linear-gradient(135deg, #1b6cff 0%, #1554c7 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
}

.highlight-band h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}

.highlight-band p {
  margin: 0 auto;
  max-width: 34rem;
  opacity: 0.92;
}

/* Footer */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer a {
  font-weight: 600;
}

/* Policy page */
.policy-page {
  padding: 2rem 0 3rem;
}

.policy-page h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.policy-meta {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.translate-bar {
  margin-bottom: 1.75rem;
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.policy-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}

.policy-content h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.2rem;
  color: var(--text);
}

.policy-content h2:first-child {
  margin-top: 0;
}

.policy-content p,
.policy-content li {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.policy-content ul {
  padding-left: 1.2rem;
}

.policy-content li {
  margin-bottom: 0.45rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: 0.9rem;
}

@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }

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

  .hero-logo {
    margin-inline: 0;
  }

  .hero h1,
  .hero-tagline {
    text-align: left;
  }

  .hero-stores {
    justify-content: flex-start;
  }

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

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

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

  .policy-content {
    padding: 2.25rem 2.5rem;
  }
}

@media (min-width: 960px) {
  .feature-grid--2-wide {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Alt section background */
.section-alt {
  background: linear-gradient(180deg, rgba(219, 232, 249, 0.55) 0%, var(--bg) 100%);
}

.subsection-title {
  margin: 2.25rem 0 1rem;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

/* Profile mock card */
.profile-mock {
  padding: 1.35rem 1.25rem 1.5rem;
  background: linear-gradient(160deg, #ffffff 0%, #f0f6ff 100%);
}

.profile-mock__hero {
  text-align: center;
  margin-bottom: 1rem;
}

.profile-mock__face-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  border: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 24px rgba(27, 108, 255, 0.18);
}

.profile-mock__face-ring img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.profile-mock__name {
  margin: 0;
  font-weight: 800;
  font-size: 1.1rem;
}

.profile-mock__id {
  margin: 0.15rem 0 0.65rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.profile-mock__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.profile-mock__journey,
.profile-mock__coins {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border);
}

.profile-mock__rank,
.profile-mock__archetype {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--border);
}

.profile-mock__rank img,
.profile-mock__archetype-emoji {
  flex-shrink: 0;
}

.profile-mock__archetype-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.profile-mock__rank strong,
.profile-mock__archetype strong {
  display: block;
  font-size: 0.95rem;
}

.profile-mock__rank span,
.profile-mock__archetype span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.profile-mock__mood {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.92rem;
  text-align: center;
  background: rgba(27, 108, 255, 0.1);
  border: 1px solid rgba(27, 108, 255, 0.18);
  color: var(--accent-dark);
}

.profile-mock__traits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.profile-mock__traits span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.profile-features {
  margin-bottom: 0;
}

.profile-banner-card {
  margin-top: 1.75rem;
}

/* Archetype grid */
.archetype-grid {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.archetype-card {
  padding: 1rem 1.1rem;
  text-align: center;
}

.archetype-card__emoji {
  display: block;
  font-size: 1.65rem;
  margin-bottom: 0.35rem;
}

.archetype-card h4 {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
}

.archetype-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (min-width: 600px) {
  .archetype-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .archetype-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-split .profile-features {
    grid-template-columns: 1fr;
  }
}

/* Duel section */
.duel-vs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
  text-align: center;
}

.duel-vs-row__player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
}

.duel-vs-row__player img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.duel-vs-row__player span {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
}

.duel-vs-row__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}

.duel-vs-row__center img {
  width: 52px;
  height: auto;
  object-fit: contain;
}

.duel-vs-row__center strong {
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.duel-vs-row__center span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.duel-flow {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.duel-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
}

.duel-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.88rem;
  color: #fff;
  background: var(--accent);
}

.duel-step strong {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.duel-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.duel-banners {
  margin-bottom: 1.25rem;
}

@media (min-width: 720px) {
  .duel-flow {
    grid-template-columns: repeat(2, 1fr);
  }
}
