:root {
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #dce3ee;
  --bg: #f7fafc;
  --panel: #ffffff;
  --navy: #0c1b2a;
  --teal: #00a99d;
  --gold: #f5b942;
  --coral: #ff6b4a;
  --green: #1f9d55;
  --shadow: 0 18px 50px rgba(12, 27, 42, 0.14);
}

* {
  box-sizing: border-box;
}

main,
section,
article,
div,
p,
h1,
h2,
h3 {
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(220, 227, 238, 0.9);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  max-width: 100vw;
}

.brand,
.header-actions,
.header-action,
.primary-btn,
.secondary-btn,
.trust-row span,
.panel-title,
.feature-list div,
.update-grid article i,
.keyword-grid article i,
.trust-grid article i {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: 180px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--teal), var(--coral));
  box-shadow: 0 10px 24px rgba(0, 169, 157, 0.26);
}

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #344154;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 0;
}

.nav-links a:hover {
  color: var(--teal);
}

.header-actions {
  gap: 8px;
}

.header-action,
.primary-btn,
.secondary-btn {
  gap: 8px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
}

.header-action,
.primary-btn {
  padding: 0 18px;
  color: #ffffff;
  background: var(--navy);
}

.primary-btn {
  background: linear-gradient(135deg, var(--teal), var(--green));
  box-shadow: 0 12px 28px rgba(0, 169, 157, 0.28);
}

.header-login {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line);
}

.header-register,
.register-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  box-shadow: 0 12px 28px rgba(255, 107, 74, 0.24);
}

.secondary-btn {
  padding: 0 18px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line);
}

i {
  width: 18px;
  height: 18px;
}

.section-band {
  padding: clamp(54px, 8vw, 96px) clamp(18px, 5vw, 72px);
  max-width: 100vw;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(360px, 0.9fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 72px);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(12, 27, 42, 0.98) 0%, rgba(12, 27, 42, 0.9) 40%, rgba(12, 27, 42, 0.24) 100%),
    url("/assets/hero-gaming-app.png") center right / cover no-repeat;
}

.hero-copy {
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.split-layout h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 600px;
  font-size: clamp(42px, 6vw, 74px);
}

.hero h1 span {
  display: block;
}

