/* ═══════════════════════════════════════════════
   Curanda — landing.css (Redesigned & Premium)
   Dark Glassmorphic Theme with CSS Mockups & Animations
   ═══════════════════════════════════════════════ */

:root {
  --brand-night: #0b0f19;
  --brand-navy: #111827;
  --brand-teal: #0F7E8B;
  --brand-teal-light: #45C8D2;
  --brand-icu: #3B82F6;
  --brand-woundcare: #EF4444;
  --brand-safety: #F59E0B;
  --brand-emerald: #10B981;
  --brand-warm-white: #F9FAFB;
  --text-muted: rgba(249, 250, 251, 0.7);

  --card-blur: 20px;
  --card-bg: rgba(17, 24, 39, 0.65);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(69, 200, 210, 0.2);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Global Styles ── */
body.landing-body {
  font-family: var(--font-sans);
  background-color: var(--brand-night);
  color: var(--brand-warm-white);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}

/* Glowing Backdrops */
.landing-bg-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.landing-glow-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(15, 126, 139, 0.15) 0%, rgba(11, 15, 25, 0) 70%);
  filter: blur(120px);
  animation: float-glow-1 20s infinite alternate ease-in-out;
}

.landing-glow-2 {
  position: absolute;
  top: 35%;
  left: -10%;
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, rgba(11, 15, 25, 0) 70%);
  filter: blur(140px);
  animation: float-glow-2 25s infinite alternate ease-in-out;
}

.landing-glow-3 {
  position: absolute;
  bottom: 5%;
  right: -5%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.08) 0%, rgba(11, 15, 25, 0) 70%);
  filter: blur(110px);
  animation: float-glow-3 18s infinite alternate ease-in-out;
}

@keyframes float-glow-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-5%, 8%) scale(1.15); }
}

@keyframes float-glow-2 {
  0% { transform: translate(0, 0) scale(1.1); }
  100% { transform: translate(8%, -6%) scale(0.95); }
}

@keyframes float-glow-3 {
  0% { transform: translate(0, 0) scale(0.9); }
  100% { transform: translate(-10%, -10%) scale(1.1); }
}

/* ── Navbar ── */
.landing-navbar {
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  border-bottom: 1px solid var(--border-light);
  padding: 1.1rem 0;
  transition: all 0.3s ease;
}

.brand-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
  color: var(--brand-warm-white);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-title:hover {
  color: var(--brand-warm-white);
  opacity: 0.95;
}

