/* ==========================================================================
   MottoShi GameDev — stylesheet
   1. Fonts          5. Hero            9. Contact
   2. Tokens         6. Marquee        10. Legal pages
   3. Base           7. Games          11. Footer + FAB
   4. Header         8. About/features 12. Motion + responsive
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/fonts/SpaceGrotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
  --bg: #070c15;
  --bg-2: #0a1120;
  --panel: #0f1a2d;
  --panel-2: #131f36;
  --line: #1d2a44;
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #f4f7fd;
  --muted: #96a5bf;
  --brand: #ff7a18;
  --brand-2: #ffb02e;
  --cream: #ffe6c2;
  --violet: #7c6cff;
  --radius: 20px;
  --max: 1120px;
  --font-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Space Grotesk", "Outfit", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 3. Base ----------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.68;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: rgba(255, 122, 24, 0.35); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: #070c15; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand), #b8480d);
  border: 3px solid #070c15;
  border-radius: 99px;
}

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

h1, h2, h3, .font-display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

/* Animated page backdrop: aurora blobs + fine grain */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    radial-gradient(1200px 700px at 50% -10%, #0d1830 0%, transparent 70%),
    linear-gradient(180deg, #070c15, #05080f);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.blob-1 {
  width: 46vw; height: 46vw; min-width: 380px; min-height: 380px;
  top: -14vw; left: -8vw;
  background: radial-gradient(circle at 40% 40%, rgba(255, 122, 24, 0.75), transparent 68%);
  animation: drift-1 26s ease-in-out infinite;
}

.blob-2 {
  width: 40vw; height: 40vw; min-width: 320px; min-height: 320px;
  top: 6vw; right: -10vw;
  background: radial-gradient(circle at 50% 50%, rgba(124, 108, 255, 0.6), transparent 68%);
  animation: drift-2 32s ease-in-out infinite;
}

.blob-3 {
  width: 52vw; height: 52vw; min-width: 380px; min-height: 380px;
  bottom: -22vw; left: 22vw;
  background: radial-gradient(circle at 50% 50%, rgba(43, 108, 255, 0.42), transparent 70%);
  animation: drift-3 38s ease-in-out infinite;
}

.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

@keyframes drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(7vw, 6vh, 0) scale(1.16); }
}
@keyframes drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50%      { transform: translate3d(-6vw, 8vh, 0) scale(0.9); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.95); }
  50%      { transform: translate3d(4vw, -7vh, 0) scale(1.15); }
}

/* Cursor spotlight (desktop pointers only) */
.spotlight {
  position: fixed;
  z-index: -1;
  width: 560px;
  height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(255, 145, 40, 0.13), transparent 62%);
  transition: opacity 0.4s ease;
}

body.has-pointer .spotlight { opacity: 1; }

/* Scroll progress */
.progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 90;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--violet));
  box-shadow: 0 0 18px rgba(255, 122, 24, 0.7);
}

/* Particle canvas */
.sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* 4. Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 12, 21, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-stuck {
  background: rgba(7, 12, 21, 0.88);
  border-bottom-color: var(--line);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
  transition: min-height 0.3s var(--ease);
}

.site-header.is-stuck .wrap { min-height: 64px; }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: -0.01em;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(255, 122, 24, 0.28);
  transition: transform 0.4s var(--ease);
}

.brand:hover img { transform: rotate(-6deg) scale(1.06); }

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--brand-2);
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  padding: 9px 14px;
  border-radius: 10px;
  color: var(--muted);
  transition: color 0.24s ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.32s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] { color: var(--ink); }

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px !important;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #221000 !important;
  font-weight: 700;
  box-shadow: 0 10px 26px rgba(255, 122, 24, 0.32);
}

.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* 5. Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding: 26px 0 78px;
  text-align: center;
  overflow: hidden;
}

.hero .wrap { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(8px);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream);
}

.hero-badge i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.hero-badge i::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--brand);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0%   { transform: scale(0.7); opacity: 0.9; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}

.logo-stage {
  position: relative;
  width: min(800px, 100%);
  margin: 0 auto 6px;
  animation: float 7s ease-in-out infinite;
}

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

.logo-stage img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 70px rgba(255, 122, 24, 0.22));
}

.logo-stage::before {
  content: "";
  position: absolute;
  inset: 8% 6% 4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 24, 0.22), transparent 65%);
  animation: glow 6s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.55; transform: scale(0.96); }
  50%      { opacity: 1; transform: scale(1.06); }
}

.hero h1 {
  margin: 4px 0 16px;
  font-size: clamp(2.15rem, 5.6vw, 3.85rem);
}

.shimmer {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 32%, var(--cream) 52%, var(--brand-2) 70%, var(--brand) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 260% 50%; }
}

