
/* ═══════════════════════════════════════════════════════════════
   DICE – Premium LIGHT Theme Design System
   Brand: Deep Corporate Blue + Cyan + Orange on White
   Pattern: Clean Corporate + Glassmorphism + Rich Micro-Interactions
════════════════════════════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  /* Brand Colors */
  --color-navy:         #001B3D;
  --color-blue-deep:    #003366;
  --color-blue-mid:     #0A4D8C;
  --color-blue:         #0B6FD4;
  --color-blue-light:   #E8F2FF;
  --color-cyan:         #00B4D8;
  --color-cyan-light:   #E0F7FA;
  --color-orange:       #FF6B1A;
  --color-orange-light: #FFF3EC;
  --color-purple:       #6C3FC5;
  --color-purple-light: #F3EFFF;
  --color-green:        #059669;
  --color-green-light:  #ECFDF5;
  --color-amber:        #D97706;
  --color-amber-light:  #FFFBEB;
  --color-red-light:    #FEF2F2;

  /* Neutrals - LIGHT */
  --color-white:      #FFFFFF;
  --color-bg:         #F5F7FA;
  --color-bg-alt:     #EFF3FA;
  --color-surface:    #FFFFFF;
  --color-border:     #DDE3EF;
  --color-border-med: #C8D2E8;
  --color-gray-50:    #F8FAFC;
  --color-gray-100:   #F1F5F9;
  --color-gray-200:   #E2E8F0;
  --color-gray-300:   #CBD5E1;
  --color-gray-400:   #94A3B8;
  --color-gray-500:   #64748B;
  --color-gray-600:   #475569;
  --color-gray-700:   #334155;
  --color-gray-800:   #1E293B;
  --color-gray-900:   #0F172A;

  /* Text */
  --text-primary:   #001B3D;
  --text-secondary: #475569;
  --text-muted:     #94A3B8;

  /* Status */
  --color-pass:  #059669;
  --color-warn:  #D97706;
  --color-fail:  #DC2626;

  /* Typography */
  --font-primary: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Spacing (8px rhythm) */
  --sp-1:4px; --sp-2:8px; --sp-3:12px; --sp-4:16px;
  --sp-5:20px; --sp-6:24px; --sp-7:28px; --sp-8:32px;
  --sp-10:40px; --sp-12:48px; --sp-16:64px; --sp-20:80px;

  /* Radius */
  --r-sm:6px; --r-md:12px; --r-lg:18px; --r-xl:24px; --r-2xl:32px; --r-full:9999px;

  /* Shadows - Light theme */
  --shadow-xs:    0 1px 3px rgba(0,51,102,0.06), 0 1px 2px rgba(0,51,102,0.04);
  --shadow-sm:    0 2px 8px rgba(0,51,102,0.08), 0 1px 3px rgba(0,51,102,0.06);
  --shadow-md:    0 4px 20px rgba(0,51,102,0.10), 0 2px 8px rgba(0,51,102,0.06);
  --shadow-lg:    0 8px 40px rgba(0,51,102,0.12), 0 4px 16px rgba(0,51,102,0.08);
  --shadow-xl:    0 20px 60px rgba(0,51,102,0.15), 0 8px 24px rgba(0,51,102,0.10);
  --shadow-blue:  0 8px 32px rgba(11,111,212,0.25);
  --shadow-cyan:  0 8px 32px rgba(0,180,216,0.25);
  --shadow-orange:0 8px 32px rgba(255,107,26,0.25);

  /* Transitions */
  --t-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --t-mid:  250ms cubic-bezier(0.4,0,0.2,1);
  --t-slow: 400ms cubic-bezier(0.4,0,0.2,1);
  --t-spring: 400ms cubic-bezier(0.34,1.56,0.64,1);

  --header-h: 68px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
body {
  background: var(--color-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
input, select, textarea { font-family: inherit; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.form-status {
  min-height: 1px;
  margin-bottom: var(--sp-3);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-blue-deep);
}
.form-status.error {
  color: var(--color-fail);
}
.form-status.success {
  color: var(--color-pass);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-blue-mid); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-blue); }

/* Focus ring */
:focus-visible { outline: 2px solid var(--color-blue); outline-offset: 3px; border-radius: var(--r-sm); }

/* ════════════════════════════════════════
   CARD COMPONENT
════════════════════════════════════════ */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-blue);
}

/* glass-card alias for compatibility */
.glass-card {
  background: var(--color-surface);
  border: 1px solid rgba(11,111,212,0.15);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02);
  transition: transform var(--t-mid), box-shadow var(--t-mid), border-color var(--t-mid);
}
.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,180,216,0.12), 0 2px 6px rgba(0,0,0,0.04);
  border-color: rgba(11,111,212,0.4);
}

/* ════════════════════════════════════════
   GLOBAL HEADER
════════════════════════════════════════ */
.global-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(250, 245, 255, 0.65); /* Glassmorphism #FAF5FF */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15); /* Purple primary border */
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  transition: all var(--t-mid);
}
.global-header.scrolled {
  background: rgba(250, 245, 255, 0.85);
  box-shadow: 0 4px 30px rgba(124, 58, 237, 0.08);
}
.header-inner {
  max-width: 1440px; margin: 0 auto; height: 100%;
  padding: 0 var(--sp-8);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6);
}
.header-left {
  display: flex; align-items: center; gap: var(--sp-2); flex-shrink: 0;
}
.header-right {
  display: flex; align-items: center; gap: var(--sp-4); flex-shrink: 0;
}

/* Parent Badge */
.parent-badge {
  display: flex; align-items: center; gap: var(--sp-2);
  margin-left: 10px;
  padding: 5px 14px;
  background: var(--color-blue-light);
  border: 1px solid rgba(11,111,212,0.2);
  border-radius: var(--r-full);
  font-size: 11.5px; font-family: var(--font-primary); font-weight: 600;
  color: var(--color-blue-deep); white-space: nowrap; flex-shrink: 0;
  transition: all var(--t-fast);
}
.parent-badge:hover {
  background: var(--color-blue); color: white;
  border-color: var(--color-blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}
.parent-badge-icon {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--color-blue-deep), var(--color-blue));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; flex-shrink: 0;
}
.parent-badge:hover .parent-badge-icon { background: rgba(255,255,255,0.2); }
.badge-label { color: var(--color-gray-500); font-weight: 400; }
.parent-badge:hover .badge-label { color: rgba(255,255,255,0.8); }
.badge-name { color: var(--color-blue); font-weight: 700; }
.parent-badge:hover .badge-name { color: white; }
.badge-arrow { color: var(--color-gray-400); }
.parent-badge:hover .badge-arrow { color: white; }

/* Product Logo */
.product-logo { display: flex; align-items: center; gap: 0px; flex-shrink: 0; -webkit-tap-highlight-color: transparent; outline: none; }
.dice-logo-mark {
  position: relative; width: 62px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--t-spring);
}
.dice-logo-mark svg { width: 100%; height: 100%; }
.dice-logo-mark.sm { width: 54px; height: 26px; }

.dice-logo-col-1 { fill: #999999; }
.dice-logo-col-2 { fill: #777777; }
.dice-logo-col-3 { fill: #555555; }
.dice-logo-col-4 { fill: #222222; }
.dice-logo-d { fill: #000000; }

.product-logo-text { display: flex; flex-direction: column; gap: 1px; margin-top: 3px; }
.product-name {
  font-family: var(--font-primary); font-weight: 800; font-size: 19px;
  letter-spacing: -0.5px; color: var(--text-primary); line-height: 1;
}
.product-tagline { font-size: 9.5px; color: var(--text-muted); letter-spacing: 0.2px; line-height: 1.2; }

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 2px; justify-content: center; margin: 0 auto; flex-shrink: 0; }
.nav-item {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: var(--r-md);
  font-size: 12.5px; font-weight: 600; color: var(--text-secondary);
  transition: all var(--t-fast); cursor: pointer;
  background: transparent; border: none; outline: none;
  white-space: nowrap; position: relative;
}
.nav-item::after {
  content: ''; position: absolute; bottom: 0; left: 50%; right: 50%;
  height: 2px; background: #7C3AED;
  border-radius: 2px; transition: all var(--t-mid);
}
.nav-item:hover { color: var(--text-primary); background: #F7F3FD; }
.nav-item.active {
  color: #7C3AED; background: #F7F3FD;
  font-weight: 600;
}
.nav-item.active::after { left: 12px; right: 12px; }
.nav-item svg { transition: transform var(--t-fast); }
.nav-item:hover svg { transform: scale(1.1); }

/* CTA Button */
.btn-header-secondary {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: rgba(11, 111, 212, 0.06);
  color: var(--color-blue); font-size: 13px; font-weight: 700;
  font-family: var(--font-primary); border-radius: var(--r-full);
  border: 1px solid rgba(11, 111, 212, 0.2);
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--t-fast);
  cursor: pointer; margin-right: 12px;
}
.btn-header-secondary:hover { 
  background: rgba(11, 111, 212, 0.12); 
  border-color: rgba(11, 111, 212, 0.3);
  transform: translateY(-2px);
}
.btn-header-secondary:active { transform: translateY(0); }

.cta-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--color-orange), #E85A0A);
  color: white; font-size: 13px; font-weight: 700;
  font-family: var(--font-primary); border-radius: var(--r-full);
  white-space: nowrap; flex-shrink: 0;
  transition: all var(--t-fast); box-shadow: var(--shadow-orange);
  position: relative; overflow: hidden;
}
.cta-btn::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--t-fast);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,107,26,0.4); }
.cta-btn:hover::after { background: rgba(255,255,255,0.08); }
.cta-btn:active { transform: translateY(0); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; border-radius: var(--r-sm); }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all var(--t-fast); }

