/* ==========================================================================
   Fantasy Roleplay — Home page styles
   ========================================================================== */

:root {
  --bg: #05070c;
  --bg-elevated: #0b0f1a;
  --bg-card: #0e1422;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  --text: #f3f5f9;
  --text-muted: #93a0b4;
  --text-faint: #5c6779;

  --accent: #2f8cf0;
  --accent-strong: #4c9dff;
  --accent-soft: rgba(47, 140, 240, 0.14);
  --accent-glow: rgba(47, 140, 240, 0.35);

  --warn: #f2a93b;
  --warn-soft: rgba(242, 169, 59, 0.12);
  --warn-border: rgba(242, 169, 59, 0.3);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px var(--border), 0 30px 80px -30px var(--accent-glow);

  --container: 1180px;
  --nav-h: 76px;

  color-scheme: dark;
}

/* ---------- Reset & base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Clash Display", "Sora", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

svg {
  display: block;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px -8px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -8px var(--accent-glow);
}

.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover:not([disabled]) {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn[disabled],
.btn-secondary[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

/* ---------- Navbar ---------- */

.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(5, 7, 12, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.navbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 30px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name strong {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
}

.brand-name span {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--accent-strong);
  margin-top: 3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s ease, color 0.15s ease;
}

a.nav-link:not(.is-active):hover {
  color: var(--text);
  background: var(--accent-soft);
}

.nav-link svg {
  width: 16px;
  height: 16px;
  opacity: 0.85;
}

.nav-link.is-disabled {
  color: var(--text-faint);
  cursor: default;
}

