/* ============================================================
   LYCHEE — style.css v2
   Light marketing page, vanilla CSS.
============================================================ */


/* ── Variables ────────────────────────────────────────────── */
:root {
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Figtree', system-ui, sans-serif;

  --c-page:    #FFF9F6;
  --c-surface: #FFFFFF;
  --c-off:     #F7EFEB;
  --c-soft:    #FFF1EC;
  --c-accent:  #E94D48;
  --c-accent-h:#D83F3A;
  --c-ink:     #241F1F;
  --c-muted:   #746B67;
  --c-faint:   #A89D98;
  --c-border:  #E8DCD6;

  --ease:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease2: cubic-bezier(0.32, 0.72, 0, 1);
}


/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: #fff9f6;
  color: var(--c-ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 40px; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: #fff9f6;
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: -22%;
  background:
    radial-gradient(42% 34% at 14% 18%, rgba(233,77,72,.24), transparent 64%),
    radial-gradient(36% 30% at 82% 14%, rgba(255,180,150,.28), transparent 68%),
    radial-gradient(46% 38% at 70% 78%, rgba(255,220,146,.30), transparent 64%),
    radial-gradient(34% 28% at 20% 80%, rgba(255,131,121,.18), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,.86), rgba(255,241,236,.62));
  filter: blur(22px) saturate(1.08);
  transform: translate3d(0, 0, 0) rotate(0deg);
  animation: shaderDrift 28s ease-in-out infinite alternate;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E"),
    linear-gradient(90deg, rgba(233,77,72,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(233,77,72,.035) 1px, transparent 1px);
  background-size: 180px 180px, 44px 44px, 44px 44px;
}

main,
.footer {
  position: relative;
  z-index: 1;
}


/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  --btn-shimmer-color: var(--c-accent);
  --btn-shimmer-glow: rgba(233, 77, 72, 0.28);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease),
              color 0.24s var(--ease), transform 0.12s var(--ease),
              box-shadow 0.24s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-label {
  position: relative;
  z-index: 1;
  display: inline-block;
  color: inherit;
}

.btn-label[data-label]::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: block;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  white-space: inherit;
  color: var(--btn-shimmer-color);
  opacity: 0;
  pointer-events: none;
  text-shadow: 0 0 10px var(--btn-shimmer-glow);
  -webkit-mask-image: linear-gradient(
    105deg,
    transparent 0%,
    transparent 34%,
    #000 46%,
    #000 54%,
    transparent 66%,
    transparent 100%
  );
  mask-image: linear-gradient(
    105deg,
    transparent 0%,
    transparent 34%,
    #000 46%,
    #000 54%,
    transparent 66%,
    transparent 100%
  );
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
  -webkit-mask-position: 115% 0;
  mask-position: 115% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  will-change: opacity, mask-position;
}

.btn:hover .btn-label[data-label]::after,
.btn:focus-visible .btn-label[data-label]::after {
  animation: buttonLabelShimmer 800ms linear 1 both;
}

.btn-primary {
  background: var(--c-accent);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 16px rgba(233,77,72,.22);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: -52%;
  z-index: 0;
  width: 52%;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 14%,
    rgba(255, 255, 255, 0.56) 44%,
    rgba(255, 226, 122, 0.52) 56%,
    rgba(255, 255, 255, 0) 86%,
    transparent 100%
  );
  opacity: 0;
  pointer-events: none;
  transform: translate3d(0, 0, 0) skewX(-18deg);
  will-change: opacity, transform;
}

.btn-primary:hover::before,
.btn-primary:focus-visible::before {
  animation: buttonFillShimmer 100ms linear 1 both;
}

.btn-primary:hover .btn-label[data-label]::after,
.btn-primary:focus-visible .btn-label[data-label]::after {
  animation: none;
  opacity: 0;
}

.btn-primary:hover {
  background: var(--c-accent-h);
  box-shadow: 0 4px 24px rgba(233,77,72,.30);
}
.btn-sm  { padding: 9px 22px; font-size: 14px; }
.btn-lg  { padding: 15px 36px; font-size: 16px; }
.btn-ghost {
  --btn-shimmer-color: var(--c-accent);
  --btn-shimmer-glow: rgba(233, 77, 72, 0.34);
  padding: 9px 22px;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  color: var(--c-muted);
  border-color: var(--c-border);
  border-radius: 999px;
}
.btn-ghost:hover {
  border-color: rgba(233,77,72,.45);
  color: var(--c-ink);
  background: var(--c-soft);
}


