/* ==========================================================================
   Pablo Interactive — main stylesheet
   ========================================================================== */

:root {
  --bg: #07051a;
  --bg-2: #0d0a2a;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(167, 139, 250, 0.18);
  --border-strong: rgba(167, 139, 250, 0.35);
  --text: #ece9ff;
  --text-muted: #a9a3cc;
  --text-dim: #7a74a3;
  --cyan: #3ee8ff;
  --magenta: #ff3fd8;
  --violet: #8b5cf6;
  --grad: linear-gradient(100deg, var(--cyan) 0%, #a78bfa 50%, var(--magenta) 100%);
  --glow-cyan: 0 0 24px rgba(62, 232, 255, 0.35);
  --glow-magenta: 0 0 24px rgba(255, 63, 216, 0.35);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1160px;
  --font-display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.hero, #about { overflow-x: clip; }

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(800px 600px at 100% 10%, rgba(255, 63, 216, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 120%, rgba(62, 232, 255, 0.10), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(167, 139, 250, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 139, 250, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
::selection { background: var(--magenta); color: #fff; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--cyan);
  color: #000;
  border-radius: 8px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; color: #000; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 5, 26, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(7, 5, 26, 0.88); }

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: .04em;
}
.brand:hover { color: var(--text); }
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--border-strong), var(--glow-magenta);
}
.brand span b { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: .95rem;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: #07051a;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; border-radius: 12px; }
  .nav-links .btn { margin-top: 8px; justify-content: center; }
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .03em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--grad);
  color: #0b0620;
  box-shadow: 0 8px 30px rgba(255, 63, 216, 0.25);
}
.btn-primary:hover { color: #0b0620; transform: translateY(-2px); box-shadow: 0 12px 38px rgba(62, 232, 255, 0.35); }
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { color: #fff; background: var(--surface-2); border-color: var(--cyan); }
.nav-links a.btn-primary { padding: 9px 18px; font-size: .9rem; color: #0b0620; font-weight: 600; }
.nav-links a.btn-primary:hover { background: var(--grad); color: #0b0620; }

/* ---------------- Typography helpers ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--grad);
  border-radius: 2px;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--text-muted); max-width: 620px; }
.muted { color: var(--text-muted); }

section { padding: 96px 0; }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

/* ---------------- Hero ---------------- */
.hero { padding: 72px 0 96px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 56px;
}
.hero h1 { margin: 18px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.hero-art::before {
  content: "";
  position: absolute;
  inset: -8%;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--cyan), var(--violet), var(--magenta), var(--cyan));
  filter: blur(60px);
  opacity: .45;
  z-index: -1;
  animation: spin 18s linear infinite;
}
.hero-art img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: float 7s ease-in-out infinite;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text);
}
.hero-stats div span { font-size: .9rem; color: var(--text-dim); }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { order: -1; max-width: 340px; }
}

/* ---------------- Cards ---------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(62, 232, 255, 0.15), rgba(255, 63, 216, 0.15));
  border: 1px solid var(--border-strong);
  color: var(--cyan);
}
.icon-badge svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); margin: 0; }

/* ---------------- Game showcase ---------------- */
.game-feature {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(62, 232, 255, 0.08), rgba(255, 63, 216, 0.08)),
    var(--bg-2);
  border: 1px solid var(--border-strong);
  position: relative;
  overflow: hidden;
}
.game-feature::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 63, 216, 0.25), transparent 70%);
  pointer-events: none;
}
.game-icon {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 22%;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), var(--glow-cyan);
  background: linear-gradient(135deg, #2a1660, #0f2a5a);
}
.game-icon img { width: 100%; height: 100%; object-fit: cover; }
.game-icon .fallback {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8%;
  padding: 18%;
}
.game-icon .fallback i {
  border-radius: 18%;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.25), inset 0 4px 0 rgba(255, 255, 255, 0.25);
}
.game-icon .fallback i:nth-child(1) { background: var(--cyan); }
.game-icon .fallback i:nth-child(2) { background: var(--magenta); }
.game-icon .fallback i:nth-child(3) { background: #ffd23f; }
.game-icon .fallback i:nth-child(4) { background: #8b5cf6; }
.game-icon .fallback i:nth-child(5) { background: transparent; box-shadow: none; }
.game-icon .fallback i:nth-child(6) { background: var(--cyan); }
.game-icon .fallback i:nth-child(7) { background: #4ade80; }
.game-icon .fallback i:nth-child(8) { background: #ff7a3f; }
.game-icon .fallback i:nth-child(9) { background: var(--magenta); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; }
.tag {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.tag.live { color: #0b0620; background: var(--cyan); border-color: transparent; font-weight: 600; }
.tag.soon { color: #fff; background: linear-gradient(90deg, var(--violet), var(--magenta)); border-color: transparent; font-weight: 600; }

@media (max-width: 820px) {
  .game-feature { grid-template-columns: 1fr; padding: 28px; gap: 28px; text-align: left; }
  .game-icon { max-width: 220px; }
}

/* ---------------- Feature list ---------------- */
.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--text-muted); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------------- About ---------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
}
.about-visual img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 30%; }
.about-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 5, 26, 0.85));
}
.about-visual figcaption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 1;
  font-family: var(--font-display);
  font-size: .95rem;
  color: var(--text);
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------------- Contact / social ---------------- */
.contact-panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  padding: 48px;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(62, 232, 255, 0.10), transparent 60%),
    radial-gradient(600px 300px at 100% 100%, rgba(255, 63, 216, 0.10), transparent 60%),
    var(--bg-2);
}
@media (max-width: 860px) { .contact-panel { grid-template-columns: 1fr; padding: 28px; } }

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.6vw, 1.45rem);
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
  margin: 8px 0 24px;
}
.contact-email:hover { color: var(--cyan); }
.contact-email svg { width: 26px; height: 26px; flex: none; color: var(--cyan); }

