/* ── Reset & tokens ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink: #ff2d7a;
  --pink-light: #ff6ba8;
  --pink-glow: rgba(255, 45, 122, 0.35);
  --pink-soft: #ffe8f1;
  --bg: #fff9fc;
  --bg-card: #ffffff;
  --text: #2a1525;
  --text-muted: rgba(42, 21, 37, 0.62);
  --text-faint: rgba(42, 21, 37, 0.38);
  --grey-boring: #9a9aa8;
  --grey-dim: #6a6a78;
  --white: #ffffff;
  --font: 'Chewy', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
}

body {
  font-family: var(--font);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ── Ambient layers ── */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2.5rem;
  backdrop-filter: blur(12px);
  background: rgba(255, 249, 252, 0.75);
  border-bottom: 1px solid rgba(255, 45, 122, 0.12);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.nav-logo-mark {
  flex-shrink: 0;
  border-radius: 10px;
}

.nav-logo-text span { color: var(--pink); }

.nav-cta {
  font-size: 0.95rem;
  padding: 0.55rem 1.35rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--white);
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 0 24px var(--pink-glow);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--pink);
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--pink-glow);
}

.btn-ghost {
  background: var(--white);
  color: var(--text);
  border: 2px solid rgba(255, 45, 122, 0.25);
}

.btn-ghost:hover {
  border-color: var(--pink);
  color: var(--pink);
}

.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1.1rem;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
  perspective: 1200px;
}

/* ── Hero floating images ── */
.hero-floats {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-float-card {
  position: absolute;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.hero-float-motion,
.hero-float-tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-float-tilt img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  box-shadow:
    0 24px 60px rgba(255, 45, 122, 0.055),
    0 8px 24px rgba(42, 21, 37, 0.03);
  border: 3px solid rgba(255, 255, 255, 0.85);
  backface-visibility: hidden;
  user-select: none;
}

.hero-float-card:hover .hero-float-tilt img {
  box-shadow:
    0 32px 70px rgba(255, 45, 122, 0.088),
    0 12px 32px rgba(42, 21, 37, 0.045);
}

@media (max-width: 768px) {
  .hero-float-card {
    display: none;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--pink);
  opacity: 0.18;
  top: -10%;
  right: -5%;
}

.orb-2 {
  width: 350px;
  height: 350px;
  background: #ff6ba8;
  opacity: 0.12;
  bottom: 10%;
  left: -5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: #ff4081;
  opacity: 0.14;
  top: 40%;
  left: 30%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 820px;
}

.hero-eyebrow {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--pink);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-title .line { display: block; }
.hero-title .accent { color: var(--pink); }

.hero-sub {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-sub em {
  color: var(--pink);
  font-style: normal;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--text-faint);
  z-index: 3;
}

.scroll-line {
  width: 2px;
  height: 48px;
  background: linear-gradient(to bottom, var(--pink), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.4; }
}

/* ── Sections ── */
.section {
  position: relative;
  padding: 8rem 2rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.section-title.light { color: var(--white); }

.body-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  line-height: 1.7;
}

.body-text.light { color: rgba(255, 255, 255, 0.88); }

/* ── Not average ── */
.not-average {
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.big-statement {
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.big-statement.punch {
  color: var(--text);
  margin-bottom: 2rem;
}

.big-statement .highlight {
  color: var(--pink);
}

.big-statement .highlight .char {
  color: var(--pink);
}

.big-statement .char {
  display: inline-block;
}

.marquee-wrap {
  margin-top: 4rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee span {
  display: inline-block;
  white-space: nowrap;
  font-size: clamp(3rem, 10vw, 7rem);
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 45, 122, 0.3);
  animation: marquee 25s linear infinite;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ── Comparison (before/after) ── */
.comparison {
  position: relative;
}

.comparison-pin {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  will-change: transform;
}

.comparison-stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.comparison-layer {
  position: absolute;
  inset: 0;
}

.comparison-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.comparison-vignette.boring {
  background: linear-gradient(
    135deg,
    rgba(180, 180, 190, 0.55) 0%,
    rgba(140, 140, 150, 0.35) 50%,
    rgba(120, 120, 130, 0.6) 100%
  );
}

.comparison-vignette.fun {
  background: linear-gradient(
    135deg,
    rgba(255, 45, 122, 0.12) 0%,
    rgba(255, 255, 255, 0.05) 60%,
    rgba(255, 107, 168, 0.18) 100%
  );
}

.comparison-word {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 0.05em;
  font-size: clamp(4rem, 18vw, 14rem);
  letter-spacing: 0.04em;
  line-height: 1;
  user-select: none;
  z-index: 2;
}

.word-boring {
  color: var(--grey-boring);
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.25);
}

.word-boring .letter {
  display: inline-block;
  transform-origin: center bottom;
}

.word-fun {
  color: var(--pink);
  text-shadow:
    0 0 60px var(--pink-glow),
    0 4px 40px rgba(0, 0, 0, 0.15);
}

.word-fun .letter {
  display: inline-block;
  transform-origin: center bottom;
  opacity: 0.3;
  transform: scale(0.8);
}

.layer-before {
  z-index: 2;
  clip-path: inset(0 0 0 0);
}

.comparison-slider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  z-index: 10;
  transform: translateX(-50%);
  pointer-events: none;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, transparent, var(--pink), transparent);
  box-shadow: 0 0 20px var(--pink-glow);
}

.slider-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--pink-glow), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.slider-knob svg {
  width: 20px;
  height: 20px;
  color: var(--white);
}

.comparison-caption {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  z-index: 11;
}

