/* ═══════════════════════════════════════════════════════
   Rainbow Lens — Main CSS
   /assets/css/main.css
═══════════════════════════════════════════════════════ */

/* ─ RESET & ROOT ─ */
:root {
  --black:      #030305;
  --deep:       #080810;
  --card:       #0e0e1a;
  --border:     rgba(255,255,255,0.07);
  --white:      #f5f3ef;
  --muted:      rgba(245,243,239,0.45);
  --iris1:      #a78bfa;
  --iris2:      #60a5fa;
  --iris3:      #34d399;
  --iris4:      #f472b6;
  --iris5:      #fb923c;
  --gold:       #c9a96e;
  --gold-light: #e8d5a3;
  --rainbow:    linear-gradient(135deg, #a78bfa, #60a5fa, #34d399, #f472b6, #fb923c);
  --nav-h:      72px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Desktop: custom cursor */
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
}

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

a { color: inherit; }

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

/* ─ CUSTOM CURSOR ─ */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    width: 10px; height: 10px;
    background: var(--white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: opacity 0.2s;
  }
  .cursor-ring {
    display: block;
    position: fixed;
    width: 38px; height: 38px;
    border: 1px solid rgba(167,139,250,0.55);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
  }
  .cursor-ring.big { width: 58px; height: 58px; border-color: var(--iris1); }
}

/* ─ SCROLL INDICATOR ─ */
.scroll-indicator {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: var(--rainbow);
  z-index: 600;
  width: 0%;
  transition: width 0.05s linear;
}

/* ─ NAV ─ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 500;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(3,3,5,0.55);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s, height 0.3s;
}
nav.scrolled {
  height: 60px;
  background: rgba(3,3,5,0.85);
}

.nav-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.65rem;
  font-weight: 300;
  letter-spacing: 0.14em;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}
.nav-links a {
  font-family: 'Syne', sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--rainbow);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-family: 'Syne', sans-serif;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 26px;
  border: 1px solid rgba(167,139,250,0.4);
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  white-space: nowrap;
}
.nav-cta:hover {
  background: rgba(167,139,250,0.15);
  border-color: var(--iris1);
}

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: rgba(3,3,5,0.98);
  backdrop-filter: blur(20px);
  z-index: 490;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu ul { list-style: none; text-align: center; display: flex; flex-direction: column; gap: 28px; }
.mobile-menu a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  text-decoration: none;
  color: var(--white);
  letter-spacing: 0.05em;
  transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--iris1); }

/* ─ BUTTONS ─ */
.btn-primary {
  display: inline-block;
  padding: 15px 38px;
  background: var(--rainbow);
  color: var(--black);
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px rgba(167,139,250,0.35);
}

.btn-ghost {
  display: inline-block;
  padding: 15px 38px;
  background: transparent;
  color: var(--white);
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
}

/* ─ HERO ─ */
.hero {
  min-height: 100svh;
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 60px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 80% at 70% 50%, rgba(96,165,250,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 60% 60% at 20% 80%, rgba(167,139,250,0.08) 0%, transparent 50%),
    radial-gradient(ellipse 40% 40% at 80% 10%, rgba(244,114,182,0.05) 0%, transparent 50%);
  pointer-events: none;
}

