/* =========================================================
   Mega Man: Advanced PET — promo & legal site
   "PET device" cyberpunk theme · mobile-first
   Shared by /index.html and /legal/*.html
   ========================================================= */

/* Self-hosted fonts — no Google Fonts CDN, so no visitor IP is sent to Google
   on page load (avoids the LG München 2022 Google-Fonts issue). */
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("fonts/orbitron-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/rajdhani-500-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/rajdhani-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Rajdhani";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/rajdhani-700-latin.woff2") format("woff2");
}

:root {
  /* --- Surfaces (deep navy) --- */
  --bg:        #04070f;
  --bg-2:      #060b16;
  --panel:     #0b1322;
  --panel-2:   #0e1830;
  --stroke:    #18263d;
  --stroke-2:  #243a5c;

  /* --- Text --- */
  --text: #eaf2ff;
  --mid:  #9db4d6;
  --dim:  #5e708c;

  /* --- Neon accents --- */
  --accent:      #35c6ff;   /* electric cyan */
  --accent-soft: #7fe1ff;
  --magenta:     #ff3bd4;   /* hot magenta */
  --lime:        #b6ff3a;   /* toxic lime */

  /* --- Effects --- */
  --glow-cyan:    0 0 18px rgba(53, 198, 255, .45);
  --glow-magenta: 0 0 18px rgba(255, 59, 212, .45);
  --glow-lime:    0 0 16px rgba(182, 255, 58, .40);
  --radius: 14px;
  --maxw: 840px;

  --font-display: "Orbitron", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-head:    "Rajdhani", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body:    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg);
  /* Cyan + magenta corner glows over a faint tactical grid */
  background-image:
    radial-gradient(900px circle at 12% -8%, rgba(53, 198, 255, .16), transparent 45%),
    radial-gradient(700px circle at 100% 0%,  rgba(255, 59, 212, .12), transparent 42%),
    linear-gradient(rgba(53, 198, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 198, 255, .045) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  background-repeat: no-repeat, no-repeat, repeat, repeat;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Signature neon bar pinned to the top of every page */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--magenta) 55%, var(--lime));
  box-shadow: 0 0 14px rgba(53, 198, 255, .6);
  z-index: 50;
}

/* ---------------- Layout ---------------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 40px 20px 72px;
}

/* ---------------- Header ---------------- */
header {
  position: relative;
  padding-bottom: 18px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--stroke);
}
header::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 110px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  box-shadow: var(--glow-cyan);
}

.brand {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  text-shadow: var(--glow-cyan);
}
.brand::before {
  content: "▮ ";
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}

h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 7.5vw, 46px);
  line-height: 1.08;
  margin: 12px 0 6px;
  background: linear-gradient(92deg, var(--accent-soft), var(--accent) 45%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 14px rgba(53, 198, 255, .28));
}

h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(19px, 3.6vw, 23px);
  letter-spacing: .4px;
  margin: 32px 0 10px;
  color: var(--accent);
}
h3 {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--text);
  margin: 22px 0 8px;
}

.updated {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 3px 12px;
}

/* ---------------- Text ---------------- */
p { margin: 12px 0; color: var(--mid); }
.lead {
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text);
}
strong { color: var(--text); }

a { color: var(--accent); text-decoration: none; transition: color .15s ease, text-shadow .15s ease; }
a:hover { color: var(--accent-soft); text-shadow: var(--glow-cyan); text-decoration: underline; }

.back {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .5px;
  font-size: 14px;
  color: var(--dim);
}
.back:hover { color: var(--accent); text-shadow: none; text-decoration: none; }

/* ---------------- Nav (card buttons) ---------------- */
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}
nav a {
  flex: 1 1 auto;
  text-align: center;
  display: inline-block;
  padding: 12px 18px;
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--text);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
nav a:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
  color: var(--accent-soft);
  text-shadow: none;
  text-decoration: none;
}

/* ---------------- Feature tags ---------------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 6px;
  padding: 0;
  list-style: none;
}
.tag {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .6px;
  color: var(--accent-soft);
  padding: 7px 14px;
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  background: rgba(53, 198, 255, .06);
}
.tag::before { content: "◆ "; color: var(--magenta); font-size: 10px; }

/* ---------------- CTA / signup panel ---------------- */
.cta {
  position: relative;
  max-width: 560px;
  margin: 40px auto;
  padding: 30px 24px 26px;
  background:
    radial-gradient(600px circle at 0% 0%, rgba(53, 198, 255, .10), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke-2);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(53, 198, 255, .05);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--magenta), transparent);
  box-shadow: var(--glow-cyan);
}
.cta h2 {
  margin: 0 0 8px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(20px, 5vw, 26px);
  background: linear-gradient(92deg, var(--accent), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta p { text-align: center; }

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 12px;
}
.signup-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px; /* >=16px avoids iOS zoom-on-focus */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--stroke-2);
  border-radius: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.signup-input::placeholder { color: var(--dim); }
