:root {
  --bg: #0f1023;
  --panel: rgba(28, 22, 49, 0.88);
  --panel-soft: rgba(50, 40, 84, 0.76);
  --text: #f6efff;
  --muted: #d1c5e3;
  --accent: #d7a7b5;
  --accent-strong: #b994d4;
  --accent-soft: #8b6fa8;
  --line: rgba(246, 239, 255, 0.14);
  --shadow: 0 24px 80px rgba(4, 2, 14, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 10%, rgba(185, 148, 212, 0.22), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(215, 167, 181, 0.18), transparent 28%),
    linear-gradient(180deg, #0f1023 0%, #2a2145 38%, #5f4b73 74%, #da8b6a 100%);
}

a {
  color: inherit;
}

.hero,
.section,
.footer,
.legal-page {
  padding-left: 24px;
  padding-right: 24px;
}

.topbar,
.hero-content,
.section-heading,
.grid,
.two-col,
.footer,
.legal-page {
  max-width: 1120px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
}

.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 20px;
}

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

.nav-links a:hover,
.footer-links a:hover,
.back-link:hover {
  color: var(--text);
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding-top: 48px;
  padding-bottom: 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-soft);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.96;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  line-height: 1.04;
  max-width: 11ch;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 40rem;
}

.centered {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  border-color: transparent;
  color: #21172f;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
}

.hero-card {
  display: flex;
  justify-content: center;
}

.mock-card,
.info-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.mock-card {
  width: min(320px, 100%);
  padding: 26px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(185, 148, 212, 0.18), rgba(255,255,255,0.02)),
    rgba(20, 17, 38, 0.92);
}

.mock-label,
.mock-meaning,
.info-card p {
  color: var(--muted);
}

.mock-rune {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 240px;
  margin: 16px 0;
  border-radius: 22px;
  background: linear-gradient(180deg, #f6efe6 0%, #ebdfd2 100%);
  color: #c36e8b;
  font-size: 7rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.mock-name {
  font-size: 1.4rem;
  margin: 0 0 8px;
}

.section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.section.alt {
  background: rgba(255, 255, 255, 0.035);
}

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

.section-heading.narrow {
  max-width: 760px;
  text-align: center;
}

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

.mode-grid {
  align-items: stretch;
}

.info-card {
  padding: 24px;
  border-radius: 22px;
}

.mode-card {
  text-align: center;
}

.mode-rune {
  margin: 0 0 16px;
  font-size: 4rem;
  color: var(--accent);
}

.screenshots-section {
  overflow: hidden;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: end;
  max-width: 1120px;
  margin: 0 auto;
}

.screenshot-frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(20, 17, 38, 0.76);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.screenshot-frame figcaption {
  padding: 14px 16px 16px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}

.tablet-shot {
  grid-column: 1 / -1;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

.release-panel {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)),
    rgba(20, 17, 38, 0.92);
  box-shadow: var(--shadow);
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
}

.centered-actions {
  justify-content: center;
}

.small {
  font-size: 0.98rem;
}

.disabled {
  opacity: 0.72;
  pointer-events: none;
}

.feature-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  padding-bottom: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

.legal-page {
  max-width: 760px;
  padding-top: 48px;
  padding-bottom: 80px;
  line-height: 1.8;
}

.centered-page {
  text-align: center;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
}

.legal-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.legal-nav .back-link {
  margin-bottom: 0;
}

.portfolio-link {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 860px) {
  .hero-content,
  .grid.cards,
  .two-col,
  .release-panel,
  .footer {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .topbar {
    flex-direction: column;
    gap: 16px;
  }

  .nav-links,
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-content {
    min-height: auto;
    padding-top: 36px;
  }

  .hero-card {
    justify-content: stretch;
  }

  .hero-title {
    max-width: 100%;
  }

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

  .phone-shot {
    max-width: 380px;
    width: 100%;
    justify-self: center;
  }

  .tablet-shot {
    grid-column: auto;
  }
}
