@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Jost:wght@300;400;500&display=swap');

:root {
  --bg: #FDFBFF;
  --bg-alt: #F8F4FD;
  --bg-card: #F4EEF9;
  --surface: #FFFFFF;

  --lilac: #C4A8D8;
  --lilac-deep: #9B7FBB;
  --lilac-pale: #EDE0F8;
  --pink: #D4A8B8;
  --pink-pale: #F5E8EF;
  --blue: #A8C4D8;
  --blue-pale: #E4EEF5;

  --gold: #C8A84A;
  --gold-warm: #D4B860;
  --gold-pale: #F5EDD4;
  --silver: #A8B4C0;
  --silver-light: #D8E0E8;

  --text: #1A1525;
  --text-mid: #5A4E6A;
  --text-soft: #8A7E9A;
  --text-ghost: #B8AECC;

  --border: #EAE0F8;
  --border-light: #F2EBF9;

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 100px;

  --shadow-sm: 0 2px 12px rgba(100, 60, 160, 0.05);
  --shadow: 0 4px 24px rgba(100, 60, 160, 0.08);
  --shadow-lg: 0 8px 48px rgba(100, 60, 160, 0.12);

  --max-w: 1140px;
  --font-head: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', system-ui, sans-serif;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Typography ─────────────────────────────── */

.heading-xl {
  font-family: var(--font-head);
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 7.5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  text-shadow:
    0 1px 0 rgba(155,127,187,0.75),
    0 2px 0 rgba(135,107,167,0.58),
    0 3px 0 rgba(115,87,147,0.42),
    0 4px 0 rgba(95,67,127,0.30),
    0 5px 0 rgba(75,47,107,0.20),
    0 7px 18px rgba(60,20,100,0.22),
    0 0 40px rgba(200,168,74,0.16);
  animation: text-glow-pulse 5s ease-in-out infinite,
             heading-shine-sweep 7s ease-in-out infinite;
}

.heading-1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-shadow:
    0 1px 0 rgba(155,127,187,0.60),
    0 2px 0 rgba(135,107,167,0.44),
    0 3px 0 rgba(115,87,147,0.28),
    0 5px 14px rgba(60,20,100,0.18),
    0 0 28px rgba(196,168,216,0.24),
    0 0 56px rgba(200,168,74,0.10);
  animation: text-glow-pulse 6s ease-in-out infinite,
             heading-shine-sweep 8s ease-in-out infinite;
}

.heading-2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.2;
  text-shadow:
    0 1px 0 rgba(155,127,187,0.48),
    0 2px 0 rgba(135,107,167,0.34),
    0 3px 10px rgba(60,20,100,0.14),
    0 0 22px rgba(196,168,216,0.20),
    0 0 44px rgba(200,168,74,0.09);
  animation: text-glow-pulse 6.5s ease-in-out infinite,
             heading-shine-sweep 9s ease-in-out infinite;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.body-lg {
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.9;
}

.body {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
}

em { font-style: italic; }

.gradient-text {
  background: linear-gradient(
    120deg,
    var(--lilac-deep) 0%,
    var(--pink)       22%,
    #F8F2FF           37%,
    #EDD8FF           44%,
    var(--blue)       60%,
    var(--lilac-deep) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text {
  background: linear-gradient(90deg,
    var(--gold) 0%,
    var(--gold-warm) 25%,
    #F2DC8A 50%,
    var(--gold-warm) 75%,
    var(--gold) 100%
  );
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gold-shimmer 4s linear infinite;
}

/* ── Layout ─────────────────────────────────── */

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 52px;
}

section { padding: 112px 0; }

/* ── Divider ─────────────────────────────────── */

.divider {
  width: 48px;
  height: 14px;
  margin: 20px auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  transform: translateY(-50%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.divider::after {
  content: '';
  width: 11px; height: 11px;
  position: relative;
  z-index: 1;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12,12 C9,12 9,2 12,2 C15,2 15,12 12,12Z M12,12 C15,12 15,22 12,22 C9,22 9,12 12,12Z M12,12 C12,15 2,15 2,12 C2,9 12,9 12,12Z M12,12 C12,9 22,9 22,12 C22,15 12,15 12,12Z' fill='%23C8A84A'/%3E%3C/svg%3E") center/contain no-repeat;
}
.divider-left { margin-left: 0; }

/* ── Navigation ──────────────────────────────── */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 28px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
}

nav.scrolled {
  background: rgba(253, 251, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 20px 52px;
  box-shadow: var(--shadow-sm);
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-warm);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mid);
  transition: var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--lilac));
  transition: var(--transition);
}