.btn-landing-login {
  background: rgba(255, 255, 255, 0.05);
  color: var(--brand-warm-white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.55rem 1.5rem;
  border-radius: 99px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-landing-login:hover {
  background: var(--brand-teal-light);
  color: var(--brand-night);
  border-color: var(--brand-teal-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(69, 200, 210, 0.3);
}

/* Smooth anchor scrolling, offset for sticky navbar */
html {
  scroll-behavior: smooth;
}
#moduli, #filosofia, #sicurezza {
  scroll-margin-top: 90px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ── Navbar nav links ── */
.landing-nav {
  gap: 2rem;
}
.landing-nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.landing-nav-link:hover {
  color: var(--brand-teal-light);
}

/* ── Install PWA button ── */
.btn-landing-install {
  background: var(--brand-teal-light);
  color: var(--brand-night);
  border: 1px solid var(--brand-teal-light);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 1.4rem;
  border-radius: 99px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}
.btn-landing-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(69, 200, 210, 0.35);
}

/* ── Hero Section ── */
.landing-hero {
  padding: 7rem 0 5rem;
  position: relative;
  text-align: center;
}

@media (max-width: 991.98px) {
  .landing-hero {
    padding: 3.5rem 0 3rem;
  }
}

@media (min-width: 992px) {
  .landing-hero {
    text-align: left;
  }
}

.hero-tag {
  background: rgba(69, 200, 210, 0.06);
  border: 1px solid rgba(69, 200, 210, 0.18);
  color: var(--brand-teal-light);
  padding: 0.45rem 1.25rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 15px rgba(69, 200, 210, 0.05);
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--brand-warm-white);
  margin-bottom: 1.5rem;
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-title span {
  background: linear-gradient(120deg, #ffffff 10%, var(--brand-teal-light) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

@media (max-width: 991.98px) {
  .hero-subtitle {
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
  }
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

.btn-hero-primary {
  background: var(--brand-teal-light);
  color: var(--brand-night);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem 2.25rem;
  border-radius: 99px;
  transition: all 0.25s ease;
  border: none;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(69, 200, 210, 0.35);
}

.btn-hero-primary:hover {
  background: #ffffff;
  color: var(--brand-night);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.25);
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--brand-warm-white);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.9rem 2.25rem;
  border-radius: 99px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  margin-top: 2.5rem;
  justify-content: center;
}

@media (min-width: 992px) {
  .hero-badges {
    justify-content: flex-start;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(249, 250, 251, 0.6);
}

.hero-badge i {
  color: var(--brand-teal-light);
  font-size: 1.1rem;
}

/* ── CSS Browser Mockup (Hero & Sections) ── */
.browser-mockup {
  background: rgba(17, 24, 39, 0.8);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(69, 200, 210, 0.1);
  overflow: hidden;
  width: 100%;
  max-width: 540px;
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  font-family: var(--font-sans);
  animation: float-mockup 6s ease-in-out infinite;
  text-align: left;
}

@keyframes float-mockup {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.browser-header {
  background: rgba(15, 23, 42, 0.9);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.browser-dots {
  display: flex;
  gap: 0.35rem;
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot-red { background: #EF4444; }
.dot-yellow { background: #F59E0B; }
.dot-green { background: #10B981; }

.browser-title-bar {
  flex-grow: 1;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(249, 250, 251, 0.4);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.2rem 1.5rem;
  border-radius: 4px;
  max-width: 280px;
  margin: 0 auto;
}

.browser-content {
  padding: 1.5rem;
  min-height: 280px;
}

/* ── Interactive Hub Simulation (Inside browser-mockup) ── */
.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.75rem;
}

.sim-brand {
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-warm-white);
}

.sim-user {
  font-size: 0.75rem;
  color: var(--brand-teal-light);
  background: rgba(69, 200, 210, 0.08);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.sim-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sim-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 1rem;
  transition: all 0.2s ease;
}

.sim-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.sim-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(249, 250, 251, 0.5);
  margin-bottom: 0.4rem;
}

.sim-card-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-warm-white);
}

.sim-card-desc {
  font-size: 0.7rem;
  color: var(--brand-teal-light);
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sim-activity-box {
  grid-column: span 2;
  margin-top: 0.5rem;
}

.sim-alert {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.sim-alert i {
  color: var(--brand-safety);
}

/* ── Key Pillars ── */
.pillar-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
}

.pillar-card:hover {
  background: rgba(17, 24, 39, 0.85);
  border-color: var(--border-glow);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(69, 200, 210, 0.1);
}

.pillar-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.pillar-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--brand-teal-light);
  background: rgba(69, 200, 210, 0.08);
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  color: var(--brand-warm-white);
  letter-spacing: -0.02em;
}

.pillar-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

/* ── Philosophy Section (Redesigned) ── */
.philosophy-section {
  padding: 7rem 0;
  position: relative;
}

.philosophy-card {
  background: linear-gradient(135deg, rgba(15, 126, 139, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%);
  border: 1px solid rgba(69, 200, 210, 0.15);
  border-radius: 28px;
  padding: 4rem;
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
}

@media (max-width: 767.98px) {
  .philosophy-card {
    padding: 2rem 1.5rem;
  }
}

.monogram-container {
  display: flex;
  margin-bottom: 1.5rem;
}

.brand-monogram-svg {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 8px 24px rgba(69, 200, 210, 0.3));
  animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 8px 24px rgba(69, 200, 210, 0.3));
  }
  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 12px 35px rgba(69, 200, 210, 0.5));
  }
}

.philosophy-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.philosophy-title span {
  color: var(--brand-teal-light);
}

.philosophy-text-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(249, 250, 251, 0.85);
}