.hero-lede {
  max-width: 610px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.trust-row {
  gap: 10px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.trust-row span {
  gap: 7px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.hero-media {
  overflow: hidden;
  justify-self: end;
  max-width: 560px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-heading h2,
.split-layout h2 {
  font-size: clamp(30px, 4vw, 52px);
}

.section-heading p,
.split-layout p,
.download-panel p,
.steps p,
.tab-panel p,
.update-grid p,
.keyword-grid p,
.trust-grid p,
.faq-list p,
.footer p {
  color: var(--muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.download,
.update-section,
.trust-section {
  background: #ffffff;
}

.download-grid {
  display: grid;
  grid-template-columns: minmax(300px, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
}

.download-panel,
.steps article,
.seo-card,
.tab-panel,
.update-grid article,
.keyword-grid article,
.trust-grid article,
.release-log {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(12, 27, 42, 0.06);
}

.download-panel {
  padding: 26px;
}

.panel-title {
  gap: 10px;
}

.panel-title h3,
.steps h3,
.tab-panel h3,
.update-grid h3,
.seo-card h3,
.keyword-grid h3,
.trust-grid h3,
.release-head h3 {
  margin: 0;
}

.version-list {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}

.version-list div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.version-list dt {
  color: var(--muted);
}

.version-list dd {
  margin: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-align: right;
}

.fine-print {
  margin: 14px 0 0;
  font-size: 12px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.steps,
.update-grid,
.keyword-grid,
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.steps article,
.update-grid article,
.keyword-grid article,
.trust-grid article {
  padding: 22px;
}

.steps span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 8px;
  color: var(--navy);
  font-weight: 900;
  background: #fff3ca;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: start;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.feature-list div {
  gap: 12px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 8px;
  background: #eef9f7;
  color: var(--navy);
  font-weight: 800;
}

.seo-card {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.seo-card a {
  padding: 12px 14px;
  border-radius: 8px;
  color: #1a334f;
  background: #f2f6fa;
  font-weight: 800;
}

.guide-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.tab {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.tab.active {
  color: #ffffff;
  background: var(--navy);
  border-color: var(--navy);
}

.tab-panel {
  display: none;
  padding: 26px;
}

.tab-panel.active {
  display: block;
}

.update-grid article i {
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--coral);
}

.keyword-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.keyword-grid article i,
.trust-grid article i {
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  padding: 11px;
  border-radius: 8px;
  color: var(--navy);
  background: #fff3ca;
}

.release-log {
  margin-top: 18px;
  padding: 24px;
}

.release-head {
  margin-bottom: 16px;
}

.release-log ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.release-log li {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.release-log time {
  color: var(--teal);
  font-weight: 900;
}

.release-log span {
  color: var(--muted);
  line-height: 1.6;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #ffffff;
  background: var(--navy);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--navy);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .download-grid,
  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(12, 27, 42, 0.98) 0%, rgba(12, 27, 42, 0.86) 55%, rgba(12, 27, 42, 0.4) 100%),
      url("/assets/hero-gaming-app.png") center / cover no-repeat;
  }

  .hero-media {
    display: none;
  }

  .steps,
  .update-grid,
  .keyword-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-actions {
    display: none;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 36px;
    line-height: 1.08;
  }

  .hero h1 span {
    max-width: 320px;
  }

  .hero-lede {
    max-width: 340px;
    font-size: 17px;
  }

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

  .hero-actions .primary-btn {
    grid-column: auto;
  }

  .hero-actions .primary-btn,
  .hero-actions .secondary-btn,
  .hero-actions .register-btn {
    justify-content: center;
    width: 100%;
  }

  .section-heading h2,
  .split-layout h2 {
    font-size: 28px;
  }

  .version-list div {
    display: block;
  }

  .version-list dd {
    margin-top: 4px;
    text-align: left;
  }

  .release-log li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-band {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 8px 10px;
    font-size: 13px;
    overflow: visible;
    white-space: normal;
  }

  .footer {
    display: block;
  }

  .footer nav {
    margin-top: 18px;
  }
}

.template-section {
  background: #f7fafc;
}

.competitor-section {
  background: #ffffff;
}

.template-table,
.competitor-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(12, 27, 42, 0.06);
}

.template-table div,
.competitor-table div {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(260px, 1.2fr) minmax(180px, 0.8fr);
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.template-table div:last-child,
.competitor-table div:last-child {
  border-bottom: 0;
}

.template-table span,
.competitor-table strong {
  color: var(--teal);
  font-weight: 900;
}

.template-table strong {
  color: var(--ink);
}

.template-table em {
  color: var(--muted);
  font-style: normal;
}

.competitor-table .table-head {
  color: #ffffff;
  background: var(--navy);
  font-weight: 900;
}

.competitor-table span {
  color: var(--muted);
  line-height: 1.6;
}

.ops-section {
  color: #ffffff;
  background: var(--navy);
}

.ops-section .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

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

.ops-grid article {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.ops-grid span {
  color: var(--gold);
  font-weight: 900;
}

.ops-grid h3 {
  margin: 14px 0 0;
}

.ops-grid p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.subpage-hero {
  min-height: auto;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(12, 27, 42, 0.98), rgba(12, 27, 42, 0.82)),
    url("/assets/hero-gaming-app.png") center / cover no-repeat;
}

.subpage-hero h1 {
  max-width: 760px;
  overflow-wrap: anywhere;
}

.subpage-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.content-stack {
  display: grid;
  gap: 16px;
}

.content-card,
.sidebar-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(12, 27, 42, 0.06);
  overflow: hidden;
}

.content-card h2,
.content-card h3,
.sidebar-card h3 {
  margin-top: 0;
}

.content-card p,
.content-card li,
.sidebar-card p,
.sidebar-card li {
  color: var(--muted);
  line-height: 1.7;
}

.sidebar-card {
  position: sticky;
  top: 96px;
}

.mobile-dock {
  display: none;
}

@media (max-width: 700px) {
  body {
    padding-bottom: 74px;
  }

  .template-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .competitor-table div,
  .ops-grid,
  .subpage-layout {
    grid-template-columns: 1fr;
  }

  .competitor-table .table-head {
    display: none;
  }

  .sidebar-card {
    position: static;
  }

  .mobile-dock {
    position: fixed;
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: calc(100vw - 24px);
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(220, 227, 238, 0.9);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(12, 27, 42, 0.18);
    backdrop-filter: blur(14px);
  }

  .mobile-dock a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 46px;
    border-radius: 8px;
    color: #ffffff;
    background: var(--navy);
    font-size: 11px;
    font-weight: 900;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
  }

  .mobile-dock span {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mobile-dock i {
    width: 16px;
    height: 16px;
  }

  .mobile-dock a:last-child {
    background: linear-gradient(135deg, var(--coral), var(--gold));
  }

  .subpage-hero h1 {
    max-width: 340px;
    font-size: 34px;
    line-height: 1.12;
  }

  .subpage-hero .hero-lede {
    max-width: 340px;
  }

  .content-card,
  .sidebar-card {
    padding: 20px;
  }

  .content-card .fine-print {
    max-width: 300px;
  }
}