.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

/* ── Buttons ─────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 34px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-warm) 50%, var(--gold) 100%);
  background-size: 200% auto;
  color: #2A1F00;
  box-shadow: 0 4px 20px rgba(200, 168, 74, 0.28);
  animation: btn-pulse-gold 3.5s ease-in-out infinite;
}
.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 8px 40px rgba(200, 168, 74, 0.65), 0 0 70px rgba(200, 168, 74, 0.22);
  transform: translateY(-2px);
  animation: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-card);
  border-color: var(--lilac);
  color: var(--text);
  transform: translateY(-2px);
}

.btn-lilac {
  background: linear-gradient(135deg, var(--lilac-deep) 0%, var(--pink) 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(155, 127, 187, 0.28);
  animation: btn-pulse-lilac 4s ease-in-out infinite;
}
.btn-lilac:hover {
  box-shadow: 0 8px 40px rgba(155, 127, 187, 0.6), 0 0 70px rgba(196, 168, 216, 0.22);
  transform: translateY(-2px);
  animation: none;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  animation: none !important;
}

/* ── Cards ───────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm), 0 0 18px rgba(196,168,216,0.1);
}
.card:hover {
  box-shadow: var(--shadow-lg), 0 0 32px rgba(196,168,216,0.32), 0 0 64px rgba(200,168,74,0.1);
  transform: translateY(-3px);
  border-color: rgba(196, 168, 216, 0.55);
}

/* ── Product Card ────────────────────────────── */

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  --glow-x: 50%;
  --glow-y: 50%;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    320px circle at var(--glow-x) var(--glow-y),
    rgba(196, 168, 216, 0.10),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.45s ease;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    180px circle at var(--glow-x) var(--glow-y),
    rgba(196, 157, 73, 0.06),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.55s ease;
}
.product-card:hover {
  box-shadow: var(--shadow-lg), 0 0 36px rgba(196,168,216,0.32), 0 0 72px rgba(200,168,74,0.12);
  transform: translateY(-4px);
  border-color: rgba(196, 168, 216, 0.6);
}
.product-card:hover::before,
.product-card:hover::after {
  opacity: 1;
}

.product-visual {
  height: 200px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.product-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(26,21,37,0.06) 100%);
}

.product-body {
  padding: 26px 30px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}

.product-tag {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}

.product-name {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.2;
}

.product-desc {
  font-size: 0.85rem;
  color: var(--text-soft);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
}

.badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* ── Modal ───────────────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 21, 37, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px 52px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-overlay.active .modal {
  transform: translateY(0) scale(1);
}

/* ── Page Header ─────────────────────────────── */

.page-header {
  padding: 148px 0 80px;
  text-align: center;
}

/* ── Footer ──────────────────────────────────── */

footer {
  background: var(--text);
  padding: 64px 0;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #E8D898 0%, #D8E0E8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 36px;
  list-style: none;
  margin-bottom: 32px;
}
.footer-links a {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  transition: var(--transition);
}
.footer-links a:hover { color: rgba(255,255,255,0.75); }

.footer-copy {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.22);
}

/* ── Animations ──────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ── Utilities ───────────────────────────────── */

.text-center { text-align: center; }
.gap-16 { gap: 16px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mt-56 { margin-top: 56px; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-wrap { flex-wrap: wrap; }

/* ── Loading spinner ─────────────────────────── */

.spinner {
  width: 32px;
  height: 32px;
  border: 2px solid var(--border);
  border-top-color: var(--lilac-deep);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Scroll indicator ────────────────────────── */

.scroll-indicator {
  position: absolute;
  bottom: 44px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-ghost);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--silver));
  animation: breathe 2.2s ease infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.25; }
  50% { opacity: 0.9; }
}

/* ── Glow System ─────────────────────────────── */

@keyframes text-glow-pulse {
  0%, 100% {
    text-shadow:
      0 0 24px rgba(200,168,74,0.22),
      0 0 48px rgba(196,168,216,0.14);
  }
  50% {
    text-shadow:
      0 0 38px rgba(200,168,74,0.42),
      0 0 78px rgba(196,168,216,0.24),
      0 0 110px rgba(200,168,74,0.12);
  }
}

@keyframes gold-shimmer {
  0%   { background-position: -300% center; }
  100% { background-position:  300% center; }
}

@keyframes btn-pulse-gold {
  0%, 100% { box-shadow: 0 4px 20px rgba(200,168,74,0.28); }
  50%       { box-shadow: 0 6px 38px rgba(200,168,74,0.58), 0 0 60px rgba(200,168,74,0.18); }
}