.philosophy-content-card {
  background: rgba(11, 15, 25, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 2.5rem;
}

.philosophy-text-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.philosophy-highlight {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.6;
  color: #ffffff;
  border-left: 3px solid var(--brand-teal-light);
  padding-left: 1.5rem;
  margin-top: 2rem;
}

/* ── Interactive Showcase Section ── */
.showcase-section {
  padding: 6rem 0;
  position: relative;
}

.showcase-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.showcase-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.showcase-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.showcase-container {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
}

@media (max-width: 991.98px) {
  .showcase-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }
}

.showcase-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (max-width: 991.98px) {
  .showcase-tabs {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
  }
}

.showcase-tab {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(249, 250, 251, 0.6);
  padding: 1.25rem 1.5rem;
  border-radius: 14px;
  text-align: left;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .showcase-tab {
    scroll-snap-align: start;
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
}

.showcase-tab i {
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.showcase-tab:hover {
  color: var(--brand-warm-white);
  background: rgba(255, 255, 255, 0.02);
}

.showcase-tab:hover i {
  transform: scale(1.1);
}

.showcase-tab.active {
  background: rgba(69, 200, 210, 0.08);
  border-color: rgba(69, 200, 210, 0.2);
  color: var(--brand-teal-light);
}

/* Showcase Panels */
.showcase-content-area {
  position: relative;
}

.showcase-panel {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.4s ease;
}

.showcase-panel.active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767.98px) {
  .showcase-panel.active {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.showcase-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.showcase-panel-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-teal-light);
  margin-bottom: 0.75rem;
}

/* Color Accent Variations for Panels */
.showcase-panel[data-accent="icu"] .showcase-panel-tag { color: var(--brand-icu); }
.showcase-panel[data-accent="woundcare"] .showcase-panel-tag { color: var(--brand-woundcare); }
.showcase-panel[data-accent="safety"] .showcase-panel-tag { color: var(--brand-safety); }
.showcase-panel[data-accent="emerald"] .showcase-panel-tag { color: var(--brand-emerald); }

.showcase-panel-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.showcase-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.showcase-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.showcase-list li i {
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 1.1rem;
}

.showcase-panel[data-accent="teal"] .showcase-list li i { color: var(--brand-teal-light); }
.showcase-panel[data-accent="icu"] .showcase-list li i { color: var(--brand-icu); }
.showcase-panel[data-accent="woundcare"] .showcase-list li i { color: var(--brand-woundcare); }
.showcase-panel[data-accent="safety"] .showcase-list li i { color: var(--brand-safety); }
.showcase-panel[data-accent="emerald"] .showcase-list li i { color: var(--brand-emerald); }

.showcase-quote {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  font-style: italic;
  font-size: 0.88rem;
  color: rgba(249, 250, 251, 0.5);
  line-height: 1.5;
}

.showcase-visual-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Custom UI Element Mockups ── */
.mockup-ui-frame {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  width: 100%;
  padding: 1rem;
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* Mockup: LP Availability Calendar */
.mockup-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}
.mockup-cal-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--brand-emerald);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.7rem;
}
.mockup-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 0.75rem;
}
.mockup-cal-day {
  aspect-ratio: 1;
  background: rgba(255,255,255,0.02);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: rgba(249, 250, 251, 0.3);
}
.mockup-cal-day.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--brand-emerald);
  font-weight: bold;
}
.mockup-cal-day.selected {
  background: rgba(69, 200, 210, 0.2);
  color: var(--brand-teal-light);
  font-weight: bold;
}
.mockup-cal-btn {
  background: rgba(239, 68, 68, 0.12);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
  font-size: 0.75rem;
  font-weight: 700;
  width: 100%;
  padding: 0.4rem;
  border-radius: 6px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mockup-cal-btn:hover {
  background: #EF4444;
  color: white;
}

/* Mockup: Wound Care Photo Cifrata */
.mockup-wound-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mockup-wound-img {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  background: linear-gradient(45deg, #1f2937, #374151);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.mockup-wound-cipher {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(17, 24, 39, 0.85) 90%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
}
.mockup-wound-cipher i {
  font-size: 1.5rem;
  color: var(--brand-emerald);
}
.mockup-wound-cipher span {
  font-size: 0.65rem;
  font-family: monospace;
  color: rgba(16, 185, 129, 0.8);
  letter-spacing: 0.1em;
}
.mockup-wound-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Mockup: Incident Reporting */
.mockup-report-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.mockup-report-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 0.75rem;
}
.mockup-report-bar {
  height: 4px;
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}
.mockup-report-bar.active {
  background: var(--brand-safety);
}
.mockup-report-input {
  height: 45px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  margin-bottom: 0.75rem;
  padding: 0.5rem;
  font-size: 0.75rem;
  color: rgba(249, 250, 251, 0.4);
}
.mockup-report-signature {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mockup-report-signature span {
  font-size: 0.7rem;
  color: rgba(249, 250, 251, 0.4);
}
.mockup-report-counter {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.12);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.7rem;
  color: var(--brand-safety);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Mockup: FMEA / FMECA Risk Matrix */
.mockup-matrix-header {
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  display: flex;
  justify-content: space-between;
}
.mockup-matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 3px;
  margin-bottom: 0.75rem;
}
.mockup-matrix-cell {
  aspect-ratio: 1.3;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
}
.matrix-green { background: rgba(16, 185, 129, 0.2); color: var(--brand-emerald); }
.matrix-yellow { background: rgba(245, 158, 11, 0.2); color: var(--brand-safety); }
.matrix-red { background: rgba(239, 68, 68, 0.25); color: #EF4444; }
.mockup-matrix-cell.marker {
  box-shadow: 0 0 0 2px #fff, 0 4px 10px rgba(0,0,0,0.5);
  transform: scale(1.15);
  z-index: 2;
}
.mockup-fmea-rpn {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 6px;
  padding: 0.5rem;
  font-size: 0.72rem;
  color: var(--brand-icu);
  display: flex;
  justify-content: space-between;
}

/* ── Technical Info Cards ── */
.tech-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  height: 100%;
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
  transition: all 0.3s ease;
}

.tech-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.tech-icon {
  font-size: 1.75rem;
  color: var(--brand-teal-light);
  margin-bottom: 1.25rem;
  display: inline-flex;
}

.tech-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.tech-desc {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

/* ── Footer ── */
.landing-footer {
  padding: 5rem 0 3rem;
  font-size: 0.85rem;
  color: rgba(249, 250, 251, 0.4);
  border-top: 1px solid var(--border-light);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-link {
  color: rgba(249, 250, 251, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.footer-link:hover {
  color: var(--brand-teal-light);
  border-color: var(--brand-teal-light);
}

.footer-divider {
  opacity: 0.2;
}

/* ── Modals Redesign ── */
.modal-content {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--brand-warm-white);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(var(--card-blur));
  -webkit-backdrop-filter: blur(var(--card-blur));
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 1.5rem 1.5rem 1rem;
}

.modal-title {
  font-weight: 800;
  color: var(--brand-warm-white);
}

.modal-body {
  padding: 1.5rem;
  color: rgba(249, 250, 251, 0.8);
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 1rem 1.5rem 1.5rem;
}

.btn-close {
  filter: invert(1) grayscale(1) brightness(1.5);
  opacity: 0.7;
}

.btn-close:hover {
  opacity: 1;
}

.modal-body hr {
  border-color: rgba(255, 255, 255, 0.15);
}

/* ── Hero Image Styles ── */
.hero-image-wrapper {
  position: relative;
  max-width: 500px;
  width: 100%;
}

@media (max-width: 991.98px) {
  .hero-image-wrapper {
    margin-top: 2rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 360px;
  }
  .hero-image {
    animation: none; /* evita float distraente / jank su mobile */
  }
}

.hero-image {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), 0 0 50px rgba(69, 200, 210, 0.15);
  animation: float-img 6s ease-in-out infinite;
}

@keyframes float-img {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ═══════════════════════════════════════════════
   Hero — Mockup prodotto in CSS+SVG (sostituisce il raster)
   ═══════════════════════════════════════════════ */
@property --hero-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.hero-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  perspective: 1600px;
  animation: hero-stage-float 8s ease-in-out infinite;
}

@media (max-width: 991.98px) {
  .hero-stage { max-width: 440px; margin: 1.5rem auto 0; }
}

@keyframes hero-stage-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-stage-glow {
  position: absolute;
  inset: -14% -10% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 55% at 62% 28%, rgba(69, 200, 210, 0.22), transparent 70%),
    radial-gradient(50% 50% at 22% 82%, rgba(59, 130, 246, 0.16), transparent 70%);
  filter: blur(44px);
}

.hero-app {
  position: relative;
  z-index: 2;
  background: linear-gradient(180deg, rgba(23, 31, 48, 0.94), rgba(13, 18, 30, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 22px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 60px rgba(69, 200, 210, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  overflow: hidden;
  transform: rotateY(-7deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
}

/* Bordo "sweep" luminoso (conic gradient animato via @property) */
.hero-app::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: conic-gradient(from var(--hero-angle),
    transparent 0deg,
    rgba(69, 200, 210, 0.7) 40deg,
    transparent 130deg,
    transparent 250deg,
    rgba(59, 130, 246, 0.55) 320deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0.75;
  pointer-events: none;
  animation: hero-border-spin 7s linear infinite;
}

@keyframes hero-border-spin {
  to { --hero-angle: 360deg; }
}

.hero-app-bar {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.hero-app-mark { width: 26px; height: 26px; display: inline-flex; flex-shrink: 0; }
.hero-app-mark svg { width: 100%; height: 100%; }

.hero-app-titles { display: flex; flex-direction: column; line-height: 1.2; margin-right: auto; }
.hero-app-titles strong { font-size: 0.82rem; color: #fff; font-weight: 700; }
.hero-app-titles span { font-size: 0.66rem; color: var(--text-muted); }

.hero-app-live {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  white-space: nowrap;
}
.hero-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-emerald);
  animation: hero-live-pulse 2s infinite;
}
@keyframes hero-live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-app-body { padding: 1rem; display: flex; flex-direction: column; gap: 0.8rem; }

.hero-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.hero-kpi {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.7rem 0.75rem;
}
.hero-kpi-label {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(249, 250, 251, 0.5);
  margin-bottom: 0.3rem;
  font-weight: 700;
}
.hero-kpi-value { font-size: 1.45rem; font-weight: 800; color: #fff; line-height: 1; }
.hero-kpi-value small { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }
.hero-kpi.accent-amber .hero-kpi-value { color: var(--brand-safety); }

.hero-monitor {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.hero-monitor-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.hero-monitor-head i { color: var(--brand-teal-light); }
.hero-monitor-bpm { color: #fff; font-weight: 700; }
.hero-monitor-bpm small { color: var(--text-muted); font-weight: 500; font-size: 0.65rem; }
.hero-ecg { width: 100%; height: 44px; display: block; }
.hero-ecg-trace,
.hero-ecg-beam {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* traccia sempre visibile (non sparisce mai) */
.hero-ecg-trace { stroke: rgba(69, 200, 210, 0.28); }
/* impulso luminoso che scorre lungo la traccia */
.hero-ecg-beam {
  stroke: var(--brand-teal-light);
  filter: drop-shadow(0 0 4px rgba(69, 200, 210, 0.7));
  stroke-dasharray: 14 86;
  stroke-dashoffset: 100;
  animation: hero-ecg-sweep 2.6s linear infinite;
}
@keyframes hero-ecg-sweep {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}

.hero-shifts {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.hero-shifts-head {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(249, 250, 251, 0.5);
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero-shift-row { display: flex; align-items: center; gap: 0.55rem; padding: 0.32rem 0; }
.hero-shift-row + .hero-shift-row { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.hero-avatar {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
  font-size: 0.6rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-avatar.av2 { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
.hero-shift-name { font-size: 0.76rem; color: #e5e7eb; margin-right: auto; }
.hero-shift-name em {
  font-style: normal;
  font-size: 0.56rem;
  font-weight: 700;
  color: var(--brand-emerald);
  background: rgba(16, 185, 129, 0.12);
  padding: 0.04rem 0.3rem;
  border-radius: 5px;
  margin-left: 0.3rem;
}
.hero-chip { font-size: 0.6rem; font-weight: 700; padding: 0.18rem 0.5rem; border-radius: 99px; white-space: nowrap; }
.hero-chip.chip-icu { color: #93c5fd; background: rgba(59, 130, 246, 0.14); }
.hero-chip.chip-emerald { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); }

/* ── Elementi flottanti (profondità) ── */
.hero-float {
  position: absolute;
  z-index: 3;
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.78rem;
}
.hero-float-toast {
  top: -12%;
  right: -4%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  animation: hero-float-a 6s ease-in-out infinite;
}
.hero-float-toast > i { color: var(--brand-teal-light); font-size: 1.1rem; }
.hero-float-toast-txt { display: flex; flex-direction: column; line-height: 1.25; }
.hero-float-toast-txt strong { color: #fff; font-size: 0.78rem; }
.hero-float-toast-txt span { color: var(--text-muted); font-size: 0.68rem; }

.hero-float-wound {
  bottom: -15%;
  left: 6%;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  animation: hero-float-b 7.5s ease-in-out infinite;
}
.hero-wound-thumb {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f2937, #374151);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  flex-shrink: 0;
}
.hero-wound-thumb i { color: var(--brand-emerald); font-size: 1rem; }
.hero-wound-thumb span { font-size: 0.46rem; font-family: monospace; color: rgba(16, 185, 129, 0.85); letter-spacing: 0.05em; }
.hero-wound-meta { display: flex; flex-direction: column; line-height: 1.25; }
.hero-wound-meta strong { color: #fff; font-size: 0.78rem; }
.hero-wound-meta span { color: var(--text-muted); font-size: 0.68rem; }

.hero-float-bio {
  bottom: -7%;
  right: 9%;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  color: var(--brand-teal-light);
  font-weight: 700;
  font-size: 0.74rem;
  animation: hero-float-a 5.5s ease-in-out infinite reverse;
}
.hero-float-bio i { font-size: 1rem; }

@keyframes hero-float-a {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}
@keyframes hero-float-b {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

@media (max-width: 767.98px) {
  .hero-float { display: none; }
}

/* ═══ Scroll-reveal (attivo solo con JS) ═══ */
[data-reveal] {
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}
html.js [data-reveal] { opacity: 0; transform: translateY(26px); }
html.js [data-reveal].reveal-in { opacity: 1; transform: none; }
/* Stagger leggero per le griglie a colonne */
.row > [data-reveal]:nth-child(2) { transition-delay: 0.08s; }
.row > [data-reveal]:nth-child(3) { transition-delay: 0.16s; }
.row > [data-reveal]:nth-child(4) { transition-delay: 0.24s; }

/* ═══ Navbar: stato "scrolled" ═══ */
.landing-navbar.scrolled {
  padding: 0.7rem 0;
  background: rgba(11, 15, 25, 0.88);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* ═══ Texture a punti dietro l'hero (profondità) ═══ */
.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask: radial-gradient(62% 60% at 50% 32%, #000, transparent 76%);
          mask: radial-gradient(62% 60% at 50% 32%, #000, transparent 76%);
}

/* ═══ Rispetto delle preferenze di movimento ridotto ═══ */
@media (prefers-reduced-motion: reduce) {
  .hero-stage,
  .hero-app,
  .hero-app::before,
  .hero-float,
  .hero-ecg-beam,
  .hero-live-dot,
  .brand-monogram-svg,
  .landing-glow-1, .landing-glow-2, .landing-glow-3 {
    animation: none !important;
  }
  .hero-app { transform: none; }
  /* mostra l'ECG come linea piena e statica */
  .hero-ecg-beam { stroke-dasharray: none; stroke-dashoffset: 0; }
  html.js [data-reveal] { opacity: 1; transform: none; }
}
