/* ═══════════════════════════════════════════════════════════
   GAYPAL — Vibe Layer
   Warm sanctuary + gentle pride glow
   Tune colors & motion here; everything else follows.
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Void & surfaces */
  --void: #07060c;
  --void-soft: #0e0c16;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-highlight: rgba(255, 255, 255, 0.18);

  /* Pride accents — soft, never shouting */
  --lavender: #c4a1ff;
  --pink: #ff8ec8;
  --cyan: #7ee8fa;
  --magenta: #e879f9;
  --gold: #f5d0a9;
  --rose: #fb7185;

  /* Text */
  --text: #f4f0ff;
  --text-muted: #a89bc4;
  --text-dim: #6b6280;

  /* Gradients */
  --pride-soft: linear-gradient(
    135deg,
    #ff8ec8 0%,
    #c4a1ff 35%,
    #7ee8fa 70%,
    #e879f9 100%
  );
  --pride-button: linear-gradient(
    120deg,
    #ff8ec8 0%,
    #c4a1ff 45%,
    #7ee8fa 100%
  );
  --hero-glow: radial-gradient(
    ellipse 80% 60% at 50% 20%,
    rgba(196, 161, 255, 0.22) 0%,
    rgba(255, 142, 200, 0.08) 40%,
    transparent 70%
  );

  /* Motion */
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-glow: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.35s;

  /* Shadows */
  --glow-lavender: 0 0 40px rgba(196, 161, 255, 0.25);
  --glow-pink: 0 0 40px rgba(255, 142, 200, 0.25);
  --glow-cyan: 0 0 40px rgba(126, 232, 250, 0.2);
  --lift: 0 20px 50px rgba(0, 0, 0, 0.45);
}

/* ─── Base ─── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--void);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Living void background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    var(--hero-glow),
    radial-gradient(ellipse 50% 40% at 85% 80%, rgba(126, 232, 250, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 50% at 10% 60%, rgba(255, 142, 200, 0.07) 0%, transparent 50%),
    var(--void);
  pointer-events: none;
}

/* Subtle noise grain for luxury texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─── Floating orbs ─── */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
  z-index: -1;
  animation: float-orb 18s ease-in-out infinite;
}

.orb-1 {
  width: 320px;
  height: 320px;
  background: var(--lavender);
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.orb-2 {
  width: 260px;
  height: 260px;
  background: var(--pink);
  bottom: 15%;
  right: -3%;
  animation-delay: -6s;
  opacity: 0.25;
}

.orb-3 {
  width: 200px;
  height: 200px;
  background: var(--cyan);
  top: 50%;
  left: 60%;
  animation-delay: -12s;
  opacity: 0.2;
}

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

/* ─── Typography ─── */
.font-display {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: var(--pride-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Glass ─── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 var(--glass-highlight);
}

.glass-strong {
  background: rgba(14, 12, 22, 0.75);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 var(--glass-highlight);
}

/* ─── Nav ─── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 1.5rem;
  transition: box-shadow var(--duration) var(--ease-soft);
}

.site-nav.scrolled {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--pride-button);
  display: grid;
  place-items: center;
  box-shadow: var(--glow-lavender);
  font-size: 1rem;
  animation: pulse-soft 3s ease-in-out infinite;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 20px rgba(196, 161, 255, 0.3); }
  50% { box-shadow: 0 0 32px rgba(255, 142, 200, 0.45); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--duration) var(--ease-soft),
    background var(--duration) var(--ease-soft);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform var(--duration) var(--ease-soft),
    box-shadow var(--duration) var(--ease-soft),
    opacity var(--duration) var(--ease-soft);
  text-decoration: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn-pride {
  background: var(--pride-button);
  color: #1a0a1a;
  box-shadow: 0 4px 24px rgba(196, 161, 255, 0.35);
}

.btn-pride:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255, 142, 200, 0.45);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--glass-border);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
  border-color: rgba(196, 161, 255, 0.35);
}

.btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8rem;
}

.btn-disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.35);
  box-shadow: none !important;
  transform: none !important;
}

/* ─── Commerce honesty banners ─── */
.commerce-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.15rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  margin-top: 1rem;
}

.commerce-banner code {
  font-size: 0.8em;
  color: var(--lavender);
}

.commerce-live {
  border-color: rgba(126, 232, 250, 0.35);
}

.commerce-blocked {
  border-color: rgba(251, 113, 133, 0.35);
  color: var(--text-muted);
}

.commerce-blocked strong {
  color: var(--rose);
}

/* ─── Core offer ─── */
.core-offer {
  border-radius: 1.5rem;
  padding: 2rem 1.75rem;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.core-offer-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 0.75rem;
}

.core-offer-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0 0 0.5rem;
}

