/* ============================================================
   PixelZen brand system (mirrored from the app's tokens)
   Calm neutral field · brand color in deliberate bursts
   Light mode only · Nunito 400–900
   ============================================================ */

:root {
  /* Neutrals */
  --neutral50:  #F7F7FA;
  --neutral100: #EDEDF2;
  --neutral500: #8A8A9C;
  --neutral900: #1E1E2E;

  /* Brand */
  --primary600: #5B5FE6;
  --primary700: #4F53CA;
  --teal500:    #2EBDA0;
  --gold500:    #FFBF1A;
  --gold700:    #B58A00;
  --coral500:   #FF6B7A;
  --coral700:   #E84A58;

  /* Gradients */
  --grad-header: linear-gradient(135deg, #5B5FE6 0%, #7C5FD6 50%, #9B5FC6 100%);
  --grad-cta:    linear-gradient(135deg, #5B5FE6 0%, #7C5FD6 100%);
  --grad-warm:   linear-gradient(135deg, #FF6B7A 0%, #FFB347 50%, #FFBF1A 100%);

  /* Depth & motion */
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-gold: 0 6px 24px rgba(255, 191, 26, 0.3);
  --ease-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  font-weight: 600;
  background: var(--neutral50);
  color: var(--neutral900);
  overflow-x: hidden;
}

/* ===== FLOATING PIXELS BACKGROUND ===== */
.pixel-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-pixel {
  position: absolute;
  border-radius: 3px;
  opacity: 0;
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0%   { transform: translateY(100vh) rotate(0deg);  opacity: 0; }
  10%  { opacity: 0.35; }
  90%  { opacity: 0.25; }
  100% { transform: translateY(-20vh) rotate(180deg); opacity: 0; }
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(247, 247, 250, 0.85);
  border-bottom: 1px solid var(--neutral100);
  transition: box-shadow 0.3s ease;
}

nav.scrolled {
  box-shadow: 0 4px 24px rgba(30, 30, 46, 0.06);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 30px;
  height: 30px;
}

.nav-title {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.25px;
  color: var(--neutral900);
}

.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--neutral900);
  font-weight: 700;
  font-size: 14px;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary600); }

.nav-cta {
  background: var(--grad-cta);
  color: white !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 800 !important;
  transition: transform 0.25s var(--ease-pop), box-shadow 0.25s ease !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(91, 95, 230, 0.35);
}

/* ===== EYEBROW LABEL (house style) ===== */
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  color: var(--neutral500);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 80px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-content { animation: fadeInUp 0.3s ease-out both; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow {
  display: block;
  margin-bottom: 16px;
  color: var(--primary600);
}

.hero h1 {
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
  margin-bottom: 22px;
}

.hero h1 .gradient-text {
  background: var(--grad-header);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--neutral500);
  line-height: 1.7;
  max-width: 480px;
  margin-bottom: 32px;
}

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

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--neutral900);
  color: white;
  padding: 13px 26px;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-pop), box-shadow 0.25s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(30, 30, 46, 0.25);
}

.store-badge svg { flex-shrink: 0; }

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.store-badge-text small {
  font-size: 10px;
  opacity: 0.75;
  font-weight: 600;
}

.store-badge-text strong {
  font-size: 17px;
  font-weight: 800;
}

.store-note {
  font-size: 13px;
  font-weight: 700;
  color: var(--neutral500);
}

/* Hero art: real canvas tiles in a mosaic card, app icon badge */
.hero-art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.3s ease-out 0.1s both;
}

.hero-mosaic {
  position: relative;
  width: min(440px, 92%);
  background: white;
  border: 1px solid var(--neutral100);
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(91, 95, 230, 0.18);
  transition: transform 0.4s var(--ease-pop);
}

.hero-art:hover .hero-mosaic { transform: translateY(-6px); }

.hero-mosaic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.hero-mosaic-grid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
}

.hero-mosaic-badge {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 96px;
  height: 96px;
  border-radius: 22.5%;           /* iOS icon curvature */
  box-shadow: 0 10px 28px rgba(91, 95, 230, 0.35);
}

.hero-art .pixel-accent {
  position: absolute;
  border-radius: 4px;
  animation: drift 6s ease-in-out infinite;
}