/* ── Eyebrow ──────────────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(233,77,72,.09);
  border: 1px solid rgba(233,77,72,.18);
  width: fit-content;
}
.eyebrow-dark {
  color: var(--c-accent);
  background: rgba(233,77,72,.08);
  border-color: rgba(233,77,72,.16);
}


/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255,249,246,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(36,31,31,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 62px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--c-ink);
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.nav-app-icon {
  border-radius: 7px;
  object-fit: cover;
}
.nav-logo-word { color: var(--c-ink); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions .btn-ghost {
  padding: 8px 15px;
  background: rgba(255,255,255,.42);
}

.nav-actions .nav-download {
  width: 106px;
  height: 35px;
  padding: 8px 16px;
  font-weight: 600;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    transform 0.12s var(--ease);
}


/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}

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

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--c-ink);
}

.hero-headline span {
  display: block;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: heroTextIn 640ms var(--ease) forwards;
}

.hero-headline span:first-child {
  animation-delay: 80ms;
}

.hero-headline span:last-child {
  animation-delay: 150ms;
}

.hero-sub {
  font-size: 16px;
  font-weight: 500;
  color: var(--c-muted);
  line-height: 1.55;
  max-width: 38ch;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: heroTextIn 640ms var(--ease) 230ms forwards;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  animation: heroTextIn 640ms var(--ease) 310ms forwards;
}

.download-fallback {
  display: none;
  width: max-content;
  max-width: min(100vw - 48px, 420px);
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  white-space: nowrap;
}

.download-fallback.visible {
  display: block;
}

.download-fallback a {
  color: var(--c-accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hero-download,
.hero-compat {
  width: min(277px, 100%);
}

.hero-compat {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--c-muted);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  animation: heroTextIn 600ms var(--ease) 390ms forwards;
}

.music-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  filter: drop-shadow(0 4px 8px rgba(95,57,44,.12));
}

/* ── Empty Preview Frame ──────────────────────────────────── */
.mockup-wrap {
  position: relative;
  width: 100%;
}

.screen-frame-outer {
  position: relative;
  z-index: 1;
  aspect-ratio: 1660 / 1080;
  border-radius: 18px;
  padding: 1px;
  background: rgba(36,31,31,.10);
  box-shadow:
    0 28px 70px rgba(95,57,44,.13),
    0 8px 22px rgba(95,57,44,.08);
  opacity: 0;
  transform: translate3d(18px, 12px, 0) scale(0.985);
  animation: heroPreviewIn 820ms var(--ease) 260ms forwards;
}

.screen-frame {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  padding: 8px;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255,255,255,.60), rgba(255,246,242,.34)),
    radial-gradient(circle at 18% 14%, rgba(233,77,72,.12), transparent 34%),
    radial-gradient(circle at 78% 78%, rgba(255,220,146,.14), transparent 42%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-demo-video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: rgba(36,31,31,.04);
}


/* ── Compat ───────────────────────────────────────────────── */
.compat {
  background: var(--c-page);
  padding: 56px 0;
  border-top: 1px solid rgba(36,31,31,.07);
}
.compat-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.compat-logos {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.compat-app {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: rgba(36,31,31,.78);
  letter-spacing: -0.01em;
}
.compat-icon { width: 26px; height: 26px; flex-shrink: 0; }
.compat-sep {
  width: 1px;
  height: 28px;
  background: rgba(36,31,31,.12);
}
.compat-note {
  font-size: 14px;
  color: var(--c-muted);
}


.section-light { background: transparent; }
.section-off   { background: rgba(255,255,255,.36); }

.section-header {
  margin-bottom: 56px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header-center {
  align-items: center;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--c-ink);
}

.section-kicker {
  color: var(--c-accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}


/* ── Features ─────────────────────────────────────────────── */
.features { padding: 160px 0 80px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

/* Double-bezel card */
.feat-outer {
  background: rgba(0,0,0,.04);
  border: 1px solid rgba(36,31,31,.07);
  border-radius: 18px;
  padding: 3px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.feat-outer:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(95,57,44,.10);
}
.feat-inner {
  background: rgba(255,255,255,.74);
  border-radius: 16px;
  padding: 22px 20px 24px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  height: 100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--c-off);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--c-accent);
}
.feat-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 8px;
}
.feat-body {
  font-size: 13.5px;
  color: var(--c-muted);
  line-height: 1.58;
  max-width: 28ch;
}


