/* ==========================================================================
   NOUVELYA HIS - MAIN DESIGN SYSTEM & LAYOUT
   Brand Palette derived from Original NOUVELYA HIS Logo & Live System UI:
   - Royal Blue (#1D5CE5)  | Magenta-Plum (#8B1874 / #C026D3)
   - Sky Cyan (#0EA5E9)    | Crimson Accent (#D91E18)
   ========================================================================== */

:root {
  /* Dark Theme Default - Deep Indigo-Plum Midnight */
  --bg-primary: #090814;
  --bg-secondary: #110E22;
  --bg-card: rgba(19, 17, 38, 0.78);
  --bg-card-hover: rgba(30, 26, 58, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --border-color: rgba(255, 255, 255, 0.09);
  --border-highlight: rgba(192, 38, 211, 0.38);

  --text-primary: #f8faff;
  --text-secondary: #b4bcd0;
  --text-muted: #7c859e;

  /* Original Logo Brand Colors */
  --brand-blue: #2563eb;
  --brand-blue-dark: #1d4ed8;
  --brand-plum: #6b0064;
  --brand-magenta: #a8208e;
  --brand-fuchsia: #c026d3;
  --brand-cyan: #0ea5e9;
  --brand-crimson: #d91e18;
  --brand-gold: #f59e0b;

  /* Semantic Aliases */
  --primary-accent: #c026d3;
  --primary-accent-hover: #a21caf;
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #2563eb 0%, #8b1874 55%, #c026d3 100%);
  --gradient-brand-hover: linear-gradient(135deg, #1d4ed8 0%, #701a75 55%, #a21caf 100%);
  --gradient-text: linear-gradient(135deg, #60a5fa 0%, #e879f9 55%, #38bdf8 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  --gradient-glow: radial-gradient(circle, rgba(168, 32, 142, 0.22) 0%, transparent 70%);

  /* Shadows */
  --shadow-sm: 0 4px 10px -2px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 12px 28px -6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 48px -12px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 36px rgba(168, 32, 142, 0.28);

  /* Radii & Motion */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8faff;
  --bg-secondary: #f0f2fa;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-glass: rgba(29, 78, 216, 0.04);
  --border-color: rgba(15, 23, 42, 0.1);
  --border-highlight: rgba(139, 24, 116, 0.32);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --primary-accent: #8b1874;
  --primary-accent-hover: #6b0064;
  --gradient-text: linear-gradient(135deg, #1d4ed8 0%, #8b1874 60%, #c026d3 100%);

  --shadow-sm: 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 28px -6px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 22px 44px -10px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 28px rgba(139, 24, 116, 0.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

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

/* Ambient Canvas */
#hero-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

[data-theme="light"] #hero-canvas {
  opacity: 0.35;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.18;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.text-brand {
  color: var(--primary-accent);
}

.text-blue {
  color: var(--accent-blue);
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-emerald {
  color: var(--accent-emerald);
}

.text-gold {
  color: var(--brand-gold);
}

.text-crimson {
  color: var(--brand-crimson);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

.section {
  padding: 96px 0;
  position: relative;
  z-index: 2;
}

.section-sm {
  padding: 64px 0;
  position: relative;
  z-index: 2;
}

.section-dark-bg {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(168, 32, 142, 0.14);
  border: 1px solid rgba(192, 38, 211, 0.34);
  border-radius: var(--radius-full);
  color: #e879f9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

[data-theme="light"] .section-tag {
  background: rgba(139, 24, 116, 0.08);
  border-color: rgba(139, 24, 116, 0.25);
  color: var(--brand-plum);
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.08rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   NAVBAR & ORIGINAL LOGO SWITCHING
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 15px 0;
  background: rgba(9, 8, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.16);
  transition: all var(--transition-normal);
}

[data-theme="light"] .navbar-wrapper {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(15, 23, 42, 0.09);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
}

.navbar-wrapper.scrolled {
  padding: 10px 0;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
}

/* Auto-switch between White Logo (dark mode) & Colored Logo (light mode) */
.logo-light-theme {
  display: none;
}

.logo-dark-theme {
  display: block;
}

[data-theme="light"] .logo-light-theme {
  display: block;
}

[data-theme="light"] .logo-dark-theme {
  display: none;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

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

.theme-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.theme-btn:hover {
  border-color: var(--primary-accent);
  color: var(--primary-accent);
}

.theme-icon-light {
  display: none;
}

[data-theme="light"] .theme-icon-dark {
  display: none;
}

[data-theme="light"] .theme-icon-light {
  display: inline-block;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger-btn span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hamburger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION & SUB-PAGE HERO
   ========================================================================== */
.hero-section {
  padding-top: 112px;
  padding-bottom: 64px;
  overflow: hidden;
}

.page-hero {
  padding-top: 148px;
  padding-bottom: 64px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: radial-gradient(ellipse at top, rgba(139, 24, 116, 0.16) 0%, transparent 65%);
  border-bottom: 1px solid var(--border-color);
}

.page-hero-title {
  font-size: clamp(2.25rem, 4.2vw, 3.4rem);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.page-hero-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.96fr 1.14fr;
  gap: 54px;
  align-items: center;
}

.hero-grid>*,
.hero-content,
.hero-visual {
  min-width: 0;
  max-width: 100%;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  max-width: 100%;
  line-height: 1.35;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background-color: var(--brand-fuchsia);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--brand-fuchsia);
}

.hero-title {
  font-size: clamp(1.9rem, 2.65vw, 2.55rem);
  line-height: 1.16;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
  max-width: 540px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

/* HERO AUTO-SLIDER TRANSITIONS & CONTROLS */
.hero-slide-copy {
  transition: opacity 0.35s ease, transform 0.35s ease;
  min-height: 205px;
}

.hero-slide-copy.is-fading,
.hero-slide-img.is-fading {
  opacity: 0;
  transform: translateY(8px);
}

.hero-slide-img {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-slider-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-dot {
  width: 28px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-color);
  border: none;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  position: relative;
  transition: width 0.3s ease, background-color 0.3s ease;
}

.hero-dot.active {
  width: 48px;
  background: rgba(192, 38, 211, 0.28);
}

.hero-dot.active::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-brand);
  transform-origin: left;
  animation: heroDotProgress 5.5s linear forwards;
}

.hero-slider-controls.is-paused .hero-dot.active::after {
  animation-play-state: paused;
}

@keyframes heroDotProgress {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

.hero-slide-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  transition: all var(--transition-fast);
}

.hero-slide-arrow:hover {
  border-color: var(--primary-accent);
  color: var(--text-primary);
}

.hero-slide-counter {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-left: 4px;
}

.hero-trust-metrics {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.trust-divider {
  width: 1px;
  height: 22px;
  background-color: var(--border-color);
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

/* ==========================================================================
   REALISTIC CLINIC DESK & MEDICAL WORKSTATION MONITOR MOCKUP
   ========================================================================== */
.clinic-desk-stage {
  position: relative;
  padding: 18px 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Soft ambient architectural clinic glow behind the monitor */
.clinic-desk-stage::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 6%;
  right: 6%;
  bottom: 18%;
  background: radial-gradient(ellipse at 30% 35%, rgba(37, 99, 235, 0.32), transparent 62%),
    radial-gradient(ellipse at 75% 55%, rgba(192, 38, 211, 0.28), transparent 62%);
  filter: blur(36px);
  z-index: 0;
  pointer-events: none;
}

.monitor-assembly {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Monitor outer aluminum & matte-black bezel */
.monitor-bezel {
  width: 100%;
  background: linear-gradient(160deg, #27273a 0%, #11111c 45%, #090910 100%);
  border-radius: 18px;
  padding: 12px 12px 24px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 28px 60px -12px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 1px rgba(255, 255, 255, 0.22);
  position: relative;
}

[data-theme="light"] .monitor-bezel {
  box-shadow:
    0 28px 55px -12px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(15, 23, 42, 0.14),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

/* Top webcam dot */
.monitor-camera {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #334155;
  box-shadow: inset 0 0 2px #0ea5e9;
}

/* Crisp glass display viewport */
.monitor-screen {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.65);
  cursor: zoom-in;
}

/* Subtle diagonal glass sheen */
.monitor-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 32%, transparent 50%);
  pointer-events: none;
}

.monitor-screen img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

/* Monitor chin brand mark & power LED */
.monitor-chin {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.monitor-chin-label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}

.monitor-power-led {
  position: absolute;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

/* Brushed aluminum monitor stand neck */
.monitor-neck {
  width: 84px;
  height: 46px;
  background: linear-gradient(90deg, #64748b 0%, #cbd5e1 28%, #f1f5f9 50%, #94a3b8 75%, #475569 100%);
  clip-path: polygon(16% 0%, 84% 0%, 100% 100%, 0% 100%);
  box-shadow: inset 0 6px 10px rgba(0, 0, 0, 0.35);
}

/* Sculpted metallic monitor foot */
.monitor-base {
  width: 210px;
  height: 11px;
  background: linear-gradient(180deg, #e2e8f0 0%, #94a3b8 55%, #475569 100%);
  border-radius: 10px 10px 4px 4px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.55);
  position: relative;
  z-index: 3;
}

/* Minimalist clinic consultation desk surface */
.clinic-desk-surface {
  width: 100%;
  max-width: 680px;
  height: 44px;
  margin-top: -6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.11) 0%, rgba(148, 163, 184, 0.05) 55%, rgba(15, 23, 42, 0.25) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px 16px 12px 12px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 34px -10px rgba(0, 0, 0, 0.45);
}

[data-theme="light"] .clinic-desk-surface {
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 14px 28px -10px rgba(15, 23, 42, 0.16);
}

/* Subtle wireless keyboard silhouette on the desk */
.desk-keyboard {
  width: 170px;
  height: 9px;
  background: linear-gradient(180deg, #cbd5e1 0%, #64748b 100%);
  border-radius: 6px;
  margin: 0 auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  opacity: 0.9;
}

.desk-prop {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.desk-prop i {
  color: var(--brand-cyan);
}

/* Clean unobstructed feature strip below the clinic desk */
.monitor-highlights-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  z-index: 2;
}

.monitor-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.monitor-chip i {
  color: var(--primary-accent);
}

/* HERO VISUAL & SCREENSHOT SHOWCASE FRAME */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.dashboard-perspective-wrap {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
}

.app-window-frame {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  overflow: hidden;
  position: relative;
}

.app-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(107, 0, 100, 0.28);
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
}

[data-theme="light"] .app-window-bar {
  background: rgba(107, 0, 100, 0.08);
}

.mac-buttons {
  display: flex;
  gap: 7px;
}

.mac-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mac-dot.red {
  background-color: #ef4444;
}

.mac-dot.yellow {
  background-color: #f59e0b;
}

.mac-dot.green {
  background-color: #10b981;
}

.window-url-pill {
  flex: 1;
  min-width: 0;
  max-width: 340px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.window-url-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

[data-theme="light"] .window-url-pill {
  background: rgba(255, 255, 255, 0.78);
}

.window-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #34d399;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.screenshot-viewport {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
  background: #ffffff;
}

.screenshot-viewport img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  backface-visibility: hidden;
  transition: filter 0.3s ease;
}

.screenshot-viewport:hover img {
  filter: brightness(1.03);
}

.screenshot-zoom-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(9, 8, 20, 0.78);
  color: #fff;
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  opacity: 0;
  transform: translateY(6px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.screenshot-viewport:hover .screenshot-zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* Floating Badges around Hero Showcase */
.floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.badge-top-left {
  top: -22px;
  left: -24px;
}

.badge-top-right {
  top: 44px;
  right: -22px;
}

.badge-bottom-left {
  bottom: -22px;
  left: 20px;
}

.badge-bottom-right {
  bottom: -22px;
  right: 20px;
}

.badge-icon-bg {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.bg-brand {
  background: var(--gradient-brand);
}

.bg-blue {
  background: var(--brand-blue);
}

.bg-plum {
  background: var(--brand-magenta);
}

.bg-cyan {
  background: var(--brand-cyan);
}

.bg-emerald {
  background: var(--accent-emerald);
}

.badge-info {
  display: flex;
  flex-direction: column;
}

.badge-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.floating-anim-1 {
  animation: float-slow 5s ease-in-out infinite;
}

.floating-anim-2 {
  animation: float-slow 6s ease-in-out 1s infinite;
}

.floating-anim-3 {
  animation: float-slow 5.5s ease-in-out 0.5s infinite;
}

@keyframes float-slow {

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

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

/* HERITAGE / PARTNERS BAR */
.partners-bar {
  padding: 36px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
  position: relative;
  z-index: 2;
}

.partners-title {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 22px;
  text-transform: uppercase;
}

.partners-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 28px;
}

.partner-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-secondary);
  opacity: 0.85;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.partner-logo i {
  color: var(--primary-accent);
}

.partner-logo:hover {
  opacity: 1;
  color: var(--text-primary);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 24px;
  }

  .hero-cta-group,
  .hero-trust-metrics,
  .hero-slider-controls {
    justify-content: center;
  }

  .badge-top-left,
  .badge-top-right,
  .badge-bottom-left,
  .badge-bottom-right {
    display: none;
  }
}

@media (max-width: 900px) {
  .navbar-wrapper {
    padding: 12px 0;
  }

  .navbar-container {
    gap: 10px;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    align-items: center;
    padding: 22px 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    z-index: 99;
  }

  .nav-links.mobile-open {
    display: flex;
  }

  .hamburger-btn {
    display: flex;
    flex-shrink: 0;
  }

  .nav-actions {
    gap: 8px;
    flex-shrink: 0;
  }

  .nav-actions .btn-ghost {
    display: none;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 58px 0;
  }

  .section-sm {
    padding: 44px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 0.96rem;
  }

  .hero-section {
    padding-top: 96px;
    padding-bottom: 52px;
  }

  .page-hero {
    padding-top: 100px;
    padding-bottom: 42px;
  }

  .page-hero-title {
    font-size: 1.95rem;
  }

  .page-hero-sub {
    font-size: 0.98rem;
  }

  .brand-logo-img {
    height: 28px;
  }

  .theme-btn {
    width: 34px;
    height: 34px;
    font-size: 0.85rem;
  }

  .nav-actions .btn-primary {
    padding: 8px 12px;
    font-size: 0.78rem;
    gap: 6px;
  }

  .badge-pill {
    font-size: 0.74rem;
    padding: 6px 12px;
    gap: 7px;
    border-radius: 14px;
  }

  .hero-slide-copy {
    min-height: auto;
  }

  .hero-title {
    font-size: 1.72rem;
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.94rem;
    line-height: 1.6;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-cta-group .btn-lg {
    width: 100%;
    padding: 13px 20px;
    font-size: 0.94rem;
  }

  .hero-trust-metrics {
    gap: 10px 14px;
    font-size: 0.8rem;
    padding-top: 16px;
  }

  .trust-divider {
    display: none;
  }

  .app-window-bar {
    padding: 8px 10px;
    gap: 8px;
  }

  .window-url-pill {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  .window-live-pill {
    display: none;
  }

  .partners-grid {
    gap: 16px 20px;
  }

  .partner-logo {
    font-size: 0.92rem;
  }
}