@import url('./fonts.css');

/* ==========================================================================
   LUVN GAMES — Apple-clean Design System
   ========================================================================== */

:root {
  /* Brand */
  --pink: #ff2d92;
  --purple: #9d4edd;
  --cyan: #00d9ff;

  /* Background */
  --bg: #07021a;
  --bg-elev: #0d0526;

  /* Text */
  --text: #ffffff;
  --text-muted: #a8a3c4;
  --text-dim: #5e5878;

  /* Surfaces */
  --glass: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #ff2d92 0%, #9d4edd 50%, #00d9ff 100%);

  /* Radii */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-full: 999px;

  /* Layout */
  --container: 1180px;

  /* Type */
  --font-display: 'Sora', 'SF Pro Display', system-ui, sans-serif;
  --font-body: 'Inter', 'SF Pro Text', system-ui, sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  min-height: 100vh;
}

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

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

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

::selection {
  background: rgba(255, 45, 146, 0.3);
  color: #fff;
}

/* ==========================================================================
   Background — calm static gradient only
   ========================================================================== */

.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 50% 40% at 20% 10%, rgba(255, 45, 146, 0.12), transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 90%, rgba(0, 217, 255, 0.10), transparent 70%),
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(157, 78, 221, 0.10), transparent 70%),
    var(--bg);
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

@media (max-width: 700px) {
  .container {
    padding: 0 22px;
  }
}

section {
  padding: 180px 0;
  position: relative;
}

@media (max-width: 768px) {
  section {
    padding: 110px 0;
  }
}

/* ==========================================================================
   Typography
   ========================================================================== */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); }
h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }

p {
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1.55;
}

.gradient-text {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.wordmark {
  letter-spacing: -0.05em;
  font-weight: 800;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 20px 0;
  isolation: isolate;
  transform: translateZ(0);
  transition: padding 0.32s ease;
}

.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(7, 2, 26, 0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
  will-change: opacity;
}

.nav.scrolled {
  padding: 12px 0;
}

.nav.scrolled::before {
  opacity: 1;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo svg,
.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s;
}

.nav-links a:hover {
  color: var(--text);
}

.lang-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 88px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.lang-switch button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-full);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0;
  transition: color 0.2s ease;
}

.lang-switch button.active {
  color: var(--bg);
}

.lang-indicator {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: var(--r-full);
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

html[data-site-lang="en"] .lang-indicator {
  transform: translateX(100%);
}

.localized[data-locale="en"] {
  display: none;
}

html[data-site-lang="en"] .localized[data-locale="de"] {
  display: none;
}

html[data-site-lang="en"] .localized[data-locale="en"] {
  display: block;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--r-sm);
  background: var(--glass);
  border: 1px solid var(--border);
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
}

.nav-toggle span::before { top: -5px; }
.nav-toggle span::after  { top: 5px; }

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 70px;
    left: 16px;
    right: 16px;
    flex-direction: column;
    gap: 0;
    background: rgba(7, 2, 26, 0.95);
    backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 12px;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 16px;
    width: 100%;
    border-radius: var(--r-sm);
  }
  .nav-links a:hover {
    background: var(--glass);
  }
  .lang-switch {
    margin: 10px 16px 8px;
    width: calc(100% - 32px);
  }
}

/* ==========================================================================
   Hero — massive whitespace, big type
   ========================================================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
}

.hero-logo {
  margin: 0 auto 56px;
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-logo img,
.hero-logo svg {
  height: clamp(70px, 11vw, 130px);
  width: auto;
}

.hero h1 {
  margin: 0 auto 28px;
  max-width: 980px;
  text-align: center;
}

.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero h1 .word:nth-child(1) { animation-delay: 0.35s; }
.hero h1 .word:nth-child(2) { animation-delay: 0.5s; }
.hero h1 .word:nth-child(3) { animation-delay: 0.65s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cyan);
  transition: gap 0.3s ease;
  opacity: 0;
  animation: fadeUp 0.9s 0.9s forwards;
}

.hero-cta:hover {
  gap: 14px;
}

.hero-cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s;
}

.hero-cta:hover svg {
  transform: translateX(2px);
}

/* ==========================================================================
   Buttons — minimal, Apple-pill style
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r-full);
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.btn-primary {
  background: #fff;
  color: var(--bg);
}

.btn-primary:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn-ghost {
  color: var(--text);
}

.btn-ghost::after {
  content: '→';
  margin-left: 4px;
  transition: transform 0.3s;
  display: inline-block;
}

.btn-ghost:hover::after {
  transform: translateX(4px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan);
  font-weight: 500;
  font-size: 1rem;
  transition: gap 0.3s;
}

.link-arrow:hover {
  gap: 10px;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.3s;
}

/* ==========================================================================
   Section heading (Apple-style centered, one focused idea)
   ========================================================================== */

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

