:root {
  --bg: #ffffff;
  --bg-elevated: #f5f5f7;
  --fg: #0b0b0c;
  --fg-muted: #6b7280;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #f4b400;
  --accent-strong: #a35a00;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 32px -20px rgba(0, 0, 0, 0.16);
  --shadow-card-hover: 0 1px 2px rgba(0, 0, 0, 0.04), 0 28px 48px -20px rgba(0, 0, 0, 0.22);
  --ease-out: cubic-bezier(0.16, 0.84, 0.44, 1);
  --font-display: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

/* --- Shared section labels --- */
.container-ctn{
  max-width: 95%;
  margin: 0 auto;
}
@media (min-width: 992px) {
  .container-ctn{
    max-width: 87%;
  }
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 0.75rem;
}
.d-flex{
  display: flex;
}
.align-items-center{
  align-items: center;
}
.justify-content-between{
  justify-content: space-between;
}
.w-100{
  width: 100%;
}
/* --- Scroll-reveal (progressive enhancement, see script.js) --- */

/* :where() keeps this reset from out-specificity-ing component hover states (e.g. .card:hover)
   once an element has been revealed — it should lose ties, not win them. */
:where(html.reveal-enabled) [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

:where(html.reveal-enabled) [data-reveal]:where(.is-visible) {
  opacity: 1;
  transform: none;
}

/* --- Header --- */

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent);
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-solid {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--fg);
  box-shadow: 0 1px 0 var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-header a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-header a:hover {
  opacity: 0.7;
}

.site-header .nav-cta {
  background: var(--fg);
  color: #fff;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.is-solid .nav-cta {
  background: #0b0b0c;
}

.site-header .nav-cta:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .site-header {
    padding: 0.85rem 1.25rem;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }
}

/* --- Scroll-driven frame sequence --- */

.scroll-scene {
  position: relative;
  /* Extra scroll distance = more scroll per frame = slower/smoother scrub.
     Tune this multiplier to taste (300-500 is typical). */
  height: 400vh;
}

.scroll-scene__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

#scene-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.scroll-scene__overlay {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
    color: #fff;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    background: linear-gradient(188deg, #8e652d94, #ffbc2945);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scroll-scene__overlay h1 {
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1.1rem;
}

.scroll-scene__overlay p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 46ch;

}

.scroll-scene__progress {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: min(60vw, 320px);
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  overflow: hidden;
  z-index: 2;
}

.scroll-scene__progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
}

/* --- Store badges (shared by download-cta and final-cta) --- */

.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.store-badge {
  display: flex;
  align-items: center;
  border-radius: 11px;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.4);
}

.store-badge img {
  height: 65px;
  width: auto;
  border-radius: 11px;
}

/* --- Download CTA (below hero) --- */

.download-cta {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 6rem 0rem;
}

.download-cta__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;


  text-align: left;
}

.download-cta__text .store-badges {
  justify-content: flex-start;
}

.download-cta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.375rem);
  margin-bottom: 0.6rem;
}

.download-cta__sub {
  color: var(--fg-muted);
  max-width: 42ch;
  margin: 0 0 2rem;
}

/* --- Product screenshots (nested inside .download-cta) --- */

.screenshots {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 1.5rem;
}

@media (max-width: 860px) {
  .download-cta__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-cta__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .download-cta__text .store-badges {
    justify-content: center;
  }

  .screenshots {
    margin-top: 1rem;
  }
}

.screenshot-img {
  width: clamp(200px, 22vw, 280px);
  height: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.22));
  transition: transform 0.35s var(--ease-out), filter 0.35s var(--ease-out);
  animation: screenshot-float 5s ease-in-out infinite;
}

.screenshot-img:nth-of-type(2) {
  animation-delay: -2.5s;
}

.screenshot-img:hover {
  transform: translateY(-8px);
  filter: drop-shadow(0 40px 60px rgba(0, 0, 0, 0.28));
  animation-play-state: paused;
}

@keyframes screenshot-float {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -14px;
  }
}

/* Richer entrance for the screenshots: rotate in from opposite angles, straighten on reveal.
   :not(.is-visible) keeps this from out-specificity-ing the generic reveal rule's reset once revealed. */
html.reveal-enabled .screenshots img:nth-of-type(1)[data-reveal]:not(.is-visible) {
  transform: translateY(40px) rotate(-8deg) scale(0.92);
}

html.reveal-enabled .screenshots img:nth-of-type(2)[data-reveal]:not(.is-visible) {
  transform: translateY(40px) rotate(8deg) scale(0.92);
}

/* --- Features --- */

.features {
  padding: 7rem 1.5rem;
  text-align: center;
  background: var(--bg);
}

.features h2 {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  margin-bottom: 3rem;
}

.features__scroll {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3.5rem;

  text-align: left;
}

.features__steps {
  display: flex;
  flex-direction: column;
}

.features__step {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.3;
  filter: blur(2px);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

.features__step.is-active {
  opacity: 1;
  filter: blur(0);
}

.features__step:last-child {
  min-height: 50vh;
}

.features__step-img {
  display: none;
}

.features__step-index {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  transition: color 0.4s ease;
}

.features__step-index::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--border);
  transition: background 0.4s ease, width 0.4s ease;
}