.pixel-accent.pa-1 { width: 26px; height: 26px; background: var(--coral500); top: 8%;  right: 12%; animation-delay: 0s;    opacity: 0.9; }
.pixel-accent.pa-2 { width: 16px; height: 16px; background: var(--gold500);  top: 24%; left: 6%;   animation-delay: 0.8s;  opacity: 0.85; }
.pixel-accent.pa-3 { width: 20px; height: 20px; background: var(--teal500);  bottom: 14%; right: 4%; animation-delay: 1.6s; opacity: 0.85; }
.pixel-accent.pa-4 { width: 13px; height: 13px; background: #9B5FC6;         bottom: 6%; left: 16%; animation-delay: 2.4s;  opacity: 0.8; }
.pixel-accent.pa-5 { width: 10px; height: 10px; background: #5FD4BC;         top: 2%;  left: 34%;  animation-delay: 3.2s;  opacity: 0.7; }

@keyframes drift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-14px) rotate(6deg); }
}

/* ===== SECTION HEADERS ===== */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-header .eyebrow {
  display: block;
  margin-bottom: 12px;
  color: var(--primary600);
}

.section-header h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--neutral500);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
  position: relative;
  z-index: 1;
  padding: 90px 24px;
}

.features-grid {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.feature-card { grid-column: span 2; }
.feature-card--half { grid-column: span 3; }

.feature-card {
  background: white;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1px solid var(--neutral100);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-pop), box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(30, 30, 46, 0.09);
}

/* Pix's Workshop: the differentiator gets the most weight */
.feature-card--featured {
  grid-column: span 6;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  background: var(--grad-header);
  border: none;
  color: white;
  padding: 40px 36px;
}

.features-grid .feature-card--featured h3 { color: white; }
.features-grid .feature-card--featured p  { color: rgba(255, 255, 255, 0.9); }

.pix-quote {
  display: inline-block;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 700;
  color: white;
}

.pix-quote-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.pix-quote-row .pix-quote { margin-top: 0; }

.pix-mascot {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  image-rendering: pixelated;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  background: var(--neutral50);
  border: 1px solid var(--neutral100);
}

.feature-card--featured .feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--neutral900);
}

.feature-card p {
  color: var(--neutral500);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ===== SCREENSHOTS: six-shot story strip of real captures ===== */
.screenshots {
  position: relative;
  z-index: 1;
  padding: 90px 24px;
}

.screenshots-strip {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 12px 24px 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.shot-card {
  flex: 0 0 min(300px, 78vw);
  margin: 0;
  scroll-snap-align: center;
}

/* Phone bezel around each real capture */
.shot-frame {
  position: relative;
  background: var(--neutral900);
  border-radius: 44px;
  padding: 10px;
  box-shadow: 0 18px 44px rgba(30, 30, 46, 0.18);
}

.shot-frame::after {          /* dynamic island */
  content: "";
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  border-radius: 999px;
  background: var(--neutral900);
}

.shot-frame img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 34px;
  background: white;
}

.shot-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--neutral500);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  position: relative;
  z-index: 1;
  padding: 90px 24px;
}

.steps-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 250px;
  position: relative;
}

.step::after {
  content: '';
  position: absolute;
  top: 34px;
  right: -26px;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--neutral100), transparent);
}

.step:last-child::after { display: none; }

.step-tile {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;             /* hero numerals */
  color: white;
  margin: 0 auto 18px;
  box-shadow: var(--shadow-card);
}

.step:nth-child(1) .step-tile { background: var(--primary600); }
.step:nth-child(2) .step-tile { background: var(--teal500); }
.step:nth-child(3) .step-tile { background: var(--grad-warm); } /* the celebration moment */

.step h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.step p {
  color: var(--neutral500);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  z-index: 1;
  padding: 90px 24px 110px;
}

.cta-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--grad-cta);
  border-radius: 24px;
  padding: 64px 40px;
  text-align: center;
  color: white;
}

.cta-card h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}

.cta-card p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.cta-card .store-badge {
  background: white;
  color: var(--neutral900);
}

.cta-card .store-badge:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-card .store-note { color: rgba(255, 255, 255, 0.75); }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  background: white;
  border-top: 1px solid var(--neutral100);
  padding: 56px 24px 32px;
}

