:root {
  --void: #07070a;
  --surface: #0d0c10;
  --text: #b4b0aa;
  --muted: #3c3830;
  --dim: #221f1c;
  --border: #1c1a1e;
  --accent: #d6d2cc;
  --fade: #4a4540;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.875rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

/* ─── STARFIELD CANVAS ─── */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.6;
}

/* ─── NEBULA OVERLAY ─── */
.nebula-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(180, 176, 200, 0.03) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 70%, rgba(140, 138, 155, 0.025) 0%, transparent 50%);
  animation: nebulaShift 30s ease-in-out infinite alternate;
}

@keyframes nebulaShift {
  0%   { opacity: 0.7; }
  100% { opacity: 1; }
}

/* ─── SHOOTING STARS ─── */
.shooting-star {
  position: fixed;
  top: 22%;
  left: -200px;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(200, 196, 188, 0.4) 60%, rgba(220, 218, 212, 0.7) 100%);
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform-origin: right center;
  animation: shootStar 18s linear infinite;
}

.shooting-star::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(220, 218, 210, 0.8);
}

.shooting-star.delay {
  top: 60%;
  animation-delay: 9s;
  animation-duration: 22s;
  width: 110px;
}

@keyframes shootStar {
  0%   { transform: translateX(0) translateY(0) rotate(-18deg); opacity: 0; }
  3%   { opacity: 0.6; }
  22%  { opacity: 0.4; }
  30%  { opacity: 0; }
  100% { transform: translateX(140vw) translateY(180px) rotate(-18deg); opacity: 0; }
}

/* ─── ELEVATE CONTENT ABOVE BG LAYERS ─── */
nav, .hero, .tagline-bar, .products, .notify-section, footer {
  position: relative;
  z-index: 3;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(7, 7, 10, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: 1.4rem;
  letter-spacing: 0.3em;
  text-decoration: none;
  color: var(--accent);
  text-transform: uppercase;
}

.logo .accent {
  color: var(--fade);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color 0.3s;
}

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

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 5rem;
  max-width: 1200px;
  margin: 0 auto;
  gap: 5rem;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.8rem;
  font-weight: 400;
}

h1 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: clamp(4rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 2rem;
}

.gradient-text {
  color: var(--dim);
  font-style: italic;
  font-weight: 300;
}

.hero-sub {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 3.5rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.8rem;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.4s, color 0.4s, background 0.4s;
}

.btn-primary:hover {
  border-color: var(--text);
  color: var(--accent);
  background: rgba(180, 176, 170, 0.04);
}

.hero-visual {
  flex: 1.1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 50% 50%, rgba(90, 85, 80, 0.06) 0%, transparent 65%);
  pointer-events: none;
}

.hero-visual img {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
  border-radius: 2px;
  opacity: 0.75;
  filter: grayscale(30%) brightness(0.85);
  transition: opacity 0.6s, filter 0.6s;
}

.hero-visual img:hover {
  opacity: 0.9;
  filter: grayscale(10%) brightness(0.95);
}

/* ─── TAGLINE BAR ─── */
.tagline-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.4rem 2rem;
  overflow: hidden;
  background: rgba(12, 12, 16, 0.6);
}

.tagline-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.tagline-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.4s;
}

.tagline-item:hover {
  color: var(--muted);
}

.tagline-item .tag-icon {
  font-size: 0.8rem;
  color: var(--border);
  opacity: 0.8;
}

/* ─── PRODUCTS ─── */
.products {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-weight: 400;
}

.products h2, .notify-section h2 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: 0.06em;
  margin-bottom: 4rem;
  color: var(--accent);
  line-height: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1px;
  background: var(--border);
}

.product-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background 0.4s;
}

.product-card:hover {
  background: rgba(15, 14, 18, 0.98);
}

.product-card.purple,
.product-card.pink,
.product-card.green {
  border: none;
}

.product-card.purple:hover,
.product-card.pink:hover,
.product-card.green:hover {
  filter: none;
}

