/* ---------- Tokens ---------- */
:root {
  --bg: #0b0d12;
  --bg-elevated: #12151c;
  --text: #e7e9ee;
  --text-dim: #9aa3b2;
  --accent-streammod: #8b5cf6;
  --accent-cuelist: #2dd4bf;
  --border: rgba(231, 233, 238, .08);
  --radius: 14px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

section, header, footer { padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
  transition: background-color .3s ease, backdrop-filter .3s ease, padding .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background-color: rgba(11, 13, 18, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding-top: .7rem;
  padding-bottom: .7rem;
  border-bottom-color: var(--border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

.nav__links {
  display: flex;
  gap: 1.75rem;
  font-size: .95rem;
}

.nav__links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color .2s ease;
}

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

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero__blobs {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .55;
}

.blob--a {
  width: 480px; height: 480px;
  background: var(--accent-streammod);
  top: -120px; left: -80px;
  animation: float-a 22s ease-in-out infinite alternate;
}

.blob--b {
  width: 420px; height: 420px;
  background: var(--accent-cuelist);
  bottom: -140px; right: -60px;
  animation: float-b 26s ease-in-out infinite alternate;
}

.blob--c {
  width: 300px; height: 300px;
  background: #6366f1;
  top: 30%; left: 45%;
  opacity: .35;
  animation: float-c 30s ease-in-out infinite alternate;
}

@keyframes float-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes float-b {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-50px, -30px) scale(1.15); }
}
@keyframes float-c {
  from { transform: translate(0, 0); }
  to   { transform: translate(-40px, 50px); }
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-dim);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 1.25rem;
  font-weight: 800;
  letter-spacing: -.01em;
}

.hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--text-dim);
  max-width: 640px;
  margin: 0 0 2rem;
}

.hero__sub strong { color: var(--text); }

.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, opacity .2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-streammod), var(--accent-cuelist));
  color: #0b0d12;
}

.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(139, 92, 246, .35); }

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn--ghost:hover { border-color: rgba(231, 233, 238, .3); transform: translateY(-2px); }

.btn--disabled {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: default;
  pointer-events: none;
}

.badge {
  font-size: .72rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: rgba(231, 233, 238, .1);
  color: var(--text-dim);
}

/* ---------- App sections ---------- */
.app-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 7rem;
  padding-bottom: 3rem;
}

.app-section__intro { max-width: 720px; margin-bottom: 2.5rem; }

.app-lockup { margin-bottom: 1.25rem; }

.app-tagline {
  font-size: 1.15rem;
  color: var(--text-dim);
  margin: 0 0 1rem;
}

.version-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  padding: .25rem .65rem;
  border-radius: 999px;
  letter-spacing: .02em;
}

.version-badge--violet { background: rgba(139, 92, 246, .18); color: #c4b5fd; }
.version-badge--teal { background: rgba(45, 212, 191, .18); color: #99f6e4; }

.app-section__shot { margin-bottom: 3rem; }

.window-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

.window-frame__bar {
  display: flex;
  gap: .4rem;
  padding: .7rem .9rem;
  background: rgba(231, 233, 238, .04);
  border-bottom: 1px solid var(--border);
}

.window-frame__bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(231, 233, 238, .18);
}

.window-frame img { width: 100%; cursor: zoom-in; }
.window-frame img:focus-visible { outline: 2px solid var(--accent-cuelist); outline-offset: -2px; }

/* ---------- Gallery grid ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.gallery-item {
  margin: 0;
}

.window-frame--sm {
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.window-frame--sm img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top left;
}

.gallery-item figcaption {
  margin-top: .6rem;
  font-size: .85rem;
  color: var(--text-dim);
  text-align: center;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.card {
  background: rgba(231, 233, 238, .04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 233, 238, .18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
}

.card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--text-dim); font-size: .95rem; }

.app-section__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  max-width: var(--max-width);
  margin: 4rem auto 0;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: .9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer__links { display: flex; gap: 1.25rem; }
.site-footer__links a { text-decoration: none; color: var(--text-dim); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__copyright { width: 100%; margin: 0; font-size: .8rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}

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

/* ---------- Lightbox ---------- */
body.lightbox-locked { overflow: hidden; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(6, 7, 10, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 4rem);
  cursor: zoom-out;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: clamp(.75rem, 3vw, 2rem);
  right: clamp(.75rem, 3vw, 2rem);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}

.lightbox__close:hover { background: rgba(231, 233, 238, .15); transform: scale(1.05); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob { animation: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn--primary:hover, .btn--ghost:hover, .card:hover {
    transform: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav__links { gap: 1rem; font-size: .85rem; }
  .hero { min-height: auto; padding-top: 6rem; padding-bottom: 3rem; }
  .app-section { padding-top: 4.5rem; }
}