.section-head h2 {
  margin-bottom: 24px;
}

.section-head p {
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--text-muted);
}

/* ==========================================================================
   Feature game card — Apple product showcase style
   ========================================================================== */

.feature {
  text-align: center;
  padding: 100px 60px;
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

@media (max-width: 700px) {
  .feature {
    padding: 70px 28px;
    border-radius: var(--r-lg);
  }
}

.feature::before {
  content: '';
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255, 45, 146, 0.16), transparent 50%),
    radial-gradient(circle at 80% 100%, rgba(0, 217, 255, 0.14), transparent 50%);
  pointer-events: none;
  border-radius: inherit;
}

.feature > * {
  position: relative;
}

.feature-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(0, 217, 255, 0.1);
  border: 1px solid rgba(0, 217, 255, 0.25);
  color: var(--cyan);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 32px;
}

.feature-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  margin-bottom: 22px;
}

.feature-title .chain {
  background: linear-gradient(180deg, #ff5fb8 0%, #ff2d92 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-title .pop {
  background: linear-gradient(180deg, #66e8ff 0%, #00a3d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-sub {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.4;
}

.feature-actions {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Screenshot gallery */
.feature-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 72px;
}

.feature-shot {
  margin: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s, box-shadow 0.4s;
}

.feature-shot:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.feature-shot img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.feature-shot figcaption {
  padding: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.feature-footnote {
  margin-top: 28px;
  font-size: 0.92rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

@media (max-width: 800px) {
  .feature-shots {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 50px;
  }
  .feature-shot img {
    aspect-ratio: 16 / 10;
  }
}

/* ==========================================================================
   Studio statement — single big sentence, Apple-style
   ========================================================================== */

.studio {
  text-align: center;
}

.studio-statement {
  max-width: 980px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--text);
}

.studio-statement em {
  font-style: normal;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Footer — minimal
   ========================================================================== */

.footer {
  padding: 60px 0 40px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-logo img,
.footer-logo svg {
  height: 24px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   Sub-page (legal, support)
   ========================================================================== */

.page {
  padding: 180px 0 100px;
  min-height: 100vh;
}

@media (max-width: 768px) {
  .page { padding: 120px 0 70px; }
}

.page-head {
  text-align: center;
  margin-bottom: 80px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.page-head h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  margin-bottom: 18px;
}

.page-head .updated {
  font-size: 0.92rem;
  color: var(--text-dim);
}

.prose {
  max-width: 740px;
  margin: 0 auto;
}

.prose h2 {
  font-size: 1.55rem;
  margin: 50px 0 16px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose h3 {
  font-size: 1.15rem;
  margin: 30px 0 10px;
  color: var(--text);
  letter-spacing: -0.015em;
}

.prose p,
.prose li {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.prose ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.prose li {
  margin-bottom: 8px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
  transition: all 0.2s;
}

.prose a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

.prose code {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.88em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 5px;
  color: #66e8ff;
}

/* ==========================================================================
   Support page — contact tiles + FAQ
   ========================================================================== */

.contact-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 980px;
  margin: 0 auto 100px;
}

.contact-tile {
  padding: 36px 28px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all 0.3s;
  text-align: left;
}

.contact-tile:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-3px);
}

.contact-tile h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.contact-tile p {
  font-size: 0.92rem;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.contact-tile a {
  color: var(--cyan);
  font-weight: 500;
  font-size: 0.95rem;
}

.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 50px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}

.faq-q {
  width: 100%;
  text-align: left;
  padding: 26px 0;
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--text);
}

.faq-q::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--text-muted);
  font-weight: 300;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-a-inner {
  padding: 0 0 26px;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 620px;
}

.faq-item.open .faq-a {
  max-height: 420px;
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ==========================================================================
   Scrollbar
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   Responsive breakpoints
   ========================================================================== */

/* Small mobile (≤480px) */
@media (max-width: 480px) {
  body {
    font-size: 16px;
  }
  section {
    padding: 80px 0;
  }
  .hero {
    padding: 130px 0 80px;
    min-height: 90vh;
  }
  .container {
    padding: 0 20px;
  }
  .feature {
    padding: 56px 20px;
    border-radius: var(--r-md);
  }
  .feature-tag {
    margin-bottom: 22px;
  }
  .feature-actions {
    gap: 18px;
    flex-direction: column;
  }
  .feature-actions .btn,
  .feature-actions .link-arrow {
    width: 100%;
    justify-content: center;
  }
  .page {
    padding: 110px 0 60px;
  }
  .page-head {
    margin-bottom: 50px;
  }
  .prose {
    font-size: 0.98rem;
  }
  .contact-tiles {
    grid-template-columns: 1fr;
    margin-bottom: 70px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
  }
  .footer-links {
    justify-content: center;
    gap: 20px;
  }
  .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* Tablet portrait (481-900px) */
@media (min-width: 481px) and (max-width: 900px) {
  section {
    padding: 130px 0;
  }
  .hero {
    padding: 140px 0 90px;
  }
  .feature {
    padding: 80px 40px;
  }
}

/* Tablet landscape & small laptop (901-1200px) */
@media (min-width: 901px) and (max-width: 1200px) {
  section {
    padding: 160px 0;
  }
  .feature {
    padding: 90px 50px;
  }
}

/* Desktop & large laptop (≥1200px) — baseline already covers this */

/* Widescreen (≥1600px) */
@media (min-width: 1600px) {
  :root {
    --container: 1280px;
  }
  section {
    padding: 220px 0;
  }
  .feature {
    padding: 120px 80px;
  }
}

/* Ultra-widescreen (≥1920px) */
@media (min-width: 1920px) {
  :root {
    --container: 1400px;
  }
  section {
    padding: 260px 0;
  }
  .hero {
    padding: 200px 0 140px;
  }
}

/* 4K / 5K (≥2560px) */
@media (min-width: 2560px) {
  :root {
    --container: 1600px;
  }
  body {
    font-size: 19px;
  }
}

/* Short / landscape mobile — avoid the hero feeling cramped */
@media (max-height: 600px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Accessibility & Skip Link
   ========================================================================== */

.skip-link {
  position: absolute;
  top: -100px;
  left: 20px;
  background: var(--pink);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}

.skip-link:focus {
  top: 20px;
}

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

/* ==========================================================================
   Hero Indie Badge & App Specs
   ========================================================================== */

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-full);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 28px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  opacity: 0;
  animation: fadeUp 0.8s 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  display: inline-block;
  animation: pulseDot 2.2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 32px;
}

.spec-pill {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   Interactive Theme Switcher
   ========================================================================== */

.theme-switcher {
  margin: 36px auto 0;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.theme-switcher-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}

.theme-pills {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  padding: 4px;
  border-radius: var(--r-full);
}

.theme-pill {
  padding: 8px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--r-full);
  color: var(--text-muted);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: transparent;
  cursor: pointer;
}

.theme-pill:hover {
  color: var(--text);
}

.theme-pill.active {
  background: #fff;
  color: var(--bg);
  box-shadow: 0 4px 14px rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Feature Cards Grid
   ========================================================================== */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 56px;
  text-align: left;
}

.feature-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

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

.feature-card-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(255, 45, 146, 0.15), rgba(0, 217, 255, 0.15));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 20px;
}

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

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-card p {
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* ==========================================================================
   Legal Layout, TOC & Highlighting
   ========================================================================== */

.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}

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

.legal-toc {
  position: sticky;
  top: 90px;
  background: rgba(13, 5, 38, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 24px 20px;
  font-size: 0.88rem;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

@media (max-width: 960px) {
  .legal-toc {
    position: static;
    max-height: none;
  }
}

.legal-toc-title {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
  margin-bottom: 14px;
}

.legal-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-toc li a {
  color: var(--text-muted);
  display: block;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  transition: all 0.2s ease;
  line-height: 1.35;
  border-left: 2px solid transparent;
}

.legal-toc li a:hover,
.legal-toc li a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: var(--cyan);
}

.legal-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  margin: 24px 0;
}

.legal-card h3 {
  margin-top: 0;
}

.callout-highlight {
  background: linear-gradient(135deg, rgba(255, 45, 146, 0.08), rgba(0, 217, 255, 0.08));
  border: 1px solid rgba(255, 45, 146, 0.35);
  border-radius: var(--r-md);
  padding: 24px;
  margin: 28px 0;
}

.callout-highlight h3,
.callout-highlight h4,
.callout-highlight strong {
  color: #fff;
}

.legal-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 217, 255, 0.15);
  color: var(--cyan);
  margin-right: 6px;
  vertical-align: middle;
}

.legal-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Support Page — Interactive Copy Template
   ========================================================================== */

.template-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px;
  margin-top: 18px;
  position: relative;
}

.template-content {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--text-muted);
  white-space: pre-wrap;
  user-select: all;
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  transform: translateY(-1px);
}

.btn-copy.copied {
  background: rgba(0, 217, 255, 0.2);
  border-color: var(--cyan);
  color: var(--cyan);
}