/* ── Install ──────────────────────────────────────────────── */
.install { padding: 78px 0 64px; }

.install .section-header {
  margin-bottom: 34px;
}

.install-steps {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.install-step {
  position: relative;
  min-height: 188px;
  padding: 22px 20px 24px;
  border: 1px solid rgba(36,31,31,.08);
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 16px 40px rgba(95,57,44,.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.install-step-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.install-step h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--c-ink);
  margin-bottom: 9px;
}

.install-step p {
  max-width: 25ch;
  color: var(--c-muted);
  font-size: 14px;
  line-height: 1.6;
}


/* ── How it works ─────────────────────────────────────────── */
.how { padding: 100px 0; }

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.step-arrow {
  flex-shrink: 0;
  padding: 0 20px;
  margin-top: 22px;
  color: var(--c-muted);
}
.step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--c-accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.step-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-ink);
  margin-bottom: 6px;
}
.step-text {
  font-size: 14.5px;
  color: var(--c-muted);
  line-height: 1.65;
  max-width: 26ch;
}


/* ── Honest / Pills ───────────────────────────────────────── */
.honest { padding: 88px 0; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--c-border);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-ink);
  background: var(--c-surface);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), transform 0.12s var(--ease);
}
.pill:hover {
  border-color: var(--c-accent);
  background: rgba(233,77,72,.05);
  transform: translateY(-1px);
}
.pill-check { color: var(--c-accent); flex-shrink: 0; }


/* ── Creator ──────────────────────────────────────────────── */
.creator { padding: 100px 0; }

.creator-card {
  max-width: 620px;
  /* intentionally left-of-center, not centered */
}
.creator-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 20px;
}
.creator-quote {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.72;
  color: var(--c-ink);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 18px;
  padding: 28px 32px;
  background: rgba(233,77,72,.045);
  border-radius: 14px;
}
.creator-byline {
  font-size: 14px;
  color: var(--c-muted);
  font-weight: 500;
  margin-bottom: 24px;
  padding-left: 4px;
}
.creator-actions { display: flex; gap: 12px; flex-wrap: wrap; }


/* ── FAQ ──────────────────────────────────────────────────── */
.faq { padding: 96px 0; }

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  overflow: hidden;
  background: rgba(255,255,255,.66);
  border: 1px solid rgba(36,31,31,.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(95,57,44,.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.faq-question {
  position: relative;
  width: 100%;
  cursor: pointer;
  padding: 19px 52px 19px 22px;
  color: var(--c-ink);
  text-align: left;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-question::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%) rotate(0deg);
  color: var(--c-accent);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 600;
  transition: transform 0.24s var(--ease), color 0.24s var(--ease);
}

.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 0.34s var(--ease),
    opacity 0.24s var(--ease),
    transform 0.24s var(--ease);
}

.faq-item.open .faq-panel {
  opacity: 1;
  transform: translateY(0);
}

.faq-item p {
  max-width: 58ch;
  padding: 0 22px 22px;
  color: var(--c-muted);
  font-size: 14.5px;
  line-height: 1.68;
}


/* ── CTA ──────────────────────────────────────────────────── */
.cta-bottom {
  background: transparent;
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 300px;
  background: radial-gradient(ellipse at top,
    rgba(232,96,138,.12) 0%,
    transparent 65%);
  display: none;
  pointer-events: none;
}
.cta-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.cta-headline {
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--c-ink);
}
.cta-sub {
  font-size: 18px;
  color: var(--c-muted);
}
.cta-micro {
  font-size: 13px;
  color: var(--c-faint);
  margin-top: -6px;
}


/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--c-page);
  border-top: 1px solid rgba(36,31,31,.08);
  padding: 24px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-copy { font-size: 13px; color: var(--c-faint); }
