/* FFStudio — landing dark */
:root {
  --bg-deep: #070a0f;
  --bg: #0c1018;
  --bg-elevated: #121a26;
  --bg-card: #151d2b;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf5;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dim: rgba(56, 189, 248, 0.15);
  --accent-strong: #0ea5e9;
  --success: #34d399;
  --radius: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(14, 165, 233, 0.12), transparent),
    radial-gradient(ellipse 80% 50% at 100% 50%, rgba(56, 189, 248, 0.06), transparent);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 88%);
  opacity: 0.28;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.12em 0.4em;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1160px, 93vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 15, 0.75);
  backdrop-filter: blur(12px);
}

.site-header .inner {
  width: min(1160px, 93vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-text {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.lang-btn {
  min-width: 40px;
  padding: 0.42rem 0.55rem;
  border: none;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  background: transparent;
  color: var(--muted);
  transition: color 0.15s, background 0.15s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-desktop a {
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}
.nav-desktop a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}
.nav-desktop a.is-active {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), #6366f1);
  color: #fff;
  box-shadow: 0 8px 28px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover {
  box-shadow: 0 12px 36px rgba(14, 165, 233, 0.45);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: rgba(7, 10, 15, 0.97);
  padding: 1.25rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99;
}
.nav-mobile a {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
  font-weight: 500;
}
.nav-mobile a:hover {
  background: var(--bg-elevated);
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .header-actions .btn-primary {
    display: none;
  }
}

body.nav-open .nav-mobile {
  display: flex;
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  position: relative;
}

.hero-ffstudio::before {
  content: "";
  position: absolute;
  inset: 4% 16% auto 16%;
  height: 280px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.05) 56%, transparent 72%);
  filter: blur(14px);
  pointer-events: none;
}

.hero-orbit {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.12);
  pointer-events: none;
  animation: drift 10s ease-in-out infinite;
}

.hero-orbit-a {
  width: 340px;
  height: 340px;
  top: 36px;
  right: 9%;
}

.hero-orbit-b {
  width: 220px;
  height: 220px;
  top: 210px;
  right: 4%;
  animation-duration: 12s;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-app-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.hero-app-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 14px;
  flex-shrink: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  animation: floatSoft 4.5s ease-in-out infinite;
}

.hero-app-name {
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(0.92rem, 2.2vw, 1.08rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 36ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-meta strong {
  color: var(--text);
  font-weight: 600;
}

.hero-signal {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.signal-card {
  position: relative;
  padding: 0.95rem 1rem 0.9rem;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(15, 22, 34, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.signal-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(180deg, var(--accent), rgba(99, 102, 241, 0.7));
}

.signal-label {
  display: block;
  margin-bottom: 0.22rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.signal-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

/* Video shell */
.video-shell {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.video-shell-ffstudio {
  background:
    linear-gradient(180deg, rgba(56, 189, 248, 0.08), rgba(8, 12, 20, 0.2)),
    var(--bg-card);
  animation: shellGlow 8s ease-in-out infinite;
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 1;
}

.video-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0a0f18;
  object-fit: contain;
}

.video-chip {
  position: absolute;
  z-index: 3;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: rgba(7, 10, 15, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26);
}

.video-chip-top {
  top: 16px;
  left: 16px;
  animation: floatSoft 4.2s ease-in-out infinite;
}

.video-chip-bottom {
  right: 16px;
  bottom: 46px;
  animation: floatSoft 5.2s ease-in-out infinite reverse;
}

.video-placeholder {
  display: none;
  aspect-ratio: 16 / 9;
  place-items: center;
  text-align: center;
  padding: 2rem;
  background: linear-gradient(160deg, #151d2b 0%, #0a0f18 100%);
  color: var(--muted);
  font-size: 0.95rem;
}
.video-placeholder strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.video-shell.is-empty .video-placeholder {
  display: grid;
}
.video-shell.is-empty video {
  display: none;
}

.video-caption {
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.editor-ribbon {
  padding: 0 0 1.5rem;
}

.editor-ribbon-track {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.14);
  background:
    linear-gradient(90deg, rgba(56, 189, 248, 0.08), rgba(99, 102, 241, 0.06)),
    rgba(10, 14, 22, 0.72);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.24);
}

.editor-ribbon-track span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #d6e2f1;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.editor-ribbon-track span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #6366f1);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.35);
}

/* Sections */
section[id] {
  scroll-margin-top: calc(var(--header-h) + 12px);
}

section {
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

section:nth-of-type(odd):not(.hero):not(.editor-ribbon) {
  position: relative;
}

section:nth-of-type(odd):not(.hero):not(.editor-ribbon)::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.01), transparent 28%, transparent 72%, rgba(255, 255, 255, 0.01));
  pointer-events: none;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 960px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 520px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step-card {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}
.step-card:hover {
  border-color: rgba(56, 189, 248, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.38);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.9rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.85rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }
}

.feature {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.feature h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Two columns */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }

  .demo-split,
  .demo-split-reverse {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.22);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

.panel h3 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
}

.demo-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.6rem;
  align-items: stretch;
  @media (max-width: 1024px) {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: none !important;
    gap: 1.5rem !important;
  }
 
}

