:root {
  --bg-core: #070b12;
  --bg-deep: #0d1527;
  --bg-surface: rgba(15, 20, 36, 0.86);
  --bg-surface-strong: rgba(10, 14, 26, 0.96);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-soft: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.14);
  --text-main: #ffffff;
  --text-body: #d7deef;
  --text-muted: #94a3b8;
  --accent-cyan: #00f0ff;
  --accent-blue: #0072ff;
  --accent-magenta: #bc13fe;
  --accent-gold: #ffaa00;
  --accent-orange: #ff5500;
  --accent-green: #00ff66;
  --shadow-soft: 0 20px 55px rgba(0, 0, 0, 0.35);
  --shadow-deep: 0 34px 90px rgba(0, 0, 0, 0.45);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --site-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-main);
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 0%, rgba(98, 57, 255, 0.26), transparent 20%),
    radial-gradient(circle at 14% 24%, rgba(255, 0, 127, 0.14), transparent 16%),
    radial-gradient(circle at 84% 20%, rgba(0, 240, 255, 0.14), transparent 18%),
    radial-gradient(circle, var(--bg-deep) 0%, var(--bg-core) 100%);
}

body.home-page {
  --header-offset: 118px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

.site-shell {
  position: relative;
  overflow-x: clip;
  isolation: isolate;
}

.site-shell::before,
.site-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
  z-index: 0;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.32;
}

.site-shell::before {
  top: 14%;
  left: -70px;
  background: rgba(188, 19, 254, 0.5);
}

.site-shell::after {
  bottom: 10%;
  right: -60px;
  background: rgba(0, 240, 255, 0.34);
}

.site-header,
.hero-section,
.content-section,
.site-footer {
  position: relative;
  width: min(var(--site-width), calc(100% - 24px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 12px 16px;
  overflow: hidden;
  background: rgba(12, 18, 33, 0.72);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
    radial-gradient(circle at 12% 0%, rgba(188, 19, 254, 0.12), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(0, 240, 255, 0.1), transparent 30%);
}

.site-header > * {
  position: relative;
  z-index: 1;
}

.site-header.is-scrolled {
  background: rgba(8, 12, 23, 0.86);
  border-color: rgba(0, 240, 255, 0.16);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
}

body.home-page .site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  width: min(var(--site-width), calc(100% - 24px));
  margin-top: 0;
  margin-inline: 0;
  transform: translateX(-50%);
  z-index: 80;
}

body.home-page main {
  padding-top: var(--header-offset);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-link img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.brand-link span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-link strong,
.brand-link small {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.brand-link strong {
  font-size: 0.95rem;
}

.brand-link small {
  color: var(--text-muted);
  font-size: 0.68rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.92);
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.hero-section {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 26px 0 24px;
  z-index: 1;
}

.hero-copy,
.hero-visual {
  min-width: 0;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.76rem;
}

.hero-logo {
  width: min(100%, 660px);
  margin-bottom: 12px;
  filter: drop-shadow(0 18px 46px rgba(0, 0, 0, 0.45));
}

h1,
h2,
h3 {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 800;
}

h1 {
  max-width: 12ch;
  font-size: clamp(2.2rem, 7vw, 4.6rem);
  line-height: 0.96;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.32);
}

.hero-text,
.section-heading p,
.feature-card p,
.mode-content p,
.duel-card p,
.premium-copy p,
.premium-points li,
.site-footer p {
  color: var(--text-body);
  line-height: 1.72;
}

.hero-text {
  max-width: 620px;
  margin: 18px 0 0;
  font-size: 1rem;
}

.download-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.badge-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 72px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-soft);
}

.badge-link:hover {
  transform: scale(1.05);
  border-color: rgba(0, 240, 255, 0.5);
  box-shadow: 0 0 22px rgba(0, 240, 255, 0.2), var(--shadow-soft);
}

.badge-link img {
  height: 52px;
  width: auto;
}

.hero-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.hero-points li {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 240, 255, 0.14);
  background: linear-gradient(180deg, rgba(17, 24, 43, 0.82), rgba(10, 16, 28, 0.96));
  box-shadow: var(--shadow-soft);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.hero-glow {
  position: absolute;
  inset: 10% 10% auto 10%;
  height: 46%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(162, 92, 255, 0.42), transparent 68%);
  filter: blur(22px);
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity;
}

.phone-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  padding-top: 38px;
}

.screen-phone {
  position: relative;
  will-change: transform;
}

.screen-bezel,
.mode-phone {
  padding: 10px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(63, 69, 96, 0.92) 8%, rgba(10, 13, 22, 1) 18%, rgba(8, 10, 18, 1));
  box-shadow: var(--shadow-deep);
}

.screen-bezel img,
.mode-phone img {
  border-radius: 26px;
}

.screen-main {
  z-index: 2;
}

.screen-main .screen-bezel {
  width: min(280px, 56vw);
  box-shadow: 0 0 26px rgba(0, 240, 255, 0.16), var(--shadow-deep);
}

.screen-side {
  opacity: 0.92;
}

.screen-side .screen-bezel {
  width: min(220px, 42vw);
}

.screen-side:first-child {
  transform: rotate(-8deg) translateY(28px);
}

.screen-side:last-child {
  transform: rotate(8deg) translateY(24px);
}

.content-section {
  padding: 38px 0 10px;
  z-index: 1;
  scroll-margin-top: 112px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: clamp(1.9rem, 5vw, 3.5rem);
  line-height: 1.03;
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.22);
}

