@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --ink: #1a0a25;
  --muted: #7a668a;
  --soft: #f8f4fb;
  --navy: #622D86;
  --blue: #00A389;
  --blue-light: #b2e8df;
  --rose: #d92662;
  --mint: #00A389;
  --accent: #FFCC00;
  --glass: rgba(255, 255, 255, 0.80);
  --glass-b: rgba(255, 255, 255, 0.92);
  --line: rgba(98, 45, 134, 0.15);
  --shadow-s: 0 4px 20px rgba(98, 45, 134, 0.08);
  --shadow-m: 0 12px 40px rgba(98, 45, 134, 0.12);
  --shadow-l: 0 28px 72px rgba(98, 45, 134, 0.16);
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --r-xl: 34px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(ellipse 130% 55% at 55% -5%, rgba(180, 140, 210, 0.40) 0%, transparent 65%),
    radial-gradient(ellipse 70% 45% at 90% 15%, rgba(160, 220, 210, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 10% 80%, rgba(240, 230, 250, 0.40) 0%, transparent 60%),
    linear-gradient(180deg, #f0eaf8 0%, #e8f4f2 100%);
  background-attachment: fixed;
}

/* Decorative cloud blobs */
body::before,
body::after {
  content: '';
  position: fixed;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

body::before {
  top: -60px;
  left: 8%;
  width: 520px;
  height: 260px;
  background: rgba(255, 255, 255, 0.60);
}

body::after {
  top: 80px;
  right: 3%;
  width: 380px;
  height: 210px;
  background: rgba(255, 255, 255, 0.48);
}

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

button,
input {
  font: inherit;
  outline: none;
}

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

/* ═══════════════════════════════════════════
   PAGE WRAPPER
═══════════════════════════════════════════ */
.site {
  position: relative;
  z-index: 1;
  width: min(1400px, calc(100% - 40px));
  margin: 20px auto 60px;
}

.glass-frame {
  border: 1.5px solid var(--glass-b);
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0.22) 100%);
  backdrop-filter: blur(36px) saturate(1.5);
  -webkit-backdrop-filter: blur(36px) saturate(1.5);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.65) inset, var(--shadow-l);
}

/* ═══════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════ */
.nav {
  height: 70px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  background: conic-gradient(from 200deg, var(--mint), var(--navy), var(--accent), var(--rose), var(--mint));
  box-shadow: 0 6px 18px rgba(98, 45, 134, 0.22);
  flex-shrink: 0;
}

.brand-text strong {
  display: block;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.brand-text span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.nav-links {
  height: 40px;
  padding: 4px 5px;
  display: flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(20px);
}

.nav-links a {
  min-width: 80px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(12, 26, 48, 0.65);
  transition: color 0.2s;
}

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

.nav-links a.active {
  background: white;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 3px 12px rgba(12, 30, 60, 0.11);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--navy);
  color: white;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(12, 30, 60, 0.22);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(12, 30, 60, 0.28);
}

.nav-cta-arrow {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
  font-size: 14px;
}

/* ═══════════════════════════════════════════
   LOGIN HERO  (index.html main section)
═══════════════════════════════════════════ */
.login-hero {
  min-height: calc(100vh - 110px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

/* LEFT — portrait + floating scan cards */
.login-visual {
  position: relative;
  overflow: visible;
  background: linear-gradient(145deg, rgba(100, 150, 210, 0.18) 0%, rgba(200, 225, 250, 0.10) 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.42);
  min-height: 600px;
  /* clip only portrait overflow, not floating cards */
  clip-path: none;
}

/* Glow halo behind portrait */
.login-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 75% at 52% 55%, rgba(255, 255, 255, 0.60) 0%, transparent 72%);
  pointer-events: none;
  z-index: 1;
}

.portrait-img {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 460px;
  height: 94%;
  object-fit: cover;
  object-position: center top;
  filter: drop-shadow(0 24px 56px rgba(12, 30, 60, 0.20));
  z-index: 2;
  /* fade bottom edge into background */
  -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 55%, transparent 100%);
}