.signup-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.btn-primary {
  color: #00131f;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  border-color: rgba(127, 225, 255, .55);
  box-shadow: var(--glow-cyan);
  animation: btnPulse 3.2s ease-in-out infinite;
}
.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 0 26px rgba(53, 198, 255, .75), 0 0 16px rgba(255, 59, 212, .4);
}
.btn-primary:active { transform: translateY(0); }

@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 14px rgba(53, 198, 255, .40); }
  50%      { box-shadow: 0 0 24px rgba(53, 198, 255, .70); }
}

.form-note {
  text-align: center;
  color: var(--dim);
  font-size: 12.5px;
  margin: 6px 0 0;
}
.form-note::before { content: "🔒 "; }

.cookie-note {
  text-align: center;
  color: var(--dim);
  font-size: 13px;
  margin-top: 28px;
}

/* ---------------- Misc ---------------- */
address {
  font-style: normal;
  color: var(--mid);
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(53, 198, 255, .05);
  border-radius: 0 10px 10px 0;
}

hr {
  border: 0;
  height: 1px;
  margin: 32px 0;
  background: linear-gradient(90deg, transparent, var(--stroke-2) 20%, var(--stroke-2) 80%, transparent);
}

.lang {
  color: var(--dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 36px;
}

footer {
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid var(--stroke);
  color: var(--dim);
  font-size: 13px;
  line-height: 1.8;
}

/* ---------------- Cookie consent banner ---------------- */
.consent-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 100;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--stroke-2);
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55);
}
.consent-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(90deg, var(--accent), var(--magenta), var(--lime));
}
.consent-text { margin: 0; color: var(--mid); font-size: 14px; line-height: 1.55; }
.consent-actions { display: flex; gap: 10px; }
.consent-actions .btn { padding: 11px 20px; font-size: 14px; flex: 1; }
.consent-accept { animation: none; }
.consent-decline {
  background: transparent;
  color: var(--mid);
  border: 1px solid var(--stroke-2);
}
.consent-decline:hover { border-color: var(--accent); color: var(--text); }

@media (min-width: 640px) {
  .consent-banner { flex-direction: row; align-items: center; }
  .consent-text { flex: 1; }
  .consent-actions { flex: 0 0 auto; }
  .consent-actions .btn { flex: 0 0 auto; }
}

/* ---------------- Dev Blog video embed ---------------- */
.devblog { margin: 38px 0 6px; }
.devblog h2 { margin-top: 0; }
.trailer { margin: 34px 0 6px; }

.video-embed { position: relative; margin: 18px 0 8px; }

/* Vertical variant for a YouTube Short — phone-shaped, centred.
   Doubled-up class selectors so these win over the 16:9 base rules below. */
.video-embed--short { max-width: 320px; margin-inline: auto; }
.video-facade.video-facade--short { aspect-ratio: 9 / 16; border-radius: 22px; }
.video-embed.video-embed--short iframe { aspect-ratio: 9 / 16; border-radius: 22px; }
.video-facade--short .video-play { width: 62px; height: 62px; }
.video-facade--short .video-play::after { border-width: 12px 0 12px 20px; }
.video-embed--short .video-note { text-align: center; }
/* self-hosted in-game frame as the poster — no Google thumbnail request */
.video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: .42;
}

/* Click-to-load facade: a styled 16:9 button. No YouTube/Google request is
   made until the visitor presses play (see the inline script in index.html). */
.video-facade {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  cursor: pointer;
  border: 1px solid var(--stroke-2);
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(620px circle at 50% 125%, rgba(255, 59, 212, .14), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(53, 198, 255, .05);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.video-facade::before {
  /* signature neon edge along the top, like .cta */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--magenta), transparent);
  box-shadow: var(--glow-cyan);
}
.video-facade:hover,
.video-facade:focus-visible {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
  outline: none;
}