.rotator {
  display: inline-flex;
  justify-content: center;
  min-width: 6.6em;
  padding: 1px 13px 3px;
  border: 1px solid rgba(255, 176, 46, 0.28);
  border-radius: 9px;
  background: rgba(255, 176, 46, 0.13);
  color: var(--brand-2);
  font-weight: 700;
  line-height: 1.5;
  vertical-align: -1px;
}

.rotator span {
  display: none;
  animation: wordIn 0.6s var(--ease);
}

.rotator span.on { display: inline-block; }

@keyframes wordIn {
  from { opacity: 0; transform: translateY(0.5em) scale(0.96); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

.hero p.lead {
  max-width: 660px;
  margin: 0 auto 30px;
  font-size: 1.08rem;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.24s var(--ease), box-shadow 0.24s var(--ease),
    border-color 0.24s ease, background 0.24s ease;
}

.btn svg { width: 19px; height: 19px; flex: none; }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #221000;
  box-shadow: 0 16px 40px rgba(255, 122, 24, 0.34);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
}

.btn-primary:hover::after { left: 130%; }

.btn-ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  border-color: rgba(255, 176, 46, 0.6);
  background: rgba(255, 176, 46, 0.1);
}

.btn:hover { transform: translateY(-3px); }
.btn-primary:hover { box-shadow: 0 22px 52px rgba(255, 122, 24, 0.46); }

/* Store badges */
.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 208px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  text-align: left;
  overflow: hidden;
  transition: transform 0.26s var(--ease), border-color 0.26s ease, box-shadow 0.26s ease;
}

.store-badge svg { width: 26px; height: 26px; flex: none; }

.store-badge b {
  display: block;
  font-size: 1rem;
  font-family: var(--font-display);
  line-height: 1.2;
}

.store-badge em {
  display: block;
  font-style: normal;
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.store-badge:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 176, 46, 0.55);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
}

.store-badge.is-soon { opacity: 0.55; cursor: not-allowed; }
.store-badge.is-soon:hover { transform: none; border-color: var(--line); box-shadow: none; }

.hero-note {
  margin: 18px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, var(--brand), transparent);
  animation: cue 2.2s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: scaleY(0.4); opacity: 0.4; transform-origin: top; }
  50%      { transform: scaleY(1); opacity: 1; transform-origin: top; }
}

/* 6. Marquee -------------------------------------------------------------- */

.marquee {
  position: relative;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(255, 122, 24, 0.09), rgba(124, 108, 255, 0.09));
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: slide 32s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-right: 34px;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 230, 194, 0.55);
}

.marquee-track span b {
  color: var(--brand-2);
  -webkit-text-stroke: 0;
}

@keyframes slide {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* 7. Sections + games ----------------------------------------------------- */

.section { position: relative; padding: 92px 0; }

.section-head { margin-bottom: 40px; max-width: 700px; }

.kicker {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
}

.section-head p { margin: 0; color: var(--muted); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(19, 31, 54, 0.9), rgba(10, 17, 32, 0.85));
  overflow: hidden;
  transform-style: preserve-3d;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s var(--ease);
}

/* moving highlight that follows the pointer */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 176, 46, 0.16), transparent 65%);
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card:hover {
  border-color: rgba(255, 176, 46, 0.45);
  box-shadow: var(--shadow);
}

.card-cover {
  position: relative;
  height: 148px;
  margin: -26px -26px 4px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(360px 180px at 22% 10%, rgba(255, 122, 24, 0.5), transparent 68%),
    radial-gradient(320px 200px at 88% 90%, rgba(124, 108, 255, 0.42), transparent 70%),
    linear-gradient(140deg, #101d36, #0a1222);
  overflow: hidden;
}

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 78%);
}

.card-cover img {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 78%;
  width: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.55));
  transition: transform 0.6s var(--ease);
}

.card:hover .card-cover img { transform: translate(-50%, -50%) scale(1.07) rotate(-2deg); }

.cover-plus {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 3.6rem;
  font-weight: 700;
  color: rgba(255, 230, 194, 0.42);
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
  transition: transform 0.6s var(--ease), color 0.4s ease;
}

.card:hover .cover-plus { transform: scale(1.12) rotate(90deg); color: rgba(255, 230, 194, 0.72); }

.card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card h3 { margin: 0; font-size: 1.26rem; }

.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }

.tag {
  flex: none;
  padding: 5px 12px;
  border: 1px solid rgba(255, 176, 46, 0.42);
  border-radius: 999px;
  background: rgba(255, 176, 46, 0.12);
  color: var(--brand-2);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.tag.tag-violet {
  border-color: rgba(124, 108, 255, 0.45);
  background: rgba(124, 108, 255, 0.14);
  color: #b9b1ff;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--muted);
}

.meta span {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.86rem;
  font-weight: 700;
  transition: border-color 0.24s ease, background 0.24s ease, transform 0.24s var(--ease);
}

.chip-link:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 176, 46, 0.55);
  background: rgba(255, 176, 46, 0.1);
}

.chip-link.is-soon { color: var(--muted); opacity: 0.62; pointer-events: none; }