.bokeh { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bokeh span {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  animation: float-up var(--dur, 8s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes float-up {
  0%   { transform: translateY(0) scale(1);   opacity: 0; }
  20%  { opacity: 0.55; }
  80%  { opacity: 0.25; }
  100% { transform: translateY(-100vh) scale(0.3); opacity: 0; }
}

.hero-content { position: relative; z-index: 2; }

.hero-eyebrow {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--iris1);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.8s ease forwards 0.3s;
}
.hero-eyebrow::before { content: ''; width: 36px; height: 1px; background: var(--iris1); }

.hero-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 5.5vw, 5.8rem);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(28px);
  animation: fade-up 1s ease forwards 0.5s;
}
.hero-title em {
  font-style: italic;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: var(--muted);
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 44px;
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s ease forwards 0.7s;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  opacity: 0;
  transform: translateY(18px);
  animation: fade-up 0.9s ease forwards 0.9s;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 56px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fade-up 0.9s ease forwards 1.1s;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 300;
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.stat-label { font-size: 0.7rem; color: var(--muted); letter-spacing: 0.07em; margin-top: 5px; }

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  animation: fade-in 1.2s ease forwards 0.8s;
}
.lens-showcase {
  position: relative;
  width: min(460px, 100%);
  aspect-ratio: 1;
}
.lens-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.18);
  inset: 0;
  animation: spin-slow 20s linear infinite;
}
.lens-ring:nth-child(2) { inset: 28px; animation-duration: 30s; animation-direction: reverse; border-color: rgba(96,165,250,0.13); }
.lens-ring:nth-child(3) { inset: 56px; animation-duration: 40s; border-color: rgba(244,114,182,0.1); }
@keyframes spin-slow { to { transform: rotate(360deg); } }

.hero-img-main {
  position: absolute;
  inset: 78px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 70px rgba(167,139,250,0.2), 0 0 140px rgba(96,165,250,0.1);
}
.hero-img-main img { width: 100%; height: 100%; object-fit: cover; }

.float-card {
  position: absolute;
  background: rgba(14,14,26,0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  padding: 14px 18px;
  animation: float-card 6s ease-in-out infinite;
  min-width: 140px;
}
.float-card:last-child { animation-delay: 3s; }
@keyframes float-card {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.fc-label { font-size: 0.62rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 5px; }
.fc-value { font-family: 'Syne', sans-serif; font-size: 0.95rem; font-weight: 700; }
.fc-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; background: #34d399; margin-right: 7px;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.4); }
  50%      { box-shadow: 0 0 0 7px rgba(52,211,153,0); }
}

/* ─ ANIMATIONS ─ */
@keyframes fade-up  { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in  { to { opacity: 1; } }

/* ─ REVEAL ON SCROLL ─ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ─ MARQUEE ─ */
.marquee-section {
  padding: 22px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.marquee-track {
  display: flex;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee-item {
  font-family: 'Syne', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 44px;
  display: flex;
  align-items: center;
  gap: 44px;
  white-space: nowrap;
}
.marquee-item span {
  background: var(--rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ─ SECTION COMMON ─ */
section { padding: 110px 60px; }

.section-tag {
  font-family: 'Syne', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--iris1);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-tag::before { content: ''; width: 22px; height: 1px; background: currentColor; }

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.2rem, 3.8vw, 3.8rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--gold); }

/* ─ PRODUCTS ─ */
.products-section { background: var(--deep); }

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 64px;
  flex-wrap: wrap;
  gap: 20px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), border-color 0.3s;
}
.product-card:hover { transform: translateY(-7px); border-color: rgba(167,139,250,0.3); }

.product-img { width: 100%; aspect-ratio: 1; overflow: hidden; position: relative; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.23,1,0.32,1); }
.product-card:hover .product-img img { transform: scale(1.07); }

.product-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--rainbow);
  color: var(--black);
  font-family: 'Syne', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 11px;
  z-index: 2;
}

.product-info { padding: 22px; }
.product-collection { font-size: 0.66rem; color: var(--iris1); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 7px; font-family: 'Syne', sans-serif; font-weight: 600; }
.product-name { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 400; margin-bottom: 7px; line-height: 1.2; }
.product-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-bottom: 18px; }
.product-footer { display: flex; justify-content: space-between; align-items: center; }
.product-price { font-family: 'Syne', sans-serif; font-size: 1.05rem; font-weight: 700; color: var(--gold-light); }

.product-add {
  width: 38px; height: 38px;
  border: 1px solid rgba(167,139,250,0.4);
  background: transparent;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.product-add:hover { background: var(--iris1); border-color: var(--iris1); }

.color-swatches { display: flex; gap: 6px; margin-bottom: 14px; }
.swatch { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); cursor: pointer; transition: transform 0.2s; }
.swatch:hover { transform: scale(1.35); }