/* faint tactical grid, echoing the page background */
.video-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(53, 198, 255, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 198, 255, .06) 1px, transparent 1px);
  background-size: 38px 38px, 38px 38px;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 74px;
  height: 74px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  box-shadow: var(--glow-cyan);
  transition: transform .15s ease, box-shadow .15s ease;
}
.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 14px 0 14px 24px;
  border-color: transparent transparent transparent #00131f;
}
.video-facade:hover .video-play,
.video-facade:focus-visible .video-play {
  transform: translate(-50%, -50%) scale(1.07);
  box-shadow: 0 0 26px rgba(53, 198, 255, .75), 0 0 16px rgba(255, 59, 212, .4);
}

.video-meta {
  position: absolute;
  left: 18px;
  bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.video-kicker {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}
.video-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(19px, 4.5vw, 26px);
  color: var(--text);
}

/* the iframe swapped in on click reuses the same frame */
.video-embed iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--stroke-2);
  border-radius: 16px;
  display: block;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}

.video-note { font-size: 12.5px; color: var(--dim); margin: 10px 0 0; }
.video-note::before { content: "🔒 "; }
.video-note a { font-weight: 600; }

/* ---------------- Accessibility ---------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================
   Landing-page showcase (home page only) — added for the
   Google Play launch. All new classes; legal pages unaffected.
   ============================================================ */

/* Crisp nearest-neighbour scaling for the in-game pixel sprites */
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }

/* ---------------- Hero ---------------- */
.hero {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: center;
}
.hero-copy { width: 100%; }
.hero .brand { margin-bottom: 2px; }

.hero-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero-art picture { display: block; line-height: 0; }
.hero-icon {
  width: min(64vw, 210px);
  height: auto;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55))
          drop-shadow(0 0 26px rgba(53, 198, 255, .30));
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #7effc0;
  padding: 6px 14px;
  border: 1px solid rgba(5, 206, 120, .40);
  border-radius: 999px;
  background: rgba(5, 206, 120, .08);
}
.badge-live i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #16e17e;
  box-shadow: 0 0 10px #16e17e;
  animation: pulseDot 1.8s ease-in-out infinite;
}
@keyframes pulseDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------- Store buttons ---------------- */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px;
  min-width: 188px;
  border-radius: 12px;
  border: 1px solid var(--stroke-2);
  background: linear-gradient(180deg, #0e1830, #0a1120);
  color: var(--text);
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.store-ico { width: 26px; height: 26px; flex-shrink: 0; }
.store-lines { display: flex; flex-direction: column; line-height: 1.12; text-align: left; }
.store-small {
  font-family: var(--font-head);
  font-size: 10.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--mid);
}
.store-big {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .3px;
  color: var(--text);
}
.store-btn--play:hover,
.store-btn--ios:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
  color: var(--text);
  text-decoration: none;
}
.store-btn--ios .store-ico { color: var(--text); }
.store-note {
  max-width: 58ch;
  margin: 12px 0 0;
  color: var(--mid);
  font-size: .82rem;
  line-height: 1.45;
}
.store-note strong { color: var(--text); }

/* ---------------- Section leads ---------------- */
.section-lead { max-width: 62ch; color: var(--mid); }
.features-section { margin-top: 44px; }

/* ---------------- Spotlight (art + copy) ---------------- */
.spotlight {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 40px 0;
  padding: 22px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(14, 24, 48, .55), rgba(11, 19, 34, .55));
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--magenta);
  text-shadow: var(--glow-magenta);
}
.spotlight-copy h2 { margin-top: 4px; }
.spotlight-art { position: relative; width: 100%; }
.spotlight-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.spotlight-actions .btn { font-size: 13px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; }
.ticks li { position: relative; padding-left: 24px; margin: 9px 0; color: var(--mid); }
.ticks li::before {
  content: "\25B8";
  position: absolute;
  left: 3px;
  color: var(--accent);
  text-shadow: var(--glow-cyan);
}

/* ---------------- Feature grid ---------------- */
.features { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }
.feature {
  padding: 18px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--glow-cyan);
}
.feature-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(53, 198, 255, .09);
  border: 1px solid var(--stroke-2);
  margin-bottom: 12px;
}
.feature-ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; color: var(--text); }
.feature p { margin: 0; font-size: 14px; color: var(--mid); }

/* ---------------- Feature card as link (Chip Library) ---------------- */
.feature--link { display: block; text-decoration: none; color: inherit; }
.feature--link:hover { text-decoration: none; }
.feature-more {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  color: var(--accent);
}
.feature--link:hover .feature-more { color: var(--accent-soft); }

/* ---------------- Chipdex call-to-action ---------------- */
.chipdex-cta { text-align: center; margin-top: 26px; }
.chipdex-cta .btn-primary { text-transform: none; letter-spacing: .3px; }
.chipdex-cta-note { color: var(--dim); font-size: 13px; margin: 10px 0 0; }

