/* ============================================================
   AURÉLIE — Premium Fashion Landing
   Style: Liquid Glass · Rose + Gold · Cormorant / Montserrat
   ============================================================ */

:root {
  --color-primary: #be185d;
  --color-on-primary: #ffffff;
  --color-secondary: #ec4899;
  --color-accent: #d97706;
  --color-background: #fdf2f8;
  --bg-rgb: 253, 242, 248;   /* background as RGB for tints/scrims */
  --color-foreground: #0f172a;
  --color-muted: #fbf1f5;
  --color-border: #f7e3eb;
  --color-ring: #be185d;

  --ink-2: #5b4651;          /* secondary text */
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-brd: rgba(255, 255, 255, 0.7);
  --shadow-sm: 0 4px 20px -8px rgba(190, 24, 93, 0.18);
  --shadow-md: 0 18px 50px -24px rgba(190, 24, 93, 0.32);
  --shadow-lg: 0 40px 90px -40px rgba(190, 24, 93, 0.42);

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;
  --r-full: 999px;

  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  --font-head: "Cormorant", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
}

/* ---------- Dark theme (desaturated tonal variants, not inverted) ---------- */
[data-theme="dark"] {
  --color-primary: #f9a8d4;       /* lightened rose for text/accents on dark */
  --color-on-primary: #1a0f16;    /* dark ink rides on light-pink buttons */
  --color-secondary: #f472b6;
  --color-accent: #fbbf24;         /* warmer, lighter gold */
  --color-background: #130c11;
  --bg-rgb: 19, 12, 17;
  --color-foreground: #f7e9f1;
  --color-muted: #1e131a;
  --color-border: #321f2b;
  --color-ring: #f9a8d4;

  --ink-2: #c2a3b3;
  --glass-bg: rgba(40, 26, 35, 0.62);
  --glass-brd: rgba(255, 255, 255, 0.09);
  --shadow-sm: 0 4px 20px -8px rgba(0, 0, 0, 0.55);
  --shadow-md: 0 18px 50px -24px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 40px 90px -42px rgba(0, 0, 0, 0.75);

  color-scheme: dark;
}
/* Buttons in dark mode: keep the vivid brand gradient with white text for punch */
[data-theme="dark"] .btn--solid { background: linear-gradient(135deg, #db2777, #be185d); color: #fff; }
[data-theme="dark"] .product { background: var(--glass-bg); backdrop-filter: blur(12px); border: 1px solid var(--glass-brd); }
[data-theme="dark"] .field { background: var(--color-muted); }
[data-theme="dark"] .field input { color: var(--color-foreground); }
[data-theme="dark"] .blob { opacity: 0.28; }
[data-theme="dark"] .nav__links a:hover { background: var(--color-muted); }

/* Smooth crossfade while toggling themes (one-shot class, won't clobber hover transitions) */
html.theme-transition,
html.theme-transition * {
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease),
    color 0.5s var(--ease), fill 0.5s var(--ease), box-shadow 0.5s var(--ease) !important;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--color-foreground);
  background: var(--color-background);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  min-height: 100dvh;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2.5px solid var(--color-ring); outline-offset: 3px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
em { font-style: italic; color: var(--color-primary); }

.eyebrow {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--color-primary);
  margin-bottom: 0.9rem;
}

