/* =============================================
   RESET & DESIGN TOKENS
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* NewEyes 2026 Color Palette & Hierarchy — Light Mode (60% Porcelain · 30% Midnight Navy · 10% Medical Teal) */
  --porcelain:      #F8F9FA;
  --porcelain-card: #FFFFFF;
  --porcelain-muted:#EEF2F6;
  --porcelain-border:#DDE4EE;
  --midnight-navy:  #132238;
  --navy-structural:#132238;
  --navy-elevated:  #1E3250;
  --navy-muted:     #4A5D78;
  --medical-teal:   #00B4D8;
  --teal-dark:      #0090AD;
  --teal-light:     #E6F8FB;

  --navy-950: #F8F9FA;
  --navy-900: #F8F9FA;
  --navy-800: #EEF2F6;
  --navy-700: #DDE4EE;
  --navy-600: #CBD5E1;
  --blue:     #00B4D8;
  --blue-dim: #0090AD;
  --violet:   #132238;
  --violet-dim:#1E3250;
  --green:    #00B4D8;
  --amber:    #D97706;
  --white:    #132238;
  --white-dim:#4A5D78;
  --glass-bg: #FFFFFF;
  --glass-border: #DDE4EE;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

@media (prefers-color-scheme: dark) {
  :root {
    /* NewEyes 2026 Color Palette & Hierarchy — Dark Mode (60% Midnight Navy · 30% Porcelain · 10% Medical Teal) */
    --porcelain:      #0D1829;
    --porcelain-card: #132238;
    --porcelain-muted:#1E3250;
    --porcelain-border:#2A4368;
    --midnight-navy:  #F8F9FA;
    --navy-structural:#182B46;
    --navy-elevated:  #243B5E;
    --navy-muted:     #A9BCD4;
    --medical-teal:   #00B4D8;
    --teal-dark:      #38CAE8;
    --teal-light:     #113A4F;

    --navy-950: #0D1829;
    --navy-900: #132238;
    --navy-800: #1E3250;
    --navy-700: #2A4368;
    --navy-600: #3B557E;
    --blue-dim: #38CAE8;
    --violet:   #F8F9FA;
    --violet-dim:#243B5E;
    --white:    #F8F9FA;
    --white-dim:#A9BCD4;
    --glass-bg: #132238;
    --glass-border: #2A4368;
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--navy-950);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* =============================================
   PARTICLE CANVAS
   ============================================= */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* =============================================
   SCREENS
   ============================================= */
.screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

#screen-landing      { display: flex; flex-direction: column; }
#screen-onboarding   { display: none; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; padding: 40px 24px; }
#screen-calibration  { display: none; flex-direction: column; align-items: center; justify-content: center; min-height: 100vh; }
#screen-demo         { display: none; flex-direction: column; }

/* =============================================
   LANDING - HERO
   ============================================= */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
  gap: 28px;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 800px 600px at 50% 40%, rgba(124,77,255,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 600px 400px at 30% 60%, rgba(79,195,247,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.eye-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 60px rgba(124,77,255,0.5), 0 0 120px rgba(79,195,247,0.2);
  animation: pulse-logo 3s ease-in-out infinite;
}

.eye-logo svg { width: 52px; height: 52px; }

@keyframes pulse-logo {
  0%, 100% { box-shadow: 0 0 60px rgba(124,77,255,0.5), 0 0 120px rgba(79,195,247,0.2); }
  50%       { box-shadow: 0 0 90px rgba(124,77,255,0.8), 0 0 180px rgba(79,195,247,0.35); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(79,195,247,0.12);
  border: 1px solid rgba(79,195,247,0.3);
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 20%, var(--blue) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--white-dim);
  max-width: 560px;
  line-height: 1.6;
  font-weight: 300;
}

.hero-tagline em {
  color: var(--white);
  font-style: normal;
  font-weight: 500;
}

.config-card {
  width: 100%;
  max-width: 480px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.config-card h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.slider-row { display: flex; flex-direction: column; gap: 10px; }

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--white-dim);
}

.slider-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  line-height: 1;
}