/* Floating status chips */
.chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-b);
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-s);
  animation: chipFloat 4s ease-in-out infinite;
  white-space: nowrap;
  z-index: 10;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(90, 173, 160, 0.28);
  flex-shrink: 0;
}

/* Keep chips inside the visual pane bounds */
.chip-1 {
  top: 9%;
  left: 5%;
  animation-delay: 0s;
}

.chip-2 {
  top: 36%;
  left: 5%;
  animation-delay: 1.2s;
}

.chip-3 {
  bottom: 24%;
  left: 5%;
  animation-delay: 0.6s;
}

@keyframes chipFloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* Scan result card — floating top-right of visual pane */
.scan-float {
  position: absolute;
  top: 6%;
  right: 5%;
  width: 240px;
  padding: 16px 18px;
  border-radius: var(--r-m);
  border: 1px solid var(--glass-b);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: var(--shadow-m);
  animation: chipFloat 5s ease-in-out infinite;
  animation-delay: 0.3s;
  z-index: 10;
}

.scan-float h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--ink);
}

.sf-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: #556080;
}

.sf-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.sf-row span {
  flex-shrink: 0;
}

.sf-row strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

/* RIGHT — Login panel */
.login-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 60px;
  gap: 0;
  /* ensure panel sits above any overflow from visual side */
  position: relative;
  z-index: 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.40);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
  width: fit-content;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
}

.login-panel h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(34px, 3.8vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 12px;
}

.login-panel h1 em {
  font-style: italic;
  color: var(--blue);
}

.login-panel>p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.7;
  max-width: 380px;
  margin-bottom: 36px;
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.3px;
}

.field-group input {
  height: 48px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field-group input::placeholder {
  color: #aab8cc;
}

.field-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(111, 163, 216, 0.18);
  background: white;
}

.forgot {
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.forgot:hover {
  text-decoration: underline;
}

.btn-login {
  height: 50px;
  border-radius: var(--r-s);
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(14, 29, 58, 0.28);
  transition: transform 0.22s, box-shadow 0.22s;
  letter-spacing: -0.2px;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(14, 29, 58, 0.34);
}

/* Divider */
.or-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Demo button */
.btn-demo {
  height: 50px;
  border-radius: var(--r-s);
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: var(--shadow-s);
  backdrop-filter: blur(14px);
  transition: transform 0.22s, box-shadow 0.22s, background 0.22s;
  letter-spacing: -0.2px;
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-m);
  background: rgba(255, 255, 255, 0.90);
}

.demo-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rose), var(--blue));
  display: grid;
  place-items: center;
  font-size: 13px;
  color: white;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}

.login-footer a {
  color: var(--accent);
  font-weight: 700;
}

.login-footer a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════════════
   PLATFORM SECTION
═══════════════════════════════════════════ */
.section {
  padding: 88px 48px;
}

.section-title {
  max-width: 680px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-tag {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--rose);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.section-title h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 0.97;
  letter-spacing: -0.5px;
  color: var(--ink);
}

.section-title p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature {
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  background: var(--glass);
  box-shadow: var(--shadow-s);
  backdrop-filter: blur(18px);
  transition: transform 0.24s, box-shadow 0.24s;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
}

.feature-num {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--soft);
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 22px;
  transition: background 0.2s;
}

.feature:hover .feature-num {
  background: rgba(194, 85, 112, 0.10);
}

.feature h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 13.5px;
}

