/* ============================================================
   Statics — dedicated site
   ============================================================ */
:root {
  --bg: #07070a;
  --surface: rgba(20, 20, 24, 0.55);
  --surface-2: rgba(28, 28, 33, 0.6);
  --line: rgba(255, 70, 85, 0.14);
  --line-strong: rgba(255, 70, 85, 0.4);
  --red: #ff4655;
  --red-bright: #ff5e6b;
  --red-soft: rgba(255, 70, 85, 0.16);
  --text: #f4f5f7;
  --muted: #aab0ba;
  --muted-2: #777e89;
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 50% at 80% -5%, rgba(255, 70, 85, 0.16), transparent 60%),
    radial-gradient(50% 40% at 0% 30%, rgba(255, 70, 85, 0.08), transparent 60%),
    linear-gradient(180deg, #07070a 0%, #0a0a0d 100%);
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.6rem;
}

.link { color: var(--red); font-weight: 600; }
.link:hover { color: var(--red-bright); }
.accent { color: var(--red); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn--primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 30px rgba(255, 70, 85, 0.28);
}
.btn--primary:hover { background: var(--red-bright); transform: translateY(-2px); box-shadow: 0 12px 38px rgba(255, 70, 85, 0.4); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
}
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--line-strong); background: var(--red-soft); }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(7, 7, 10, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled { background: rgba(7, 7, 10, 0.86); border-bottom-color: rgba(255, 255, 255, 0.06); }

.nav__brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; }
.nav__logo {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(255, 70, 85, 0.4);
}
.nav__wordmark { font-size: 1.2rem; letter-spacing: -0.01em; }
.nav__links { display: flex; gap: 1.5rem; margin-left: auto; }
.nav__links a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { margin-left: 0; }
.nav__menu-btn { display: none; }

/* ---------- Layout ---------- */
main { display: block; }
.section {
  width: min(var(--maxw), calc(100vw - 2.5rem));
  margin: clamp(4rem, 9vw, 7rem) auto;
}
.section--tight { margin-top: clamp(2.5rem, 6vw, 4rem); }
.section__head { text-align: center; max-width: 620px; margin: 0 auto clamp(2rem, 5vw, 3rem); }
.section__head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.section__head p { color: var(--muted); margin-top: 0.8rem; }

/* ---------- Hero ---------- */
.hero {
  width: min(var(--maxw), calc(100vw - 2.5rem));
  margin: 0 auto;
  padding-top: clamp(7rem, 14vw, 10rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 1.2rem;
}
.hero__sub { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero__actions--center { justify-content: center; }
.hero__note { color: var(--muted-2); font-size: 0.85rem; margin-top: 1rem; }

.hero__device { display: flex; justify-content: center; }
.device {
  position: relative;
  width: min(280px, 70vw);
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1a1a1f, #0c0c0f);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 70, 85, 0.08);
  transform: rotate(2deg);
  transition: transform 0.5s var(--ease);
}
.device:hover { transform: rotate(0deg) translateY(-6px); }
.device img { border-radius: 30px; width: 100%; }

/* ---------- Stats ---------- */
.stats {
  width: min(var(--maxw), calc(100vw - 2.5rem));
  margin: clamp(3rem, 7vw, 5rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 1.6rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.stat { text-align: center; }
.stat__value { display: block; font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; color: #fff; }
.stat__label { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.2rem; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.feature {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3); }
.feature__icon {
  display: inline-grid;
  place-items: center;
  width: 3rem; height: 3rem;
  font-size: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--red-soft);
  border: 1px solid rgba(255, 70, 85, 0.28);
  margin-bottom: 1rem;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Screenshots ---------- */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
}
.shot {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: none;
  cursor: zoom-in;
  padding: 0;
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}
.shot:hover { transform: scale(1.03); border-color: var(--line-strong); }
.shot img { width: 100%; height: auto; }

/* ---------- Releases ---------- */
.releases { display: grid; gap: 1rem; max-width: 820px; margin: 0 auto; }
.release {
  padding: 1.4rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.release__head { display: flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin-bottom: 0.5rem; }
.release__tag {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}
.release__pill {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  border: 1px solid rgba(255, 70, 85, 0.3);
}
.release__date { color: var(--muted-2); font-size: 0.85rem; margin-left: auto; }
.release__body { color: var(--muted); font-size: 0.95rem; }
.release__body h1, .release__body h2, .release__body h3 { font-size: 1rem; color: var(--text); margin: 0.8rem 0 0.3rem; }
.release__body ul { padding-left: 1.2rem; margin: 0.4rem 0; }
.release__body li { margin-bottom: 0.2rem; }
.release__body a { color: var(--red); }
.release__body code { background: rgba(255,255,255,0.07); padding: 0.05rem 0.35rem; border-radius: 6px; font-size: 0.88em; }
.release__dl {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--red);
}
.release__dl:hover { color: var(--red-bright); }

/* skeleton */
.release--skeleton { opacity: 0.5; }
.release__bar { height: 14px; border-radius: 7px; background: linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.12), rgba(255,255,255,0.06)); background-size: 200% 100%; animation: shimmer 1.3s infinite; }
.release__bar--sm { width: 40%; height: 10px; margin-top: 0.6rem; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.releases__error { text-align: center; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  width: min(900px, calc(100vw - 2.5rem));
  margin: clamp(4rem, 9vw, 7rem) auto;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 70, 85, 0.18), transparent 60%),
    var(--surface-2);
  border: 1px solid var(--line);
}
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
.cta p { color: var(--muted); max-width: 500px; margin: 0.8rem auto 1.8rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 0.8rem; }
.faq details {
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0 1.3rem;
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; font-weight: 400; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 1.1rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 2.5rem) 2.5rem;
  margin-top: 3rem;
}
.footer__inner {
  width: min(var(--maxw), 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
}
.footer__brand { display: flex; align-items: center; gap: 0.7rem; }
.footer__brand strong { display: block; font-size: 1.1rem; }
.footer__brand span { color: var(--muted-2); font-size: 0.85rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__links a { color: var(--muted); font-weight: 500; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--red); }
.footer__legal {
  width: min(var(--maxw), 100%);
  margin: 2rem auto 0;
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.6;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(6px);
  padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox img { max-height: 90vh; max-width: 90vw; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.lightbox__close {
  position: absolute;
  top: 1.2rem; right: 1.5rem;
  background: none; border: none;
  color: #fff; font-size: 2.5rem; line-height: 1;
  cursor: pointer;
}

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__device { order: -1; }
  .stats { grid-template-columns: repeat(2, 1fr); }

  .nav__links, .nav__cta { display: none; }
  .nav__menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav__menu-btn span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.2s ease; }
  .nav.menu-open .nav__menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav__menu-btn span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav__menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .nav.menu-open .nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    padding: 1rem clamp(1rem, 4vw, 2.5rem) 1.5rem;
    gap: 1rem;
    background: rgba(7, 7, 10, 0.96);
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav.menu-open .nav__cta { display: inline-flex; position: absolute; top: 100%; right: clamp(1rem, 4vw, 2.5rem); transform: translateY(calc(100% + 1rem)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .device { transform: none; }
}