/* Mobile Menu */
.mobile-menu {
  background: white; border-top: 1px solid var(--color-border);
  padding: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-2);
  box-shadow: var(--shadow-md);
}
.mob-nav-item {
  padding: 12px 16px; color: var(--text-secondary); font-size: 14px; font-weight: 500;
  border-radius: var(--r-md); text-align: left; transition: all var(--t-fast);
}
.mob-nav-item:hover { background: var(--color-blue-light); color: var(--color-blue); }
.mob-cta-btn {
  margin-top: var(--sp-2); padding: 12px;
  background: linear-gradient(135deg, var(--color-orange), #E85A0A);
  color: white; font-size: 14px; font-weight: 700; border-radius: var(--r-md);
}

/* ════════════════════════════════════════
   PAGE CONTAINER & PAGES
════════════════════════════════════════ */
.page-container { padding-top: var(--header-h); min-height: 100vh; }
.page { animation: page-enter 0.45s cubic-bezier(0.4,0,0.2,1); }
@keyframes page-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.section-container { max-width: 1200px; margin: 0 auto; padding: var(--sp-16) var(--sp-8); }

.section-label {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--color-blue); margin-bottom: var(--sp-4);
}
.section-label::before {
  content: ''; width: 28px; height: 3px;
  background: linear-gradient(90deg, var(--color-blue), var(--color-cyan));
  border-radius: 2px;
}
.section-heading {
  font-family: var(--font-primary);
  font-size: clamp(28px,4vw,44px); font-weight: 800;
  line-height: 1.12; letter-spacing: -1px;
  color: var(--text-primary); margin-bottom: var(--sp-4);
}
.section-sub {
  font-size: 16px; color: var(--text-secondary); max-width: 660px;
  line-height: 1.75; margin-bottom: var(--sp-10);
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin: 0 0 28px;
  padding-top: 4px;
}

.feature-pills a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 18px 26px;
  border: 1px solid rgba(107,188,255,.32);
  background: rgba(8,20,40,.45);
  color: #eaf5ff;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--color-blue), var(--color-blue-mid));
  color: white; font-size: 14px; font-weight: 700;
  font-family: var(--font-primary); border-radius: var(--r-full);
  transition: all var(--t-mid); box-shadow: var(--shadow-blue); white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--color-cyan), var(--color-blue));
  opacity: 0; transition: opacity var(--t-mid);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(11,111,212,0.4); }
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 12px 28px;
  background: white; color: var(--color-blue);
  font-size: 14px; font-weight: 600; font-family: var(--font-primary);
  border-radius: var(--r-full);
  border: 2px solid var(--color-blue);
  transition: all var(--t-mid);
}
.btn-secondary:hover { background: var(--color-blue); color: white; transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.full-width { width: 100%; }

/* Ripple effect */
.ripple {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transform: scale(0);
  animation: ripple-anim 0.6s linear;
  pointer-events: none;
}
@keyframes ripple-anim {
  to { transform: scale(4); opacity: 0; }
}

/* ════════════════════════════════════════
   PULSE DOT
════════════════════════════════════════ */
.pulse-dot {
  display: inline-block; width: 8px; height: 8px;
  background: var(--color-green); border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
}
.pulse-dot.sm { width: 6px; height: 6px; }
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(5,150,105,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(5,150,105,0); }
  100% { box-shadow: 0 0 0 0 rgba(5,150,105,0); }
}

/* ════════════════════════════════════════
   HERO SECTION
════════════════════════════════════════ */
.hero-section {
  position: relative;
  min-height: 90vh;
  display: grid; 
  grid-template-columns: 55% 45%;
  align-items: center;
  max-width: 1440px; 
  margin: 0 auto;
  overflow: hidden;
}

.hero-content {
  z-index: 10;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: clamp(2rem, 5vw, 6rem);
  padding-right: 3rem;
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 620px;
  height: clamp(460px, 58vw, 760px);
}

.hero-visual canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Animated background blobs */
.hero-bg-glow {
  position: absolute; top: -120px; right: -100px;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse,
    rgba(0,180,216,0.12) 0%,
    rgba(11,111,212,0.06) 40%,
    transparent 70%);
  border-radius: 50%;
  animation: hero-blob 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hero-blob {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-30px,20px) scale(1.05); }
  66% { transform: translate(20px,-30px) scale(0.95); }
}

.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(11,111,212,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,111,212,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at 65% 45%, black 0%, transparent 70%);
}

/* Floating particles */
#hero-particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  animation: float-particle linear infinite;
  opacity: 0;
}
@keyframes float-particle {
  0% { transform: translateY(100%) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.hero-content { flex: 1; max-width: 620px; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--color-blue-light), rgba(0,180,216,0.1));
  border: 1px solid rgba(11,111,212,0.2);
  border-radius: var(--r-full);
  font-size: 12.5px; font-weight: 600; color: var(--color-blue);
  margin-bottom: var(--sp-6); animation: badge-enter 0.7s ease both;
}
@keyframes badge-enter { from { opacity:0; transform: translateX(-24px); } to { opacity:1; transform: translateX(0); } }

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(38px,5.5vw,64px); font-weight: 800;
  line-height: 1.15; letter-spacing: -2px;
  color: var(--text-primary); margin-bottom: var(--sp-6);
  animation: hero-up 0.7s ease 0.1s both;
}
@keyframes hero-up { from { opacity:0; transform: translateY(28px); } to { opacity:1; transform: translateY(0); } }

.hero-title-gradient {
  background: linear-gradient(135deg, var(--color-blue), var(--color-cyan) 50%, var(--color-orange));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: 17px; color: var(--text-secondary); line-height: 1.8;
  margin-bottom: var(--sp-8); animation: hero-up 0.7s ease 0.2s both;
}
.hero-subtitle strong { color: var(--text-primary); }

.hero-actions {
  display: flex; align-items: center; gap: var(--sp-4); flex-wrap: wrap;
  margin-bottom: var(--sp-8); animation: hero-up 0.7s ease 0.3s both;
}

.hero-trust-bar {
  display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap;
  animation: hero-up 0.7s ease 0.4s both;
}
.trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-muted); font-weight: 500;
}
.trust-check { color: var(--color-green); font-weight: 700; }
.trust-divider { color: var(--color-gray-300); }

/* ── Scanner Frame (Hero Visual) ── */
.hero-visual {
  flex: 0 0 400px; position: relative; z-index: 2;
}
.scanner-frame {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-xl); padding: var(--sp-5);
  box-shadow: var(--shadow-xl);
  animation: hero-up 0.8s ease 0.5s both;
  position: relative;
  transition: transform var(--t-mid);
}
.scanner-frame:hover { transform: translateY(-6px) rotate(-0.5deg); }

.scanner-corner {
  position: absolute; width: 22px; height: 22px;
  border-color: var(--color-blue); border-style: solid;
  transition: border-color var(--t-mid);
}
.scanner-frame:hover .scanner-corner { border-color: var(--color-cyan); }
.scanner-corner.tl { top: 14px; left: 14px; border-width: 2.5px 0 0 2.5px; border-top-left-radius: 4px; }
.scanner-corner.tr { top: 14px; right: 14px; border-width: 2.5px 2.5px 0 0; border-top-right-radius: 4px; }
.scanner-corner.bl { bottom: 14px; left: 14px; border-width: 0 0 2.5px 2.5px; border-bottom-left-radius: 4px; }
.scanner-corner.br { bottom: 14px; right: 14px; border-width: 0 2.5px 2.5px 0; border-bottom-right-radius: 4px; }