.features__step.is-active .features__step-index {
  color: var(--accent-strong);
}

.features__step.is-active .features__step-index::before {
  width: 44px;
  background: var(--accent);
}

.features__step h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  letter-spacing: -0.015em;
  margin-bottom: 0.75rem;
}

.features__step p {
  color: var(--fg-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42ch;
}

.features__sticky {
  position: sticky;
  top: 6rem;
  height: 70vh;
}

.features__sticky-media {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-card-hover);
}

.features__media-img {
  position: absolute;
  inset: 0.75rem;
  width: calc(100% - 1.5rem);
  height: calc(100% - 1.5rem);
  border-radius: 20px;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.features__media-img.is-active {
  opacity: 1;
  transform: scale(1);
}

@media (max-width: 780px) {
  .features__scroll {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .features__sticky {
    display: none;
  }

  .features__step {
    min-height: 0;
    opacity: 1;
    filter: none;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
  }

  .features__step-index {
    align-self: center;
  }

  .features__step:last-child {
    min-height: 0;
    margin-bottom: 0;
  }

  .features__step-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-card);
    margin-bottom: 1.5rem;
  }

  .features__step p {
    margin: 0 auto;
  }
}

/* --- Testimonials --- */

.testimonials {
  padding: 7rem 1.5rem;
  text-align: center;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.testimonials h2 {
  font-size: clamp(1.75rem, 4vw, 2.625rem);
  margin-bottom: 3rem;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;

}

.testimonial-card {
  position: relative;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2.25rem 1.75rem 2rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s ease;
}

.testimonial-card::before {
  content: "\201C";
  position: absolute;
  top: -1.25rem;
  right: 1.25rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.14;
  line-height: 1;
  pointer-events: none;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: var(--shadow-card-hover);
}

.testimonial-card__stars {
  display: flex;
  gap: 0.2rem;
  color: var(--accent);
  position: relative;
}

.testimonial-card__stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  position: relative;
}

.testimonial-card footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.testimonial-card__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.testimonial-card__bio {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.testimonial-card__bio span {
  color: var(--fg-muted);
}

/* --- Final CTA --- */

.final-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 9rem 1.5rem;
  text-align: center;
  background: #0b0b0c;
}

.final-cta::before,
.final-cta::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.final-cta::before {
  top: -20%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(244, 180, 0, 0.28), transparent 70%);
}

.final-cta::after {
  bottom: -30%;
  right: 8%;
  width: 40vw;
  height: 40vw;
  max-width: 420px;
  max-height: 420px;
  background: radial-gradient(circle, rgba(163, 90, 0, 0.25), transparent 70%);
}

.final-cta__inner {

}

.final-cta .eyebrow {
  color: var(--accent);
}

.final-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.05rem;
  margin-bottom: 2.25rem;
}

.final-cta .store-badge {
  border-radius: 11px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  width: fit-content;
}
@media (max-width: 640px) {
.final-cta .store-badge{
  margin: auto;
}
}

.final-cta .store-badge:hover {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 14px 32px -12px rgba(244, 180, 0, 0.35);
}

/* --- Footer --- */

.site-footer {
  background: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;

}

.site-footer .brand {
  color: #000;
}

.site-footer nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
}

.site-footer a {
  color: rgba(31, 30, 30, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #000;
}

.site-footer__copy {
  /* width: 100%; */
  text-align: center;
  font-size: 0.8rem;
  color: rgba(33, 33, 33, 0.4);
  order: 3;
}

/* --- Mobile polish --- */

@media (max-width: 640px) {
  .scroll-scene__overlay p {
    font-size: 0.95rem;
  }

  .download-cta,
  .features,
  .testimonials,
  .final-cta {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .screenshots {
    gap: 1.5rem;
  }

  .screenshot-img {
    width: min(50vw, 220px);
  }

  .store-badges {
    flex-direction: column;
    align-items: stretch;
  }

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

  .testimonial-card {
    padding: 1.75rem 1.5rem;
  }

  .site-footer .container-ctn {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }

  .site-footer nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* --- Legal pages (Privacy Policy, Terms) --- */

.legal-page {
  padding: 8rem 0 6rem;
}

.legal-page__updated {
  color: var(--fg-muted);
  margin-bottom: 2.5rem;
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.legal-page h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  letter-spacing: -0.01em;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-page h3 {
  font-size: 1.1rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-page p {
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  /* max-width: 72ch; */
}

.legal-page ul {
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 72ch;
  margin: 0 0 1.25rem 1.25rem;
}

.legal-page li {
  margin-bottom: 0.5rem;
}

.legal-page strong {
  color: var(--fg);
}

.legal-page a {
  color: var(--accent-strong);
}

/* --- Download modal --- */

.download-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.download-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.download-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 12, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.download-modal__panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--bg);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-card-hover);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s var(--ease-out);
}

.download-modal.is-open .download-modal__panel {
  transform: translateY(0) scale(1);
}

.download-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-elevated);
  color: var(--fg-muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.download-modal__close:hover {
  background: var(--border);
  color: var(--fg);
}

.download-modal__panel h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.download-modal__sub {
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
}

.download-modal .store-badges {
  margin-top: 0;
  justify-content: center;
}

/* --- Reduced motion --- */

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

  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
