/* Gesso Wallpapers — structure & animations matched to impasto-wallpapers-en.netlify.app */

:root {
  /* Tokens from impasto-wallpapers-en.netlify.app */
  --background: 216 45% 4%;
  --foreground: 0 0% 100%;
  --card: 215 35% 6%;
  --muted-foreground: 0 0% 65%;
  --secondary-foreground: 0 0% 85%;
  --hero-subtitle: 210 17% 95%;
  --border: 0 0% 20%;
  --accent-gold: #d9b878;
  --maxw: 72rem;
  --maxw-lg: 80rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.page-wrap { position: relative; overflow-x: hidden; min-height: 100vh; }

/* Background blobs */
.bg-blobs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-blob {
  position: absolute;
  border-radius: 50%;
}
.bg-blob-blur { filter: blur(28px); }

/* Reveal — matches Impasto .reveal / .reveal-visible */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.reveal-visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  from { transform: rotate(var(--rot, 0deg)) translateY(-10px); }
  to { transform: rotate(var(--rot, 0deg)) translateY(12px); }
}
@keyframes slow-zoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* Typography */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
  margin: 0 0 1.5rem;
  text-align: center;
}
.title-xl {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1.05;
  margin: 0;
}
.title-lg {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.08;
  margin: 0 0 1rem;
}
.title-hero {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 500;
  letter-spacing: -2px;
  line-height: 1;
}
.serif-italic {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.text-muted { color: hsl(var(--muted-foreground)); }
.text-sub { color: hsl(var(--hero-subtitle)); }
.text-center { text-align: center; }

/* Liquid glass label */
.liquid-glass {
  display: inline-block;
  background: hsl(40 36% 93% / 0.03);
  backdrop-filter: blur(4px);
  border-radius: 999px;
  color: hsl(var(--foreground) / 0.9);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 12px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px hsl(40 36% 93% / 0.1);
}
.liquid-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(
    hsl(40 36% 93% / 0.45) 0%,
    hsl(40 36% 93% / 0.15) 20%,
    transparent 40% 60%,
    hsl(40 36% 93% / 0.15) 80%,
    hsl(40 36% 93% / 0.45) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Buttons */
.btn-cta {
  display: inline-block;
  background: hsl(var(--foreground));
  color: hsl(var(--background));
  border: 0;
  border-radius: 999px;
  padding: 1rem 2rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.2s;
}
.btn-cta:hover { transform: scale(1.03); }
.btn-cta:active { transform: scale(0.98); }

.btn-outline {
  display: block;
  text-align: center;
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--foreground) / 0.3);
  transition: background 0.2s;
}
.btn-outline:hover { background: hsl(var(--foreground) / 0.1); }

.btn-gold {
  display: block;
  text-align: center;
  border-radius: 12px;
  padding: 0.875rem 1.5rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent-gold);
  color: hsl(var(--background));
  transition: transform 0.2s;
}
.btn-gold:hover { transform: scale(1.02); }
.btn-gold:active { transform: scale(0.98); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 3rem;
  overflow: hidden;
}
.hero-float {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  animation: float var(--dur, 9s) ease-in-out var(--delay, 0s) infinite alternate;
}
.hero-float img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid hsl(40 36% 93% / 0.2);
  box-shadow: 0 25px 50px hsl(165 24% 4% / 0.6);
}
.hero-float.pos-tl { left: 8px; top: 12px; width: 96px; }
.hero-float.pos-tr { right: 8px; top: 12px; width: 96px; }
.hero-float.pos-bl { left: 4%; bottom: 7%; width: 128px; display: none; }
.hero-float.pos-br { right: 4%; bottom: 9%; width: 128px; display: none; }
@media (min-width: 768px) {
  .hero-float.pos-tl { left: -3%; top: 16%; width: 160px; }
  .hero-float.pos-tr { right: -3%; top: 20%; width: 160px; }
  .hero-float.pos-bl,
  .hero-float.pos-br { display: block; }
}
@media (min-width: 1024px) {
  .hero-float.pos-tl,
  .hero-float.pos-tr { width: 224px; }
  .hero-float.pos-bl,
  .hero-float.pos-br { width: 176px; }
}