.scanner-product-card {
  display: flex; align-items: center; gap: var(--sp-3);
  background: var(--color-blue-light); border: 1px solid rgba(11,111,212,0.15);
  border-radius: var(--r-md); padding: var(--sp-4); margin-bottom: var(--sp-4);
}
.scanner-product-img {
  width: 56px; height: 56px; background: white;
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); flex-shrink: 0;
}
.sprod-name { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.sprod-cat { font-size: 11px; color: var(--color-blue); font-weight: 600; }

.scanner-beam {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-blue), var(--color-cyan), transparent);
  border-radius: 2px; margin-bottom: var(--sp-4);
  animation: beam-scan 2.5s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(0,180,216,0.5);
}
@keyframes beam-scan {
  0%,100% { opacity: 1; transform: scaleX(0.3); }
  50% { opacity: 0.8; transform: scaleX(1); }
}
.scanner-results { display: flex; flex-direction: column; gap: var(--sp-2); }
.scan-result-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 9px var(--sp-3);
  background: var(--color-gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--r-sm);
  animation: result-slide 0.4s ease both;
  transition: all var(--t-fast);
  cursor: default;
}
.scan-result-item:hover { background: var(--color-blue-light); border-color: rgba(11,111,212,0.2); transform: translateX(4px); }
.scan-result-item.r1 { animation-delay: 0.7s; }
.scan-result-item.r2 { animation-delay: 1.0s; }
.scan-result-item.r3 { animation-delay: 1.3s; }
.scan-result-item.r4 { animation-delay: 1.6s; }
@keyframes result-slide { from { opacity:0; transform: translateX(16px); } to { opacity:1; transform: translateX(0); } }

