/* ==========================================================
   Sections — Purrchase.ai (Editions-style layout)
   ========================================================== */

/* ---- TOP NAV ---- */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-light);
  transition: box-shadow var(--dur-normal) ease;
}

.top-nav--shadow {
  box-shadow: var(--shadow-sm);
}

.top-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.top-nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-bold);
  color: var(--color-heading);
  text-decoration: none;
}

.top-nav__logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 4px;
}

.top-nav__logo:hover {
  text-decoration: none;
  color: var(--color-heading);
}

.top-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.top-nav__link {
  font-size: var(--text-nav);
  color: var(--color-body);
  text-decoration: none;
}

.top-nav__link:hover {
  color: var(--color-heading);
  text-decoration: none;
}

/* ---- HERO — Full-screen canvas background ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__canvas--ready {
  opacity: 1;
}

/* Fallback for devices without WebGL */
.hero__fallback-bg {
  position: absolute;
  inset: 0;
  background: url("/assets/CatBackground2.jpg") center center / cover no-repeat;
  z-index: 0;
  transition: opacity 0.6s ease;
}

.hero__canvas--ready ~ .hero__fallback-bg {
  opacity: 0;
  pointer-events: none;
}

.hero--no-webgl .hero__fallback-bg {
  opacity: 1;
}

/* Dark gradient overlay for text readability */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
      ellipse 80% 60% at 50% 50%,
      rgba(0, 0, 0, 0.45) 0%,
      transparent 70%
    ),
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.15) 0%,
      rgba(0, 0, 0, 0.05) 40%,
      rgba(0, 0, 0, 0.3) 100%
    );
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  padding: calc(56px + var(--space-3xl)) 0 var(--space-3xl);
  min-height: 100vh;
  min-height: 100dvh;
}

.hero__edition-label {
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-xl);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35), 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hero__subtitle {
  font-size: var(--text-subtitle);
  color: rgba(255, 255, 255, 0.88);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.6;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

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

/* Scroll hint at bottom of hero */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  color: rgba(255, 255, 255, 0.5);
  animation: hero-scroll-bounce 2.5s ease-in-out infinite;
}

.hero__scroll-text {
  font-family: var(--font-body);
  font-size: var(--text-caption);
  font-weight: var(--weight-medium);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero__scroll-arrow {
  width: 14px;
  height: auto;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) translateY(8px);
    opacity: 0.8;
  }
}

/* ---- STICKY SECTION NAV ---- */
.section-nav {
  position: sticky;
  top: 56px; /* below top nav */
  z-index: var(--z-sticky);
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-normal) ease;
}

.section-nav--shadow {
  box-shadow: var(--shadow-sm);
}

.section-nav__inner {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0;
}

.section-nav__inner::-webkit-scrollbar {
  display: none;
}

.section-nav__link {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: var(--text-nav);
  font-weight: var(--weight-medium);
  color: var(--color-muted);
  text-decoration: none;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) ease, border-color var(--dur-fast) ease;
  white-space: nowrap;
}

.section-nav__link:hover {
  color: var(--color-heading);
  text-decoration: none;
}

.section-nav__link--active {
  color: var(--color-heading);
  border-bottom-color: var(--color-primary);
}

/* ---- EDITION SECTIONS ---- */
.edition-section {
  padding: var(--space-section-y) 0;
}

.edition-section--alt {
  background: var(--color-surface-alt);
}

.edition-section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.edition-section__title {
  font-family: var(--font-display);
  font-size: var(--text-section-title);
  font-weight: var(--weight-black);
  color: var(--color-heading);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.edition-section__subtitle {
  font-size: var(--text-body-lg);
  color: var(--color-body);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- CARD GRIDS ---- */
.card-grid {
  display: grid;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.card-grid--1 {
  grid-template-columns: 1fr;
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ---- ART BANDS ---- */
.art-band {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.art-band__svg {
  width: 100%;
  height: auto;
  display: block;
  min-height: 120px;
}

/* ---- METRICS ROW ---- */
.metrics-row {
  display: flex;
  justify-content: center;
  gap: var(--space-4xl);
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-xl);
}

.metric {
  text-align: center;
}

.metric__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: var(--weight-black);
  color: var(--color-heading);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.metric__label {
  font-size: var(--text-small);
  color: var(--color-muted);
}

/* ---- STEPS ---- */
.steps {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border-light);
}

.steps__title {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  padding: 0 var(--content-padding);
}

.step {
  text-align: center;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-md);
}

.step__heading {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.step__desc {
  font-size: var(--text-small);
  color: var(--color-muted);
  max-width: 240px;
  margin: 0 auto;
}

/* ---- PROOF ROW ---- */
.proof-row {
  display: flex;
  justify-content: center;
  gap: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-xl);
}

.proof-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  max-width: 280px;
}

.proof-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.proof-item p {
  font-size: var(--text-small);
  color: var(--color-body);
  line-height: 1.5;
}

.proof-item strong {
  color: var(--color-heading);
}

/* ---- STATS SHOWCASE ---- */
.stats-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.stat-big {
  padding: var(--space-2xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--dur-normal) ease,
    transform var(--dur-normal) var(--ease-out);
}

.stat-big:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.stat-big__number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: var(--weight-black);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-xs);
}

.stat-big__label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.stat-big__desc {
  font-size: var(--text-small);
  color: var(--color-muted);
  line-height: 1.6;
}

/* ---- CTA CARD ---- */
.cta-card {
  margin-top: var(--space-xl);
}

.cta-card__inner {
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
  padding: var(--space-3xl);
  background: var(--color-primary-bg);
  border: 1px solid var(--color-primary-lighter);
  border-radius: var(--radius-xl);
}

.cta-card__content {
  flex: 1;
}

.cta-card__title {
  font-family: var(--font-display);
  font-size: var(--text-card-title);
  font-weight: var(--weight-bold);
  color: var(--color-heading);
  margin-bottom: var(--space-md);
  max-width: 400px;
}

.cta-card__desc {
  font-size: var(--text-body);
  color: var(--color-body);
  margin-bottom: var(--space-xl);
  max-width: 440px;
}

.cta-card__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.cta-card__note {
  font-size: var(--text-small);
  color: var(--color-muted);
}

.cta-card__art {
  width: 250px;
  height: 250px;
  order: -1;
  border-radius: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

.cta-card__art svg {
  width: 100%;
  height: auto;
}

/* ---- FOOTER ---- */
.footer {
  padding: var(--space-3xl) 0 var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  text-decoration: none;
}

.footer__logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 3px;
}

.footer__logo:hover {
  text-decoration: none;
  color: var(--color-heading);
}

.footer__links {
  display: flex;
  gap: var(--space-xl);
}

.footer__links a {
  font-size: var(--text-small);
  color: var(--color-muted);
}

.footer__links a:hover {
  color: var(--color-heading);
  text-decoration: none;
}

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: var(--text-caption);
  color: var(--color-muted);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border-light);
  margin-top: var(--space-lg);
}