.slider-value span { color: var(--blue); font-size: 18px; font-weight: 500; }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 100px;
  background: var(--navy-700);
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  cursor: pointer;
  box-shadow: 0 0 12px rgba(79,195,247,0.5);
  transition: transform 0.15s;
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }

.diopter-description {
  font-size: 13px;
  color: var(--white-dim);
  text-align: center;
  line-height: 1.5;
  min-height: 36px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 48px;
  border-radius: 100px;
  border: none;
  background: linear-gradient(135deg, var(--violet) 0%, var(--blue) 100%);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 40px rgba(124,77,255,0.45);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 60px rgba(124,77,255,0.6); }
.btn-cta:hover::before { opacity: 1; }
.btn-cta:active { transform: translateY(0); }

.stats-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.stat { text-align: center; display: flex; flex-direction: column; gap: 4px; }

.stat-number {
  font-size: 28px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 12px; color: var(--white-dim); font-weight: 400; }

/* =============================================
   ONBOARDING SCREEN
   ============================================= */
.onboarding-container {
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
}

.onboarding-steps {
  display: flex;
  gap: 8px;
  align-items: center;
}

.step-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--navy-700);
  transition: all 0.3s;
}

.step-dot.active { background: var(--blue); width: 24px; border-radius: 4px; }
.step-dot.done   { background: var(--green); }

.onboarding-icon {
  width: 120px; height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(124,77,255,0.2), rgba(79,195,247,0.2));
  border: 1px solid rgba(124,77,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 52px;
  animation: pulse-logo 3s ease-in-out infinite;
}

.onboarding-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 800;
  line-height: 1.2;
}

.onboarding-body {
  font-size: 16px;
  color: var(--white-dim);
  line-height: 1.7;
  max-width: 440px;
}

.onboarding-card {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: left;
}

.onboarding-card-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.onboarding-card-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,77,255,0.25), rgba(79,195,247,0.15));
  border: 1px solid rgba(124,77,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.onboarding-card-text h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.onboarding-card-text p  { font-size: 13px; color: var(--white-dim); line-height: 1.5; }

.permission-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}

.permission-badge.granted { background: rgba(0,229,160,0.1); border: 1px solid rgba(0,229,160,0.3); color: var(--green); }
.permission-badge.denied  { background: rgba(255,179,0,0.1);  border: 1px solid rgba(255,179,0,0.3);  color: var(--amber); }
.permission-badge.pending { background: var(--glass-bg);       border: 1px solid var(--glass-border);  color: var(--white-dim); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--white-dim);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover { background: rgba(255,255,255,0.08); color: var(--white); }

.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* =============================================
   CALIBRATION SCREEN
   ============================================= */
#calibration-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#calibration-dot {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(79,195,247,0.2), 0 0 30px rgba(79,195,247,0.6);
  transform: translate(-50%, -50%);
  transition: all 1.2s cubic-bezier(.4,0,.2,1);
  z-index: 10;
}

#calibration-dot::before {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(79,195,247,0.5);
  animation: cal-ring 1.5s ease-in-out infinite;
}

@keyframes cal-ring {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

#calibration-progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  transition: width 0.3s linear;
  z-index: 20;
}

#calibration-info {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cal-badge {
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(79,195,247,0.12);
  border: 1px solid rgba(79,195,247,0.3);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

#calibration-info h3 { font-size: 20px; font-weight: 700; }
#calibration-info p  { font-size: 14px; color: var(--white-dim); }

#calibration-timer-ring {
  width: 60px; height: 60px;
  position: relative;
}

#calibration-timer-ring svg {
  transform: rotate(-90deg);
}

#calibration-timer-ring circle {
  fill: none;
  stroke: var(--navy-700);
  stroke-width: 4;
}

#calibration-timer-ring .progress-circle {
  stroke: var(--blue);
  stroke-dasharray: 157;
  stroke-dashoffset: 157;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.1s linear;
}

#cal-timer-number {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--white);
}

.cal-point-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cal-point-indicator {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(79,195,247,0.2);
  border: 1px solid rgba(79,195,247,0.3);
  transform: translate(-50%, -50%);
  transition: all 0.3s;
}