.scan-badge {
  padding: 3px 9px; border-radius: var(--r-full);
  font-size: 9px; font-weight: 800; letter-spacing: 0.5px; flex-shrink: 0;
  font-family: var(--font-mono);
}
.badge-pass { background: var(--color-green-light); color: var(--color-green); border: 1px solid rgba(5,150,105,0.25); }
.badge-warn { background: var(--color-amber-light); color: var(--color-amber); border: 1px solid rgba(217,119,6,0.25); }
.badge-fail { background: var(--color-red-light); color: var(--color-fail); border: 1px solid rgba(220,38,38,0.2); }
.scan-label { flex: 1; font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.scan-detail { font-size: 10.5px; color: var(--text-muted); font-family: var(--font-mono); }

/* ════════════════════════════════════════
   METRICS GRID
════════════════════════════════════════ */
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5); margin-bottom: var(--sp-8);
}
.metric-card {
  padding: var(--sp-6); text-align: center;
  position: relative; overflow: hidden;
}
.metric-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px; opacity: 0; transition: opacity var(--t-mid);
}
.metric-card:hover::before { opacity: 1; }
.metric-card:nth-child(1)::before { background: linear-gradient(90deg, var(--color-blue), var(--color-cyan)); }
.metric-card:nth-child(2)::before { background: linear-gradient(90deg, var(--color-cyan), #00E5FF); }
.metric-card:nth-child(3)::before { background: linear-gradient(90deg, var(--color-orange), #FFB088); }
.metric-card:nth-child(4)::before { background: linear-gradient(90deg, var(--color-purple), #A78BFA); }

.metric-icon {
  width: 52px; height: 52px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--sp-4);
  transition: transform var(--t-spring);
}
.metric-card:hover .metric-icon { transform: scale(1.12) rotate(-5deg); }
.icon-blue   { background: var(--color-blue-light); color: var(--color-blue); border: 1px solid rgba(11,111,212,0.2); }
.icon-cyan   { background: var(--color-cyan-light); color: var(--color-cyan); border: 1px solid rgba(0,180,216,0.2); }
.icon-orange { background: var(--color-orange-light); color: var(--color-orange); border: 1px solid rgba(255,107,26,0.2); }
.icon-purple { background: var(--color-purple-light); color: var(--color-purple); border: 1px solid rgba(108,63,197,0.2); }

.metric-value {
  font-family: var(--font-primary); font-size: 40px; font-weight: 800;
  letter-spacing: -1.5px; color: var(--text-primary); line-height: 1; margin-bottom: var(--sp-2);
}
.metric-label { font-size: 13px; color: var(--text-muted); font-weight: 500; margin-bottom: var(--sp-2); }
.metric-trend { font-size: 12px; font-weight: 600; }
.trend-up { color: var(--color-green); }

/* ════════════════════════════════════════
   COMPLIANCE METERS
════════════════════════════════════════ */
.compliance-meters { padding: var(--sp-8); margin-bottom: var(--sp-8); }
.meters-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.meters-title { font-family: var(--font-primary); font-size: 19px; font-weight: 700; color: var(--text-primary); }
.live-badge {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 11px; font-weight: 600; color: var(--color-green);
  background: var(--color-green-light); border: 1px solid rgba(5,150,105,0.25);
  padding: 4px 11px; border-radius: var(--r-full);
}
.meters-grid { display: flex; flex-direction: column; gap: var(--sp-5); }
.meter-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: var(--sp-4); }
.meter-info { display: flex; align-items: center; gap: var(--sp-3); }
.meter-region { font-size: 13.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.meter-tooltip {
  font-size: 10.5px; font-weight: 700; color: var(--color-blue);
  background: var(--color-blue-light); border: 1px solid rgba(11,111,212,0.2);
  padding: 2px 9px; border-radius: var(--r-full);
  cursor: help; position: relative; white-space: nowrap; transition: all var(--t-fast);
}
.meter-tooltip:hover, .meter-tooltip:focus { background: var(--color-blue); color: white; }
.meter-tooltip::after {
  content: attr(data-tooltip);
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  background: var(--text-primary); color: white;
  font-size: 12px; font-weight: 400; padding: 10px 14px;
  border-radius: var(--r-md); white-space: normal; max-width: 280px;
  text-align: center; opacity: 0; pointer-events: none;
  transition: opacity var(--t-fast), transform var(--t-fast);
  z-index: 100; line-height: 1.5; box-shadow: var(--shadow-xl);
  transform: translateX(-50%) translateY(6px);
}
.meter-tooltip:hover::after, .meter-tooltip:focus::after {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.meter-bar-wrap { display: flex; align-items: center; gap: var(--sp-3); }
.meter-bar {
  flex: 1; height: 10px; background: var(--color-gray-100);
  border-radius: var(--r-full); overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
}
.meter-fill {
  height: 100%; border-radius: var(--r-full);
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
}
.meter-fill::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
  animation: shimmer 2.5s ease-in-out infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.bar-blue   { background: linear-gradient(90deg, var(--color-blue-mid), var(--color-blue)); }
.bar-cyan   { background: linear-gradient(90deg, var(--color-cyan), #00E5FF); }
.bar-orange { background: linear-gradient(90deg, var(--color-orange), #FFB088); }
.bar-purple { background: linear-gradient(90deg, var(--color-purple), #A78BFA); }
.meter-pct { font-size: 13px; font-weight: 800; color: var(--text-primary); min-width: 42px; text-align: right; font-family: var(--font-mono); }

/* ════════════════════════════════════════
   AUDIT TRAIL
════════════════════════════════════════ */
.audit-trail-section { margin-bottom: var(--sp-8); }
.audit-header { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.audit-title { font-family: var(--font-primary); font-size: 17px; font-weight: 700; color: var(--text-primary); }
.audit-feed { display: flex; flex-direction: column; gap: var(--sp-2); max-height: 280px; overflow-y: auto; }
.audit-item {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: 11px var(--sp-4);
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--r-md); font-size: 12.5px;
  animation: audit-slide 0.4s ease; transition: all var(--t-fast);
  cursor: default;
}
.audit-item:hover { background: var(--color-blue-light); border-color: rgba(11,111,212,0.2); transform: translateX(4px); }
@keyframes audit-slide { from { opacity:0; transform: translateX(-12px); } to { opacity:1; transform: translateX(0); } }
.audit-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.audit-dot.pass { background: var(--color-green); }
.audit-dot.warn { background: var(--color-amber); }
.audit-dot.info { background: var(--color-blue); }
.audit-time { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; min-width: 58px; }
.audit-text { color: var(--text-secondary); flex: 1; }
.audit-country { color: var(--color-blue); font-weight: 700; font-size: 11px; background: var(--color-blue-light); padding: 2px 8px; border-radius: var(--r-full); }

/* ════════════════════════════════════════
   FEATURE PILLARS
════════════════════════════════════════ */
.feature-pillars { background: white; border-radius: 0; padding: var(--sp-12) 0; margin-top: 0; }
.feature-pillars .section-container { padding-top: 0; padding-bottom: 0; }
.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
.pillar-card {
  padding: var(--sp-5); border-radius: var(--r-lg);
  background: white; border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-mid); position: relative; overflow: hidden;
  cursor: default;
}
.pillar-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  opacity: 0; transition: opacity var(--t-mid);
}
.pillar-card:nth-child(1)::before { background: linear-gradient(90deg, var(--color-cyan), var(--color-blue)); }
.pillar-card:nth-child(2)::before { background: linear-gradient(90deg, var(--color-orange), #FFB088); }
.pillar-card:nth-child(3)::before { background: linear-gradient(90deg, var(--color-purple), #A78BFA); }
.pillar-card:nth-child(4)::before { background: linear-gradient(90deg, var(--color-blue), var(--color-cyan)); }
.pillar-card:hover { 
  transform: translateY(-8px) scale(1.02); 
  box-shadow: 0 16px 40px rgba(11,111,212,0.12), 0 4px 12px rgba(0,0,0,0.04);
  border-color: rgba(11,111,212,0.25);
}
.pillar-card:hover::before { opacity: 1; }

.pillar-icon {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--sp-3);
  transition: all var(--t-spring);
}
.pillar-card:hover .pillar-icon { transform: scale(1.15) rotate(-8deg); }
.pi-cyan   { background: var(--color-cyan-light); color: var(--color-cyan); border: 1px solid rgba(0,180,216,0.2); }
.pi-orange { background: var(--color-orange-light); color: var(--color-orange); border: 1px solid rgba(255,107,26,0.2); }
.pi-purple { background: var(--color-purple-light); color: var(--color-purple); border: 1px solid rgba(108,63,197,0.2); }
.pi-blue   { background: var(--color-blue-light); color: var(--color-blue); border: 1px solid rgba(11,111,212,0.2); }

.pillar-card:hover .pi-cyan   { background: var(--color-cyan); color: white; border-color: var(--color-cyan); }
.pillar-card:hover .pi-orange { background: var(--color-orange); color: white; border-color: var(--color-orange); }
.pillar-card:hover .pi-purple { background: var(--color-purple); color: white; border-color: var(--color-purple); }
.pillar-card:hover .pi-blue   { background: var(--color-blue); color: white; border-color: var(--color-blue); }
.pillar-title { font-family: var(--font-primary); font-size: 15px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-2); }
.pillar-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

/* ════════════════════════════════════════
   PAGE 2: AI SANDBOX
════════════════════════════════════════ */
.sandbox-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: var(--sp-4); align-items: start; }
.sandbox-input, .sandbox-results { padding: var(--sp-5); }
.sandbox-panel-title { font-family: var(--font-primary); font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: var(--sp-4); }
.input-label { font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: var(--sp-2); }
.category-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-2); margin-bottom: var(--sp-4); }
.cat-btn {
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
  padding: var(--sp-2); background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--r-md); font-size: 11.5px; font-weight: 500;
  color: var(--text-secondary); transition: all var(--t-fast);
}
.cat-btn:hover { background: var(--color-blue-light); border-color: var(--color-blue); color: var(--color-blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.cat-btn.active { background: var(--color-blue); border-color: var(--color-blue); color: white; box-shadow: var(--shadow-blue); }
.cat-btn.active svg { stroke: white; }
.target-markets { margin-bottom: var(--sp-4); }
.market-checkboxes { display: flex; flex-direction: column; gap: var(--sp-2); }
.market-check, .notify-check {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: 13px; color: var(--text-secondary); cursor: pointer; user-select: none;
  padding: 4px 8px; border-radius: var(--r-md); transition: background var(--t-fast);
}
.market-check:hover, .notify-check:hover { background: var(--color-blue-light); }
.market-check input[type="checkbox"], .notify-check input[type="checkbox"] { display: none; }
.check-custom {
  width: 18px; height: 18px; border: 2px solid var(--color-border);
  border-radius: 5px; flex-shrink: 0; position: relative;
  transition: all var(--t-fast); background: white;
}
.market-check input:checked ~ .check-custom,
.notify-check input:checked ~ .check-custom {
  background: var(--color-blue); border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(11,111,212,0.15);
}
.check-custom::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-55%) rotate(45deg) scale(0);
  width: 4px; height: 7px;
  border-right: 2px solid white; border-bottom: 2px solid white;
  transition: transform var(--t-fast);
}
.market-check input:checked ~ .check-custom::after,
.notify-check input:checked ~ .check-custom::after {
  transform: translate(-50%,-55%) rotate(45deg) scale(1);
}
.flag-icon {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
.upload-zone {
  border: 2px dashed var(--color-border); border-radius: var(--r-md);
  padding: var(--sp-4); text-align: center; margin-bottom: var(--sp-4);
  cursor: pointer; transition: all var(--t-fast); color: var(--text-muted);
  background: var(--color-bg);
}
.upload-zone:hover { border-color: var(--color-blue); background: var(--color-blue-light); }
.upload-text { font-size: 13px; margin-top: var(--sp-3); color: var(--text-secondary); }
.upload-link { color: var(--color-blue); text-decoration: underline; }
.upload-hint { font-size: 11px; color: var(--text-muted); margin-top: var(--sp-2); }

/* Results */
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-4); }
.results-status { display: flex; align-items: center; gap: var(--sp-2); font-size: 12px; color: var(--text-muted); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.idle    { background: var(--color-gray-400); }
.status-dot.scanning { background: var(--color-amber); animation: pulse-ring 1s infinite; }
.status-dot.done    { background: var(--color-green); }
.scan-animation-area { min-height: 380px; overflow-y: auto; max-height: 680px; }
.scan-idle-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 380px; gap: var(--sp-5); text-align: center;
}
.idle-icon { color: var(--color-gray-200); }
.idle-text { font-size: 14px; color: var(--text-muted); max-width: 280px; line-height: 1.75; }
.scan-progress-state { padding: var(--sp-5); display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.progress-scan-viz { width: 100%; display: flex; justify-content: center; }
.progress-product-box {
  width: 220px; height: 140px;
  background: var(--color-blue-light); border: 1px solid rgba(11,111,212,0.2);
  border-radius: var(--r-md); position: relative; overflow: hidden;
}
.progress-scan-line {
  position: absolute; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-blue), var(--color-cyan), transparent);
  box-shadow: 0 0 12px rgba(11,111,212,0.5);
  animation: scan-line-anim 1.5s ease-in-out infinite;
}
@keyframes scan-line-anim { 0% { top: 10%; } 100% { top: 90%; } }
.progress-text { font-size: 13.5px; color: var(--text-secondary); font-weight: 500; text-align: center; }
.progress-steps { width: 100%; display: flex; flex-direction: column; gap: var(--sp-2); }
.progress-step { display: flex; align-items: center; gap: var(--sp-3); font-size: 12.5px; color: var(--text-secondary); animation: audit-slide 0.3s ease; }
.step-check { width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 10px; font-weight: 700; }
.step-check.done { background: var(--color-green); color: white; }
.step-check.running { background: var(--color-amber-light); border: 2px solid var(--color-amber); animation: pulse-ring 1s infinite; }
.scan-complete-state { padding: var(--sp-4); }
.complete-header { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--color-border); }
.complete-check-icon { width: 44px; height: 44px; background: var(--color-green-light); border: 1px solid rgba(5,150,105,0.3); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--color-green); }
.complete-summary h4 { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.complete-summary p { font-size: 12.5px; color: var(--text-muted); }
.complete-results { display: flex; flex-direction: column; gap: var(--sp-2); }
.result-row {
  display: flex; align-items: center; gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4); background: var(--color-gray-50);
  border: 1px solid var(--color-border); border-radius: var(--r-md);
  animation: audit-slide 0.4s ease both; transition: all var(--t-fast);
}
.blurred-result {
  filter: blur(3.5px);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}
.result-row:hover { background: var(--color-blue-light); border-color: rgba(11,111,212,0.2); }
.result-cert-name { flex: 1; font-size: 13px; font-weight: 600; color: var(--text-primary); }
.result-market { font-size: 11px; color: var(--text-muted); }
.result-standard { font-size: 10px; font-family: var(--font-mono); color: var(--text-muted); }

/* ════════════════════════════════════════
   PAGE 3: WORLD MAP
════════════════════════════════════════ */
.map-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: var(--sp-6); margin-bottom: var(--sp-8); }
.map-legend { display: flex; gap: var(--sp-5); margin-bottom: var(--sp-4); font-size: 12.5px; }
.legend-item { display: flex; align-items: center; gap: var(--sp-2); color: var(--text-secondary); font-weight: 500; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.active-dot { background: var(--color-blue); box-shadow: 0 0 6px rgba(11,111,212,0.4); }
.coming-dot { background: var(--color-gray-300); }
.world-map-container { position: relative; }
.world-map-svg { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-sm); }
.map-region { cursor: pointer; }
.region-blob { transition: all var(--t-mid); }
.map-region:hover .region-blob, .map-region:focus .region-blob { filter: drop-shadow(0 0 12px rgba(11,111,212,0.4)); }
.map-region.selected .region-blob { filter: drop-shadow(0 0 16px rgba(11,111,212,0.6)); }
.region-blob-dim { transition: all var(--t-mid); }
.map-label { fill: var(--color-blue-deep); font-family: 'Plus Jakarta Sans',sans-serif; font-weight: 700; pointer-events: none; }
.map-sublabel { fill: var(--color-blue); font-family: 'Inter',sans-serif; font-weight: 500; pointer-events: none; }
.map-label-dim { fill: var(--color-gray-400); font-family: 'Plus Jakarta Sans',sans-serif; font-weight: 600; pointer-events: none; }
.map-sublabel-dim { fill: var(--color-gray-400); font-family: 'Inter',sans-serif; font-weight: 400; pointer-events: none; }
.map-click-hint {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  font-size: 12.5px; color: var(--text-secondary);
  background: white; padding: 7px 16px; border-radius: var(--r-full);
  border: 1px solid var(--color-border); pointer-events: none;
  box-shadow: var(--shadow-sm);
  animation: float-up 3s ease-in-out infinite;
}
@keyframes float-up { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-5px); } }

.country-detail { padding: var(--sp-6); min-height: 320px; display: flex; flex-direction: column; justify-content: center; }
.country-detail-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-4); text-align: center; color: var(--text-muted); height: 280px; }
.country-detail-placeholder svg { opacity: 0.2; color: var(--text-muted); }
.country-detail-placeholder p { font-size: 13.5px; line-height: 1.7; max-width: 220px; }
.country-detail-content { display: flex; flex-direction: column; gap: var(--sp-4); animation: page-enter 0.35s ease; }
.country-flag-row { display: flex; align-items: center; gap: var(--sp-3); }
.country-flag-emoji { font-size: 34px; }
.country-name-block h3 { font-size: 21px; font-weight: 800; color: var(--text-primary); font-family: var(--font-primary); }
.country-name-block span { font-size: 12px; color: var(--color-blue); font-weight: 600; }
.country-certs { display: flex; flex-direction: column; gap: var(--sp-2); }
.country-cert-item { display: flex; align-items: flex-start; gap: var(--sp-3); padding: var(--sp-3); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--r-md); font-size: 12.5px; transition: all var(--t-fast); }
.country-cert-item:hover { background: var(--color-blue-light); border-color: rgba(11,111,212,0.2); }
.cert-badge-sm { padding: 3px 8px; border-radius: 4px; font-size: 9.5px; font-weight: 700; font-family: var(--font-mono); flex-shrink: 0; margin-top: 2px; }
.cert-badge-sm.mandatory { background: var(--color-red-light); color: var(--color-fail); border: 1px solid rgba(220,38,38,0.2); }
.cert-badge-sm.conditional { background: var(--color-amber-light); color: var(--color-amber); border: 1px solid rgba(217,119,6,0.2); }
.cert-badge-sm.optional { background: var(--color-green-light); color: var(--color-green); border: 1px solid rgba(5,150,105,0.2); }
.cert-item-text strong { color: var(--text-primary); display: block; font-size: 12.5px; }
.cert-item-text span { color: var(--text-muted); font-size: 11px; }
.country-dice-status { display: flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3); background: var(--color-blue-light); border: 1px solid rgba(11,111,212,0.2); border-radius: var(--r-md); font-size: 12.5px; color: var(--color-blue); font-weight: 600; }

