:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-alt: #e9eef8;
  --text: #16213e;
  --muted: #5d6b86;
  --border: #d5ddeb;
  --primary: #006cea;
  --primary-dark: #0f3460;
  --accent: #2e6f9e;
  --success: #40916c;
  --footer: #101828;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 251, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(213, 221, 235, 0.75);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-brand-copy {
  font-size: 1.15rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--primary);
}

.nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 16px 28px rgba(0, 108, 234, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.brand-logo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
}

.hero {
  padding: 64px 0 82px;
  background:
    radial-gradient(circle at top left, rgba(46, 111, 158, 0.12), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.95fr);
  gap: 48px;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(1.8rem, 5vw, 2.9rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 10px 18px;
  border-radius: 16px;
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #202b42;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}

.play-badge-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
}

.play-badge-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.play-badge-copy small {
  color: #cbd5e1;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
}

.play-badge-copy strong {
  font-size: 1.15rem;
  font-weight: 700;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-weight: 700;
}

.button-primary {
  background: var(--primary);
  color: #ffffff;
}

.button-secondary {
  background: #ffffff;
  border-color: var(--border);
  color: var(--text);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.hero-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 620px;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(100%, 500px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 108, 234, 0.16), rgba(15, 52, 96, 0.03) 68%, transparent 70%);
}

.hero-phone-image {
  position: relative;
  width: min(100%, 440px);
  height: auto;
  filter: drop-shadow(0 30px 60px rgba(15, 23, 42, 0.24));
  z-index: 1;
}

.hero-chip {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 4px;
  max-width: 230px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(213, 221, 235, 0.8);
  box-shadow: 0 20px 34px rgba(15, 23, 42, 0.12);
}

.hero-chip strong {
  font-size: 1rem;
}

.hero-chip span {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-chip-top {
  top: 118px;
  left: 18px;
}

.hero-chip-bottom {
  right: 4px;
  bottom: 122px;
}

.section {
  padding: 44px 0 88px;
}

.section-header {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-header-centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  color: var(--muted);
}

.faq-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}

.card .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-alt);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
}

.card p,
.card li {
  margin: 0;
  color: var(--muted);
}

.card ul {
  margin: 0;
  padding-left: 20px;
}

.section-process {
  background: #ffffff;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.process-column {
  display: grid;
  gap: 22px;
}

.process-step {
  max-width: 280px;
}

.process-column:first-child .process-step {
  justify-self: end;
  text-align: right;
}

.process-center {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
}

.process-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  opacity: 0.14;
}

.process-phone-image {
  position: relative;
  width: min(100%, 300px);
  filter: drop-shadow(0 26px 48px rgba(15, 23, 42, 0.2));
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(0, 108, 234, 0.12);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.process-step h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.process-step p {
  margin: 0;
  color: var(--muted);
}

.section-gameplay {
  background:
    linear-gradient(180deg, rgba(233, 238, 248, 0.45), transparent 100%);
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin: 0 auto 40px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.mode-pill {
  padding: 10px 18px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 700;
}

.mode-pill-active {
  background: var(--primary);
  color: #ffffff;
}

.gameplay-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 40px;
  align-items: center;
}

.gameplay-visual {
  position: relative;
  min-height: 480px;
}

.gameplay-ring {
  position: absolute;
  inset: 60px 40px 40px 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 108, 234, 0.08), rgba(0, 108, 234, 0.18));
}

.gameplay-phone {
  position: absolute;
  width: min(100%, 230px);
  filter: drop-shadow(0 22px 38px rgba(15, 23, 42, 0.18));
}

.gameplay-phone-left {
  left: 10px;
  top: 20px;
  transform: rotate(-28deg);
}

.gameplay-phone-right {
  right: 38px;
  bottom: 0;
  transform: rotate(18deg);
}

.gameplay-points {
  display: grid;
  gap: 18px;
}

.feature-point {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--border);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(0, 108, 234, 0.1);
  color: var(--primary);
  font-weight: 800;
}

.feature-point h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.feature-point p {
  margin: 0;
  color: var(--muted);
}

.section-download {
  padding: 48px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  overflow: hidden;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 28px;
  align-items: center;
  padding: 36px 0;
  color: #ffffff;
  position: relative;
}

.download-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 35%);
}

.download-copy,
.download-visual {
  position: relative;
  z-index: 1;
}

.download-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 2.9rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.download-copy p {
  margin: 0;
  max-width: 560px;
  color: #d9e4f6;
}

.callout {
  background: var(--primary-dark);
  color: #ffffff;
  border-radius: 28px;
  padding: 28px;
}

.callout p {
  color: #d9e4f6;
}

.callout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.download-panel .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: none;
}

.download-phone {
  width: min(100%, 280px);
  margin-left: auto;
  filter: drop-shadow(0 22px 42px rgba(15, 23, 42, 0.3));
}

.site-footer {
  background: var(--footer);
  color: #ffffff;
  padding: 44px 0;
}

.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
}

.site-footer p,
.site-footer a {
  color: #c8d2e1;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-brand-block {
  max-width: 340px;
}

.legal-page {
  padding: 56px 0 80px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
}

.legal-card h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.2rem;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.legal-card ul {
  padding-left: 22px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 20px;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 980px) {
  .hero-grid,
  .process-layout,
  .gameplay-grid,
  .download-panel,
  .faq-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-nav,
  .nav-menu {
    flex-wrap: wrap;
  }

  .site-nav {
    padding: 16px 0;
  }

  .nav-menu {
    width: 100%;
    justify-content: center;
  }

  .hero-visual {
    order: -1;
    min-height: 520px;
  }

  .hero-chip-top {
    left: 0;
  }

  .hero-chip-bottom {
    right: 0;
  }

  .process-column:first-child .process-step {
    justify-self: start;
    text-align: left;
  }

  .process-center {
    order: -1;
    min-height: 420px;
  }

  .gameplay-visual {
    min-height: 420px;
  }

  .download-phone {
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 32px;
  }

  .nav-menu {
    gap: 16px;
    font-size: 0.95rem;
  }

  .hero-phone-image {
    width: min(100%, 320px);
  }

  .hero-chip {
    position: static;
    max-width: none;
  }

  .hero-visual {
    min-height: auto;
    flex-direction: column;
    gap: 16px;
  }

  .process-center,
  .gameplay-visual {
    min-height: auto;
  }

  .gameplay-ring {
    inset: 40px 20px 20px 20px;
  }

  .gameplay-phone {
    width: 180px;
  }

  .gameplay-phone-left {
    left: 0;
    top: 14px;
  }

  .gameplay-phone-right {
    right: 10px;
    bottom: -8px;
  }

  .download-panel {
    padding: 24px;
  }

  .legal-card,
  .card,
  .feature-point {
    padding: 22px;
  }
}