.cal-point-indicator.done {
  background: rgba(0,229,160,0.4);
  border-color: var(--green);
}

/* =============================================
   DEMO SCREEN
   ============================================= */
.demo-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(5,11,24,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 100;
  gap: 10px;
  flex-wrap: wrap;
}

.demo-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
}

.demo-nav-logo .mini-eye {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  display: flex; align-items: center; justify-content: center;
}

.demo-nav-logo .mini-eye svg { width: 16px; height: 16px; }

.nav-center {
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-group {
  display: flex;
  background: var(--navy-800);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.toggle-btn {
  padding: 7px 16px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
  color: var(--white-dim);
}

.toggle-btn.active {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,77,255,0.4);
}

.content-selector {
  display: flex;
  background: var(--navy-800);
  border-radius: 100px;
  padding: 3px;
  gap: 2px;
}

.content-btn {
  padding: 6px 12px;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 600;
  transition: var(--transition);
  background: transparent;
  color: var(--white-dim);
}

.content-btn.active {
  background: rgba(79,195,247,0.15);
  color: var(--blue);
  border: 1px solid rgba(79,195,247,0.3);
}

.nav-right { display: flex; align-items: center; gap: 8px; }

/* Eye tracking status indicator */
.et-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}

.et-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--white-dim);
}

.et-status.mouse .et-dot  { background: var(--amber); animation: blink 2s ease-in-out infinite; }
.et-status.camera .et-dot { background: var(--green); animation: blink 1.5s ease-in-out infinite; }
.et-status.inactive .et-dot { background: var(--white-dim); }

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.btn-settings {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-settings:hover { background: rgba(255,255,255,0.08); border-color: var(--blue); }

/* =============================================
   DEMO VIEWPORT
   ============================================= */
.demo-viewport {
  position: relative;
  overflow: hidden;
  cursor: none;
  height: calc(100vh - 57px);
  user-select: none;
}

.text-layer {
  position: absolute;
  inset: 0;
  padding: 48px;
  overflow: hidden;
  font-family: 'Lora', serif;
  font-size: 18px;
  line-height: 1.8;
  color: #c8d8f0;
  background: var(--navy-900);
  transition: filter 0.4s ease;
}

/* Lens element */
.lens {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(79,195,247,0.6),
    0 0 0 4px rgba(124,77,255,0.25),
    0 0 40px rgba(79,195,247,0.3),
    0 8px 40px rgba(0,0,0,0.6);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
  opacity: 0;
}

.lens.visible { opacity: 1; }

.lens::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    rgba(255,255,255,0.12) 0%,
    transparent 60%
  );
  z-index: 2;
  pointer-events: none;
}

.lens::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 30px rgba(0,0,0,0.4), inset 0 0 8px rgba(79,195,247,0.15);
  z-index: 3;
  pointer-events: none;
}

.lens-content {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
}

.lens-text {
  position: absolute;
  padding: 48px;
  font-family: 'Lora', serif;
  line-height: 1.8;
  color: #f0f8ff;
  background: var(--navy-900);
  transform-origin: top left;
}

.cursor-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  transform: translate(-50%, -50%);
  z-index: 51;
  pointer-events: none;
  box-shadow: 0 0 8px var(--blue);
  transition: opacity 0.3s;
  opacity: 0;
}

.cursor-dot.visible { opacity: 1; }

.demo-viewport.no-neweyes .lens,
.demo-viewport.no-neweyes .cursor-dot,
.demo-viewport.no-neweyes .lens-ring { opacity: 0 !important; }

/* =============================================
   SETTINGS PANEL (side drawer)
   ============================================= */
.settings-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.settings-overlay.open { opacity: 1; pointer-events: all; }

.settings-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(380px, 95vw);
  background: linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%);
  border-left: 1px solid var(--glass-border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

.settings-overlay.open .settings-panel { transform: translateX(0); }

.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.settings-header h2 { font-size: 20px; font-weight: 700; }

.btn-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  transition: var(--transition);
}

.btn-close:hover { background: rgba(255,255,255,0.1); }

.setting-group { display: flex; flex-direction: column; gap: 14px; }