.footer-links { display: flex; gap: 28px; }
.footer-links a {
  font-size: 13px;
  color: var(--c-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--c-ink); }


/* ── Scroll Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0ms);
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ── Keyframes ────────────────────────────────────────────── */
@keyframes shaderDrift {
  0% {
    transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1);
  }
  50% {
    transform: translate3d(2%, 1.5%, 0) rotate(7deg) scale(1.06);
  }
  100% {
    transform: translate3d(-1%, 2%, 0) rotate(-5deg) scale(1.03);
  }
}
@keyframes heroTextIn {
  0% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes heroPreviewIn {
  0% {
    opacity: 0;
    transform: translate3d(18px, 12px, 0) scale(0.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes buttonLabelShimmer {
  0% {
    opacity: 0;
    -webkit-mask-position: 115% 0;
    mask-position: 115% 0;
  }
  12% {
    opacity: 1;
  }
  88% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-mask-position: -15% 0;
    mask-position: -15% 0;
  }
}
@keyframes buttonFillShimmer {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) skewX(-18deg);
  }
  14% {
    opacity: 1;
  }
  86% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(305%, 0, 0) skewX(-18deg);
  }
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */

@media (max-width: 1020px) {
  .hero-grid {
    gap: 44px;
  }

  .hero-headline {
    font-size: 56px;
  }

  .section-title {
    font-size: 36px;
  }

  .cta-headline {
    font-size: 48px;
  }

  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-body { max-width: 100%; }
}

@media (max-width: 768px) {

  .container { padding: 0 24px; }

  /* Hero: stack text above mockup */
  .hero {
    min-height: auto;
    padding: 88px 0 64px;
    align-items: flex-start;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-text { align-items: flex-start; }
  .hero-compat {
    max-width: 100%;
    flex-wrap: wrap;
  }
  .nav-inner {
    padding: 0 20px;
    gap: 12px;
  }
  .nav-actions {
    gap: 6px;
  }
  .nav-actions .btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  .nav-actions .nav-download {
    width: 92px;
    height: 34px;
  }

  /* Features: single column */
  .features-grid { grid-template-columns: 1fr; }

  /* Steps: stacked */
  .steps { flex-direction: column; gap: 28px; }
  .step-arrow { display: none; }
  .step { flex-direction: row; align-items: flex-start; gap: 14px; }
  .step-text { max-width: 100%; }

  /* Pills: left-align */
  .pills { justify-content: flex-start; }

  .install-steps {
    grid-template-columns: 1fr;
    max-width: 520px;
  }

  .install-step {
    min-height: 0;
  }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-links { gap: 20px; flex-wrap: wrap; }

  /* Sections padding */
  .features, .faq { padding: 72px 0; }
  .install { padding: 62px 0 48px; }
  .cta-bottom { padding: 80px 0; }

  /* Nav: hide wordmark if very tight */
  .section-header { margin-bottom: 40px; }
}

@media (max-width: 640px) {
  .container { padding: 0 20px; }

  .hero {
    padding: 84px 0 56px;
  }

  .hero-grid {
    gap: 34px;
  }

  .hero-headline {
    font-size: 42px;
  }

  .hero-sub {
    font-size: 15px;
  }

  .section-title {
    font-size: 32px;
  }

  .cta-headline {
    font-size: 40px;
  }

  .download-fallback {
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .nav-inner { padding: 0 12px; }
  .nav-logo-word { display: none; }
  .nav-actions .btn {
    padding: 7px 8px;
    font-size: 11.5px;
  }
  .nav-actions .nav-download {
    width: 84px;
    height: 32px;
  }
  .hero-compat {
    align-items: center;
    gap: 8px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .site-bg::before { animation: none; }
  .hero-headline span,
  .hero-sub,
  .hero-actions,
  .hero-compat,
  .screen-frame-outer {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feat-outer:hover { transform: none; }
  .pill:hover { transform: none; }
  .faq-panel { transition: none; }
  .btn:hover .btn-label[data-label]::after,
  .btn:focus-visible .btn-label[data-label]::after {
    animation: none;
    opacity: 0;
  }
  .btn-primary:hover::before,
  .btn-primary:focus-visible::before {
    animation: none;
    opacity: 0;
  }
}