/* ─ FEATURES ─ */
.features-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.features-visual { position: relative; }
.features-img-wrap { position: relative; overflow: hidden; aspect-ratio: 3/4; }
.features-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.features-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167,139,250,0.18), transparent 60%);
}
.features-accent {
  position: absolute;
  bottom: -28px; right: -28px;
  width: 190px; height: 190px;
  border: 1px solid rgba(167,139,250,0.18);
  border-radius: 50%;
}
.features-accent::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(96,165,250,0.13);
  border-radius: 50%;
}

.features-list { display: flex; flex-direction: column; gap: 16px; margin-top: 44px; }
.feature-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.feature-item:hover { border-color: rgba(167,139,250,0.3); transform: translateX(6px); }

.feature-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  background: rgba(167,139,250,0.1);
  border: 1px solid rgba(167,139,250,0.18);
}
.feature-text h4 { font-family: 'Syne', sans-serif; font-size: 0.87rem; font-weight: 700; margin-bottom: 5px; letter-spacing: 0.04em; }
.feature-text p { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ─ COLLECTION STRIP ─ */
.collection-strip { background: var(--deep); padding: 110px 0; overflow: hidden; }
.strip-header { padding: 0 60px; margin-bottom: 56px; display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 20px; }

.horizontal-scroll {
  display: flex;
  gap: 20px;
  padding: 0 60px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

.hs-card {
  flex-shrink: 0;
  width: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
  scroll-snap-align: start;
}
.hs-card:hover { border-color: rgba(167,139,250,0.3); }
.hs-img { width: 100%; aspect-ratio: 4/3; overflow: hidden; }
.hs-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.hs-card:hover .hs-img img { transform: scale(1.06); }
.hs-info { padding: 18px; }
.hs-color { font-family: 'Syne', sans-serif; font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--iris2); margin-bottom: 5px; }
.hs-name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 400; }

/* ─ TESTIMONIALS ─ */
.testimonials { text-align: center; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 60px; }
.testi-card {
  background: var(--card);
  border: 1px solid var(--border);
  padding: 28px;
  text-align: left;
  transition: border-color 0.3s, transform 0.3s;
}
.testi-card:hover { border-color: rgba(167,139,250,0.3); transform: translateY(-4px); }
.testi-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 3px; margin-bottom: 14px; }
.testi-text { font-family: 'Cormorant Garamond', serif; font-size: 1.05rem; font-style: italic; line-height: 1.7; color: rgba(245,243,239,0.85); margin-bottom: 20px; }
.testi-author { font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.07em; color: var(--muted); }

/* ─ CTA ─ */
.cta-section {
  padding: 110px 60px;
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(167,139,250,0.11) 0%, transparent 70%);
  pointer-events: none;
}
.cta-section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 560px; height: 560px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(167,139,250,0.1);
  animation: pulse-ring 4s ease infinite;
  pointer-events: none;
}
@keyframes pulse-ring {
  0%,100% { transform: translate(-50%,-50%) scale(1); opacity: 1; }
  50%      { transform: translate(-50%,-50%) scale(1.1); opacity: 0.5; }
}
.cta-content { position: relative; z-index: 2; }
.cta-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.8rem, 5.5vw, 5.5rem); font-weight: 300; line-height: 1.05; margin-bottom: 22px; }
.cta-title em { font-style: italic; background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cta-sub { font-size: 0.95rem; color: var(--muted); max-width: 420px; margin: 0 auto 44px; line-height: 1.7; }

/* ─ RAINBOW LINE ─ */
.rainbow-line { height: 2px; background: var(--rainbow); }

/* ─ FOOTER ─ */
footer { padding: 56px 60px; border-top: 1px solid var(--border); background: var(--deep); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 52px; margin-bottom: 52px; }
.footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 300; background: var(--rainbow); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 14px; letter-spacing: 0.1em; }
.footer-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.7; max-width: 270px; }
.footer-col h5 { font-family: 'Syne', sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--white); margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.83rem; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { padding-top: 28px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.75rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--white); }