.setting-group h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
}

.setting-item { display: flex; flex-direction: column; gap: 8px; }

.setting-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-label { font-size: 14px; font-weight: 500; color: var(--white-dim); }
.setting-val   { font-size: 14px; font-weight: 700; color: var(--white); }

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.switch {
  width: 48px; height: 26px;
  background: var(--navy-700);
  border-radius: 100px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.switch.on { background: linear-gradient(135deg, var(--violet), var(--blue)); }

.switch-thumb {
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.switch.on .switch-thumb { transform: translateX(22px); }

.btn-recal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(79,195,247,0.3);
  background: rgba(79,195,247,0.06);
  color: var(--blue);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-recal:hover { background: rgba(79,195,247,0.12); }

/* =============================================
   INFO SECTION
   ============================================= */
.info-section {
  background: var(--navy-900);
  border-top: 1px solid var(--glass-border);
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 64px;
}

.info-container { max-width: 960px; width: 100%; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 24px; height: 2px;
  background: var(--blue);
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.stat-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.stat-card:hover {
  border-color: rgba(79,195,247,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}

.stat-card-number {
  font-size: 42px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-card-label { font-size: 15px; font-weight: 600; color: var(--white); }
.stat-card-desc  { font-size: 13px; color: var(--white-dim); line-height: 1.5; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.how-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}

.how-card:hover { border-color: rgba(124,77,255,0.35); transform: translateY(-4px); }

.how-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124,77,255,0.2), rgba(79,195,247,0.2));
  border: 1px solid rgba(124,77,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}

.how-card h4 { font-size: 16px; font-weight: 700; }
.how-card p  { font-size: 14px; color: var(--white-dim); line-height: 1.6; }

.roadmap { display: flex; flex-direction: column; gap: 0; position: relative; }

.roadmap::before {
  content: '';
  position: absolute;
  left: 20px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--blue), var(--violet), transparent);
}

.roadmap-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
}

.roadmap-dot {
  width: 42px; height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.roadmap-dot.done     { background: linear-gradient(135deg, var(--blue), var(--violet)); box-shadow: 0 0 20px rgba(79,195,247,0.4); }
.roadmap-dot.progress { background: var(--navy-700); border: 2px solid var(--violet); color: var(--violet); }
.roadmap-dot.future   { background: var(--navy-800); border: 2px solid var(--glass-border); color: var(--white-dim); }

.roadmap-body { flex: 1; padding-top: 8px; }
.roadmap-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.roadmap-body p  { font-size: 13px; color: var(--white-dim); line-height: 1.5; }

.roadmap-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.06em;
}

.roadmap-badge.done     { background: rgba(79,195,247,0.15); color: var(--blue); }
.roadmap-badge.progress { background: rgba(124,77,255,0.15); color: var(--violet); }
.roadmap-badge.future   { background: rgba(255,255,255,0.06); color: var(--white-dim); }

.footer {
  text-align: center;
  padding: 32px 24px;
  font-size: 13px;
  color: var(--white-dim);
  border-top: 1px solid var(--glass-border);
  background: var(--navy-950);
  position: relative;
  z-index: 1;
}

.footer strong { color: var(--white); }

/* =============================================
   READING CONTENT
   ============================================= */
.article-header { margin-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 24px; }

.article-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.article-title {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 600;
  line-height: 1.25;
  color: #e8f4ff;
  margin-bottom: 12px;
}

.article-byline { font-size: 13px; color: var(--white-dim); font-style: italic; }

.article-body p { margin-bottom: 20px; text-align: justify; hyphens: auto; }

.article-body p:first-child::first-letter {
  font-size: 72px;
  font-weight: 700;
  float: left;
  margin: 0 12px -8px 0;
  line-height: 1;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.article-pullquote {
  border-left: 3px solid var(--violet);
  margin: 28px 0;
  padding: 16px 24px;
  font-style: italic;
  font-size: 1.1em;
  color: #a8c4e0;
  background: rgba(124,77,255,0.06);
  border-radius: 0 12px 12px 0;
}

/* =============================================
   LENS RING
   ============================================= */
.lens-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(79,195,247,0.25);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 49;
  transition: opacity 0.3s;
  opacity: 0;
  animation: ring-pulse 2.5s ease-in-out infinite;
}