.letter.pop-boring {
  animation: letterPopBoring 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.letter.pop-fun {
  animation: letterPopFun 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes letterPopBoring {
  0% { transform: scale(1) rotate(0deg); color: var(--grey-boring); }
  30% { transform: scale(1.4) rotate(-8deg); color: #888; }
  60% { transform: scale(0.7) rotate(5deg); opacity: 0.5; }
  100% { transform: scale(0.3) rotate(15deg); opacity: 0; }
}

@keyframes letterPopFun {
  0% { transform: scale(0.3) rotate(-20deg); opacity: 0; color: var(--pink-light); }
  50% { transform: scale(1.3) rotate(5deg); opacity: 1; color: var(--white); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; color: var(--pink); }
}

/* ── Personalize copy ── */
.personalize-copy {
  background: var(--pink-soft);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.card-stack {
  position: relative;
  height: 456px;
  width: 100%;
  max-width: 528px;
  margin: 0 auto;
}

.stack-card {
  position: absolute;
  width: 312px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(255, 45, 122, 0.15);
  border: 3px solid rgba(255, 45, 122, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.stack-card:hover {
  box-shadow: 0 28px 70px rgba(255, 45, 122, 0.25);
  z-index: 4;
}

.stack-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.card-nature {
  top: 120px;
  left: 0;
  transform: rotate(-10deg);
  z-index: 1;
}

.card-nature:hover {
  transform: rotate(-10deg) translateY(-14px);
}

.card-space {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  width: 336px;
}

.card-space img {
  height: 252px;
}

.card-space:hover {
  transform: translateX(-50%) translateY(-14px);
}

.card-tech {
  top: 132px;
  right: 0;
  left: auto;
  transform: rotate(10deg);
  z-index: 2;
}

.card-tech:hover {
  transform: rotate(10deg) translateY(-14px);
}

/* ── Productivity ── */
.productivity {
  position: relative;
  overflow: hidden;
  padding: 10rem 2rem;
}

.productivity-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.productivity-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55) saturate(1.1);
}

.productivity-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 45, 122, 0.45), rgba(42, 21, 37, 0.75));
}

.productivity .section-inner {
  position: relative;
  z-index: 1;
}

.productivity-layout {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.productivity-ai-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.productivity-ai-wrap .preview-stack {
  width: min(calc(var(--ai-width) * 1px), 100%);
  margin-top: 246px;
}

.productivity-content {
  min-width: 0;
}

.productivity-toast:empty {
  display: none;
}

.productivity-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(18, 10, 16, 0.94);
  border: 1px solid rgba(255, 45, 122, 0.3);
  color: #faf8f9;
  font-size: 0.85rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 200;
  pointer-events: none;
  transition: transform 320ms cubic-bezier(0.34, 1.4, 0.64, 1);
}

.productivity-toast.is-visible {
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 900px) {
  .productivity-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .productivity-ai-wrap {
    justify-content: center;
  }

  .productivity-ai-wrap .preview-stack {
    margin-top: 0;
  }
}

.feature-list {
  list-style: none;
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  max-width: 480px;
}

.feature-icon {
  font-size: 1.5rem;
  color: var(--pink-light);
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}

.feature strong {
  display: block;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.feature p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.feature kbd {
  display: inline-block;
  padding: 0.15em 0.5em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  font-family: inherit;
  font-size: 0.85em;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ── Extension CTA ── */
.extension-cta {
  position: relative;
  padding: 10rem 2rem;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

.extension-cta .section-inner.centered {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.extension-cta .section-title {
  max-width: 600px;
}

.extension-cta .body-text {
  text-align: center;
  margin-bottom: 2.5rem;
}

.extension-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--pink-soft);
  border: 2px solid rgba(255, 45, 122, 0.25);
  color: var(--pink);
  font-size: 1rem;
  margin-bottom: 2rem;
}

.extension-badge svg {
  width: 22px;
  height: 22px;
}

.fine-print {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-faint);
}

.floating-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-icon {
  position: absolute;
  font-size: 1.5rem;
  color: var(--pink);
  opacity: 0.35;
  animation: floatIcon 6s ease-in-out infinite;
}

.float-icon:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 25%; right: 12%; animation-delay: -1.5s; font-size: 2rem; }
.float-icon:nth-child(3) { bottom: 30%; left: 15%; animation-delay: -3s; }
.float-icon:nth-child(4) { bottom: 20%; right: 18%; animation-delay: -4.5s; font-size: 1rem; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.35; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.65; }
}

/* ── Footer ── */
.footer {
  padding: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-faint);
  border-top: 1px solid rgba(255, 45, 122, 0.12);
  background: var(--white);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav { padding: 1rem 1.25rem; }
  .split { grid-template-columns: 1fr; gap: 2rem; }
  .card-stack { height: 384px; max-width: 408px; }
  .stack-card { width: 240px; }
  .card-space { width: 264px; }
  .card-nature { top: 108px; }
  .card-tech { top: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Element picker (landing demo) ── */
#perso-xxl-picker-overlay {
  cursor: crosshair;
  inset: 0;
  position: fixed;
  z-index: 2147483646;
}

#perso-xxl-picker-highlight {
  background: rgba(255, 45, 122, 0.12);
  border: 2px solid #ff2d7a;
  box-sizing: border-box;
  pointer-events: none;
  position: fixed;
  z-index: 2147483646;
}

#perso-xxl-picker-hint {
  background: rgba(18, 10, 16, 0.94);
  border: 1px solid rgba(255, 45, 122, 0.35);
  border-radius: 999px;
  bottom: 20px;
  color: #faf8f9;
  font-size: 13px;
  left: 50%;
  padding: 10px 14px;
  pointer-events: none;
  position: fixed;
  transform: translateX(-50%);
  z-index: 2147483647;
}