/* ═══════════════════════════════════════
   CHATBOT
═══════════════════════════════════════ */
.chat-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  border: none; cursor: pointer; z-index: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 36px rgba(167,139,250,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fab-pulse 3s ease infinite;
}
@keyframes fab-pulse {
  0%,100% { box-shadow: 0 6px 36px rgba(167,139,250,0.5); }
  50%      { box-shadow: 0 6px 52px rgba(167,139,250,0.8), 0 0 0 10px rgba(167,139,250,0.1); }
}
.chat-fab:hover { transform: scale(1.1); animation: none; }
.chat-fab.open  { animation: none; background: linear-gradient(135deg, #f472b6, #a78bfa); }

.chat-panel {
  position: fixed;
  bottom: 98px; right: 28px;
  width: min(375px, calc(100vw - 24px));
  max-height: min(560px, calc(100svh - 120px));
  background: rgba(8,8,16,0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(167,139,250,0.22);
  display: flex; flex-direction: column;
  z-index: 799;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
  box-shadow: 0 36px 90px rgba(0,0,0,0.6);
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: all; }

.chat-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex; align-items: center; gap: 13px;
  background: linear-gradient(135deg, rgba(167,139,250,0.1), rgba(96,165,250,0.05));
  flex-shrink: 0;
}
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #a78bfa, #60a5fa); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.chat-header-info h4 { font-family: 'Syne', sans-serif; font-size: 0.83rem; font-weight: 700; color: var(--white); margin-bottom: 2px; }
.chat-header-info p { font-size: 0.68rem; color: #34d399; display: flex; align-items: center; gap: 5px; }
.chat-header-info p::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #34d399; display: inline-block; animation: pulse-dot 2s infinite; }

.chat-messages { flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 11px; scrollbar-width: thin; scrollbar-color: rgba(167,139,250,0.3) transparent; }
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(167,139,250,0.3); }

.msg { display: flex; gap: 9px; align-items: flex-end; max-width: 90%; }
.msg.user { align-self: flex-end; flex-direction: row-reverse; }
.msg.bot  { align-self: flex-start; }

.msg-bubble { padding: 11px 15px; font-size: 0.82rem; line-height: 1.55; }
.msg.bot  .msg-bubble { background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.2); color: var(--white); }
.msg.user .msg-bubble { background: linear-gradient(135deg, rgba(167,139,250,0.3), rgba(96,165,250,0.2)); border: 1px solid rgba(167,139,250,0.3); color: var(--white); }

.msg-avatar-sm { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, #a78bfa, #60a5fa); display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }

.typing-indicator { display: flex; gap: 4px; padding: 13px 15px; background: rgba(167,139,250,0.12); border: 1px solid rgba(167,139,250,0.2); width: fit-content; }
.typing-indicator span { width: 6px; height: 6px; border-radius: 50%; background: rgba(167,139,250,0.6); animation: typing 1.2s ease infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); } 30% { transform: translateY(-7px); } }

.chat-quick { padding: 8px 14px 0; display: flex; flex-wrap: wrap; gap: 6px; flex-shrink: 0; }
.quick-btn { font-size: 0.7rem; padding: 6px 11px; background: rgba(167,139,250,0.08); border: 1px solid rgba(167,139,250,0.25); color: rgba(167,139,250,0.9); cursor: pointer; font-family: 'Syne', sans-serif; font-weight: 600; letter-spacing: 0.04em; transition: all 0.2s; white-space: nowrap; }
.quick-btn:hover { background: rgba(167,139,250,0.2); color: var(--white); }