.lens-ring.visible { opacity: 1; }

@keyframes ring-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50%       { transform: translate(-50%, -50%) scale(1.06); opacity: 0.9; }
}

/* =============================================
   HINT BAR
   ============================================= */
.hint-bar {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(5,11,24,0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-size: 13px;
  color: var(--white-dim);
  z-index: 60;
  pointer-events: none;
  animation: hint-pulse 2s ease-in-out infinite;
  white-space: nowrap;
}

@keyframes hint-pulse {
  0%, 100% { opacity: 0.8; }
  50%       { opacity: 1; }
}

.hint-bar .hint-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   FADE-UP ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.7s cubic-bezier(.4,0,.2,1) forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.1s; }
.fade-up:nth-child(2) { animation-delay: 0.2s; }
.fade-up:nth-child(3) { animation-delay: 0.35s; }
.fade-up:nth-child(4) { animation-delay: 0.5s; }
.fade-up:nth-child(5) { animation-delay: 0.65s; }
.fade-up:nth-child(6) { animation-delay: 0.8s; }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* =============================================
   READING PROGRESS BAR
   ============================================= */
#reading-progress {
  position: fixed;
  top: 57px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  z-index: 101;
  width: 0%;
  transition: width 0.2s;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 600px) {
  .hero { padding: 60px 16px 40px; }
  .config-card { padding: 20px; }
  .text-layer, .lens-text { padding: 24px 20px; font-size: 16px; }
  .demo-nav { padding: 10px 12px; }
  .nav-center { display: none; }
  .toggle-group { flex-wrap: nowrap; }
  .toggle-btn { padding: 6px 10px; font-size: 11px; }
}

/* WebGazer video override */
#webgazerVideoContainer, #webgazerFaceOverlay, #webgazerFaceFeedbackBox {
  display: none !important;
}

/* Shape buttons */
.shape-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04);
  color: var(--white-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  letter-spacing: .02em;
}
.shape-btn:hover { border-color: var(--blue); color: var(--blue); }
.shape-btn.active {
  border-color: var(--blue);
  background: rgba(79,195,247,.12);
  color: var(--blue);
  box-shadow: 0 0 12px rgba(79,195,247,.2);
}

/* Size preset buttons */
.size-preset {
  flex: 1;
  padding: 5px 4px;
  border-radius: 7px;
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.04);
  color: var(--white-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
}
.size-preset:hover {
  border-color: var(--violet);
  color: var(--violet);
  background: rgba(124,77,255,.1);
}

/* Floating controls on the right */
.floating-control {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 150;
}
.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: rgba(13, 26, 53, 0.85);
  backdrop-filter: blur(12px);
  color: var(--white);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.floating-btn:hover {
  transform: scale(1.1) translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 0 20px rgba(79, 195, 247, 0.4);
}
.floating-btn.active {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  border-color: var(--white);
  box-shadow: 0 0 25px rgba(124, 77, 255, 0.6);
}

/* =============================================
   NEWEYES V2: READING BAR, FRAME & DALTONISM
   ============================================= */

/* Minimal Screen Frame (Border) */
#screen-frame-border {
  position: fixed;
  inset: 0;
  border: 3px solid transparent;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease, border-color 0.3s ease;
}
#screen-frame-border.active {
  opacity: 1;
  border-image: linear-gradient(135deg, var(--blue), var(--violet), var(--green)) 1;
  box-shadow: inset 0 0 15px rgba(79, 195, 247, 0.25);
}

/* Draggable 👓 FAB Button */
#fab-glasses {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #112247, #0d1a35);
  border: 2px solid var(--blue);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 15px rgba(79, 195, 247, 0.4);
  color: #fff;
  font-size: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 9999;
  user-select: none;
  touch-action: none;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.9);
  transition: opacity 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
}
#fab-glasses.visible {
  opacity: 1;
  pointer-events: all;
  transform: scale(1);
}
#fab-glasses:active {
  cursor: grabbing;
  transform: scale(1.08);
}
#fab-glasses.off {
  border-color: rgba(255, 255, 255, 0.2);
  filter: grayscale(1);
  opacity: 0.7;
}