.market-stats-strip { display: flex; align-items: center; justify-content: space-around; padding: var(--sp-7) var(--sp-10); text-align: center; }
.stat-strip-item { }
.strip-num { display: block; font-family: var(--font-primary); font-size: 30px; font-weight: 800; color: var(--color-blue); letter-spacing: -1px; }
.strip-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.stat-strip-divider { width: 1px; height: 52px; background: var(--color-border); }

/* ════════════════════════════════════════
   PAGE 4: MOBILE PREVIEW
════════════════════════════════════════ */
.app-screen-nav { display: flex; gap: var(--sp-2); margin-bottom: var(--sp-8); flex-wrap: wrap; }
.screen-tab {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 10px 22px; background: white;
  border: 1.5px solid var(--color-border); border-radius: var(--r-full);
  font-size: 13px; font-weight: 500; color: var(--text-secondary);
  transition: all var(--t-fast);
}
.screen-tab:hover { background: var(--color-blue-light); color: var(--color-blue); border-color: var(--color-blue); }
.screen-tab.active { background: var(--color-blue); border-color: var(--color-blue); color: white; box-shadow: var(--shadow-blue); }

.mobile-frame-section { display: flex; gap: var(--sp-12); align-items: center; }
.phone-frame-wrap { flex-shrink: 0; }
.phone-frame {
  width: 285px; height: 570px;
  background: #0A1628;
  border-radius: 54px; border: 6px solid #2C2C2E;
  position: relative;
  box-shadow:
    0 0 0 2px rgba(11,111,212,0.2),
    0 40px 80px rgba(0,30,60,0.3),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  transition: transform var(--t-mid);
}
.phone-frame:hover { transform: scale(1.02) rotate(1deg); }
.dynamic-island {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 95px; height: 28px; background: #000000;
  border-radius: 14px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}