.core-offer-price {
  font-size: 2.5rem;
  font-weight: 800;
  margin: 0 0 0.75rem;
  line-height: 1;
}

.core-offer-tagline {
  color: var(--text-muted);
  margin: 0 auto 1.25rem;
  max-width: 28rem;
}

.core-offer-list {
  text-align: left;
  max-width: 26rem;
  margin: 0 auto 1.25rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.core-offer-list li {
  margin-bottom: 0.4rem;
}

.core-offer-list strong {
  color: var(--text);
}

.core-offer-delivery,
.product-delivery {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin: 0 0 1rem;
}

.core-offer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.prompt-pack-hero {
  border-radius: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
}

.delivery-steps {
  text-align: left;
  max-width: 28rem;
  margin: 0 auto;
  color: var(--text-muted);
  line-height: 1.6;
}

.delivery-steps li {
  margin-bottom: 0.5rem;
}

/* ─── Layout ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4rem 0;
}

.section-sm {
  padding: 2.5rem 0;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  padding: 5rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.hero-sub {
  max-width: 540px;
  margin: 0 auto 2rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.hero-glow-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(90vw, 600px);
  height: min(90vw, 600px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(196, 161, 255, 0.12) 0%,
    transparent 65%
  );
  pointer-events: none;
  z-index: -1;
  animation: pulse-ring 6s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

/* Living pride hue shift (Vibe Multiplier #2) */
.hero-living {
  animation: pride-hue 90s linear infinite;
}

@keyframes pride-hue {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* ─── Cards ─── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.product-card {
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform var(--duration) var(--ease-soft),
    box-shadow var(--duration) var(--ease-soft);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--lift), var(--glow-lavender);
}

.product-card .thumb {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
  background: var(--void-soft);
}

.product-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-soft);
}

.product-card:hover .thumb img {
  transform: scale(1.05);
}

.product-card .thumb-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: linear-gradient(
    145deg,
    rgba(196, 161, 255, 0.15),
    rgba(255, 142, 200, 0.1),
    rgba(126, 232, 250, 0.1)
  );
}

.product-body {
  padding: 1.25rem 1.35rem 1.5rem;
}

.product-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.product-price {
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--pride-soft);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Prompt cards get a special visual */
.prompt-preview {
  aspect-ratio: 16 / 10;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.prompt-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(196, 161, 255, 0.2),
    rgba(255, 142, 200, 0.08),
    rgba(126, 232, 250, 0.12)
  );
  z-index: 0;
}

.prompt-preview > * {
  position: relative;
  z-index: 1;
}

.prompt-snippet {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.55;
  opacity: 0.85;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prompt-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ─── Feature strip ─── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature {
  padding: 1.5rem;
  border-radius: 1.15rem;
  text-align: center;
  transition: transform var(--duration) var(--ease-soft);
}

.feature:hover {
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.feature p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── About / sanctuary ─── */
.sanctuary {
  border-radius: 1.5rem;
  padding: 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sanctuary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(196, 161, 255, 0.1),
    rgba(255, 142, 200, 0.06),
    rgba(126, 232, 250, 0.08)
  );
  pointer-events: none;
}

.sanctuary > * {
  position: relative;
}

/* ─── Page header ─── */
.page-header {
  padding: 3rem 0 1.5rem;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.75rem;
}

.page-header p {
  max-width: 480px;
  margin: 0 auto;
  color: var(--text-muted);
}

/* ─── Ambient sound toggle ─── */
.ambient-toggle {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: color var(--duration), border-color var(--duration),
    box-shadow var(--duration);
}

.ambient-toggle:hover,
.ambient-toggle.on {
  color: var(--lavender);
  border-color: rgba(196, 161, 255, 0.4);
  box-shadow: var(--glow-lavender);
}

/* ─── Footer ─── */
.site-footer {
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.site-footer p {
  margin: 0.35rem 0;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.footer-pride {
  display: inline-block;
  width: 80px;
  height: 4px;
  border-radius: 999px;
  background: var(--pride-soft);
  margin-bottom: 1rem;
  box-shadow: var(--glow-lavender);
}

/* ─── Section labels ─── */
.section-label {
  text-align: center;
  margin-bottom: 2rem;
}

.section-label h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 0.5rem;
}

.section-label p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ─── Mobile nav ─── */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
  font-size: 1.1rem;
}

@media (max-width: 720px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(14, 12, 22, 0.95);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    width: 100%;
    text-align: center;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .section {
    padding: 2.5rem 0;
  }

  .sanctuary {
    padding: 1.75rem;
  }
}

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

  .orb {
    animation: none;
  }

  .hero-living {
    animation: none;
  }
}
