/* ==========================================================================
   THORVA — Design System
   Dark Cinematic Theme
   Headlines: Bricolage Grotesque  |  Body: Outfit
   ========================================================================== */


/* --- 1. Custom Properties ----------------------------------------------- */

:root {
  /* Palette */
  --bg:            #0A0A0B;
  --surface:       #141416;
  --surface-2:     #1C1C1F;
  --border:        #2A2A2E;
  --text:          #F0EDE8;
  --text-muted:    #8A8A90;
  --accent:        #C9A84C;
  --accent-hover:  #D4B65E;
  --accent-dim:    rgba(201, 168, 76, 0.10);
  --strika:        #4A6CF7;
  --strika-dim:    rgba(74, 108, 247, 0.08);
  --mimira:        #C2614A;
  --mimira-dim:    rgba(194, 97, 74, 0.08);
  --error:         #EF4444;
  --success:       #22C55E;

  /* Typography */
  --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Outfit', system-ui, sans-serif;

  /* Layout */
  --max-w:        1080px;
  --gutter:       1.5rem;
  --section-pad:  5rem;
  --nav-h:        60px;

  /* Motion */
  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --transition:   200ms ease;
  --transition-slow: 500ms var(--ease-out);
}


/* --- 2. Reset & Base ---------------------------------------------------- */

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

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(201, 168, 76, 0.25);
  color: var(--text);
}

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

a {
  color: var(--text);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--transition), opacity var(--transition);
}
a:hover { opacity: 0.7; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { list-style: none; }


/* --- 3. Typography ------------------------------------------------------ */

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-muted); line-height: 1.7; }


/* --- 4. Layout ---------------------------------------------------------- */

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

.section {
  padding: var(--section-pad) 0;
}

/* Page header — used on listing/subpages */
.page-header {
  padding: 5rem 0 2rem;
  text-align: center;
}
.page-header h1 { margin-bottom: 0.75rem; }
.page-header p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
}


/* --- 5. Navbar ---------------------------------------------------------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  transform: translateY(5px);
}
.navbar-brand:hover { color: var(--text); opacity: 1; }

.navbar-logo {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  transform: translateY(-3px);
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-nav a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.navbar-nav a:hover { color: var(--text); opacity: 1; }
.navbar-nav a[aria-current="page"] { color: var(--text); }

/* Underline indicator for current page */
.navbar-nav a[aria-current="page"]::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--accent);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → X */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* --- 6. Buttons --------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  line-height: 1;
  transition: all var(--transition);
}
.btn:hover { opacity: 1; }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Primary — gold accent, dark text */
.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--bg);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
  transform: translateY(-1px);
}

/* Ghost — transparent with border */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}


/* --- 7. Hero ------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 4rem 0;
}

/* Cinematic vignette — darkens edges, focuses the eye */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(10, 10, 11, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Multi-layer atmospheric gradient mesh */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  animation: entrance-fade 2.5s ease-out 0.5s both;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  will-change: transform;
}

/* Primary amber glow — studio brand, centered, breathing */
.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: rgba(201, 168, 76, 0.09);
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  animation: breathe 8s ease-in-out infinite;
}

/* Cool blue accent — Strika color, bottom-left, slow drift */
.hero-orb--2 {
  width: 450px;
  height: 450px;
  background: rgba(74, 108, 247, 0.06);
  bottom: -15%;
  left: 5%;
  animation: drift-a 16s ease-in-out infinite;
}

/* Warm terracotta accent — Mimira color, top-right, gentle drift */
.hero-orb--3 {
  width: 380px;
  height: 380px;
  background: rgba(194, 97, 74, 0.05);
  top: 10%;
  right: 0%;
  animation: drift-b 20s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.6; }
  50%      { transform: translateX(-50%) scale(1.18);  opacity: 1; }
}

@keyframes drift-a {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(35px, -20px); }
  66%  { transform: translate(-15px, 30px); }
}

@keyframes drift-b {
  0%, 100% { transform: translate(0, 0); }
  33%  { transform: translate(-25px, 18px); }
  66%  { transform: translate(20px, -28px); }
}

@keyframes entrance-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

.hero-logo {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
}

.hero-brand {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
  animation: entrance-up 0.9s var(--ease-out) both;
  animation-delay: 0.15s;
}

.hero-title {
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 14ch;
  margin: 0 auto;
  animation: entrance-up 0.9s var(--ease-out) both;
  animation-delay: 0.4s;
}

@keyframes entrance-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* --- 8. Manifesto ------------------------------------------------------- */