.di-sensor {
  width: 12px; height: 12px; border-radius: 50%; background: #0A1628;
  box-shadow: inset 0 0 4px rgba(255,255,255,0.1);
}
.di-camera {
  width: 12px; height: 12px; border-radius: 50%; background: #0A1628;
  box-shadow: inset 0 0 2px rgba(255,255,255,0.2);
  position: relative;
}
.di-camera::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,0.15);
}
.phone-screen { width: 100%; height: 100%; overflow: hidden; position: relative; border-radius: 46px; background: #0A1628; }
.phone-home-indicator { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: rgba(255,255,255,0.25); border-radius: 2px; z-index: 20; }

/* App Screens */
.app-screen { position: absolute; inset: 0; background: #F0F4FF; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; border-radius: 46px; overflow: hidden; }
.app-screen.active { opacity: 1; pointer-events: all; position: absolute; inset: 0; }
.app-status-bar { height: 44px; padding: 14px 22px 0; display: flex; align-items: center; justify-content: space-between; font-size: 11px; font-weight: 700; color: var(--color-blue-deep); background: white; flex-shrink: 0; border-bottom: 1px solid rgba(0,0,0,0.05); border-radius: 46px 46px 0 0; }
.app-status-right { display: flex; gap: 6px; align-items: center; font-size: 9px; }
.app-header-bar { padding: 11px 14px; background: white; border-bottom: 1px solid rgba(0,0,0,0.06); flex-shrink: 0; box-shadow: 0 1px 4px rgba(0,51,102,0.06); }
.app-screen-title { font-size: 14px; font-weight: 800; color: var(--color-blue-deep); font-family: var(--font-primary); }
.app-scan-view { flex: 1; background: #F0F4FF; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.scan-viewfinder { width: 165px; height: 125px; border: 1px solid rgba(11,111,212,0.15); border-radius: 10px; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; background: white; }
.vf-corner { position: absolute; width: 14px; height: 14px; border-color: var(--color-blue); border-style: solid; }
.vf-corner.tl { top: 7px; left: 7px; border-width: 2px 0 0 2px; border-top-left-radius: 3px; }
.vf-corner.tr { top: 7px; right: 7px; border-width: 2px 2px 0 0; border-top-right-radius: 3px; }
.vf-corner.bl { bottom: 7px; left: 7px; border-width: 0 0 2px 2px; border-bottom-left-radius: 3px; }
.vf-corner.br { bottom: 7px; right: 7px; border-width: 0 2px 2px 0; border-bottom-right-radius: 3px; }
.vf-scanline { position: absolute; left: 8px; right: 8px; height: 2px; background: linear-gradient(90deg, transparent, var(--color-blue), var(--color-cyan), transparent); box-shadow: 0 0 8px rgba(11,111,212,0.5); animation: scan-line-anim 2s ease-in-out infinite; }
.vf-product-icon { position: relative; z-index: 1; }
.scan-instruction { font-size: 10px; color: var(--text-muted); text-align: center; }
.app-quick-results { padding: 8px 10px; display: flex; flex-direction: column; gap: 5px; border-top: 1px solid rgba(0,0,0,0.06); flex-shrink: 0; background: white; }
.qr-item { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--text-secondary); padding: 4px 6px; border-radius: 6px; }
.qr-item.pass { background: var(--color-green-light); }
.qr-item.warn { background: var(--color-amber-light); }
.qr-badge { width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 8px; font-weight: 700; flex-shrink: 0; }
.qr-item.pass .qr-badge { background: var(--color-green); color: white; }
.qr-item.warn .qr-badge { background: var(--color-amber); color: white; }
.app-bottom-nav { display: flex; border-top: 1px solid rgba(0,0,0,0.08); background: white; flex-shrink: 0; padding-bottom: 12px; }
.bn-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 4px 2px; font-size: 8px; color: var(--text-muted); transition: color var(--t-fast); }
.bn-item.active { color: var(--color-blue); }
.bn-item span { white-space: nowrap; }
.wallet-screen-content { flex: 1; overflow: hidden; padding: 10px 10px 0; display: flex; flex-direction: column; gap: 8px; background: #F0F4FF; }
.wallet-summary { display: flex; flex-direction: column; align-items: center; padding: 10px; background: white; border-radius: 10px; border: 1px solid rgba(11,111,212,0.12); }
.ws-count { font-size: 34px; font-weight: 800; color: var(--color-blue); font-family: var(--font-primary); line-height: 1; }
.ws-label { font-size: 10px; color: var(--text-muted); }
.wallet-cert-list { display: flex; flex-direction: column; gap: 5px; overflow: hidden; }
.wc-item { display: flex; align-items: center; gap: 7px; padding: 8px 9px; background: white; border: 1px solid var(--color-border); border-radius: 9px; }
.wc-icon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; flex-shrink: 0; font-family: var(--font-mono); }
.wc-ce  { background: var(--color-cyan-light); color: var(--color-cyan); }
.wc-fcc { background: var(--color-blue-light); color: var(--color-blue); }
.wc-bis { background: var(--color-orange-light); color: var(--color-orange); }
.wc-rohs{ background: var(--color-purple-light); color: var(--color-purple); }
.wc-info { flex: 1; overflow: hidden; }
.wc-name { display: block; font-size: 10.5px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-exp { font-size: 9px; color: var(--text-muted); }
.wc-badge { font-size: 8.5px; font-weight: 700; padding: 2px 7px; border-radius: 20px; flex-shrink: 0; }
.wc-badge.active { background: var(--color-green-light); color: var(--color-green); }
.wc-badge.expiring { background: var(--color-amber-light); color: var(--color-amber); }
.chat-screen-content { flex: 1; overflow: hidden; padding: 8px 8px 0; display: flex; flex-direction: column; gap: 8px; background: #F0F4FF; }
.chat-msg { display: flex; gap: 6px; align-items: flex-end; }
.chat-msg.user { flex-direction: row-reverse; }
.chat-avatar { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg, var(--color-blue), var(--color-cyan)); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: white; flex-shrink: 0; }
.chat-bubble { padding: 8px 10px; border-radius: 12px; font-size: 10px; line-height: 1.5; max-width: 80%; }
.chat-msg.bot .chat-bubble { background: white; border: 1px solid var(--color-border); color: var(--text-secondary); border-radius: 12px 12px 12px 4px; }
.chat-msg.user .chat-bubble { background: var(--color-blue); color: white; border-radius: 12px 12px 4px 12px; }
.chat-input-area { display: flex; gap: 5px; padding: 7px 9px; border-top: 1px solid rgba(0,0,0,0.07); flex-shrink: 0; background: white; }
.chat-input { flex: 1; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 20px; padding: 6px 10px; color: var(--text-primary); font-size: 10px; outline: none; transition: border-color var(--t-fast); }
.chat-input:focus { border-color: var(--color-blue); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send { width: 28px; height: 28px; background: var(--color-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; flex-shrink: 0; transition: transform var(--t-fast); }
.chat-send:hover { transform: scale(1.1); background: var(--color-blue-mid); }

.app-download-section { flex: 1; max-width: 440px; display: flex; flex-direction: column; gap: var(--sp-6); }
.app-status-badge { display: flex; align-items: flex-start; gap: var(--sp-4); padding: var(--sp-5); background: var(--color-orange-light); border: 1px solid rgba(255,107,26,0.2); border-radius: var(--r-lg); }
.asb-icon { width: 46px; height: 46px; border-radius: var(--r-md); background: rgba(255,107,26,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.asb-title { font-size: 14.5px; font-weight: 700; color: var(--text-primary); font-family: var(--font-primary); }
.asb-sub { font-size: 12px; color: var(--color-orange); font-weight: 500; }
.dl-features { display: flex; flex-direction: column; gap: var(--sp-3); }
.dl-feature { display: flex; align-items: center; gap: var(--sp-3); font-size: 13.5px; color: var(--text-secondary); }
.store-buttons { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.store-btn { display: flex; align-items: center; gap: var(--sp-3); padding: 12px 20px; border-radius: var(--r-md); font-size: 13px; font-weight: 600; font-family: var(--font-primary); transition: all var(--t-fast); flex: 1; justify-content: center; }
.ios-btn { background: var(--text-primary); color: white; border: 1px solid var(--text-primary); }
.ios-btn:hover { background: var(--color-blue-deep); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.gplay-btn { background: var(--color-blue-light); border: 1.5px solid var(--color-blue); color: var(--color-blue); }
.gplay-btn:hover { background: var(--color-blue); color: white; transform: translateY(-2px); box-shadow: var(--shadow-blue); }
.waitlist-count { display: flex; align-items: center; gap: var(--sp-3); }
.wl-avatars { display: flex; }
.wl-av { width: 32px; height: 32px; border-radius: 50%; border: 2px solid white; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: white; margin-left: -9px; box-shadow: var(--shadow-sm); }
.wl-av:first-child { margin-left: 0; }
.wl-text { font-size: 13px; color: var(--text-secondary); }
.wl-text strong { color: var(--text-primary); }

/* ════════════════════════════════════════
   MODAL
════════════════════════════════════════ */
.modal-overlay[hidden] { display: none !important; }
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,27,61,0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: var(--sp-4); animation: modal-overlay-in 0.2s ease;
}
@keyframes modal-overlay-in { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  width: 100%; max-width: 500px; max-height: 95vh; overflow-y: auto;
  padding: var(--sp-6); position: relative;
  background: white; border: 1px solid var(--color-border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-xl);
  animation: modal-box-in 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes modal-box-in { from { opacity:0; transform: scale(0.9) translateY(20px); } to { opacity:1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: var(--sp-4); right: var(--sp-4); width: 34px; height: 34px; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: all var(--t-fast); }
.modal-close:hover { background: var(--color-red-light); color: var(--color-fail); border-color: rgba(220,38,38,0.2); }
.modal-badge { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: 11px; font-weight: 600; color: var(--color-green); background: var(--color-green-light); border: 1px solid rgba(5,150,105,0.25); padding: 4px 12px; border-radius: var(--r-full); margin-bottom: var(--sp-4); }
.modal-title { font-family: var(--font-primary); font-size: clamp(22px, 3vw, 27px); font-weight: 800; letter-spacing: -0.5px; color: var(--text-primary); margin-bottom: var(--sp-2); }
.modal-sub { font-size: 14.5px; color: var(--text-secondary); line-height: 1.6; margin-bottom: var(--sp-4); }
.modal-sub strong { color: var(--color-blue); }
.modal-form { display: flex; flex-direction: column; gap: var(--sp-3); }
.form-group { display: flex; flex-direction: column; gap: 4px; }
.form-label { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.form-input { background: var(--color-bg); border: 1.5px solid var(--color-border); border-radius: var(--r-md); padding: 8px 12px; color: var(--text-primary); font-size: 14.5px; min-height: 38px; outline: none; transition: all var(--t-fast); }
.form-input:focus { border-color: var(--color-blue); background: white; box-shadow: 0 0 0 4px rgba(11,111,212,0.08); }
.form-input::placeholder { color: var(--text-muted); }
select.form-input { cursor: pointer; }
select.form-input option { background: white; color: var(--text-primary); }
.form-notify-row { display: flex; flex-direction: row; flex-wrap: wrap; gap: var(--sp-3); }
.form-privacy { font-size: 11.5px; color: var(--text-muted); text-align: center; line-height: 1.6; margin-top: var(--sp-2); }
.modal-success { display: flex; flex-direction: column; align-items: center; gap: var(--sp-4); text-align: center; padding: var(--sp-6); }
.modal-success h3 { font-family: var(--font-primary); font-size: clamp(20px, 3vw, 24px); font-weight: 800; color: var(--text-primary); }
.modal-success p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.success-icon { animation: success-pop 0.6s cubic-bezier(0.34,1.56,0.64,1) both; }
@keyframes success-pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ════════════════════════════════════════
   FOOTER
════════════════════════════════════════ */
.global-footer { background: var(--color-blue-deep); padding: var(--sp-12) var(--sp-8) var(--sp-8); }
.global-footer .dice-logo-col-1 { fill: rgba(255,255,255,0.4); }
.global-footer .dice-logo-col-2 { fill: rgba(255,255,255,0.6); }
.global-footer .dice-logo-col-3 { fill: rgba(255,255,255,0.8); }
.global-footer .dice-logo-col-4 { fill: #ffffff; }
.global-footer .dice-logo-d { fill: #ffffff; }

.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: var(--sp-12); margin-bottom: var(--sp-8); }
.footer-brand { }
.footer-product-logo { display: flex; align-items: center; gap: 0px; margin-bottom: var(--sp-4); -webkit-tap-highlight-color: transparent; outline: none; }
.footer-product-logo:active, .product-logo:active { transform: none !important; }
.footer-product-name { font-family: var(--font-primary); font-size: clamp(18px, 2.5vw, 21px); font-weight: 800; color: white; letter-spacing: -0.5px; margin-top: 3px; margin-left: 8px; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.7; margin-bottom: var(--sp-4); }
.footer-parent-link { font-size: 12.5px; color: var(--color-cyan); font-weight: 500; transition: opacity var(--t-fast); }
.footer-parent-link:hover { opacity: 0.8; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--sp-8); }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-3); }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: var(--sp-2); }
.footer-link { font-size: 13.5px; color: rgba(255,255,255,0.65); transition: color var(--t-fast); }
.footer-link:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: var(--sp-6); border-top: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; text-align: center; flex-wrap: wrap; gap: var(--sp-4); }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer-certs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.cert-tag { padding: 3px 9px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 4px; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.6); font-family: var(--font-mono); letter-spacing: 0.5px; transition: all var(--t-fast); cursor: default; }
.cert-tag:hover { background: rgba(0,180,216,0.15); border-color: rgba(0,180,216,0.3); color: var(--color-cyan); }

/* ════════════════════════════════════════
   UTILITIES
════════════════════════════════════════ */
.hidden { display: none !important; }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s 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; }

/* ════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════ */

/* Hide mobile-specific footer additions on desktop */
.mobile-only-footer { display: none !important; }

@media (min-width: 1441px) {
  .section-container, .footer-inner, .footer-bottom, .header-inner { max-width: 1440px; margin: 0 auto; }
}

@media (max-width: 1440px) {
  .parent-badge-text { display: none; }
  .product-tagline { display: none; }
}

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .hamburger { display: flex; }
  .hero-visual {
    display: block;
    opacity: 1;
    position: relative;
    inset: auto;
    pointer-events: auto;
  }
  .metrics-grid { grid-template-columns: repeat(2,1fr); }
  .pillars-grid { grid-template-columns: repeat(2,1fr); }
  
  /* Header mobile UI fixes */
  #header-cta { display: none; }
  .hide-mobile { display: none; }
  .btn-header-secondary { 
    padding: 0; width: 38px; height: 38px; 
    border-radius: 50%; justify-content: center; 
    margin-right: 4px;
  }
  
  /* Mobile Footer Redesign (<= 1024px) */
  .mobile-only-footer { display: flex !important; }
  .global-footer { padding: var(--sp-12) var(--sp-6) var(--sp-8); }
  .footer-inner { 
    display: flex;
    flex-direction: column;
    gap: var(--sp-12); 
    margin-bottom: var(--sp-10);
  }
  .footer-brand {
    text-align: left;
  }
  .footer-links { 
    display: flex;
    flex-direction: column;
    gap: var(--sp-10);
  }
  .footer-col { gap: 0; }
  .footer-col-title { 
    font-size: 18px; 
    color: white; 
    letter-spacing: 1px; 
    margin-bottom: var(--sp-6);
  }
  
  .footer-link {
    font-size: 16px;
    padding: 14px 0; /* Ensures 44px min touch target */
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    min-height: 44px;
    transition: background-color 0.2s, padding-left 0.2s, color 0.2s;
  }
  .footer-link:last-child { border-bottom: none; }
  
  .footer-link:active, .footer-link:hover {
    background-color: rgba(255,255,255,0.05);
    padding-left: 8px;
    color: white;
  }
  
  /* Brand/Logo adjustments */
  .footer-product-logo { margin-bottom: var(--sp-6); }
  .footer-product-logo img { max-width: 100%; height: auto; }
  .footer-product-name { font-size: 26px; }
  .footer-desc { font-size: 16px; line-height: 1.6; }
  
  /* Contact Information */
  .footer-contact {
    gap: 16px;
    line-height: 1.6;
    word-break: break-word;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-contact:last-child { border-bottom: none; }
  .footer-contact svg { flex-shrink: 0; color: var(--color-cyan); }
  
  /* Social Media Icons */
  .footer-social-wrapper {
    padding-top: var(--sp-8);
    margin-top: var(--sp-4);
    border-top: 1px solid rgba(255,255,255,0.1);
  }
  .footer-social-icons {
    display: flex;
    justify-content: flex-start;
    gap: var(--sp-6);
  }
  .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: white;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
  }
  .social-icon:active, .social-icon:hover {
    transform: scale(1.15);
    background: var(--color-blue);
  }

  /* Copyright Section */
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-6);
    padding-top: var(--sp-8);
  }
  .footer-copy { font-size: 14px; line-height: 1.6; }
  .sandbox-layout { grid-template-columns: 1fr; }
  .map-layout { grid-template-columns: 1fr; }
  .mobile-frame-section { flex-direction: column; align-items: center; }
  .app-download-section { max-width: 100%; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .header-inner { padding: 0 var(--sp-4); gap: var(--sp-3); }
  .section-container { padding: var(--sp-10) var(--sp-4); }
  .hero-section { 
    grid-template-columns: 1fr;
    min-height: auto; 
    padding: 0;
  }
  .hero-content {
    padding: var(--sp-10) var(--sp-4);
    max-width: 100%;
  }
  .hero-visual {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .metrics-grid { grid-template-columns: repeat(2,1fr); gap: var(--sp-3); }
  .pillars-grid { grid-template-columns: 1fr; }
  .meter-row { grid-template-columns: 1fr; gap: var(--sp-2); }
  .market-stats-strip { flex-direction: column; gap: var(--sp-5); padding: var(--sp-6); align-items: center; text-align: center; }
  .stat-strip-divider { display: none; }
  .modal-box { padding: var(--sp-6); }
  .store-buttons { flex-direction: column; width: 100%; }
  .parent-badge { display: none; }
}

@media (max-width: 480px) {
  .category-grid { grid-template-columns: 1fr; }
  .hero-title { letter-spacing: -1px; }
  .trust-divider { display: none; }
  .metrics-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ════════════════════════════════════════
   MOBILE MENU & TOUCH OPTIMIZATIONS
════════════════════════════════════════ */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  padding: var(--sp-4);
  gap: var(--sp-2);
  z-index: 2000;
}
.mobile-menu[hidden] {
  display: none !important;
}
.mob-nav-item, .mob-cta-btn {
  padding: var(--sp-3);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  border-radius: 8px;
}
.mob-nav-item:hover { background: var(--color-gray-50); color: var(--color-blue); }
.mob-cta-btn { background: var(--color-blue); color: var(--color-white); text-align: center; margin-top: var(--sp-2); }

button, .btn-primary, .btn-secondary, .cta-btn, .nav-item, .mob-nav-item, a, .pillar-card, .cat-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 768px) {
  button, .btn-primary, .btn-secondary, .cta-btn, .mob-nav-item, .cat-btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
button:active, .btn-primary:active, .btn-secondary:active, .cta-btn:active, .nav-item:active, .mob-nav-item:active, a:active, .pillar-card:active, .cat-btn:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

/* ════════════════════════════════════════════════════════════
   DICE DEMO – Rich Scan Results (AI Scan + Barcode Scanner)
   Teaser Card System, Blurred Gated Sections, Unlock CTA
════════════════════════════════════════════════════════════ */

/* ── Compliance Score Badge (circular ring) ── */
.compliance-score-ring {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: linear-gradient(135deg, var(--color-blue-light) 0%, #EBF4FF 100%);
  border: 1px solid rgba(11,111,212,0.18);
  border-radius: var(--r-lg);
  margin-bottom: var(--sp-4);
  animation: audit-slide 0.4s ease;
}
.score-donut {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}
.score-donut svg { transform: rotate(-90deg); }
.score-donut-track { fill: none; stroke: rgba(11,111,212,0.12); stroke-width: 7; }
.score-donut-fill {
  fill: none;
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 163;
  stroke-dashoffset: 163;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.22,1,0.36,1);
}
.score-donut-fill.high   { stroke: var(--color-green); }
.score-donut-fill.medium { stroke: var(--color-amber); }
.score-donut-fill.low    { stroke: var(--color-fail); }
.score-donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.score-donut-label small {
  font-size: 9px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
}
.score-meta { flex: 1; min-width: 0; }
.score-meta-title {
  font-family: var(--font-primary);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-meta-sub {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}
.score-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--r-full);
}
.score-status-pill.action-required {
  background: var(--color-amber-light);
  color: var(--color-amber);
  border: 1px solid rgba(217,119,6,0.25);
}
.score-status-pill.compliant {
  background: var(--color-green-light);
  color: var(--color-green);
  border: 1px solid rgba(5,150,105,0.25);
}

/* ── Visible overview cert rows ── */
.scan-info-section {
  margin-bottom: var(--sp-3);
  animation: audit-slide 0.5s ease 0.1s both;
}
.scan-info-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
}
.scan-product-name {
  font-family: var(--font-primary);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.scan-market-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--sp-3);
}
.scan-market-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--r-full);
  background: var(--color-blue-light);
  color: var(--color-blue);
  border: 1px solid rgba(11,111,212,0.2);
}
.overview-cert-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: var(--sp-3);
}
.overview-cert-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 9px var(--sp-4);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  animation: audit-slide 0.4s ease both;
  transition: all var(--t-fast);
}
.overview-cert-row:hover {
  background: var(--color-blue-light);
  border-color: rgba(11,111,212,0.2);
}
.overview-cert-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
}
.overview-cert-icon.pass-icon { background: var(--color-green-light); }
.overview-cert-icon.warn-icon { background: var(--color-amber-light); }
.overview-cert-text { flex: 1; min-width: 0; }
.overview-cert-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.overview-cert-detail {
  font-size: 11px;
  color: var(--text-muted);
}
.overview-cert-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.overview-cert-badge.badge-pass {
  background: var(--color-green-light);
  color: var(--color-green);
  border: 1px solid rgba(5,150,105,0.3);
}
.overview-cert-badge.badge-warn {
  background: var(--color-amber-light);
  color: var(--color-amber);
  border: 1px solid rgba(217,119,6,0.3);
}