a.nav-link.is-active {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.soon-badge {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 7px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--bg-elevated);
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.nav-toggle {
  display: none;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 24px 100px;
  background-image:
    linear-gradient(180deg, rgba(2, 4, 8, 0.55) 0%, rgba(2, 4, 8, 0.35) 40%, var(--bg) 100%),
    url("../assets/img/background.png");
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-family: "Clash Display", "Sora", sans-serif;
  font-size: clamp(2.8rem, 6.4vw, 5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 25%, #b9cbe8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin-top: 22px;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 520px;
}

.hero-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-actions .btn svg {
  width: 18px;
  height: 18px;
}

.hero-stat {
  margin-top: 56px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: rgba(11, 15, 26, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero-stat svg {
  width: 17px;
  height: 17px;
  color: var(--accent-strong);
}

.hero-stat strong {
  color: var(--text);
  font-weight: 700;
}

.hero-stat .stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #33d17a;
}

.hero-stat.is-offline .stat-dot {
  background: var(--text-faint);
}

/* ---------- Section shared ---------- */

section {
  position: relative;
}

.section-head {
  max-width: 620px;
  margin: 0 auto 56px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
}

.section-head p {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 1.03rem;
}

/* ---------- Store section ---------- */

.store {
  padding: 120px 0;
}

.store-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 64px;
  align-items: center;
}

.store-features {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 32px 0 36px;
}

.store-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.store-feature .feature-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.store-feature .feature-icon svg {
  width: 19px;
  height: 19px;
}

.store-feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.store-feature p {
  color: var(--text-muted);
  font-size: 0.93rem;
}

.store-copy h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.store-copy > p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 1.02rem;
  max-width: 460px;
}

.store-visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 14px;
  background: linear-gradient(160deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

.store-visual::before {
  content: "";
  position: absolute;
  inset: -60px -60px auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.store-visual-frame {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  padding: 0;
  text-align: left;
}

.store-visual-frame .frame-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.frame-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.store-visual-frame img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.store-visual-frame:hover img {
  transform: scale(1.02);
  filter: brightness(0.94);
}

.zoom-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translate(-50%, 8px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(5, 7, 12, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  opacity: 0;
  backdrop-filter: blur(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.zoom-hint svg {
  width: 15px;
  height: 15px;
}

.store-visual-frame:hover .zoom-hint,
.store-visual-frame:focus-visible .zoom-hint {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(2, 3, 6, 0.88);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: min(1100px, 100%);
  max-height: 88vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 90px -20px rgba(0, 0, 0, 0.6);
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.lightbox-close svg {
  width: 20px;
  height: 20px;
}

/* ---------- Rules page ---------- */

.page-header {
  padding: calc(var(--nav-h) + 64px) 0 40px;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.page-header p {
  margin-top: 16px;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.03rem;
}

.page-header-divider {
  margin-top: 40px;
  border: none;
  border-top: 1px solid var(--border);
}

.rules {
  padding: 56px 0 120px;
}

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

.rule-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
}

a.rule-card {
  transition: transform 0.15s ease, border-color 0.15s ease;
}

a.rule-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.rule-card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #fff;
}

.rule-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rule-card-body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rule-card-body h3 {
  font-size: 1.15rem;
}

.rule-card-body p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.93rem;
  flex: 1;
}

.rule-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.tag-accent {
  color: var(--accent-strong);
  border-color: rgba(47, 140, 240, 0.3);
  background: var(--accent-soft);
}

.info-callout {
  display: flex;
  gap: 16px;
  margin-top: 48px;
  padding: 24px 26px;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.info-callout .feature-icon {
  flex-shrink: 0;
}

.info-callout h3 {
  font-size: 1rem;
}

.info-callout p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .rules-grid {
    grid-template-columns: 1fr;
  }

  .info-callout {
    flex-direction: column;
  }
}

/* ---------- Legal document page ---------- */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.back-link:hover {
  color: var(--accent-strong);
}

.back-link svg {
  width: 15px;
  height: 15px;
}

.doc-header {
  padding: calc(var(--nav-h) + 24px) 0 0;
}

.doc-header .back-link {
  margin-bottom: 20px;
}

.doc-header h1 {
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
}

.doc-header p {
  margin-top: 14px;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.doc-header-divider {
  margin-top: 32px;
  border: none;
  border-top: 1px solid var(--border);
}

.doc-body {
  padding: 40px 0 120px;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 72px;
  align-items: start;
}

.doc-meta {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.doc-intro {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 28px;
}

.doc-ref {
  color: var(--accent-strong);
  font-weight: 600;
}

a.doc-ref:hover {
  text-decoration: underline;
}

.doc-content section {
  scroll-margin-top: calc(var(--nav-h) + 24px);
  margin-top: 64px;
}

.doc-content section:first-of-type {
  margin-top: 40px;
}

.doc-content h2 {
  font-size: 1.55rem;
  margin-bottom: 28px;
}

.doc-content h3 {
  font-size: 1.1rem;
  margin: 32px 0 14px;
}

.doc-content h3:first-of-type {
  margin-top: 0;
}

.doc-content h4 {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 22px 0 10px;
}

.doc-table-wrap {
  overflow-x: auto;
  margin: 4px 0 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.doc-table {
  width: 100%;
  min-width: 420px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.doc-table th,
.doc-table td {
  padding: 10px 16px;
  text-align: left;
  white-space: nowrap;
}

.doc-table thead th {
  background: var(--bg-elevated);
  color: var(--text-faint);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}

.doc-table tbody td {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.doc-table tbody tr:last-child td {
  border-bottom: none;
}

.doc-table tbody td:first-child {
  color: var(--text);
  font-weight: 600;
  white-space: normal;
}

.doc-content p {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.doc-content ol,
.doc-content ul {
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
  padding-left: 22px;
  margin-bottom: 14px;
}

.doc-content li {
  margin-bottom: 8px;
}

.doc-content li ul,
.doc-content li ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.doc-content .category-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.doc-content .category-list li {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.category-list strong {
  color: var(--text);
}

.sanction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 28px;
}

.tag-sanction {
  color: var(--warn);
  border-color: var(--warn-border);
  background: var(--warn-soft);
}

.toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
}

.toc-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
}

.toc-link {
  display: block;
  padding: 8px 0 8px 18px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 0.87rem;
  color: var(--text-muted);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.toc-link:hover {
  color: var(--text);
}

.toc-link.is-active {
  color: var(--accent-strong);
  border-left-color: var(--accent-strong);
}

.related-docs {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.related-docs-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 16px;
}

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

.related-doc-card {
  display: block;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.related-doc-card h4 {
  font-family: "Clash Display", "Sora", sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
}

a.related-doc-card {
  transition: border-color 0.15s ease, transform 0.15s ease;
}

a.related-doc-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

@media (max-width: 600px) {
  .related-docs-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    display: none;
  }
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 72px 0 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 320px;
}

.footer-heading {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links .nav-link {
  padding: 0;
  border-radius: 0;
  font-size: 0.92rem;
}

.footer-links a.nav-link:not(.is-active):hover {
  background: none;
  color: var(--accent-strong);
}

.footer-links a.nav-link.is-active {
  background: none;
  color: var(--accent-strong);
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.footer-social:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  color: var(--text-faint);
  font-size: 0.82rem;
}

/* ---------- Responsive ---------- */

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

  .store-copy > p {
    max-width: none;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    row-gap: 40px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 10px 16px 18px;
    gap: 2px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .nav-links.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    padding: 12px 10px;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 300px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }
}