.manifesto {
  padding: 6rem 0 7rem;
  text-align: center;
}

.manifesto-line {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-size: clamp(1.4rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text);
  display: block;
}

.manifesto-line + .manifesto-line {
  margin-top: 0.25em;
}

.manifesto-accent {
  color: var(--accent);
}


/* --- 9. Atmospheric Glows ----------------------------------------------- */

.showcase-glow--strika {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 108, 247, 0.05) 0%, transparent 70%);
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.showcase-glow--mimira-1 {
  position: absolute;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background: rgba(194, 97, 74, 0.08);
  filter: blur(80px);
  top: 5%;
  left: 5%;
  animation: drift-a 20s ease-in-out infinite;
}

.showcase-glow--mimira-2 {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(194, 97, 74, 0.05);
  filter: blur(80px);
  bottom: 10%;
  right: 8%;
  animation: drift-b 18s ease-in-out infinite;
}

/* --- 10. Games Preview (Homepage) --------------------------------------- */

.games-preview {
  padding: var(--section-pad) 0;
  background: var(--surface);
}

.games-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.game-preview {
  display: block;
  padding: 2.5rem;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.game-preview:hover {
  opacity: 1;
  border-color: rgba(240, 237, 232, 0.1);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(-2px);
}

.game-preview--strika { border-top: 2px solid rgba(74, 108, 247, 0.4); }
.game-preview--mimira { border-top: 2px solid rgba(194, 97, 74, 0.4); }

.game-preview .eyebrow { margin-bottom: 1rem; }

.game-preview h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.game-preview p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  max-width: 360px;
}

.game-preview-cta {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease;
}

.game-preview:hover .game-preview-cta {
  gap: 0.65rem;
}


/* --- 11. Step Flow ------------------------------------------------------ */

.step-flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto 3.5rem;
  text-align: left;
}

.step {
  padding: 1.5rem;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.step-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.step h3 {
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  line-height: 1.6;
}


/* --- 12. Phone Mockup --------------------------------------------------- */

.phone {
  width: 200px;
  aspect-ratio: 9 / 19.5;
  border: 2px solid var(--border);
  border-radius: 32px;
  position: relative;
  background: var(--surface-2);
  overflow: hidden;
  flex-shrink: 0;
}

/* Notch */
.phone::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 22px;
  background: var(--bg);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}

/* Home indicator */
.phone::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 4px;
  background: var(--text-muted);
  border-radius: 2px;
  opacity: 0.2;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 32px 12px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Strika SVG line-draw animation */
.strika-line {
  width: 80%;
  height: 70%;
}

.strika-line path {
  fill: none;
  stroke: var(--strika);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.strika-line.is-drawn path {
  stroke-dashoffset: 0;
}

/* Mimira dots connection animation */
.mimira-dots {
  width: 100%;
  height: 100%;
  position: relative;
}

.mimira-dots .dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mimira);
  top: 50%;
  transform: translateY(-50%);
  transition: transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.mimira-dots .dot-1 { left: 20%; }
.mimira-dots .dot-2 { right: 20%; }

.mimira-dots .connector {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 2px;
  background: var(--mimira);
  border-radius: 1px;
  opacity: 0;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s,
              opacity 0.4s ease 0.6s;
}

.mimira-dots.is-connected .dot-1 {
  transform: translateY(-50%) translateX(40%);
}
.mimira-dots.is-connected .dot-2 {
  transform: translateY(-50%) translateX(-40%);
}
.mimira-dots.is-connected .connector {
  width: 30%;
  opacity: 1;
}

/* Placeholder label beneath phone */
.phone-badge {
  display: block;
  margin-top: 1rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.5;
}

/* Phone color variants — usable anywhere via utility class */
.phone--strika { border-color: rgba(74, 108, 247, 0.25); }
.phone--mimira { border-color: rgba(194, 97, 74, 0.25); }


/* --- 13. Eyebrow (Section Label) ---------------------------------------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.eyebrow--strika { color: var(--strika); }
.eyebrow--mimira { color: var(--mimira); }

/* --- 14. Game Cards (Apps listing page) --------------------------------- */