/* ── Divider ── */
.results-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--sp-4) 0;
}

/* ── Blurred / Gated Container ── */
.gated-section-wrapper {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-2);
}
.gated-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: var(--sp-2);
  display: flex;
  align-items: center;
  gap: 5px;
}
.gated-lock-icon { color: var(--color-amber); }
.gated-content {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
  opacity: 0.7;
}

/* Blurred "detailed" regulatory clause rows */
.gated-detail-row {
  padding: var(--sp-3) var(--sp-4);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  margin-bottom: 6px;
}
.gated-detail-row-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.gated-detail-row-sub {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.gated-detail-row-badges {
  display: flex;
  gap: 5px;
  margin-top: 5px;
  flex-wrap: wrap;
}
.gated-mini-badge {
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
  background: var(--color-blue-light);
  color: var(--color-blue);
  border: 1px solid rgba(11,111,212,0.2);
}

/* ── Unlock CTA Banner ── */
.unlock-cta-banner {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, #001B3D 0%, #003366 60%, #0B6FD4 100%);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-5);
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,27,61,0.30), 0 4px 12px rgba(11,111,212,0.25);
  animation: audit-slide 0.5s ease 0.3s both;
  overflow: hidden;
}
.unlock-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: radial-gradient(ellipse at 20% 50%, rgba(0,180,216,0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(11,111,212,0.10) 0%, transparent 60%);
  pointer-events: none;
}
.unlock-cta-icon {
  font-size: 24px;
  margin-bottom: 6px;
  display: block;
}
.unlock-cta-title {
  font-family: var(--font-primary);
  font-size: 14.5px;
  font-weight: 800;
  color: white;
  margin-bottom: 6px;
  line-height: 1.35;
  position: relative;
}
.unlock-cta-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
  margin-bottom: var(--sp-4);
  line-height: 1.65;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}