/* Void window for empty product slots */
.product-img-slot {
  width: 100%;
  aspect-ratio: 1 / 2.2;
  max-height: 280px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,255,255,0.04) 0.5px, transparent 0.5px),
    radial-gradient(circle at 72% 18%, rgba(255,255,255,0.035) 0.5px, transparent 0.5px),
    radial-gradient(circle at 45% 58%, rgba(255,255,255,0.04) 0.5px, transparent 0.5px),
    radial-gradient(circle at 85% 52%, rgba(255,255,255,0.05) 0.5px, transparent 0.5px),
    radial-gradient(circle at 10% 75%, rgba(255,255,255,0.03) 0.5px, transparent 0.5px),
    radial-gradient(circle at 58% 85%, rgba(255,255,255,0.04) 0.5px, transparent 0.5px),
    radial-gradient(circle at 30% 44%, rgba(255,255,255,0.025) 0.5px, transparent 0.5px),
    radial-gradient(ellipse at 50% 50%, rgba(60, 56, 50, 0.04) 0%, transparent 60%),
    var(--void);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--dim);
}

.product-card h3 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: 1.75rem;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.product-card.purple h3,
.product-card.pink h3,
.product-card.green h3 {
  color: var(--text);
  text-shadow: none;
}

.product-card .flavor-sub {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ─── NOTIFY ─── */
.notify-section {
  padding: 7rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.notify-section p {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  margin-bottom: 3rem;
  font-family: 'DM Mono', monospace;
}

.notify-form {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 0 auto;
}

.notify-form input {
  flex: 1;
  padding: 0.9rem 1.2rem;
  background: transparent;
  border: 1px solid var(--border);
  border-right: none;
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  outline: none;
  transition: border-color 0.3s;
}

.notify-form input::placeholder {
  color: var(--dim);
}

.notify-form input:focus {
  border-color: var(--muted);
}

.notify-form button {
  padding: 0.9rem 1.6rem;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.notify-form button:hover {
  background: rgba(180, 176, 170, 0.05);
  border-color: var(--text);
  color: var(--accent);
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 2rem;
  text-align: center;
}

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

.footer-logo {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: 2rem;
  letter-spacing: 0.3em;
  margin-bottom: 0.75rem;
  color: var(--fade);
}

.footer-tagline {
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--dim);
  margin-bottom: 2.5rem;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-copy {
  font-size: 0.65rem;
  color: var(--dim);
  letter-spacing: 0.06em;
}

/* ─── INNER PAGES (Privacy / Terms) ─── */
.page-hero {
  padding: 8rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  line-height: 0.92;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 1.2rem;
}

.page-hero .meta {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 4rem 2rem 7rem;
}

.page-content h2 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--text);
  margin: 3.5rem 0 1rem;
  text-shadow: none;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content p {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
  margin-bottom: 1.4rem;
}

.page-content ul, .page-content ol {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.9;
  margin-bottom: 1.4rem;
  padding-left: 1.5rem;
}

.page-content li {
  margin-bottom: 0.4rem;
}

.page-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--accent);
}

/* ─── TIKTOK CALLBACK ─── */
.callback-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.callback-box {
  max-width: 600px;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3rem;
}

.callback-box h1 {
  font-family: 'Cormorant Garant', serif;
  font-weight: 300;
  font-size: 2.5rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.callback-box .cb-sub {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 2.5rem;
}

.code-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.code-display {
  background: var(--void);
  border: 1px solid var(--border);
  padding: 1.25rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.78rem;
  color: var(--text);
  word-break: break-all;
  margin-bottom: 1rem;
  min-height: 60px;
  line-height: 1.6;
}

.copy-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: transparent;
  border: 1px solid var(--muted);
  color: var(--text);
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s;
}

.copy-btn:hover { background: rgba(180, 176, 170, 0.05); border-color: var(--text); }
.copy-btn.copied { border-color: var(--fade); color: var(--muted); }

.cb-error {
  color: #8a5050;
  background: rgba(100, 50, 50, 0.08);
  border: 1px solid rgba(100, 50, 50, 0.25);
  padding: 1rem;
  font-size: 0.82rem;
}

.all-params {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.all-params summary {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
}

.all-params pre {
  margin-top: 1rem;
  background: var(--void);
  border: 1px solid var(--border);
  padding: 1rem;
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 7rem;
    gap: 3rem;
    text-align: center;
  }

  .hero-visual {
    width: 100%;
  }

  .tagline-bar-inner {
    justify-content: center;
  }

  .notify-form {
    flex-direction: column;
  }

  .notify-form input {
    border-right: 1px solid var(--border);
    border-bottom: none;
  }
}