.game-card {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.game-card + .game-card {
  border-top: 1px solid var(--border);
}

.game-card--strika { background: var(--surface); }
.game-card--mimira { background: var(--bg); }

.game-card-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.game-card-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.game-card-tagline {
  font-family: var(--font-heading);
  font-optical-sizing: auto;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.game-card-desc {
  font-size: 0.95rem;
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.7;
}


/* --- 15. Badges --------------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.badge--live {
  background: var(--strika-dim);
  color: var(--strika);
  border: 1px solid rgba(74, 108, 247, 0.2);
}

.badge--soon {
  background: var(--mimira-dim);
  color: var(--mimira);
  border: 1px solid rgba(194, 97, 74, 0.2);
}


/* --- 16. App Icon ------------------------------------------------------- */

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.app-icon-sm {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 0.75rem;
}


/* --- 17. App Detail Page ------------------------------------------------ */

/* Detail hero — centered landing with atmospheric bg */
.app-hero {
  text-align: center;
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.app-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.app-hero-inner {
  position: relative;
  z-index: 1;
}

.app-hero h1 { margin-bottom: 0.5rem; }

.app-hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 2.5rem;
}

.app-hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Section heading — centered above grids */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* Step flow color modifiers */
.step-flow--strika .step-num { color: var(--strika); }
.step-flow--mimira .step-num { color: var(--mimira); }

/* Detail feature grid */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.detail-card {
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.detail-card--strika { border-top: 2px solid rgba(74, 108, 247, 0.3); }
.detail-card--mimira { border-top: 2px solid rgba(194, 97, 74, 0.3); }

.detail-card h3 { margin-bottom: 0.5rem; }
.detail-card p { font-size: 0.9rem; line-height: 1.65; }

/* Legacy / shared */
.app-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}


/* --- 18. Contact Form --------------------------------------------------- */

.contact-section {
  max-width: 520px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.contact-section h1 {
  text-align: center;
  margin-bottom: 0.5rem;
}
.contact-section > p {
  text-align: center;
  margin-bottom: 2.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.7rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #555;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.text-accent { color: var(--accent); }

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
}
.form-status.is-error {
  display: block;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--error);
}
.form-status.is-success {
  display: block;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: var(--success);
}


/* --- 19. Legal Content -------------------------------------------------- */

.legal-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.legal-content h1 { margin-bottom: 0.5rem; }
.legal-content .effective-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.legal-content h2 {
  font-size: 1.1rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-content h3 {
  font-size: 0.95rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.legal-content p {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.7;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}
.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}
.legal-content ul li {
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.legal-content li strong { color: var(--text); }

.legal-content .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.8rem;
  min-width: 480px;
}
.legal-content th,
.legal-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.65rem;
  text-align: left;
  color: var(--text-muted);
}
.legal-content th {
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
}
.legal-content td strong { color: var(--text); }


/* --- 20. Footer --------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0;
  text-align: center;
}

.footer-signoff {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-nav a {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--text); opacity: 1; }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.5;
}


/* --- 21. Scroll Reveal -------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* --- 22. Utilities ------------------------------------------------------ */

.bg-surface { background: var(--surface); }
.text-center { text-align: center; }
.mb-lg { margin-bottom: 1.5rem; }


/* --- 23. Responsive ----------------------------------------------------- */

/* Tablet (768px+) */
@media (min-width: 768px) {
  :root {
    --section-pad: 6rem;
    --gutter: 2rem;
  }

  .step-flow {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .manifesto {
    padding: 8rem 0 9rem;
  }

  .games-preview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .game-card-layout {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  /* Reverse visual to left side for Mimira */
  .game-card--mimira .game-card-visual {
    order: -1;
  }

  .detail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  :root {
    --section-pad: 7rem;
  }

  .phone {
    width: 230px;
  }
}

/* Small mobile (≤ 480px) */
@media (max-width: 480px) {
  :root {
    --gutter: 1rem;
    --section-pad: 3.5rem;
  }

  .hero {
    min-height: 75vh;
  }

  .manifesto {
    padding: 4rem 0 5rem;
  }

  .phone {
    width: 170px;
  }

  .contact-section { padding: 2.5rem 1rem; }
  .legal-content { padding: 2.5rem 1rem; }
  .app-actions { flex-direction: column; align-items: center; }
}

/* Mobile nav (≤ 768px) */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .navbar-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1.25rem var(--gutter);
    gap: 0.75rem;
    background: rgba(10, 10, 11, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
  }

  .navbar-nav.is-open { display: flex; }

  .section { padding: 3rem 0; }
  .contact-section { padding: 2.5rem 1.5rem; }
  .legal-content { padding: 2.5rem 1.5rem; }
}


/* --- 24. Reduced Motion ------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .strika-line path {
    stroke-dashoffset: 0 !important;
  }

  .mimira-dots .dot {
    transition: none !important;
  }
  .mimira-dots .connector {
    transition: none !important;
  }
}