.footer-inner {
  max-width: 1060px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 44px;
  flex-wrap: wrap;
  gap: 32px;
}

.footer-brand { max-width: 300px; }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.footer-logo-icon {
  width: 26px;
  height: 26px;
}

.footer-logo-text {
  font-weight: 800;
  font-size: 19px;
  color: var(--neutral900);
}

.footer-brand p {
  color: var(--neutral500);
  font-size: 13.5px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  gap: 56px;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.25px;
  margin-bottom: 14px;
  color: var(--neutral500);
}

.footer-col a {
  display: block;
  color: var(--neutral900);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary600); }

.footer-divider {
  height: 1px;
  background: var(--neutral100);
  margin-bottom: 24px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-left {
  color: var(--neutral500);
  font-size: 12.5px;
}

.footer-mimic {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neutral500);
  font-size: 12.5px;
}

.mimic-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--neutral900);
  transition: color 0.2s;
  font-weight: 800;
}

.mimic-logo:hover { color: var(--gold700); }

.mimic-chest {
  width: 22px;
  height: 22px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mimic-chest-body {
  width: 18px;
  height: 12px;
  background: linear-gradient(180deg, var(--gold500), var(--gold700));
  border-radius: 3px 3px 2px 2px;
  position: relative;
}

.mimic-chest-lid {
  position: absolute;
  top: -5px;
  left: 0;
  width: 18px;
  height: 7px;
  background: linear-gradient(180deg, #FFD166, var(--gold500));
  border-radius: 3px 3px 0 0;
  transform-origin: bottom;
  transition: transform 0.3s var(--ease-pop);
}

.mimic-logo:hover .mimic-chest-lid { transform: rotate(-15deg); }

.mimic-chest-lock {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background: var(--gold700);
  border-radius: 50%;
}

/* ===== LEGAL / SUPPORT PAGES ===== */
.legal-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 130px 24px 80px;
  position: relative;
  z-index: 1;
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--neutral900);
  margin-bottom: 8px;
}

.legal-page .updated,
.legal-page .subtitle {
  font-size: 15px;
  color: var(--neutral500);
  margin-bottom: 48px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 800;
  color: var(--neutral900);
  margin: 40px 0 12px;
}

.legal-page p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--neutral900);
  margin-bottom: 16px;
}

.legal-page ul { margin: 0 0 16px 24px; }

.legal-page ul li {
  font-size: 16px;
  line-height: 1.8;
  color: var(--neutral900);
  margin-bottom: 6px;
}

.legal-page a {
  color: var(--primary600);
  text-decoration: none;
}

.legal-page a:hover { text-decoration: underline; }

.legal-divider {
  height: 1px;
  background: var(--neutral100);
  margin: 40px 0;
}

.faq-item {
  border: 1px solid var(--neutral100);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 12px;
  background: white;
  box-shadow: var(--shadow-card);
}

.faq-item h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--neutral900);
  margin-bottom: 8px;
}

.faq-item p {
  margin: 0;
  font-size: 15px;
}

.contact-card {
  background: var(--grad-cta);
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  margin-top: 48px;
}

.contact-card h2 {
  color: white;
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 8px;
}

.contact-card p {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 24px;
}

.contact-btn {
  display: inline-block;
  background: white;
  color: var(--primary600);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 32px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.25s var(--ease-pop);
}

.contact-btn:hover { transform: translateY(-2px); text-decoration: none; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .floating-pixel { display: none; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 44px;
  }

  .hero p { margin-left: auto; margin-right: auto; }
  .hero-buttons { align-items: center; }
  .hero-art { order: -1; margin-top: 10px; }
  .hero-mosaic { width: min(340px, 82%); }
  .hero-mosaic-badge { width: 72px; height: 72px; right: -10px; bottom: -10px; }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card, .feature-card--half { grid-column: span 1; }
  .feature-card--featured { grid-column: span 2; grid-template-columns: 1fr; text-align: center; }
  .feature-card--featured .feature-icon { margin: 0 auto; }

  .steps-container { flex-direction: column; align-items: center; }
  .step::after { display: none; }

  .footer-top { flex-direction: column; }
  .footer-links { gap: 36px; }

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

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card--half, .feature-card--featured { grid-column: span 1; }
  .footer-links { flex-direction: column; gap: 24px; }
}