.chat-input-row { padding: 13px 14px; border-top: 1px solid rgba(255,255,255,0.05); display: flex; gap: 9px; flex-shrink: 0; }
.chat-input { flex: 1; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--white); padding: 10px 13px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem; outline: none; transition: border-color 0.2s; }
.chat-input:focus { border-color: rgba(167,139,250,0.5); }
.chat-input::placeholder { color: rgba(245,243,239,0.3); }
.chat-send { width: 38px; height: 38px; flex-shrink: 0; background: linear-gradient(135deg, #a78bfa, #60a5fa); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; transition: opacity 0.2s; }
.chat-send:hover { opacity: 0.85; }
.chat-send:disabled { opacity: 0.35; }

/* ═══════════════════════════════════════
   VIRTUAL TRY-ON
═══════════════════════════════════════ */
.tryon-fab {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #60a5fa);
  border: none; cursor: pointer; z-index: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 36px rgba(52,211,153,0.4);
  transition: transform 0.3s;
  animation: tryon-pulse 3s ease infinite 1.5s;
}
@keyframes tryon-pulse {
  0%,100% { box-shadow: 0 6px 36px rgba(52,211,153,0.4); }
  50%      { box-shadow: 0 6px 52px rgba(52,211,153,0.7), 0 0 0 10px rgba(52,211,153,0.08); }
}
.tryon-fab:hover { transform: scale(1.1); animation: none; }

.tryon-modal {
  position: fixed; inset: 0; z-index: 900;
  background: rgba(3,3,5,0.97);
  display: flex; align-items: stretch; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s;
}
.tryon-modal.open { opacity: 1; pointer-events: all; }

.tryon-container { width: 100%; max-width: 940px; display: flex; flex-direction: column; }

.tryon-topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.tryon-topbar h3 { font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; }
.tryon-topbar span { font-size: 0.68rem; color: var(--muted); margin-left: 11px; }
.tryon-close { width: 34px; height: 34px; background: rgba(255,255,255,0.08); border: 1px solid var(--border); color: var(--white); font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.tryon-close:hover { background: rgba(255,255,255,0.18); }

.tryon-body { flex: 1; display: flex; overflow: hidden; min-height: 0; }

.tryon-cam-wrap { flex: 1; position: relative; overflow: hidden; background: #000; display: flex; align-items: center; justify-content: center; min-width: 0; }
#tryonVideo { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); display: block; }
#tryonCanvas { position: absolute; inset: 0; width: 100%; height: 100%; transform: scaleX(-1); pointer-events: none; }

.lens-overlay { position: absolute; border-radius: 50%; width: 80px; height: 80px; cursor: grab; touch-action: none; display: flex; align-items: center; justify-content: center; transform: translate(-50%, -50%); z-index: 10; }
.lens-overlay:active { cursor: grabbing; }
.lens-overlay-inner { width: 100%; height: 100%; border-radius: 50%; opacity: 0.78; pointer-events: none; transition: opacity 0.3s; box-shadow: inset 0 0 20px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.15); }
.lens-resize-handle { position: absolute; bottom: -4px; right: -4px; width: 15px; height: 15px; border-radius: 50%; background: rgba(255,255,255,0.9); cursor: nwse-resize; touch-action: none; border: 2px solid rgba(167,139,250,0.8); z-index: 11; }

.tryon-hint { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; color: rgba(255,255,255,0.5); font-family: 'Syne', sans-serif; letter-spacing: 0.07em; background: rgba(0,0,0,0.6); padding: 6px 14px; white-space: nowrap; pointer-events: none; animation: hint-fade 4s ease forwards 2s; }
@keyframes hint-fade { to { opacity: 0; } }

.flash-overlay { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 50; transition: opacity 0.05s; }
.flash-overlay.flash { opacity: 0.8; }

.tryon-start-screen { position: absolute; inset: 0; background: rgba(3,3,5,0.96); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; z-index: 20; padding: 24px; text-align: center; }
.tryon-start-screen h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.75rem; font-weight: 300; line-height: 1.3; }
.tryon-start-screen h4 em { font-style: italic; background: linear-gradient(135deg, #34d399, #60a5fa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tryon-start-screen p { font-size: 0.83rem; color: var(--muted); max-width: 290px; line-height: 1.65; }
.btn-start-cam { padding: 15px 38px; background: linear-gradient(135deg, #34d399, #60a5fa); color: #000; font-family: 'Syne', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: none; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn-start-cam:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(52,211,153,0.3); }
.cam-icon-big { font-size: 2.8rem; }

.tryon-panel { width: 230px; flex-shrink: 0; background: var(--deep); border-left: 1px solid var(--border); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 20px; scrollbar-width: thin; }
.tryon-section-label { font-family: 'Syne', sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }

.lens-color-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.lens-color-btn { aspect-ratio: 1; border-radius: 50%; cursor: pointer; border: 2px solid transparent; transition: transform 0.2s, border-color 0.2s; position: relative; overflow: hidden; }
.lens-color-btn:hover { transform: scale(1.15); }
.lens-color-btn.active { border-color: var(--white); transform: scale(1.1); }
.lens-color-btn::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.35) 0%, transparent 60%); }

.tryon-opacity-wrap { display: flex; align-items: center; gap: 9px; }
.tryon-opacity-wrap label { font-size: 0.68rem; color: var(--muted); flex-shrink: 0; }
#opacitySlider { flex: 1; -webkit-appearance: none; height: 3px; background: rgba(255,255,255,0.1); outline: none; border-radius: 2px; cursor: pointer; }
#opacitySlider::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--iris1); cursor: pointer; }

.tryon-size-wrap { display: flex; gap: 6px; }
.size-btn { flex: 1; padding: 7px 4px; font-size: 0.68rem; font-family: 'Syne', sans-serif; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all 0.2s; }
.size-btn.active, .size-btn:hover { background: rgba(167,139,250,0.15); border-color: rgba(167,139,250,0.4); color: var(--white); }

.tryon-action-btns { display: flex; flex-direction: column; gap: 7px; }
.tryon-btn-primary { padding: 11px; font-family: 'Syne', sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; background: linear-gradient(135deg, #a78bfa, #60a5fa); border: none; color: #000; cursor: pointer; transition: opacity 0.2s; }
.tryon-btn-primary:hover { opacity: 0.85; }
.tryon-btn-ghost { padding: 11px; font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer; transition: all 0.2s; }
.tryon-btn-ghost:hover { border-color: rgba(255,255,255,0.28); color: var(--white); }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 1100px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; padding: 0 24px 60px; padding-top: var(--nav-h); }
  .hero-visual { display: none; }

  section { padding: 80px 24px; }
  .products-section { padding: 80px 24px; }
  .features-section { grid-template-columns: 1fr; padding: 80px 24px; gap: 48px; }
  .features-visual { display: none; } /* hide on mobile for space */
  .collection-strip { padding: 80px 0; }
  .strip-header { padding: 0 24px; }
  .horizontal-scroll { padding: 0 24px; }
  .testimonials { padding: 80px 24px; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .cta-section { padding: 80px 24px; }
  footer { padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .products-header { flex-direction: column; }
}

@media (max-width: 600px) {
  .products-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn-primary, .hero-actions .btn-ghost { width: 100%; text-align: center; }
  .cta-section::after { width: 300px; height: 300px; }

  /* Try-on mobile layout */
  .tryon-body { flex-direction: column; }
  .tryon-panel { width: 100%; max-height: 190px; border-left: none; border-top: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; overflow-x: auto; gap: 14px; }
  .lens-color-grid { grid-template-columns: repeat(8, 1fr); min-width: 220px; }

  .chat-fab  { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .tryon-fab { bottom: 18px; left: 18px; width: 52px; height: 52px; }
  .chat-panel { right: 0; left: 0; width: 100%; bottom: 78px; max-height: 68svh; }
}