.hero-head {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 6rem 1.5rem 0;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
}
.hero-head::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 16rem;
  background: radial-gradient(rgba(29, 66, 114, 0.4), transparent 65%);
  filter: blur(20px);
  pointer-events: none;
  z-index: -1;
}

.hero-marquee-wrap {
  position: relative;
  z-index: 10;
  width: 100%;
  margin-top: 2.5rem;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
@media (min-width: 768px) {
  .hero-marquee-wrap { margin-top: 3.5rem; }
}

.marquee-track {
  display: flex;
  align-items: flex-end;
  width: max-content;
  will-change: transform;
  cursor: grab;
  touch-action: pan-y;
}
.marquee-track:active { cursor: grabbing; }
.marquee-track.reverse { margin-top: 1.5rem; }

.marquee-item { margin-right: 2.5rem; flex-shrink: 0; }
@media (min-width: 768px) {
  .marquee-item { margin-right: 3.5rem; }
}

.device-pair { display: flex; align-items: flex-end; }
.device-laptop-shell {
  border-radius: 12px 12px 0 0;
  background: hsl(240 6% 10%);
  padding: 6px 8px 4px;
  border: 1px solid hsl(40 36% 93% / 0.2);
  box-shadow: 0 25px 50px hsl(165 24% 4% / 0.5);
}
.device-laptop-screen {
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  aspect-ratio: 16 / 10;
  width: 224px;
}
@media (min-width: 768px) { .device-laptop-screen { width: 320px; } }
@media (min-width: 1024px) { .device-laptop-screen { width: 384px; } }
.device-laptop-screen img { width: 100%; height: 100%; object-fit: cover; }
.device-laptop-chin {
  position: relative;
  height: 8px;
  background: hsl(240 5% 14%);
  border-radius: 0 0 8px 8px;
  border: 1px solid hsl(40 36% 93% / 0.15);
  border-top: 0;
}
.device-laptop-chin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 4px;
  background: hsl(162 14% 18%);
  border-radius: 0 0 6px 6px;
}
@media (min-width: 768px) {
  .device-laptop-chin { height: 10px; }
  .device-laptop-chin::after { width: 64px; height: 6px; }
}

.device-phone-shell {
  margin-left: -2.5rem;
  z-index: 2;
  position: relative;
  border-radius: 1.1rem;
  background: hsl(240 6% 10%);
  padding: 4px 6px;
  border: 1px solid hsl(40 36% 93% / 0.25);
  box-shadow: 0 20px 40px hsl(165 24% 4% / 0.6);
}
@media (min-width: 768px) {
  .device-phone-shell { margin-left: -3.5rem; border-radius: 1.5rem; padding: 6px; }
}
.device-phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 0.85rem;
  aspect-ratio: 9 / 19;
  width: 56px;
}
@media (min-width: 768px) { .device-phone-screen { width: 80px; border-radius: 1.1rem; } }
@media (min-width: 1024px) { .device-phone-screen { width: 96px; } }
.device-phone-screen img { width: 100%; height: 100%; object-fit: cover; }
.device-phone-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 4px;
  background: hsl(162 18% 12%);
  border-radius: 999px;
}
@media (min-width: 768px) {
  .device-phone-notch { width: 28px; height: 6px; top: 6px; }
}

.hero-copy {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1.5rem;
  max-width: 64rem;
  margin: 0 auto;
  width: 100%;
}
.hero-sub { font-size: 1.125rem; max-width: 36rem; margin: 2.5rem auto 0; line-height: 1.65; }
@media (min-width: 768px) { .hero-sub { margin-top: 3rem; } }
.hero-cta-wrap { margin-top: 2.25rem; }
.hero-foot { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin: 2rem 0 0; }

.marquee-mobile { display: block; }
.marquee-desktop { display: none; }
@media (min-width: 768px) {
  .marquee-mobile { display: none; }
  .marquee-desktop { display: block; }
}

/* Sections */
.section { position: relative; z-index: 1; padding-left: 1.5rem; padding-right: 1.5rem; }
.section-inner { max-width: var(--maxw-lg); margin: 0 auto; }
.section-inner-md { max-width: var(--maxw); margin: 0 auto; }