.demo-split-reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.demo-card {
  padding: 1rem;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.28);
}

.demo-shell {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a0f18;
}

.demo-shell video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #091018;
  object-fit: contain;
}

.demo-shell .video-placeholder {
  display: none;
}

.demo-shell.is-empty .video-placeholder {
  display: grid;
}

.demo-shell.is-empty video {
  display: none;
}

.detail-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.list-check {
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-check li {
  position: relative;
  padding-left: 1.65rem;
  margin-bottom: 0.65rem;
  font-size: 0.95rem;
  color: var(--muted);
}
.list-check li:last-child {
  margin-bottom: 0;
}

.list-check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 800;
  font-size: 0.85rem;
}

.list-warn li::before {
  content: "!";
  color: #fbbf24;
}

/* Tech */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.tech-item {
  padding: 1.1rem 1.15rem;
  border-radius: 12px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
}

.tech-item:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.tech-item dt {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.tech-item dd {
  margin: 0;
  color: var(--muted);
}

/* CTA band */
.cta-band {
  margin-top: 1rem;
  padding: clamp(2rem, 4vw, 2.75rem);
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: auto -20% -70% auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16), transparent 72%);
  pointer-events: none;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.45rem;
  font-weight: 800;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  max-width: 520px;
  margin-inline: auto;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.footer-credits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1rem;
  flex: 1 1 100%;
  min-width: 0;
}

.footer-apg-link {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  border-radius: 10px;
  transition: opacity 0.15s;
}

.footer-apg-link:hover {
  opacity: 0.88;
}

.footer-logo-apg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.footer-line1 {
  margin: 0;
  flex: 1 1 200px;
  min-width: min(100%, 220px);
}

.site-footer a {
  color: var(--muted);
}
.site-footer a:hover {
  color: var(--accent);
}

.footer-links {
  flex-basis: 100%;
  margin-top: 0.35rem;
}

.footer-links a {
  font-weight: 600;
}

.footer-sep {
  margin: 0 0.45rem;
  opacity: 0.55;
}

.apg-games-head {
  margin-top: 3rem;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  @media (max-width: 1024px) {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.25rem;
  }

}

.game-card {
  overflow: hidden;
  border-radius: calc(var(--radius) + 2px);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(56, 189, 248, 0.12);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.26);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.24);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.34);
}

.game-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #091018;
}

.game-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.game-card:hover .game-media img {
  transform: scale(1.03);
}

.game-copy {
  padding: 1.1rem 1.1rem 1.2rem;
}

.game-copy h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.game-copy p {
  margin: 0 0 0.95rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.game-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.game-link::after {
  content: "->";
  transition: transform 0.18s ease;
}

.game-card:hover .game-link::after {
  transform: translateX(3px);
}

/* Policies page */
.policy-page {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4rem);
}

.policy-inner {
  max-width: 760px;
}

.policy-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}
.policy-back:hover {
  color: var(--accent);
  text-decoration: none;
}

.policy-header h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.policy-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.policy-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 2.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.policy-toc a {
  font-weight: 600;
  font-size: 0.95rem;
}

.policy-body {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.policy-body--spaced {
  margin-top: 1.5rem;
}

.policy-body h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.policy-body h2:first-child {
  margin-top: 0;
}

.policy-body p {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

.policy-body p:last-child {
  margin-bottom: 0;
}

.policy-body ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.policy-body li {
  margin-bottom: 0.35rem;
}

.policy-body a {
  color: var(--accent);
}

.policy-notice {
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.22);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.65;
}

.policy-notice strong {
  color: #fbbf24;
}

#terms,
#privacy,
#download-rar {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

/* Download page */
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
  margin: 1.5rem 0 1.25rem;
}

.btn-download {
  padding: 0.8rem 1.35rem;
  font-size: 1rem;
}

.download-missing {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.22);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.download-missing strong {
  color: var(--accent);
}

.cta-band .cta-download-row {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-band .cta-download-intro {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  color: var(--muted);
}

.cta-band .cta-download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes drift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -10px, 0) scale(1.02); }
}

@keyframes shellGlow {
  0%, 100% {
    box-shadow: var(--shadow);
  }
  50% {
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(56, 189, 248, 0.08);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-app-logo,
  .hero-orbit,
  .video-chip,
  .video-shell-ffstudio {
    animation: none;
  }
  .step-card:hover {
    transform: none;
  }
}

@media (max-width: 960px) {
  .hero-orbit {
    display: none;
  }

  .hero-signal {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .video-chip {
    font-size: 0.72rem;
    padding: 0.35rem 0.58rem;
  }

  .video-chip-bottom {
    bottom: 44px;
  }

  .editor-ribbon-track {
    padding: 0.85rem;
  }
}