/* 8. Feature + about ------------------------------------------------------ */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature {
  position: relative;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(19, 31, 54, 0.72), rgba(10, 17, 32, 0.6));
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.feature:hover { transform: translateY(-6px); border-color: rgba(255, 176, 46, 0.42); }

.feature-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(150deg, rgba(255, 122, 24, 0.22), rgba(124, 108, 255, 0.16));
  color: var(--brand-2);
}

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

.feature h3 { margin: 0 0 8px; font-size: 1.12rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.about {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 22px;
}

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(19, 31, 54, 0.86), rgba(10, 17, 32, 0.8));
}

.panel h3 { margin: 0 0 14px; font-size: 1.18rem; }
.panel p { margin: 0 0 14px; color: var(--muted); }
.panel p:last-child { margin-bottom: 0; }

.facts { list-style: none; margin: 0; padding: 0; }

.facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}

.facts li:last-child { border-bottom: 0; }
.facts b { font-family: var(--font-display); color: var(--cream); }
.facts span { margin-left: auto; text-align: right; color: var(--muted); }

/* 9. Contact -------------------------------------------------------------- */

.contact {
  position: relative;
  padding: 54px 34px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(700px 300px at 12% 0%, rgba(255, 122, 24, 0.2), transparent 62%),
    radial-gradient(600px 320px at 88% 100%, rgba(124, 108, 255, 0.18), transparent 64%),
    linear-gradient(160deg, rgba(19, 31, 54, 0.9), rgba(9, 15, 28, 0.9));
  text-align: center;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from 0deg, transparent, rgba(255, 122, 24, 0.7), transparent 30%, rgba(124, 108, 255, 0.7), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spin 9s linear infinite;
  pointer-events: none;
}

@keyframes spin { to { transform: rotate(1turn); } }

.contact h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3.4vw, 2.15rem); }
.contact p { margin: 0 auto 26px; max-width: 560px; color: var(--muted); }

/* 10. Legal / text pages -------------------------------------------------- */

.doc { max-width: 820px; margin: 0 auto; padding: 62px 22px 90px; position: relative; z-index: 2; }

.doc h1 { margin: 0 0 10px; font-size: clamp(1.9rem, 4.4vw, 2.7rem); }

.doc .updated { margin: 0 0 34px; color: var(--muted); font-size: 0.9rem; }

.doc h2 {
  margin: 42px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 1.3rem;
}

.doc h2:first-of-type { border-top: 0; padding-top: 0; }

.doc h3 { margin: 26px 0 6px; font-family: var(--font-display); font-size: 1.04rem; color: var(--cream); }

.doc p, .doc li { color: #c3d0e6; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc strong { color: var(--ink); }

.doc a {
  color: var(--brand-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doc .back {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.doc .back:hover { color: var(--brand-2); }

.callout {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.callout p:last-child { margin-bottom: 0; }

details.faq {
  margin: 14px 0;
  padding: 4px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.028);
  transition: border-color 0.24s ease, background 0.24s ease;
}

details.faq[open] { border-color: rgba(255, 176, 46, 0.42); background: rgba(255, 176, 46, 0.05); }

details.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

details.faq summary::-webkit-details-marker { display: none; }

details.faq summary::after {
  content: "+";
  margin-left: auto;
  font-size: 1.3rem;
  color: var(--brand-2);
  transition: transform 0.3s var(--ease);
}

details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { margin: 0 0 18px; }

/* 11. Footer + FAB -------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: 40px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 17, 32, 0.6), rgba(5, 8, 15, 0.95));
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 30px; height: 30px; border-radius: 9px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { transition: color 0.2s ease; }
.footer-links a:hover { color: var(--brand-2); }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 26, 45, 0.92);
  color: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  backdrop-filter: blur(10px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease), border-color 0.2s ease;
}

.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: rgba(255, 176, 46, 0.6); color: var(--brand-2); }

/* 12. Motion helpers + responsive ---------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .reveal.in { opacity: 1; transform: none; }

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

@media (max-width: 780px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(10, 17, 32, 0.97);
    box-shadow: var(--shadow);
    transform-origin: top;
    transform: scaleY(0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.28s var(--ease);
  }

  .site-nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 12px 14px; font-size: 1rem; }
  .site-nav a::after { display: none; }
  .nav-cta { margin: 6px 0 0; text-align: center; }

  .section { padding: 66px 0; }
  .hero { padding: 12px 0 56px; }
  .contact { padding: 40px 22px; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand small { display: none; }
  .logo-stage { width: 100%; }
  .store-badge { width: 100%; }
  .card { padding: 22px; }
  .card-cover { margin: -22px -22px 4px; height: 126px; }
  .to-top { right: 14px; bottom: 14px; }
}

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

@media print {
  .backdrop, .spotlight, .sparks, .to-top, .progress, .marquee { display: none; }
  body { background: #fff; color: #000; }
}