.unlock-cta-sub strong { color: rgba(255,255,255,0.95); }
.unlock-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #00C8F0 0%, #0B6FD4 100%);
  color: white;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: var(--r-full);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,180,216,0.45);
  transition: all var(--t-mid);
  text-decoration: none;
  position: relative;
}
.unlock-app-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,180,216,0.60);
}
.unlock-app-btn:active { transform: scale(0.97); }
.unlock-cta-features {
  display: flex;
  justify-content: center;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  flex-wrap: wrap;
  position: relative;
}
.unlock-feature-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
}
.unlock-feature-item .check-mini { color: #00C8F0; font-weight: 800; }

/* ── Barcode Visible Section ── */
.barcode-result-code {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 3px;
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  background: var(--color-gray-50);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  margin-bottom: var(--sp-3);
  animation: audit-slide 0.4s ease both;
}
.barcode-result-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  animation: audit-slide 0.4s ease 0.1s both;
}
.barcode-info-cell {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  padding: var(--sp-3) var(--sp-4);
  transition: all var(--t-fast);
}
.barcode-info-cell:hover { background: var(--color-blue-light); border-color: rgba(11,111,212,0.2); }
.barcode-info-cell-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.barcode-info-cell-value {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ── Scan badge (ensure always present) ── */
.scan-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.badge-pass {
  background: var(--color-green-light);
  color: var(--color-green);
  border: 1px solid rgba(5,150,105,0.3);
}
.badge-warn {
  background: var(--color-amber-light);
  color: var(--color-amber);
  border: 1px solid rgba(217,119,6,0.3);
}

/* ── Responsive tweaks ── */
@media (max-width: 480px) {
  .compliance-score-ring { flex-direction: column; text-align: center; }
  .score-meta { text-align: center; }
  .score-meta-title { white-space: normal; }
  .barcode-result-info-grid { grid-template-columns: 1fr; }
  .unlock-cta-features { flex-direction: column; align-items: center; gap: var(--sp-2); }
  .unlock-cta-banner { padding: var(--sp-4) var(--sp-4); }
}

/* --- Recent Scans --- */
.recent-scans-block {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--color-border);
}

.recent-scans-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--sp-4);
}

.recent-scan-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.recent-scan-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  transition: all var(--t-fast);
  cursor: pointer;
}

.recent-scan-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(11, 111, 212, 0.2);
}

.rs-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-blue);
  flex-shrink: 0;
}

.rs-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rs-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-meta {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rs-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 12px;
  flex-shrink: 0;
}

.rs-badge.pass {
  background: var(--color-green-light);
  color: var(--color-green);
}

.rs-badge.pending {
  background: var(--color-amber-light);
  color: var(--color-amber);
}

/* --- Viewfinder Box --- */
.viewfinder-box {
  position: relative;
  width: 180px;
  height: 130px;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-blue-light);
  box-shadow: 0 4px 20px rgba(11, 111, 212, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.vf-corner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-color: var(--color-blue);
  border-style: solid;
  border-width: 0;
}

.vf-tl { top: 16px; left: 16px; border-top-width: 2.5px; border-left-width: 2.5px; border-top-left-radius: 4px; }
.vf-tr { top: 16px; right: 16px; border-top-width: 2.5px; border-right-width: 2.5px; border-top-right-radius: 4px; }
.vf-bl { bottom: 16px; left: 16px; border-bottom-width: 2.5px; border-left-width: 2.5px; border-bottom-left-radius: 4px; }
.vf-br { bottom: 16px; right: 16px; border-bottom-width: 2.5px; border-right-width: 2.5px; border-bottom-right-radius: 4px; }

.vf-scan-line {
  position: absolute;
  top: 30px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, rgba(0, 180, 216, 0) 0%, rgba(0, 180, 216, 1) 50%, rgba(0, 180, 216, 0) 100%);
  box-shadow: 0 4px 10px rgba(0, 180, 216, 0.5);
  border-radius: 2px;
}

.vf-center-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