/* Overlay active mode styles */
.screen.overlay-active .demo-viewport {
  height: 100vh !important;
  cursor: default;
}
.screen.overlay-active .floating-control {
  display: none !important;
}

/* =============================================
   HORIZONTAL READING BAR
   ============================================= */
.reading-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 130px;
  z-index: 950;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  background: var(--navy-950);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 20px rgba(79, 195, 247, 0.2);
  transition: opacity 0.25s ease, height 0.2s ease;
}
.reading-bar.visible {
  opacity: 1;
}
.reading-bar.dock-top {
  top: 0;
  border-bottom: 3px solid var(--blue);
}
.reading-bar.dock-bottom {
  bottom: 0;
  border-top: 3px solid var(--violet);
}

.reading-bar-content {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bar-text {
  position: absolute;
  padding: 48px;
  font-family: 'Lora', serif;
  line-height: 1.8;
  color: #f0f8ff;
  background: var(--navy-950);
  transform-origin: top left;
}

#bar-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
}

/* Reading guide slice on the underlying layer */
.reading-guide {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  border-top: 1px dashed rgba(79, 195, 247, 0.6);
  border-bottom: 1px dashed rgba(79, 195, 247, 0.6);
  background: rgba(79, 195, 247, 0.05);
  pointer-events: none;
  z-index: 45;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.reading-guide.visible {
  opacity: 1;
}

/* Choice Buttons for Settings & Onboarding */
.choice-btn {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.choice-btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.choice-btn.active {
  border-color: var(--blue);
  background: rgba(79, 195, 247, 0.15);
  color: #fff;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.3);
}

/* Mode segmented switcher (Bar vs Lens) */
.mode-segmented {
  display: flex;
  background: var(--navy-800);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin-top: 6px;
}
.mode-seg-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--white-dim);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.mode-seg-btn.active {
  background: linear-gradient(135deg, var(--violet), var(--blue));
  color: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Modal for Color Vision Test */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-card {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 30px;
  width: min(440px, 92vw);
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

/* =============================================
   SCREEN-SHARE HUB (ZOOM / TEAMS FILTER MODE)
   ============================================= */
.demo-viewport.screen-hub-mode {
  cursor: default !important;
  overflow-y: auto;
}
.demo-viewport.screen-hub-mode .lens,
.demo-viewport.screen-hub-mode .reading-bar,
.demo-viewport.screen-hub-mode .reading-guide,
.demo-viewport.screen-hub-mode .lens-ring,
.demo-viewport.screen-hub-mode .cursor-dot,
.demo-viewport.screen-hub-mode .hint-bar {
  opacity: 0 !important;
  pointer-events: none !important;
  display: none !important;
}

.screen-share-hub {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 28px 20px 44px;
  background: radial-gradient(circle at 50% 0%, rgba(79, 195, 247, 0.09) 0%, var(--navy-950) 68%);
  overflow-y: auto;
  cursor: default;
}

.hub-inner {
  width: min(920px, 100%);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hub-status-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgba(13, 26, 53, 0.85);
  border: 1px solid rgba(0, 229, 160, 0.35);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hub-status-banner.waiting {
  border-color: rgba(79, 195, 247, 0.35);
}

.hub-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #00E5A0;
  box-shadow: 0 0 10px #00E5A0;
  animation: pulseDot 1.6s infinite ease-in-out;
}
.hub-status-banner.waiting .hub-live-dot {
  background: var(--blue);
  box-shadow: 0 0 10px var(--blue);
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}

.hub-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 18px;
}

@media (max-width: 780px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  background: linear-gradient(180deg, rgba(17, 34, 71, 0.85), rgba(8, 15, 32, 0.92));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.hub-card.primary-card {
  border-color: rgba(79, 195, 247, 0.45);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5), 0 0 28px rgba(79, 195, 247, 0.12);
}

.btn-share-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: 100px;
  border: 1px solid rgba(0, 229, 160, 0.5);
  background: linear-gradient(135deg, #00c88a, #009975);
  color: #04130e;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(0, 229, 160, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-share-green:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(0, 229, 160, 0.5);
}

.hub-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-qr-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(5, 11, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

@media (max-width: 500px) {
  .hub-qr-wrap {
    flex-direction: column;
    text-align: center;
  }
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 540px;
}

/* ============================================================================
   NEWEYES 2026 DESIGN SYSTEM (Adaptive Light Mode & Dark Mode)
   ☀️ Light: 60% Porcelain (#F8F9FA) · 30% Midnight Navy (#132238) · 10% Medical Teal (#00B4D8)
   🌙 Dark:  60% Midnight Navy (#0D1829 / #132238) · 30% Porcelain (#F8F9FA) · 10% Medical Teal (#00B4D8)
   ============================================================================ */

#particle-canvas { opacity: 0.22; }

.hero-badge {
  background: var(--teal-light);
  border: 1px solid rgba(0, 180, 216, 0.42);
  color: var(--teal-dark);
}

.hero-title {
  background: linear-gradient(135deg, var(--midnight-navy) 35%, var(--medical-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.config-card,
.onboarding-card,
.stat-card,
.how-card,
.modal-card {
  background: var(--porcelain-card);
  border: 1px solid var(--porcelain-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.slider-value { color: var(--medical-teal); }

input[type="range"] { background: var(--porcelain-border); }
input[type="range"]::-webkit-slider-thumb {
  background: var(--medical-teal);
  border: 2px solid #FFFFFF;
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.45);
}

/* 30% Structure — Barra de Navegação Superior em Midnight Navy */
.demo-nav {
  background: var(--navy-structural);
  color: #FFFFFF;
  border-bottom: 2px solid var(--medical-teal);
}
.demo-nav-logo { color: #FFFFFF; }
.demo-nav-logo .mini-eye {
  background: var(--medical-teal);
}
.demo-nav .toggle-group,
.demo-nav .content-selector {
  background: var(--navy-elevated);
}
.demo-nav .toggle-btn,
.demo-nav .content-btn {
  color: rgba(255, 255, 255, 0.82);
}
.demo-nav .toggle-btn.active,
.demo-nav .content-btn.active {
  background: var(--medical-teal);
  color: #FFFFFF;
  border-color: var(--medical-teal);
  box-shadow: 0 2px 10px rgba(0, 180, 216, 0.35);
}
.demo-nav .et-status {
  background: var(--navy-elevated);
  border-color: rgba(0, 180, 216, 0.45);
  color: #FFFFFF;
}
.demo-nav .btn-settings {
  background: var(--medical-teal);
  border-color: var(--medical-teal);
  color: #FFFFFF;
  font-weight: 700;
}
.demo-nav .btn-settings:hover {
  background: #0090AD;
}

/* Área de Leitura de Alto Contraste Adaptativa (Light: Navy sobre Porcelain | Dark: Porcelain sobre Navy) */
.text-layer {
  color: var(--midnight-navy);
  background: var(--porcelain);
}
.lens-text,
.bar-text {
  color: var(--midnight-navy);
  background: var(--porcelain-card);
}
.lens {
  box-shadow:
    0 0 0 3px var(--medical-teal),
    0 0 0 6px rgba(0, 180, 216, 0.22),
    0 14px 44px rgba(0, 0, 0, 0.36);
}
.lens::after {
  box-shadow: inset 0 0 18px rgba(0, 180, 216, 0.12);
}
.reading-bar {
  background: var(--porcelain-card);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.32), 0 0 20px rgba(0, 180, 216, 0.22);
}
.reading-bar.dock-top { border-bottom: 3px solid var(--medical-teal); }
.reading-bar.dock-bottom { border-top: 3px solid var(--medical-teal); }

.article-header { border-bottom: 1px solid var(--porcelain-border); }
.article-kicker { color: var(--teal-dark); }
.article-title  { color: var(--midnight-navy); }
.article-byline { color: var(--navy-muted); }
.article-pullquote {
  border-left: 3px solid var(--medical-teal);
  color: var(--midnight-navy);
  background: var(--teal-light);
}

.hint-bar {
  background: var(--navy-structural);
  border: 1.5px solid var(--medical-teal);
  color: #FFFFFF;
}
.hint-bar .hint-dot {
  background: var(--medical-teal);
  box-shadow: 0 0 8px var(--medical-teal);
}

/* Botões flutuantes e FAB 👓 em Midnight Navy + Medical Teal */
.floating-btn {
  background: var(--navy-structural);
  border: 1.5px solid rgba(0, 180, 216, 0.55);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32);
}
.floating-btn.active {
  background: var(--medical-teal);
  border-color: #FFFFFF;
  box-shadow: 0 0 22px rgba(0, 180, 216, 0.55);
}

#screen-frame-border.active {
  border: 3px solid var(--medical-teal);
  border-image: none;
  box-shadow: inset 0 0 15px rgba(0, 180, 216, 0.24);
}

#fab-glasses {
  background: var(--navy-structural);
  border: 2.5px solid var(--medical-teal);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 15px rgba(0, 180, 216, 0.38);
}

/* Gaveta de Definições e Botões de Escolha (Adaptativa Light / Dark) */
.settings-panel {
  background: var(--porcelain);
  border-left: 2px solid var(--porcelain-border);
  color: var(--midnight-navy);
}
.settings-header h2 { color: var(--midnight-navy); }
.setting-group {
  background: var(--porcelain-card);
  border: 1px solid var(--porcelain-border);
  border-radius: 16px;
  padding: 14px;
}
.setting-group h3 { color: var(--teal-dark); }
.setting-label { color: var(--midnight-navy); font-weight: 600; }
.setting-val   { color: var(--medical-teal); font-weight: 800; }

.choice-btn,
.shape-btn,
.size-preset {
  background: var(--porcelain-muted);
  border: 1px solid var(--porcelain-border);
  color: var(--midnight-navy);
  font-weight: 600;
}
.choice-btn:hover,
.shape-btn:hover,
.size-preset:hover {
  border-color: var(--medical-teal);
  color: var(--teal-dark);
}
.choice-btn.active,
.shape-btn.active {
  background: var(--medical-teal);
  border-color: var(--medical-teal);
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(0, 180, 216, 0.28);
}

.mode-segmented {
  background: var(--porcelain-muted);
  border: 1px solid var(--porcelain-border);
}
.mode-seg-btn { color: var(--midnight-navy); }
.mode-seg-btn.active {
  background: var(--medical-teal);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}

.switch { background: var(--navy-600); }
.switch.on { background: var(--medical-teal); }

/* Botão Principal CTA (10% Medical Teal #00B4D8) & Secundário (30% Midnight Navy) */
.btn-share-green {
  background: var(--medical-teal);
  border: none;
  color: #FFFFFF;
  box-shadow: 0 8px 28px rgba(0, 180, 216, 0.35);
}
.btn-share-green:hover {
  background: #0090AD;
  box-shadow: 0 12px 34px rgba(0, 180, 216, 0.48);
}
.btn-cta {
  background: var(--navy-structural);
  border: 1px solid var(--porcelain-border);
  color: #FFFFFF;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}
.btn-cta:hover {
  background: var(--navy-elevated);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.38);
}

/* Hub de Partilha de Ecrã */
.screen-share-hub {
  background: radial-gradient(circle at 50% 0%, rgba(0, 180, 216, 0.12) 0%, var(--porcelain) 68%);
}
.hub-status-banner {
  background: var(--navy-structural);
  color: #FFFFFF;
  border: 1.5px solid var(--medical-teal);
}
.hub-card {
  background: var(--porcelain-card);
  border: 1px solid var(--porcelain-border);
  color: var(--midnight-navy);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
}
.hub-card.primary-card {
  border-color: var(--medical-teal);
}
.hub-qr-wrap {
  background: var(--porcelain-muted);
  border: 1px solid var(--porcelain-border);
  color: var(--midnight-navy);
}
.footer {
  background: var(--navy-structural);
  color: rgba(255, 255, 255, 0.78);
  border-top: 2px solid var(--medical-teal);
}
.footer strong { color: #FFFFFF; }