.section-heading p:last-child {
  margin-top: 14px;
}

.feature-grid {
  display: grid;
  gap: 18px;
}

.feature-card,
.duel-card,
.premium-section,
.mode-slide {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 20, 36, 0.92), rgba(10, 14, 26, 0.98));
  box-shadow: var(--shadow-soft);
}

.site-footer {
  z-index: 1;
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 44px, 0) scale(0.975);
  transition:
    opacity 0.95s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.motion-reveal.motion-delay-1 {
  transition-delay: 0.08s;
}

.motion-reveal.motion-delay-2 {
  transition-delay: 0.16s;
}

.motion-reveal.motion-delay-3 {
  transition-delay: 0.24s;
}

.feature-card {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border-medium);
}

.feature-card.magenta {
  border-color: rgba(188, 19, 254, 0.42);
  box-shadow: 0 0 20px rgba(188, 19, 254, 0.2), var(--shadow-soft);
}

.feature-card.cyan {
  border-color: rgba(0, 240, 255, 0.42);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), var(--shadow-soft);
}

.feature-card.gold {
  border-color: rgba(255, 170, 0, 0.42);
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.16), var(--shadow-soft);
}

.feature-icon {
  font-size: 2.4rem;
  line-height: 1;
  margin-bottom: 12px;
}

.feature-card h3,
.mode-content h3,
.duel-card h3,
.premium-copy h2 {
  font-size: clamp(1.25rem, 3vw, 2rem);
  line-height: 1.08;
}

.feature-card p {
  margin: 12px 0 0;
}

.modes-carousel-wrap {
  position: relative;
}

.scroll-hint {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.modes-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 84%);
  gap: 18px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 240, 255, 0.4) rgba(255, 255, 255, 0.04);
}

.modes-carousel::-webkit-scrollbar {
  height: 10px;
}

.modes-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.modes-carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 240, 255, 0.34);
  border-radius: 999px;
}

.mode-slide {
  display: grid;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(0, 240, 255, 0.16);
  scroll-snap-align: start;
}

.mode-media {
  display: flex;
  justify-content: center;
}

.mode-phone {
  width: min(240px, 100%);
}

.mode-content {
  display: grid;
  gap: 12px;
}

.mode-icon-slot {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.mode-content p {
  margin: 0;
}

.duel-layout {
  display: grid;
  gap: 18px;
}

.duel-card {
  padding: 22px;
  border: 1px solid var(--border-medium);
}

.duel-card-featured {
  border-color: rgba(0, 255, 102, 0.42);
  box-shadow: 0 0 24px rgba(0, 255, 102, 0.16), var(--shadow-soft);
}

.duel-tag {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
}

.duel-card p {
  margin: 12px 0 0;
}

.premium-section {
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 170, 0, 0.22);
  background:
    radial-gradient(circle at top right, rgba(255, 170, 0, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(22, 18, 10, 0.92), rgba(12, 12, 16, 0.98));
}

.premium-points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.premium-points li {
  position: relative;
  padding-left: 18px;
}

.premium-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent-gold);
  box-shadow: 0 0 10px rgba(255, 170, 0, 0.5);
}

.premium-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.premium-art img {
  width: min(100%, 320px);
  filter: drop-shadow(0 18px 42px rgba(0, 0, 0, 0.4));
}

.site-footer {
  padding: 42px 0 60px;
  text-align: center;
}

.footer-brand {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
}

.legal-page {
  width: min(900px, calc(100% - 24px));
  margin: 0 auto;
  padding: 32px 0 64px;
}

.legal-header {
  position: sticky;
  top: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
}

.legal-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: rgba(255, 255, 255, 0.92);
}

.legal-nav a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.legal-intro {
  margin-bottom: 22px;
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 240, 255, 0.14);
  background: linear-gradient(180deg, rgba(17, 24, 43, 0.82), rgba(10, 16, 28, 0.96));
  box-shadow: var(--shadow-soft);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.legal-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legal-shell {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(15, 20, 36, 0.92), rgba(10, 14, 26, 0.98));
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.legal-shell h1,
.legal-shell h2,
.legal-shell h3 {
  text-transform: uppercase;
  letter-spacing: 1px;
}

.legal-shell h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.02;
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.22);
}

.legal-shell h2 {
  margin-top: 26px;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
}

.legal-shell ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.legal-shell p,
.legal-shell li {
  color: var(--text-body);
  line-height: 1.72;
}

@media (min-width: 780px) {
  .hero-section {
    grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.02fr);
    padding-top: 56px;
  }

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

  .duel-layout {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .premium-section {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: center;
  }
}

@media (min-width: 1024px) {
  .modes-carousel {
    grid-auto-columns: minmax(300px, 32%);
  }
}

@media (max-width: 779px) {
  body.home-page {
    --header-offset: 138px;
  }

  .site-header {
    top: 8px;
    align-items: flex-start;
    flex-direction: column;
  }

  body.home-page .site-header {
    top: 8px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .screen-side {
    display: none;
  }

  .hero-visual {
    min-height: auto;
  }

  .phone-showcase {
    padding-top: 12px;
  }

  .screen-main .screen-bezel {
    width: min(280px, 76vw);
  }

  .footer-nav {
    flex-direction: column;
    gap: 12px;
  }

  .legal-header {
    top: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .legal-nav {
    justify-content: flex-start;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .motion-reveal,
  .motion-reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