/* ═══════════════════════════════════════════
   PRODUCTS SECTION
═══════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.product-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 16px 8px;
  border-radius: var(--r-m);
  border: 1px solid var(--line);
  background: var(--glass);
  backdrop-filter: blur(18px);
  cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }

.product-card strong { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.product-card span   { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }

.recommended-card {
  overflow: hidden;
  max-width: 100%;
  box-sizing: border-box;
}

.swatch {
  width: 38px; height: 38px;
  border-radius: 999px;
  margin-bottom: 14px;
  background: var(--swatch, var(--rose));
  box-shadow: inset 0 -8px 16px rgba(0,0,0,0.18), 0 4px 10px rgba(0,0,0,0.12);
}

.product-tile strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 4px;
}

.product-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.ar-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(75, 123, 200, 0.12);
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

/* ═══════════════════════════════════════════
   SECTION DIVIDER
═══════════════════════════════════════════ */
.section-divider {
  height: 1px;
  margin: 0 48px;
  background: linear-gradient(90deg, transparent, rgba(160, 195, 235, 0.40), transparent);
}

/* ═══════════════════════════════════════════
   SCAN / LOGIN.HTML LAYOUT
═══════════════════════════════════════════ */
.scan-layout {
  min-height: calc(100vh - 110px);
  padding: 32px 36px 48px;
  display: grid;
  grid-template-columns: minmax(560px, 1.2fr) minmax(400px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.scan-hero {
  padding: 32px;
  border-radius: var(--r-l);
  background: linear-gradient(140deg, rgba(98, 45, 134, 0.96), rgba(122, 102, 138, 0.90)), #622D86;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--blue-light);
}

.scan-hero h1 {
  margin: 12px 0 10px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 0.95;
}

.scan-hero p {
  max-width: 460px;
  color: rgba(255, 255, 255, 0.70);
  line-height: 1.6;
  font-size: 14px;
}

.camera-shell {
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--r-m);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.camera-area {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 18rem), rgba(0, 0, 0, 0.18);
}

.camera-area video {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  display: none;
}

.scan-placeholder {
  width: min(260px, 46%);
  aspect-ratio: 0.78;
  border-radius: 50% 50% 42% 42%;
  border: 1px dashed rgba(255, 255, 255, 0.40);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
  font-size: 13px;
}

.camera-tools {
  padding: 14px;
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.07);
}

.camera-tools .btn-action {
  flex: 1;
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.dash-card {
  padding: 22px;
  border: 1px solid var(--glass-b);
  border-radius: var(--r-m);
  background: var(--glass);
  box-shadow: var(--shadow-s);
  backdrop-filter: blur(20px);
}

.dash-card.wide {
  grid-column: span 2;
}

.dash-card h2,
.dash-card h3 {
  margin: 0 0 14px;
  font-family: 'Playfair Display', Georgia, serif;
}

.dash-card h2 {
  font-size: 30px;
}

.dash-card h3 {
  font-size: 19px;
}

.score-ring {
  width: 150px;
  height: 150px;
  margin: 8px auto 12px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--blue) 0 84%, rgba(180, 210, 240, 0.28) 84% 100%);
}

.score-ring div {
  width: 112px;
  height: 112px;
  border-radius: inherit;
  display: grid;
  place-items: center;
  background: white;
  text-align: center;
  font-weight: 900;
  font-size: 32px;
  color: var(--ink);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
  color: #445070;
}

.row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.row strong {
  color: var(--ink);
  font-weight: 800;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  min-height: 30px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line);
  color: #3a4e70;
  font-size: 12px;
  font-weight: 700;
}

.meter {
  height: 7px;
  border-radius: 999px;
  background: rgba(180, 200, 230, 0.32);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  width: var(--value, 80%);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--blue), var(--rose));
}

/* Generic btn for scan page */
.btn {
  min-height: 46px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-s);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn.primary {
  background: var(--navy);
  color: white;
  box-shadow: 0 10px 26px rgba(14, 29, 58, 0.26);
}

.btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(14, 29, 58, 0.32);
}

.btn.light {
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.btn.light:hover {
  background: rgba(255, 255, 255, 0.90);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   VISUAL STATS STRIP
═══════════════════════════════════════════ */
.visual-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px 22px;
  background: linear-gradient(0deg, rgba(170, 205, 240, 0.38) 0%, transparent 100%);
  z-index: 8;
}

.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--glass-b);
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-s);
}

.stat-pill strong {
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
}