/* ---------- Animated background ---------- */
.bg-mesh { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; will-change: transform; }
.blob--1 { width: 46vw; height: 46vw; background: radial-gradient(circle, #f9a8d4, transparent 70%); top: -12vw; left: -8vw; animation: drift1 22s var(--ease-soft) infinite; }
.blob--2 { width: 40vw; height: 40vw; background: radial-gradient(circle, #fcd34d, transparent 70%); top: 35vh; right: -12vw; opacity: 0.42; animation: drift2 26s var(--ease-soft) infinite; }
.blob--3 { width: 38vw; height: 38vw; background: radial-gradient(circle, #f0abfc, transparent 70%); bottom: -10vw; left: 25vw; opacity: 0.4; animation: drift3 30s var(--ease-soft) infinite; }

@keyframes drift1 { 50% { transform: translate(8vw, 10vh) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(-6vw, -8vh) scale(0.92); } }
@keyframes drift3 { 50% { transform: translate(5vw, -6vh) scale(1.08); } }

/* ---------- Motion-graphics canvas ---------- */
.fx-canvas { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; opacity: 0.9; }

/* ---------- Hero background video ---------- */
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  width: 100vw; left: 50%; transform: translateX(-50%);
  overflow: hidden; border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.hero__video {
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.2s var(--ease);
}
.hero__video.ready { opacity: 0.92; }
/* Brand-tinted scrim keeps headline text fully legible over motion */
.hero__bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, var(--color-background) 0%, rgba(var(--bg-rgb), 0.92) 32%, rgba(var(--bg-rgb), 0.55) 62%, rgba(var(--bg-rgb), 0.3) 100%),
    linear-gradient(to bottom, rgba(var(--bg-rgb), 0.4), transparent 30%, rgba(var(--bg-rgb), 0.6));
}

/* ---------- Glass primitive ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow-md);
}

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; background: transparent; }
.scroll-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); transition: width 0.1s linear; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.92rem; font-weight: 600; letter-spacing: 0.02em;
  padding: 0.95rem 1.8rem; border-radius: var(--r-full);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
  will-change: transform; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn--solid { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); color: var(--color-on-primary); box-shadow: var(--shadow-sm), 0 10px 30px -10px rgba(190, 24, 93, 0.55); }
.btn--solid:hover { box-shadow: var(--shadow-md), 0 16px 40px -10px rgba(190, 24, 93, 0.6); transform: translateY(-2px); }
.btn--solid:hover svg { transform: translateX(4px); }
.btn--ghost { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--color-border); color: var(--color-foreground); }
.btn--ghost:hover { background: #fff; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--sm { padding: 0.65rem 1.25rem; font-size: 0.85rem; }
.btn:active { transform: translateY(0) scale(0.97); }

/* ---------- Navbar ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem clamp(1rem, 4vw, 2.5rem); transition: padding 0.4s var(--ease); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0.7rem 1.4rem; border-radius: var(--r-full);
  background: transparent; border: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
}
.nav.scrolled { padding-top: 0.6rem; padding-bottom: 0.6rem; }
.nav.scrolled .nav__inner {
  background: var(--glass-bg);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-color: var(--glass-brd); box-shadow: var(--shadow-md);
}

.brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-head); }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: var(--color-on-primary); font-weight: 700; font-size: 1.25rem; box-shadow: var(--shadow-sm); }
.brand__word { font-size: 1.4rem; font-weight: 600; letter-spacing: 0.14em; }

.nav__links { display: flex; gap: 0.4rem; }
.nav__links a { position: relative; padding: 0.5rem 0.9rem; font-size: 0.9rem; font-weight: 500; border-radius: var(--r-full); transition: color 0.25s var(--ease), background 0.25s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 50%; bottom: 0.35rem; width: 0; height: 2px; background: var(--color-primary); border-radius: 2px; transform: translateX(-50%); transition: width 0.3s var(--ease); }
.nav__links a:hover { color: var(--color-primary); }
.nav__links a:hover::after { width: 40%; }

.nav__actions { display: flex; align-items: center; gap: 0.5rem; }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--color-foreground); transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease); }
.icon-btn svg { width: 21px; height: 21px; }
.icon-btn:hover { background: var(--color-muted); color: var(--color-primary); transform: translateY(-1px); }
.icon-btn--cart { position: relative; }
.cart-count { position: absolute; top: 4px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-full); background: var(--color-accent); color: var(--color-on-primary); font-size: 0.66rem; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform 0.3s var(--ease); }
.cart-count.show { transform: scale(1); }
.cart-count.pop { animation: pop 0.4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.4); } }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.hamburger span { width: 22px; height: 2px; background: var(--color-foreground); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(7rem, 14vh, 11rem) clamp(1rem, 4vw, 2.5rem) 5rem;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title { margin-bottom: 1.3rem; }
.hero__lede { font-size: 1.1rem; color: var(--ink-2); max-width: 46ch; margin-bottom: 2rem; }
.hero__cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }

.hero__stats { display: flex; gap: clamp(1.5rem, 4vw, 3rem); }
.stat { display: flex; flex-direction: column; }
.stat__num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; line-height: 1; display: inline; }
.stat__suffix { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--color-accent); }
.stat p { font-size: 0.82rem; color: var(--ink-2); margin-top: 0.3rem; }
.stat__num, .stat__suffix { display: inline; }

/* Hero visual */
.hero__visual { position: relative; }
.hero__card { border-radius: var(--r-lg); overflow: hidden; padding: 10px; will-change: transform; }
.hero__card img { border-radius: calc(var(--r-lg) - 10px); width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.hero__price { position: absolute; left: 28px; bottom: 28px; padding: 0.7rem 1.1rem; border-radius: var(--r-md); display: flex; flex-direction: column; line-height: 1.2; }
.hero__price span { font-size: 0.72rem; color: var(--ink-2); letter-spacing: 0.04em; }
.hero__price strong { font-family: var(--font-head); font-size: 1.4rem; }
.hero__chip { position: absolute; display: flex; align-items: center; gap: 0.5rem; padding: 0.65rem 1rem; border-radius: var(--r-full); font-size: 0.8rem; font-weight: 500; box-shadow: var(--shadow-sm); }
.hero__chip svg { width: 16px; height: 16px; color: var(--color-primary); }
.hero__chip { top: 26px; right: -8px; }
.hero__chip--2 { top: auto; bottom: 90px; right: auto; left: -22px; }
.hero__chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); animation: ping 1.8s var(--ease-soft) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding: 1.4rem 0; border-block: 1px solid var(--color-border); margin: 2rem 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 2.5rem; width: max-content; animation: scroll 26s linear infinite; }
.marquee__track span { font-family: var(--font-head); font-size: 1.5rem; font-weight: 500; color: var(--color-foreground); white-space: nowrap; opacity: 0.75; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(3.5rem, 8vh, 6rem) clamp(1rem, 4vw, 2.5rem); }
.section__head { text-align: center; max-width: 36ch; margin: 0 auto 3rem; }
.section__head .eyebrow { display: block; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1.1rem; }
.bento__item { position: relative; overflow: hidden; border-radius: var(--r-lg); background-image: var(--img); background-size: cover; background-position: center; box-shadow: var(--shadow-sm); transition: box-shadow 0.4s var(--ease); will-change: transform; }
.bento__item::before { content: ""; position: absolute; inset: 0; background-image: inherit; background-size: cover; background-position: center; transition: transform 0.7s var(--ease); }
.bento__item:hover::before { transform: scale(1.08); }
.bento__item--lg { grid-column: span 2; grid-row: span 2; }
.bento__item--wide { grid-column: span 2; }
.bento__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15, 23, 42, 0.78) 0%, rgba(15, 23, 42, 0.15) 50%, transparent 100%); z-index: 1; }
.bento__label { position: absolute; inset: auto 0 0 0; z-index: 2; padding: 1.5rem; color: #fff; }
.bento__label h3 { color: #fff; margin-bottom: 0.2rem; }
.bento__label p { font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.5rem; }
.bento__item:hover { box-shadow: var(--shadow-lg); }
.tag { display: inline-block; padding: 0.25rem 0.7rem; border-radius: var(--r-full); background: rgba(255, 255, 255, 0.22); backdrop-filter: blur(6px); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; margin-bottom: 0.7rem; }
.link-arrow { font-family: var(--font-body); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em; opacity: 0; transform: translateX(-8px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); display: inline-block; }
.bento__item:hover .link-arrow { opacity: 1; transform: translateX(0); }

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.product { border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); will-change: transform; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product__media { position: relative; overflow: hidden; aspect-ratio: 4/5; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.product:hover .product__media img { transform: scale(1.07); }
.product__badge { position: absolute; top: 12px; left: 12px; padding: 0.3rem 0.7rem; border-radius: var(--r-full); background: var(--color-accent); color: var(--color-on-primary); font-size: 0.66rem; font-weight: 700; letter-spacing: 0.05em; z-index: 2; }
.product__fav { position: absolute; top: 10px; right: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(6px); display: grid; place-items: center; color: var(--color-foreground); opacity: 0; transform: translateY(-6px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease); z-index: 2; }
.product__fav svg { width: 18px; height: 18px; }
.product:hover .product__fav { opacity: 1; transform: translateY(0); }
.product__fav:hover, .product__fav.active { color: var(--color-primary); background: #fff; }
.product__fav.active svg { fill: var(--color-primary); }
.product__add { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 0.75rem; border-radius: var(--r-full); background: var(--color-foreground); color: var(--color-background); font-size: 0.82rem; font-weight: 600; text-align: center; opacity: 0; transform: translateY(12px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease); z-index: 2; }
.product:hover .product__add { opacity: 1; transform: translateY(0); }
.product__add:hover { background: var(--color-primary); }
.product__body { padding: 1rem 1.1rem 1.2rem; }
.product__cat { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.product__name { font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; margin: 0.15rem 0 0.5rem; }
.product__row { display: flex; align-items: center; justify-content: space-between; }
.product__price { font-weight: 600; font-size: 1rem; }
.product__price del { color: var(--ink-2); font-weight: 400; font-size: 0.85rem; margin-left: 0.4rem; }
.product__stars { color: var(--color-accent); font-size: 0.8rem; letter-spacing: 1px; }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.feature { padding: 2.2rem 1.8rem; border-radius: var(--r-lg); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature__icon { width: 58px; height: 58px; border-radius: var(--r-md); display: grid; place-items: center; background: linear-gradient(135deg, rgba(190, 24, 93, 0.12), rgba(217, 119, 6, 0.12)); color: var(--color-primary); margin-bottom: 1.3rem; }
.feature__icon svg { width: 28px; height: 28px; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--ink-2); font-size: 0.92rem; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.review { padding: 2rem 1.8rem; border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 1rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.review:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.stars { color: var(--color-accent); letter-spacing: 2px; font-size: 1rem; }
.review blockquote { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.4; font-weight: 500; }
.review figcaption { display: flex; align-items: center; gap: 0.75rem; margin-top: auto; }
.review figcaption img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review figcaption span { display: flex; flex-direction: column; font-size: 0.8rem; color: var(--ink-2); }
.review figcaption strong { font-size: 0.92rem; color: var(--color-foreground); }

/* ---------- CTA / Newsletter ---------- */
.cta { position: relative; max-width: 840px; margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem); border-radius: var(--r-lg); text-align: center; overflow: hidden; }
.cta__glow { position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(236, 72, 153, 0.25), transparent 55%), radial-gradient(circle at 80% 90%, rgba(217, 119, 6, 0.22), transparent 50%); z-index: 0; }
.cta > * { position: relative; z-index: 1; }
.cta .eyebrow { display: block; }
.cta__lede { color: var(--ink-2); max-width: 46ch; margin: 0.8rem auto 2rem; }
.cta__form { max-width: 480px; margin: 0 auto; }
.field { display: flex; gap: 0.6rem; padding: 0.4rem; border-radius: var(--r-full); background: #fff; border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); transition: box-shadow 0.3s var(--ease), border-color 0.3s var(--ease); }
.field:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(190, 24, 93, 0.12); }
.field input { flex: 1; border: none; background: none; padding: 0.7rem 1rem; font-size: 0.95rem; min-width: 0; }
.field input:focus { outline: none; }
.field__msg { font-size: 0.82rem; margin-top: 0.8rem; min-height: 1.2em; transition: color 0.3s; }
.field__msg.ok { color: #15803d; }
.field__msg.err { color: var(--color-primary); }

/* ---------- Footer ---------- */
.footer { max-width: var(--maxw); margin: 4rem auto 0; padding: clamp(3rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--color-border); }
.footer__brand p { color: var(--ink-2); font-size: 0.9rem; max-width: 32ch; margin: 1rem 0 1.3rem; }
.socials { display: flex; gap: 0.4rem; }
.footer__col h4 { font-family: var(--font-body); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__col a { display: block; color: var(--ink-2); font-size: 0.9rem; padding: 0.3rem 0; transition: color 0.25s var(--ease), transform 0.25s var(--ease); }
.footer__col a:hover { color: var(--color-primary); transform: translateX(4px); }
.footer__bar { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem; padding-top: 1.5rem; font-size: 0.82rem; color: var(--ink-2); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 120%); z-index: 300; padding: 0.9rem 1.4rem; border-radius: var(--r-full); background: var(--color-foreground); color: var(--color-background); font-size: 0.88rem; font-weight: 500; box-shadow: var(--shadow-lg); transition: transform 0.45s var(--ease); display: flex; align-items: center; gap: 0.6rem; max-width: 90vw; }
.toast::before { color: var(--color-on-primary); }
.toast.show { transform: translate(-50%, 0); }
.toast::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--color-accent); font-size: 0.7rem; }

/* ---------- Mobile menu panel ---------- */
.nav__links { transition: opacity 0.3s var(--ease); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-reveal-delay="1"] { transition-delay: 0.08s; }
.reveal[data-reveal-delay="2"] { transition-delay: 0.16s; }
.reveal[data-reveal-delay="3"] { transition-delay: 0.24s; }
.reveal[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding-top: 8rem; }
  .hero__visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .bento__item--lg { grid-column: span 2; grid-row: span 1; aspect-ratio: auto; }
  .bento__item--wide { grid-column: span 2; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .features, .reviews { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav__links { position: fixed; inset: 0 0 auto 0; top: 0; flex-direction: column; gap: 0.5rem; padding: 6rem 1.5rem 2rem; background: var(--glass-bg); backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%); transform: translateY(-110%); transition: transform 0.45s var(--ease); box-shadow: var(--shadow-lg); border-bottom: 1px solid var(--glass-brd); z-index: -1; }
  .nav__links.open { transform: translateY(0); }
  .nav__links a { font-size: 1.1rem; padding: 0.8rem 1rem; }
  .hamburger { display: flex; }
  .nav__cta { display: none; }
  .hero__stats { gap: 1.5rem; }
  .stat__num { font-size: 1.7rem; }
  .products { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
  .footer__brand { grid-column: span 2; }
  .field { flex-direction: column; background: none; border: none; box-shadow: none; padding: 0; gap: 0.7rem; }
  .field input { background: #fff; border: 1px solid var(--color-border); border-radius: var(--r-full); }
  .field .btn { justify-content: center; }
  .review blockquote { font-size: 1.15rem; }
}

@media (max-width: 420px) {
  .products { grid-template-columns: 1fr; }
  .hero__chip--2 { left: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .blob { animation: none; }
  .marquee__track { animation: none; }
  .hero__bg { display: none; }
  .fx-canvas { display: none; }
}