#gallery { padding-top: 5rem; padding-bottom: 1.5rem; }
@media (min-width: 768px) { #gallery { padding-top: 13rem; } }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
  text-align: left;
}
@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); margin-bottom: 4rem; }
}
.gallery-col { display: flex; flex-direction: column; gap: 1rem; }
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s;
}
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .liquid-glass {
  position: absolute;
  top: 12px;
  left: 12px;
}
.ratio-16-10 { aspect-ratio: 16 / 10; }
.ratio-9-16 { aspect-ratio: 9 / 16; }
.ratio-3-4 { aspect-ratio: 3 / 4; }

/* Story */
#style { padding-bottom: 5rem; }
@media (min-width: 768px) { #style { padding-bottom: 11rem; } }
.story-image {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 1;
  object-fit: cover;
  margin: 0 auto 3.5rem;
  border-radius: 0;
  display: block;
}
@media (min-width: 768px) { .story-image { margin-bottom: 7rem; } }
.story-line-1 {
  font-size: clamp(1.5rem, 3.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.35;
  text-align: center;
}
.story-line-2 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  margin-top: 2.5rem;
}
.story-word { display: inline-block; margin-right: 0.28em; transition: opacity 0.2s, color 0.2s; }

/* Compare */
#before-after { padding-bottom: 5rem; }
@media (min-width: 768px) { #before-after { padding-bottom: 11rem; } }
.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid hsl(40 36% 93% / 0.15);
  cursor: ew-resize;
  user-select: none;
  touch-action: pan-y;
}
@media (min-width: 768px) { .compare { aspect-ratio: 16 / 10; } }
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}
.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: #fff;
  z-index: 4;
  pointer-events: none;
}
.compare-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: hsl(var(--foreground) / 0.1);
  border: 1px solid hsl(var(--foreground) / 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.compare-grip::before,
.compare-grip::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
}
.compare-grip::before {
  border-width: 4px 5px 4px 0;
  border-color: transparent hsl(var(--foreground)) transparent transparent;
  margin-right: 2px;
}
.compare-grip::after {
  border-width: 4px 0 4px 5px;
  border-color: transparent transparent transparent hsl(var(--foreground));
  margin-left: 2px;
}
.compare-labels {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 20px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--foreground) / 0.85);
  pointer-events: none;
}

/* Features */
#collection {
  padding-top: 5rem;
  padding-bottom: 5rem;
  border-top: 1px solid hsl(var(--border) / 0.3);
}
@media (min-width: 768px) {
  #collection { padding-top: 9rem; padding-bottom: 11rem; }
}
.features-pano {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) { .features-pano { margin-bottom: 5rem; } }
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .features-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-card h3 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; }
.feature-card p { font-size: 0.875rem; color: hsl(var(--muted-foreground)); margin: 0; line-height: 1.6; }

/* Testimonials */
#proof {
  padding: 5rem 0;
  border-top: 1px solid hsl(var(--border) / 0.3);
}
@media (min-width: 768px) { #proof { padding: 9rem 0; } }
.stars { display: flex; gap: 4px; justify-content: center; }
.stars svg { width: 20px; height: 20px; fill: var(--accent-gold); }
.testimonial-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
@media (min-width: 768px) {
  .testimonial-scroll { gap: 1.5rem; justify-content: center; }
}
.testimonial-card {
  flex: 0 0 auto;
  width: 14rem;
  scroll-snap-align: center;
}
.testimonial-card:first-child { margin-left: 5%; }
.testimonial-card:last-child { margin-right: 5%; }
@media (min-width: 768px) {
  .testimonial-card { width: 16rem; }
  .testimonial-card:first-child,
  .testimonial-card:last-child { margin: 0; }
}
.testimonial-card img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid hsl(40 36% 93% / 0.15);
  box-shadow: 0 25px 50px hsl(165 24% 4% / 0.5);
}

/* Pricing */
#offer {
  position: relative;
  padding: 5rem 0;
  border-top: 1px solid hsl(var(--border) / 0.3);
  overflow: hidden;
}
@media (min-width: 768px) { #offer { padding: 11rem 0; } }
.offer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  object-fit: cover;
  width: 100%;
  height: 100%;
  animation: slow-zoom 26s ease-in-out infinite alternate;
}
.offer-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: hsl(var(--background) / 0.7);
}
.offer-inner { position: relative; z-index: 2; }