.stat-pill span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */
@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .login-hero { grid-template-columns: 1fr; }
  .login-visual { min-height: 420px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.42); }
  .login-panel { padding: 40px 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .scan-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site {
    width: 100%;
    margin: 0;
  }

  .glass-frame {
    border-radius: 0;
    border: 0;
  }

  .nav {
    height: auto;
    padding: 14px 18px;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .login-panel {
    padding: 28px 20px;
  }

  .section {
    padding: 60px 20px;
  }

  .feature-grid,
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dash-card.wide {
    grid-column: auto;
  }

  .section-divider {
    margin: 0 20px;
  }

  .product-color-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ═══════════════════════════════════════════
   PRODUCT PILLS (CATEGORY FILTER BAR)
═══════════════════════════════════════════ */
.product-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 36px;
}

/* Base pill — each has its own distinct tinted inactive color */
.prod-pill {
  height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.22s ease;
  white-space: nowrap;
}

/* Inactive colors — vibrant tints per category */
.prod-pill--lipstick {
  background: rgba(232, 48, 90, 0.12);
  border: 1.5px solid rgba(232, 48, 90, 0.35);
  color: #C41E3A;
  box-shadow: 0 3px 12px rgba(196, 30, 58, 0.12);
}

.prod-pill--foundation {
  background: rgba(232, 168, 124, 0.15);
  border: 1.5px solid rgba(200, 137, 92, 0.35);
  color: #9B6040;
  box-shadow: 0 3px 12px rgba(200, 137, 92, 0.12);
}

.prod-pill--blush {
  background: rgba(240, 123, 160, 0.12);
  border: 1.5px solid rgba(232, 93, 136, 0.35);
  color: #C0406E;
  box-shadow: 0 3px 12px rgba(232, 93, 136, 0.12);
}

.prod-pill--contour {
  background: rgba(139, 99, 72, 0.12);
  border: 1.5px solid rgba(107, 76, 56, 0.35);
  color: #6B4C38;
  box-shadow: 0 3px 12px rgba(107, 76, 56, 0.12);
}

.prod-pill--highlighter {
  background: rgba(255, 215, 0, 0.15);
  border: 1.5px solid rgba(232, 184, 75, 0.45);
  color: #8A6500;
  box-shadow: 0 3px 12px rgba(232, 184, 75, 0.15);
}

.prod-pill--eyeshadow {
  background: rgba(155, 89, 182, 0.12);
  border: 1.5px solid rgba(155, 89, 182, 0.35);
  color: #7D3C98;
  box-shadow: 0 3px 12px rgba(155, 89, 182, 0.12);
}

.prod-pill--bronzer {
  background: rgba(232, 160, 96, 0.15);
  border: 1.5px solid rgba(200, 120, 64, 0.35);
  color: #A05020;
  box-shadow: 0 3px 12px rgba(200, 120, 64, 0.12);
}

/* Hover lift for all */
.prod-pill:hover {
  transform: translateY(-3px);
}

/* Active pill — full gradient, white text */
.prod-pill--lipstick.active {
  background: linear-gradient(135deg, #E8305A, #C41E3A);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(196, 30, 58, 0.45);
  transform: translateY(-2px);
}

.prod-pill--foundation.active {
  background: linear-gradient(135deg, #E8A87C, #C8895C);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(200, 137, 92, 0.45);
  transform: translateY(-2px);
}

.prod-pill--blush.active {
  background: linear-gradient(135deg, #F07BA0, #E85D88);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(232, 93, 136, 0.45);
  transform: translateY(-2px);
}

.prod-pill--contour.active {
  background: linear-gradient(135deg, #8B6348, #6B4C38);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(107, 76, 56, 0.45);
  transform: translateY(-2px);
}

.prod-pill--highlighter.active {
  background: linear-gradient(135deg, #FFD700, #E8B84B);
  color: #5a4000;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(232, 184, 75, 0.50);
  transform: translateY(-2px);
}

.prod-pill--eyeshadow.active {
  background: linear-gradient(135deg, #9B59B6, #6C3483);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(155, 89, 182, 0.45);
  transform: translateY(-2px);
}

.prod-pill--bronzer.active {
  background: linear-gradient(135deg, #E8A060, #C87840);
  color: white;
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(200, 120, 64, 0.45);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════
   PRODUCT COLOR GRID
═══════════════════════════════════════════ */
.product-color-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

/* Base card */
.prod-card {
  border-radius: 22px;
  padding: 22px;
  border: 1.5px solid rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 30px rgba(12, 30, 60, 0.10);
  cursor: pointer;
  transition: transform 0.26s ease, box-shadow 0.26s ease;
  position: relative;
  overflow: hidden;
}

.prod-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.07;
  border-radius: inherit;
  transition: opacity 0.26s;
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(12, 30, 60, 0.18);
}

.prod-card:hover::before {
  opacity: 0.13;
}

/* Category accent backgrounds */
.prod-card--lipstick {
  background: linear-gradient(155deg, rgba(255, 220, 225, 0.85), rgba(255, 255, 255, 0.70));
}

.prod-card--lipstick::before {
  background: linear-gradient(135deg, #E8305A, #C41E3A);
}

.prod-card--foundation {
  background: linear-gradient(155deg, rgba(255, 235, 210, 0.85), rgba(255, 255, 255, 0.70));
}

.prod-card--foundation::before {
  background: linear-gradient(135deg, #E8A87C, #C8895C);
}

.prod-card--blush {
  background: linear-gradient(155deg, rgba(255, 210, 230, 0.85), rgba(255, 255, 255, 0.70));
}

.prod-card--blush::before {
  background: linear-gradient(135deg, #F07BA0, #E85D88);
}

.prod-card--contour {
  background: linear-gradient(155deg, rgba(220, 195, 175, 0.85), rgba(255, 255, 255, 0.70));
}

.prod-card--contour::before {
  background: linear-gradient(135deg, #8B6348, #6B4C38);
}

.prod-card--highlighter {
  background: linear-gradient(155deg, rgba(255, 245, 200, 0.85), rgba(255, 255, 255, 0.70));
}

.prod-card--highlighter::before {
  background: linear-gradient(135deg, #FFD700, #E8B84B);
}

.prod-card--eyeshadow {
  background: linear-gradient(155deg, rgba(230, 210, 255, 0.85), rgba(255, 255, 255, 0.70));
}

.prod-card--eyeshadow::before {
  background: linear-gradient(135deg, #9B59B6, #6C3483);
}

.prod-card--bronzer {
  background: linear-gradient(155deg, rgba(255, 225, 190, 0.85), rgba(255, 255, 255, 0.70));
}

.prod-card--bronzer::before {
  background: linear-gradient(135deg, #E8A060, #C87840);
}

.prod-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.prod-icon {
  font-size: 28px;
  line-height: 1;
}

.prod-live-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(12, 30, 60, 0.08);
  color: var(--muted);
}

.prod-card h3 {
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 6px;
}

.prod-card p {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 16px;
}

/* Shade dots row */
.shade-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.shade {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
  flex-shrink: 0;
}

.shade:hover {
  transform: scale(1.25);
  box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.22), 0 4px 10px rgba(0, 0, 0, 0.20);
}

.shade--more {
  background: rgba(255, 255, 255, 0.70) !important;
  border: 1.5px solid rgba(180, 200, 230, 0.50) !important;
  box-shadow: none !important;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 26px;
  border-radius: 999px;
}

/* Try in AR link */
.prod-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.70);
  border: 1px solid rgba(255, 255, 255, 0.90);
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(10px);
}

.prod-cta:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(3px);
}

@media (max-width: 1100px) {
  .product-color-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .product-color-grid {
    grid-template-columns: 1fr;
  }

  .product-pills {
    gap: 8px;
  }

  .prod-pill {
    height: 38px;
    padding: 0 14px;
    font-size: 12.5px;
  }
}