@keyframes btn-pulse-lilac {
  0%, 100% { box-shadow: 0 4px 20px rgba(155,127,187,0.28); }
  50%       { box-shadow: 0 6px 38px rgba(155,127,187,0.54), 0 0 60px rgba(196,168,216,0.2); }
}

@keyframes heading-shine-sweep {
  0%, 100% { background-position: 160% center; }
  50%       { background-position: -60% center; }
}

/* ── 3D Metallic Text ─────────────────────────── */

@keyframes title-streak {
  0%   { background-position: 0% 50%; }
  100% { background-position: 150% 50%; }
}

.gold-3d-text {
  background: linear-gradient(90deg,
    #ffffff 0%,
    #E0AA3E 2%,
    #C49030 10%,
    #A87830 17%,
    #C49030 24%,
    #E0AA3E 31%,
    #ffffff 32.5%,
    #ffffff 33.5%,
    #E0AA3E 35%,
    #C49030 43%,
    #A87830 50%,
    #C49030 57%,
    #E0AA3E 65%,
    #ffffff 66.5%,
    #ffffff 67.5%,
    #E0AA3E 69%,
    #C49030 77%,
    #A87830 83%,
    #C49030 91%,
    #E0AA3E 98.5%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 2px 0px rgba(130,80,5,0.85))
    drop-shadow(0 4px 2px rgba(105,60,3,0.60))
    drop-shadow(0 8px 5px rgba(80,44,1,0.38))
    drop-shadow(0 16px 10px rgba(55,28,0,0.22));
  animation: title-streak 6s linear infinite;
}

.chrome-3d-text {
  background: linear-gradient(90deg,
    #ffffff 0%,
    #912da8 3%,
    #4a1260 17%,
    #912da8 30%,
    #ffffff 33%,
    #912da8 36%,
    #4a1260 50%,
    #912da8 64%,
    #ffffff 67%,
    #912da8 70%,
    #4a1260 83%,
    #912da8 97%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 1px 0px #79258c)
    drop-shadow(0 2px 1px rgba(72,22,84,0.55))
    drop-shadow(0 4px 2px rgba(72,22,84,0.28));
  animation: title-streak 6s linear infinite;
}

.chrome-gradient-text {
  text-shadow: none;
  background: linear-gradient(90deg,
    #ffffff 0%,
    #C4A0D8 2%,
    #6a4f90 17%,
    #C4A0D8 31%,
    #ffffff 32.5%,
    #ffffff 33.5%,
    #C4A0D8 35%,
    #6a4f90 50%,
    #C4A0D8 65%,
    #ffffff 66.5%,
    #ffffff 67.5%,
    #C4A0D8 69%,
    #6a4f90 83%,
    #C4A0D8 98.5%,
    #ffffff 100%
  );
  background-size: 300% 100%;
  background-repeat: repeat-x;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter:
    drop-shadow(0 1px 0px rgba(122,94,154,0.75))
    drop-shadow(0 2px 0px rgba(74,48,96,0.30));
  animation: title-streak 6s linear infinite;
}

.chrome-gradient-text .chrome-gradient-text {
  filter: none;
}

.title-sweep {
  position: relative;
}

/* ── Responsive ──────────────────────────────── */

@media (max-width: 768px) {
  /* Nav */
  nav, nav.scrolled { padding: 16px 24px; }
  .nav-links { gap: 24px; }
  /* Hide Science and About on tablets — keep Shop and Custom */
  .nav-links li:nth-child(3),
  .nav-links li:nth-child(4) { display: none; }

  /* Layout */
  .container { padding: 0 24px; }
  section { padding: 80px 0; }
}

@media (max-width: 480px) {
  /* Nav */
  nav, nav.scrolled { padding: 14px 18px; }
  .nav-logo { font-size: 1.3rem; gap: 6px; }
  .nav-logo svg { width: 13px; height: 13px; }

  /* Layout */
  .container { padding: 0 18px; }
  section { padding: 60px 0; }

  /* Hero */
  .hero-title .italic-line { white-space: normal; }

  /* Custom generator grids: 3 cols → 2 cols */
  .freq-grid,
  .duration-grid { grid-template-columns: repeat(2, 1fr); }

  /* Product/evidence cards: ensure single column on very narrow */
  .products-grid,
  .evidence-grid { grid-template-columns: 1fr; }

  /* Buttons full-width in hero */
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 280px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Download card */
  .download-card { padding: 40px 24px; }
}