.social-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.social-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  transition: border-color .2s, background .2s, transform .2s;
}
.social-link:hover { color: var(--text); border-color: var(--cyan); background: var(--surface-2); transform: translateX(4px); }
.social-link svg { width: 24px; height: 24px; flex: none; }
.social-link small { display: block; color: var(--text-dim); font-size: .82rem; font-weight: 400; }
.social-link .arrow { margin-left: auto; color: var(--text-dim); width: 18px; height: 18px; }

.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: color .2s, border-color .2s, transform .2s;
}
.social-icons a:hover { color: var(--cyan); border-color: var(--cyan); transform: translateY(-2px); }
.social-icons svg { width: 19px; height: 19px; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
  margin-top: 40px;
  background: rgba(5, 3, 18, 0.6);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
}
.footer-grid h4 {
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--text-muted); font-size: .95rem; }
.footer-grid ul a:hover { color: var(--cyan); }
.footer-brand p { color: var(--text-muted); font-size: .95rem; margin: 16px 0 20px; max-width: 300px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: .88rem;
  color: var(--text-dim);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero { padding: 64px 0 40px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); margin-top: 14px; }
.breadcrumb { font-size: .88rem; color: var(--text-dim); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--cyan); }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; font-size: .92rem; color: var(--text-muted); }
.meta-row strong { color: var(--text); font-weight: 600; }

/* ---------------- Legal document layout ---------------- */
.legal { padding: 24px 0 80px; }
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.toc {
  position: sticky;
  top: 96px;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.toc h4 { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 20px; display: grid; gap: 7px; font-size: .9rem; }
.toc ol li::marker { color: var(--text-dim); }
.toc a { color: var(--text-muted); }
.toc a:hover, .toc a.active { color: var(--cyan); }

.doc {
  min-width: 0;
  background: rgba(13, 10, 42, 0.55);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px;
}
.doc h2 {
  font-size: 1.45rem;
  margin: 44px 0 14px;
  padding-top: 8px;
  scroll-margin-top: 96px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.doc h2:first-of-type { margin-top: 0; }
.doc h2 .num { font-size: .95rem; color: var(--cyan); font-weight: 600; min-width: 28px; }
.doc h3 { font-size: 1.08rem; margin: 26px 0 10px; color: var(--text); }
.doc p, .doc li { color: #cfcaf0; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--text); }
.doc a { text-decoration: underline; text-decoration-color: rgba(62, 232, 255, 0.4); text-underline-offset: 3px; word-break: break-word; }

.callout {
  padding: 18px 22px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(62, 232, 255, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--cyan);
  margin: 0 0 28px;
}
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-left-color: var(--magenta); }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border-radius: 14px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); font-family: var(--font-display); font-weight: 600; color: var(--text); font-size: .9rem; letter-spacing: .02em; }
td { color: #cfcaf0; }
tr:last-child td { border-bottom: none; }

@media (max-width: 960px) {
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}
@media (max-width: 640px) {
  .doc { padding: 26px 20px; border-radius: 18px; }
  section { padding: 72px 0; }
  .container { padding: 0 16px; }
}

/* ---------------- Steps (data deletion) ---------------- */
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 14px; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px 18px 66px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin: 0 !important;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #0b0620;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ---------------- 404 ---------------- */
.not-found { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.not-found .code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 22vw, 11rem);
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px rgba(255, 63, 216, 0.35));
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Language switch ---------------- */
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
}
.nav-links .lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--text-dim);
  background: transparent;
}
.nav-links .lang-switch a:hover { color: var(--text); background: transparent; }
.nav-links .lang-switch a[aria-current="true"] { color: #0b0620; background: var(--cyan); }
@media (max-width: 820px) {
  .nav-links .lang-switch { align-self: flex-start; margin: 6px 0 0 8px; }
}

a.tag { transition: filter .2s, transform .2s; }
a.tag:hover { color: #fff; filter: brightness(1.15); transform: translateY(-1px); }
