:root {
  --bg: #d8cabb;
  --bg-soft: #eadfd4;
  --card: #efe4da;
  --card-light: #f7eee7;
  --accent: #af8f83;
  --accent-dark: #8f6f65;
  --text: #360408;
  --muted: rgba(54, 4, 8, 0.72);
  --border: rgba(54, 4, 8, 0.14);
  --accent-border: rgba(175, 143, 131, 0.42);
  --shadow: 0 24px 70px rgba(54, 4, 8, 0.18);
  --soft-shadow: 0 16px 42px rgba(54, 4, 8, 0.11);
  --radius: 26px;
  --max-width: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  background:
    radial-gradient(circle at top left, rgba(175, 143, 131, 0.36), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(54, 4, 8, 0.12), transparent 34rem),
    linear-gradient(180deg, #e5d8ca 0%, var(--bg) 42%, #cdbbad 100%);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(216, 202, 187, 0.86);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 28px rgba(54, 4, 8, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.hero-logo {
  width: min(100%, 420px);
  margin-bottom: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #360408, #6f332b);
  color: #d8cabb;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(54, 4, 8, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  transition: color 160ms ease;
}

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

.hero {
  padding: 86px 0 70px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px 12px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(175, 143, 131, 0.24);
  box-shadow: 0 8px 24px rgba(54, 4, 8, 0.08);
  font-size: 0.9rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 4.9vw, 4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  text-shadow: 0 8px 28px rgba(54, 4, 8, 0.14);
}

.hero-title-accent {
  color: #8f6f65;
}

.hero-subtitle {
  max-width: 650px;
  color: var(--text);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 700;
  margin-bottom: 14px;
}

.hero-copy {
  max-width: 600px;
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 32px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(145deg, #360408, #6f332b);
  color: #d8cabb;
  box-shadow: 0 14px 34px rgba(54, 4, 8, 0.22);
}

.button-secondary {
  border: 1px solid var(--accent-border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(54, 4, 8, 0.08);
}

.hero-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--accent-border);
  border-radius: calc(var(--radius) + 10px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(175, 143, 131, 0.18));
  box-shadow: var(--shadow);
}

.phone-preview {
  min-height: 560px;
  border-radius: 34px;
  border: 1px solid rgba(54, 4, 8, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(175, 143, 131, 0.38), transparent 22rem),
    linear-gradient(180deg, #f3e9df 0%, #d8cabb 56%, #c5afa2 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.phone-top {
  padding: 28px;
}

.mock-label {
  color: var(--text);
  font-weight: 800;
  margin-bottom: 12px;
}

.mock-player-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(54, 4, 8, 0.14);
  box-shadow: 0 16px 42px rgba(54, 4, 8, 0.1);
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(54, 4, 8, 0.12);
}

.mock-row:last-child {
  border-bottom: 0;
}

.mock-value {
  color: var(--text);
  font-weight: 900;
  font-size: 1.8rem;
}

.mock-strength {
  margin-top: 18px;
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(145deg, #360408, #8f6f65);
  color: #d8cabb;
  text-align: center;
  font-weight: 900;
  font-size: 2.5rem;
  box-shadow: 0 14px 32px rgba(54, 4, 8, 0.18);
}

.phone-bottom {
  padding: 0 28px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-pill {
  min-height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(54, 4, 8, 0.14);
  box-shadow: 0 12px 26px rgba(54, 4, 8, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
}

section {
  padding: 70px 0;
}

.section-header {
  max-width: 1020px;
  margin-bottom: 34px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  margin-bottom: 16px;
  color: var(--text);
}

.section-copy {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 16px;
}

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

.feature-card,
.mode-card {
  padding: 24px;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(175, 143, 131, 0.18));
  border: 1px solid var(--accent-border);
  box-shadow: var(--soft-shadow);
}

h3 {
  font-size: 1.16rem;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  color: var(--text);
}

hr {
  display: block;
  width: min(100%, 920px);
  height: 3px;
  margin-bottom: 10px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(175, 143, 131, 1),
    rgba(54, 4, 8, 0)
  );
  box-shadow: 0 4px 12px rgba(54, 4, 8, 0.12);
}

.feature-card p,
.mode-card p {
  color: var(--muted);
  font-size: 0.98rem;
}

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

.mode-visual {
  height: 230px;
  margin-bottom: 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cta-download-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  text-align: left;
}

.qr-code {
  display: flex;
  justify-content: center;
  align-items: center;
}

.qr-code img {
  width: min(100%, 280px);
  padding: 16px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid var(--accent-border);
  box-shadow: var(--soft-shadow);
}

.appstore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  transition: transform 160ms ease, filter 160ms ease;
}

.appstore-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.appstore-button img {
  width: 190px;
  height: auto;
  display: block;
}

.cta-content h2 {
  max-width: 640px;
  margin-left: 0;
  margin-right: 0;
}

.cta-content p {
  max-width: 620px;
  margin-left: 0;
  margin-right: 0;
}

.legal-page {
  padding: 72px 0 96px;
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(175, 143, 131, 0.18));
  border: 1px solid var(--accent-border);
  box-shadow: var(--soft-shadow);
}

.legal-card h1 {
margin-top: 28px;
  margin-bottom: 28px;
}

.legal-card h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.legal-card p {
  margin-bottom: 16px;
  color: var(--muted);
}

.legal-card ul {
  margin: 0 0 20px 24px;
  color: var(--muted);
}

.legal-card li {
  margin-bottom: 8px;
}

.legal-card a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .cta-download-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
  }

  .cta-content h2,
  .cta-content p {
    margin-left: auto;
    margin-right: auto;
  }
}
.mode-visual span {
  padding: 12px 16px;
  border-radius: 14px;
  color: #d8cabb;
  font-weight: 800;
}

.game-process-section {
  padding: 20px 0 70px;
}

.game-process-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.game-process-card {
  width: 100%;
  padding: 18px;
  border-radius: calc(var(--radius) + 12px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(175, 143, 131, 0.18));
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-process-image {
  width: 100%;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  border: 1px solid rgba(54, 4, 8, 0.14);
  box-shadow: 0 16px 42px rgba(54, 4, 8, 0.12);
}

.game-process-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.game-process-content .section-copy {
  margin: 0;
  max-width: 560px;
}

@media (max-width: 900px) {
  .game-process-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .game-process-content {
    text-align: center;
    align-items: center;
  }
}


.phone-screenshot-portrait {
    width: max(30%, 240px);
    margin-bottom: 24px;
}

.cta {
  padding: 86px 0 100px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  padding: clamp(34px, 6vw, 70px);
  border-radius: calc(var(--radius) + 12px);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.38), transparent 24rem),
    linear-gradient(145deg, rgba(175, 143, 131, 0.42), rgba(216, 202, 187, 0.86));
  border: 1px solid var(--accent-border);
  box-shadow: var(--shadow);
  text-align: center;
}

.cta-box h2 {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box p {
  max-width: 700px;
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 1.12rem;
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.92rem;
  background: rgba(216, 202, 187, 0.42);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

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

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 900px) {
  .hero-grid,
  .features-grid,
  .modes-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .phone-preview {
    min-height: 460px;
  }
}

@media (max-width: 640px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px 0;
  }

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

  .actions,
  .button {
    width: 100%;
  }

  .phone-bottom {
    grid-template-columns: 1fr;
  }
}
