:root {
  --bg: #0d0b1a;
  --bg-alt: #151229;
  --surface: #1d1938;
  --border: rgba(255, 255, 255, 0.08);
  --text: #ece9ff;
  --muted: #a9a3c9;
  --accent: #b48cff;
  --accent-2: #5ee0ff;
  --gold: #f2c86b;
  --radius: 18px;
  --max-width: 1120px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 0.5em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

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

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 100;
  pointer-events: none;
}

.scroll-progress__bar {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(var(--progress, 0));
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-height);
  z-index: 50;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(13, 11, 26, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--border);
}

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

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__logo {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav__links a:hover,
.nav__links a:focus-visible,
.nav__links a.is-active {
  color: var(--text);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + 40px) 0 80px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  width: 900px;
  height: 900px;
  margin-left: -450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(180, 140, 255, 0.35), rgba(94, 224, 255, 0.08) 45%, transparent 70%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 48px;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(242, 200, 107, 0.4);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(242, 200, 107, 0.08);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-top: 0.4em;
  padding-bottom: 0.08em;
  background: linear-gradient(135deg, #fff 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero__device {
  display: flex;
  justify-content: center;
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border: 2px solid var(--muted);
  border-radius: 14px;
}

.scroll-hint span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--muted);
  animation: scroll-hint 1.6s ease-in-out infinite;
}

@keyframes scroll-hint {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* Store buttons */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.store-buttons--center {
  justify-content: center;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-button:not(.is-disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.store-button.is-disabled {
  opacity: 0.45;
  filter: grayscale(1);
  cursor: not-allowed;
}

.store-button__icon {
  width: 26px;
  height: 26px;
  fill: currentColor;
  flex-shrink: 0;
}

.store-button__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.store-button__text small {
  font-size: 0.7rem;
  opacity: 0.8;
}

.store-button__text strong {
  font-size: 1.15rem;
}

/* Landscape screenshot frame + placeholder */
.screenshot-frame {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 16 / 10;
  padding: 10px;
  border-radius: 24px;
  background: linear-gradient(160deg, #2a2550, #120f24);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.06),
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(180, 140, 255, 0.15);
}

.screenshot-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
}

.screenshot-frame__screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
.features,
.showcase,
.cta {
  padding: 110px 0;
}

.features {
  background: var(--bg-alt);
}

.section-heading {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
}

.section-heading p {
  color: var(--muted);
  font-size: 1.1rem;
}

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

.feature-card {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(180, 140, 255, 0.45);
}

.feature-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-size: 1.4rem;
  color: var(--gold);
  background: rgba(180, 140, 255, 0.12);
}

.feature-card h3 {
  font-size: 1.2rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.showcase__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 60px 0;
}

.showcase__row--reverse .showcase__copy {
  order: 2;
}

.showcase__copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
}

.showcase__copy p {
  max-width: 30em;
  font-size: 1.1rem;
  color: var(--muted);
}

.showcase__media {
  display: flex;
  justify-content: center;
}

.cta {
  text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(180, 140, 255, 0.18), transparent 65%),
    var(--bg-alt);
}

.cta h2 {
  font-size: clamp(2.2rem, 5vw, 3.25rem);
}

.cta p {
  color: var(--muted);
  font-size: 1.15rem;
}

.site-footer {
  padding: 32px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

.site-footer p {
  margin: 0;
}

/* Scroll reveal (only hidden when JS is available) */
.js .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.8s ease var(--delay, 0ms),
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms);
}

.js .reveal--left {
  transform: translateX(-60px);
}

.js .reveal--right {
  transform: translateX(60px);
}

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

[data-parallax] {
  will-change: transform;
}

/* Responsive */
@media (max-width: 860px) {
  .nav__links {
    display: none;
  }

  .hero__inner,
  .showcase__row {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle,
  .showcase__copy p {
    margin-left: auto;
    margin-right: auto;
  }

  .store-buttons {
    justify-content: center;
  }

  .showcase__row {
    gap: 36px;
  }

  .showcase__row--reverse .showcase__copy {
    order: 0;
  }

  .js .reveal--left,
  .js .reveal--right {
    transform: translateY(40px);
  }
}

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

  .js .reveal,
  .js .reveal--left,
  .js .reveal--right {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-hint span {
    animation: none;
  }
}