/* ---------------- Phone frame (real in-app screenshots) ---------------- */
.phone {
  position: relative;
  width: min(68vw, 268px);
  margin: 0 auto;
  /* matches the exported screenshots (828 × 1709) so nothing gets cropped */
  aspect-ratio: 828 / 1709;
  padding: 9px;
  border-radius: 30px;
  background: linear-gradient(180deg, #1b2942, #0b1322);
  border: 1px solid var(--stroke-2);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(53, 198, 255, .07);
}
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #070d1a;
}
.phone-shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 2;
}

/* ---------------- Social row (top bar) ---------------- */
.social-row { display: flex; flex-wrap: wrap; gap: 10px; }
.topbar .social-link { font-size: 12px; padding: 6px 12px; }
.topbar .social-link svg { width: 16px; height: 16px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .3px;
  color: var(--mid);
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  text-decoration: none;
  transition: transform .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { transform: translateY(-2px); color: var(--text); text-decoration: none; }
.social-link--chips:hover { border-color: var(--accent); color: var(--accent-soft); box-shadow: var(--glow-cyan); }
.social-link--discord:hover { border-color: #5865f2; color: #b9c0ff; box-shadow: 0 0 16px rgba(88, 101, 242, .40); }
.social-link--youtube:hover { border-color: #ff3b3b; color: #ff9a9a; box-shadow: 0 0 16px rgba(255, 59, 59, .35); }
.social-link--x:hover { border-color: var(--text); color: var(--text); box-shadow: 0 0 16px rgba(255, 255, 255, .22); }

/* ---------------- Discord community section ---------------- */
.community {
  position: relative;
  margin: 40px 0;
  padding: 30px 24px;
  text-align: center;
  border: 1px solid rgba(88, 101, 242, .35);
  border-radius: 18px;
  background:
    radial-gradient(600px circle at 50% 0%, rgba(88, 101, 242, .18), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 0 34px rgba(88, 101, 242, .10), 0 16px 40px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.community::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #5865f2, transparent);
}
.community-logo {
  width: 54px;
  height: 54px;
  color: #8b93ff;
  margin-bottom: 6px;
  filter: drop-shadow(0 0 14px rgba(88, 101, 242, .5));
}
.community h2 { color: #aab2ff; text-shadow: 0 0 16px rgba(88, 101, 242, .4); margin: 0 0 8px; }
.community p { max-width: 52ch; margin: 0 auto 18px; }
.discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .4px;
  color: #fff;
  background: linear-gradient(135deg, #5865f2, #4351d6);
  border: none;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 0 20px rgba(88, 101, 242, .45), 0 6px 16px rgba(0, 0, 0, .35);
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease;
}
.discord-btn svg { width: 24px; height: 24px; }
.discord-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(88, 101, 242, .7), 0 8px 20px rgba(0, 0, 0, .4);
}
.discord-btn:active { transform: translateY(0); }

/* ---------------- Showcase responsive ---------------- */
@media (min-width: 560px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) {
  .hero { flex-direction: row; align-items: center; gap: 34px; }
  .hero-copy { flex: 1 1 58%; }
  .hero-art { flex: 0 0 auto; }
  .spotlight { flex-direction: row; align-items: center; gap: 30px; padding: 28px; }
  .spotlight-art { flex: 1 1 46%; }
  .spotlight-copy { flex: 1 1 54%; }
  .spotlight--rev { flex-direction: row-reverse; }
}
@media (min-width: 880px) { .features { grid-template-columns: repeat(3, 1fr); } }

/* ---------------- Responsive (scale up from mobile) ---------------- */
@media (min-width: 520px) {
  .signup-form { flex-direction: row; }
  .signup-input { flex: 1; }
  .btn-primary { white-space: nowrap; }
}
@media (min-width: 760px) {
  .wrap { padding: 56px 24px 88px; }
  nav a { flex: 0 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ---------------- Language picker (top of every page) ---------------- */
.topbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--stroke-2);
  border-radius: 999px;
  background: rgba(53, 198, 255, .04);
}
.lang-picker .globe {
  width: 15px;
  height: 15px;
  margin: 0 3px 0 7px;
  color: var(--dim);
  flex: 0 0 auto;
}
.lang-picker button {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--mid);
  background: transparent;
  border: 0;
  padding: 6px 11px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.lang-picker button:hover { color: var(--text); }
.lang-picker button[aria-pressed="true"] {
  color: #00131f;
  background: var(--accent);
  box-shadow: var(--glow-cyan);
}