.pricing-row {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .pricing-row { flex-direction: row; align-items: stretch; }
}

.price-essential {
  border-radius: 24px;
  border: 1px solid hsl(var(--border));
  padding: 2rem;
  display: flex;
  flex-direction: column;
}
@media (min-width: 768px) { .price-essential { width: 38%; } }

.price-complete-wrap {
  position: relative;
}
@media (min-width: 768px) { .price-complete-wrap { width: 62%; } }

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
  background: var(--accent-gold);
  color: hsl(var(--background));
}

.price-complete {
  border-radius: 24px;
  padding: 1.75rem;
  height: 100%;
  background: hsl(var(--background) / 0.4);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px hsl(201 46% 58% / 0.4);
}
@media (min-width: 768px) { .price-complete { padding: 2.5rem; } }

.price-complete-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .price-complete-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 2.5rem;
    align-items: center;
  }
}

.price-complete-side {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 768px) {
  .price-complete-side {
    border-left: 1px solid hsl(var(--foreground) / 0.1);
    padding-left: 2.5rem;
  }
}

.thumb-stack {
  display: flex;
  margin-bottom: 1.75rem;
}
.thumb-stack img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid hsl(var(--background));
  margin-left: -12px;
}
.thumb-stack img:first-child { margin-left: 0; transform: rotate(-6deg); }
.thumb-stack img:nth-child(2) { transform: rotate(0deg); }
.thumb-stack img:nth-child(3) { transform: rotate(6deg); }
.thumb-more {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  border: 2px solid hsl(var(--background));
  margin-left: -12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  background: #2a2416;
  color: var(--accent-gold);
  transform: rotate(6deg);
}

.perks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.75rem; }
.perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: hsl(var(--secondary-foreground));
  line-height: 1.5;
}
.perk-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(var(--foreground) / 0.1);
  border: 1px solid hsl(var(--foreground) / 0.25);
  font-size: 10px;
}
.perk-icon.gold {
  background: hsl(38 46% 58% / 0.1);
  box-shadow: inset 0 0 0 1px hsl(38 46% 58% / 0.4);
  color: var(--accent-gold);
}

.price-label { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: hsl(var(--muted-foreground)); margin-top: 1.25rem; }
.price-amount { font-size: 2.25rem; font-weight: 500; letter-spacing: -1px; margin-top: 0.25rem; }
.price-amount-lg { font-size: 3rem; font-weight: 500; letter-spacing: -1px; }

/* Footer */
.footer {
  padding: 3rem 2rem;
  border-top: 1px solid hsl(var(--border) / 0.3);
}
@media (min-width: 768px) { .footer { padding: 3rem 7rem; } }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw-lg);
  margin: 0 auto;
}
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s;
}
.footer-links a:hover { color: hsl(var(--foreground)); }

/* Sticky CTA */
.sticky-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  pointer-events: none;
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.3s, transform 0.3s;
}
.sticky-cta.show {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.sticky-cta .btn-cta {
  width: 100%;
  max-width: 28rem;
  text-align: center;
  box-shadow: 0 25px 50px hsl(165 24% 4% / 0.6);
  border: 1px solid hsl(40 36% 93% / 0.1);
}

/* Modal */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.modal-scrim.show { opacity: 1; pointer-events: auto; }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  z-index: 90;
  width: min(440px, 92vw);
  background: hsl(162 20% 10%);
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}
.modal h3 { margin: 0 0 8px; }
.modal p { color: hsl(var(--muted-foreground)); font-size: 14px; margin: 0 0 16px; }
.modal input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: 15px;
  margin-bottom: 12px;
}
.buy-price { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; padding: 12px 20px; border-radius: 10px; font-weight: 600; font-size: 14px; border: 0; }
.modal-actions .btn.solid { background: hsl(var(--foreground)); color: hsl(var(--background)); }
.modal-actions .btn.ghost { background: transparent; color: hsl(var(--foreground)); border: 1px solid hsl(var(--border)); }

.section-cta { margin-top: 2.5rem; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-float { animation: none !important; }
  .offer-bg { animation: none; }
}
