/* ============================================================
   D&S IoT – Smart Technology Solutions
   Offizielle B2B Webpräsenz
   High-End Deep-Tech & Glassmorphism Design System
   ============================================================ */

/* ------------------------------------------------------------
   1. Design Tokens & Theme Variables
   ------------------------------------------------------------ */
:root {
  /* Dark Theme (Default) */
  --bg-primary: #070b14;
  --bg-secondary: #0d1527;
  --bg-tertiary: #131f38;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(22, 36, 65, 0.85);
  --bg-card-solid: #0f172a;
  --bg-glass: rgba(13, 21, 39, 0.65);
  --bg-glass-nav: rgba(7, 11, 20, 0.82);

  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-accent: rgba(56, 189, 248, 0.28);
  --border-accent-strong: rgba(6, 182, 212, 0.6);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverted: #070b14;

  --accent-cyan: #06b6d4;
  --accent-sky: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --glow-cyan: 0 0 25px rgba(6, 182, 212, 0.35);
  --glow-sky: 0 0 35px rgba(56, 189, 248, 0.25);
  --glow-emerald: 0 0 25px rgba(16, 185, 129, 0.3);
  --glow-rose: 0 0 25px rgba(244, 63, 94, 0.35);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 10px 30px -5px rgba(6, 182, 212, 0.3);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Override */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-tertiary: #e2e8f0;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: rgba(255, 255, 255, 0.98);
  --bg-card-solid: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-glass-nav: rgba(248, 250, 252, 0.88);

  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-accent: rgba(2, 132, 199, 0.3);
  --border-accent-strong: rgba(2, 132, 199, 0.65);

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

  --accent-cyan: #0284c7;
  --accent-sky: #0369a1;
  --accent-blue: #2563eb;

  --glow-cyan: 0 0 25px rgba(2, 132, 199, 0.2);
  --glow-sky: 0 0 35px rgba(3, 105, 161, 0.15);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

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

/* Background Ambient Glow - Safe & Non-Overflowing */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100vw;
  height: 520px;
  background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(6, 182, 212, 0.12) 0%, rgba(59, 130, 246, 0.05) 50%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

section[id],
.contact-form-card,
.form-input,
.form-textarea {
  scroll-margin-top: 80px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font: inherit;
}

/* ------------------------------------------------------------
   3. Typography & Utility Classes
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 20%, var(--accent-sky) 80%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-cyan { color: var(--accent-cyan); }
.text-sky { color: var(--accent-sky); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-rose { color: var(--accent-rose); }
.text-muted { color: var(--text-muted); }

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--border-accent);
  color: var(--accent-sky);
  backdrop-filter: blur(8px);
}

.badge-tag.pulse-dot::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-top: 1rem;
  margin-bottom: 1.15rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   4. Header & Navigation
   ------------------------------------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--bg-glass-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 1000;
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1.25rem;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 225px;
  margin-right: 1.25rem;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 0 12px rgba(6, 182, 212, 0.4));
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

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

.brand-text-block {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-sky);
  text-transform: uppercase;
  white-space: nowrap !important;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  list-style: none;
  flex-shrink: 1;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-sky));
  transition: width var(--transition-fast);
}

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

.nav-menu-mobile-cta {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-actions-divider {
  width: 1px;
  height: 24px;
  background: var(--border-subtle);
  margin: 0 0.35rem;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

/* Mobile Hamburger Button */
.mobile-menu-btn {
  display: none;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  border-color: var(--border-accent);
  background: var(--bg-card-hover);
}

.mobile-menu-btn svg line {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  transform-origin: 12px 12px;
}

/* Morph hamburger into X when open */
.mobile-menu-btn.open svg line:nth-child(1) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.open svg line:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.open svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Backdrop for Mobile Navigation */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 14, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  pointer-events: none;
}

.nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.nav-open-lock {
  overflow: hidden !important;
  touch-action: none;
}

/* ------------------------------------------------------------
   5. Buttons
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0891b2, #2563eb);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(6, 182, 212, 0.45);
}

.btn-secondary {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  color: var(--text-primary);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent-sky);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--border-accent-strong);
  color: var(--text-primary);
}

.btn-portal {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent-sky);
  padding: 0.65rem 1.15rem;
  font-size: 0.875rem;
}

.btn-portal:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--accent-sky);
  color: #ffffff;
}

/* ------------------------------------------------------------
   6. Hero Section
   ------------------------------------------------------------ */
.hero-section {
  padding: 140px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.35rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-trust-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--accent-cyan);
}

/* Hero Glass Dashboard Mockup */
.hero-visual {
  position: relative;
}

.hero-glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  position: relative;
}

.card-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
}

.status-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-emerald);
}

.status-live-indicator::before {
  content: '';
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-glow 2s infinite;
}

.hero-metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.metric-val {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  font-feature-settings: "tnum";
}

.metric-unit {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent-sky);
  margin-left: 0.2rem;
}

.hero-dewpoint-banner {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(59, 130, 246, 0.08));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.dewpoint-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  white-space: nowrap;
}

.card-room-header {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.room-name {
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
}

.room-gateway {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.card-actor-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.785rem;
  gap: 0.5rem;
}

.actor-label {
  color: var(--text-secondary);
}

.actor-status {
  color: var(--accent-emerald);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.actor-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* ------------------------------------------------------------
   7. Pain Points Section (Der wirtschaftliche Schmerz)
   ------------------------------------------------------------ */
.pain-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-normal);
}

.pain-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.pain-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.pain-icon-red {
  background: rgba(244, 63, 94, 0.12);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.pain-icon-amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--accent-amber);
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.pain-icon-blue {
  background: rgba(59, 130, 246, 0.12);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.pain-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pain-card-text {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.pain-impact-badge {
  margin-top: auto;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ------------------------------------------------------------
   8. The 3-Pillar Solution (Architektur & Technologie)
   ------------------------------------------------------------ */
.solution-section {
  padding: 100px 0;
  position: relative;
}

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

.pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pillar-card:hover::before {
  opacity: 1;
}

.pillar-number {
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent-sky);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.pillar-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  line-height: 1.3;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.pillar-features-list {
  list-style: none;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pillar-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pillar-feature-item svg {
  color: var(--accent-cyan);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ------------------------------------------------------------
   9. Interactive Dew Point & Mold Risk Simulator
   ------------------------------------------------------------ */
.simulator-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.simulator-container {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.slider-item {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

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

.slider-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-display-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-feature-settings: "tnum";
}

/* Custom Styled Range Sliders */
.custom-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  outline: none;
  transition: background var(--transition-fast);
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
}

.custom-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: grab;
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: grab;
  border: 2px solid #ffffff;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.6);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.custom-range:active::-webkit-slider-thumb {
  cursor: grabbing;
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--accent-cyan);
}

.custom-range:active::-moz-range-thumb {
  cursor: grabbing;
  transform: scale(1.2);
  box-shadow: 0 0 20px var(--accent-cyan);
}

/* Simulator Output Gauge & Matrix */
.sim-results-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.sim-risk-badge {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  transition: all var(--transition-normal);
}

.risk-safe {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-emerald);
}

.risk-warning {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--accent-amber);
}

.risk-danger {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: var(--accent-rose);
  animation: pulse-glow 1.5s infinite;
}

.sim-metric-big {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  font-feature-settings: "tnum";
}

.sim-metric-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.sim-action-box {
  width: 100%;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
}

/* ------------------------------------------------------------
   10. ROI & Cost Savings Calculator
   ------------------------------------------------------------ */
.roi-section {
  padding: 90px 0;
}

.roi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  box-shadow: var(--shadow-md);
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
}

.roi-results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.roi-stat-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.roi-stat-box.highlight {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.1), rgba(59, 130, 246, 0.08));
  border-color: var(--border-accent);
}

.roi-stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.roi-stat-num {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  font-feature-settings: "tnum";
}

.roi-stat-box.highlight .roi-stat-num {
  font-size: 2.25rem;
  color: var(--accent-cyan);
}

/* ------------------------------------------------------------
   11. Target Verticals (Einsatzbereiche)
   ------------------------------------------------------------ */
.verticals-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.vertical-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.vertical-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.vertical-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-accent);
}

.vertical-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.vertical-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.vertical-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ------------------------------------------------------------
   12. Compliance & Legal Standards
   ------------------------------------------------------------ */
.compliance-section {
  padding: 90px 0;
}

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

.compliance-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.compliance-badge {
  align-self: flex-start;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-sky);
  margin-bottom: 1rem;
}

.compliance-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.compliance-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ------------------------------------------------------------
   13. Pilot Offer & HaaS Pricing
   ------------------------------------------------------------ */
.pilot-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pilot-card {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(7, 11, 20, 0.95));
  border: 1px solid var(--border-accent-strong);
  border-radius: var(--radius-xl);
  padding: 3.5rem 3rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.pilot-title {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.pilot-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.pilot-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pilot-feature-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.pilot-feature-item svg {
  color: var(--accent-cyan);
}

.pilot-action-box {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pilot-badge-free {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  margin-bottom: 1rem;
}

.pilot-price-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.pilot-price-sub {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ------------------------------------------------------------
   14. FAQ Accordion
   ------------------------------------------------------------ */
.faq-section {
  padding: 90px 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover, .faq-item.active {
  border-color: var(--border-accent);
}

.faq-question-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-cyan);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  padding-bottom: 1.25rem;
}

.faq-answer-inner {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ------------------------------------------------------------
   15. Contact & Inquiry Form
   ------------------------------------------------------------ */
.contact-section {
  padding: 90px 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.contact-info-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-info-val {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0.15rem;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.form-group-full {
  grid-column: span 2;
  width: 100%;
  min-width: 0;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-input, .form-textarea {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  line-height: 1.5;
  transition: all var(--transition-fast);
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.2);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.form-checkbox-label span {
  word-break: break-word;
}

.form-checkbox {
  margin-top: 0.2rem;
  accent-color: var(--accent-cyan);
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   16. Legal Pages (Impressum & Datenschutz)
   ------------------------------------------------------------ */
.legal-page-header {
  padding: 130px 0 40px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  text-align: center;
}

.legal-content-section {
  padding: 60px 0 100px;
}

.legal-prose {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
}

.legal-prose h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.4rem;
}

.legal-prose h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-sky);
}

.legal-prose p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.legal-prose ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.legal-prose li {
  margin-bottom: 0.4rem;
  font-size: 0.9375rem;
}

/* ------------------------------------------------------------
   17. Footer
   ------------------------------------------------------------ */
.site-footer {
  background: var(--bg-tertiary);
  border-top: 1px solid var(--border-subtle);
  padding: 70px 0 35px;
  color: var(--text-secondary);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-link:hover {
  color: var(--accent-sky);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 2rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

@media (max-width: 1240px) and (min-width: 1121px) {
  .nav-menu {
    gap: 0.9rem;
  }
  .nav-link {
    font-size: 0.8125rem;
  }
  .brand-logo-link {
    margin-right: 0.75rem;
    gap: 0.6rem;
    min-width: 210px;
  }
  .site-header .btn-primary {
    padding: 0.6rem 0.95rem;
    font-size: 0.8125rem;
  }
  .btn-portal {
    padding: 0.55rem 0.85rem;
    font-size: 0.8125rem;
  }
}

/* ============================================================
   Tablet & Mobile Navigation Drawer (<= 1120px)
   ============================================================ */
@media (max-width: 1120px) {
  .site-header {
    height: 72px;
  }

  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-glass-nav);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border-accent);
    flex-direction: column;
    padding: 1.25rem 1.25rem 1.75rem;
    gap: 0.5rem;
    transform: translateY(-150%);
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1000;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-link.active {
    background: rgba(6, 182, 212, 0.1);
    border-color: var(--border-accent);
    color: var(--accent-sky);
    padding-left: 1.25rem;
  }

  .nav-link::after {
    display: none;
  }

  .nav-menu-mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-menu-mobile-cta .btn {
    width: 100%;
    min-height: 48px;
    font-size: 0.9375rem;
    justify-content: center;
  }

  .nav-actions .btn-portal,
  .nav-actions .btn-primary,
  .nav-actions-divider {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cards-grid-3, .pillars-grid, .compliance-grid {
    grid-template-columns: 1fr;
  }

  .vertical-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .simulator-container, .roi-card, .pilot-card, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   Smartphones & Tablets Portrait (<= 768px)
   ============================================================ */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 68px;
  }

  .site-header {
    height: 62px;
    background: rgba(7, 11, 20, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  }

  .nav-menu {
    top: 62px;
    max-height: calc(100vh - 62px);
    padding: 1rem 1rem 1.75rem;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .btn {
    white-space: normal !important;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    line-height: 1.25;
  }

  .brand-logo-link {
    min-width: auto;
    gap: 0.5rem;
    margin-right: 0;
  }

  .brand-logo-img {
    width: 32px;
    height: 32px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .brand-tagline {
    display: none;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .mobile-menu-btn {
    width: 38px;
    height: 38px;
  }

  /* Section Spacing & Headers */
  .solution-section,
  .simulator-section,
  .roi-section,
  .verticals-section,
  .compliance-section,
  .pilot-section,
  .faq-section,
  .contact-section {
    padding: 3.25rem 0;
  }

  .section-header {
    margin-bottom: 1.65rem;
  }

  .section-title {
    font-size: 1.35rem !important;
    line-height: 1.25;
    font-weight: 800;
    margin-top: 0.55rem;
    margin-bottom: 0.55rem;
    letter-spacing: -0.015em;
    word-break: break-word;
    hyphens: auto;
  }

  .section-subtitle {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text-secondary);
  }

  .badge-tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    white-space: normal;
  }

  /* Hero Section */
  .hero-section {
    padding: calc(62px + 1.5rem) 0 2rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 1.75rem;
  }

  .hero-title {
    font-size: 1.55rem !important;
    line-height: 1.22;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0.65rem;
    margin-bottom: 0.75rem;
    word-break: break-word;
  }

  .hero-description {
    font-size: 0.875rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
    color: var(--text-secondary);
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    min-height: 46px;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    justify-content: center;
  }

  .hero-trust-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
  }

  .trust-item {
    font-size: 0.72rem;
    gap: 0.35rem;
    padding: 0.45rem 0.55rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
  }

  .trust-item svg {
    width: 15px;
    height: 15px;
  }

  /* Hero Live Card - Compact iOS Widget Style */
  .hero-visual {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .hero-glass-card {
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--border-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  .card-status-bar {
    padding-bottom: 0.5rem;
    margin-bottom: 0.65rem;
  }

  .status-live-indicator {
    font-size: 0.75rem;
    gap: 0.45rem;
  }

  .status-live-indicator::before {
    width: 7px;
    height: 7px;
  }

  .card-status-bar .badge-tag {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }

  .card-room-header {
    font-size: 0.785rem;
    margin-bottom: 0.65rem;
    gap: 0.35rem;
  }

  .room-name {
    font-size: 0.825rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .room-gateway {
    font-size: 0.7rem;
    color: var(--text-muted);
  }

  /* 2-Columns ALWAYS side-by-side for sleek metric display */
  .hero-metrics-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 0.5rem;
    margin-bottom: 0.55rem;
    width: 100%;
    box-sizing: border-box;
  }

  .metric-box {
    padding: 0.6rem 0.65rem;
    border-radius: 8px;
  }

  .metric-label {
    font-size: 0.65rem;
    letter-spacing: 0.04em;
    margin-bottom: 0.15rem;
  }

  .metric-val {
    font-size: 1.35rem;
    font-weight: 800;
  }

  .metric-unit {
    font-size: 0.72rem;
    margin-left: 0.15rem;
  }

  .hero-dewpoint-banner {
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    display: flex;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .dewpoint-title {
    font-size: 0.75rem;
    font-weight: 700;
  }

  .dewpoint-sub {
    font-size: 0.68rem;
  }

  .dewpoint-value {
    font-size: 1.15rem;
    font-weight: 800;
  }

  .card-actor-footer {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    font-size: 0.72rem;
    gap: 0.25rem;
  }

  .actor-status {
    font-size: 0.72rem;
  }

  /* Content Cards */
  .cards-grid-3 {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.85rem;
  }

  .pain-card {
    padding: 1.15rem 1rem;
    border-radius: 12px;
  }

  .pain-icon-wrapper {
    width: 40px;
    height: 40px;
    margin-bottom: 0.65rem;
  }

  .pain-icon-wrapper svg {
    width: 22px;
    height: 22px;
  }

  .pain-card-title {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
  }

  .pain-card-text {
    font-size: 0.825rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
  }

  .pain-impact-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }

  .pillars-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.85rem;
  }

  .pillar-card {
    padding: 1.25rem 1rem;
    border-radius: 12px;
  }

  .pillar-number {
    font-size: 0.72rem;
    margin-bottom: 0.35rem;
  }

  .pillar-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }

  .pillar-desc {
    font-size: 0.825rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
  }

  .pillar-features-list {
    gap: 0.5rem;
  }

  .pillar-feature-item {
    font-size: 0.785rem;
    line-height: 1.45;
  }

  .vertical-cards-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.75rem;
  }

  .vertical-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .vertical-icon {
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
  }

  .vertical-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .vertical-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  .compliance-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 0.75rem;
  }

  .compliance-card {
    padding: 1rem;
    border-radius: 12px;
  }

  .compliance-badge {
    font-size: 0.68rem;
    padding: 0.2rem 0.5rem;
    margin-bottom: 0.4rem;
  }

  .compliance-title {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .compliance-desc {
    font-size: 0.8125rem;
    line-height: 1.45;
  }

  /* Simulator */
  .simulator-container {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.15rem 0.95rem;
    border-radius: 14px;
    gap: 1.35rem;
  }

  .slider-label {
    font-size: 0.85rem;
  }

  .slider-display-val {
    font-size: 1rem;
  }

  .custom-range {
    height: 8px;
    margin: 0.35rem 0;
  }

  .custom-range::-webkit-slider-thumb,
  .custom-range::-moz-range-thumb {
    width: 24px;
    height: 24px;
  }

  .sim-results-card {
    padding: 1.15rem 0.85rem;
    border-radius: 12px;
  }

  .sim-risk-badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 0.75rem;
  }

  .sim-metric-big {
    font-size: 2rem;
  }

  .sim-metric-sub {
    font-size: 0.75rem;
    margin-bottom: 0.75rem;
  }

  .sim-action-box {
    font-size: 0.775rem;
    padding: 0.75rem;
    line-height: 1.45;
  }

  /* ROI Calculator */
  .roi-card {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.15rem 0.95rem;
    border-radius: 14px;
    gap: 1.35rem;
  }

  .roi-results-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .roi-stat-box {
    padding: 0.85rem;
    border-radius: 10px;
  }

  .roi-stat-box.highlight {
    grid-column: span 1;
  }

  .roi-stat-label {
    font-size: 0.7rem;
  }

  .roi-stat-num {
    font-size: 1.25rem;
  }

  .roi-stat-box.highlight .roi-stat-num {
    font-size: 1.5rem;
  }

  /* Pilot Offer */
  .pilot-card {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 1.25rem 1rem;
    border-radius: 14px;
    gap: 1.35rem;
  }

  .pilot-title {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }

  .pilot-text {
    font-size: 0.825rem;
    line-height: 1.5;
    margin-bottom: 0.85rem;
  }

  .pilot-features {
    font-size: 0.785rem;
    gap: 0.5rem;
  }

  .pilot-action-box {
    padding: 1.15rem 1rem;
    border-radius: 12px;
    width: 100%;
  }

  .pilot-price-title {
    font-size: 1.65rem;
  }

  .pilot-price-sub {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }

  /* FAQ */
  .faq-list {
    gap: 0.65rem;
  }

  .faq-question-btn {
    padding: 0.9rem 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
    gap: 0.65rem;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-item.active .faq-answer {
    padding-bottom: 1rem;
  }

  .faq-answer-inner {
    font-size: 0.825rem;
    line-height: 1.55;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 1.35rem;
  }

  .contact-info-card {
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contact-info-icon {
    width: 36px;
    height: 36px;
  }

  .contact-info-title {
    font-size: 0.7rem;
  }

  .contact-info-val {
    font-size: 0.875rem;
  }

  .contact-form-card {
    padding: 1.25rem 1rem;
    border-radius: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .form-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }

  .form-group-full {
    grid-column: span 1;
  }

  .form-label {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }

  .form-input, .form-textarea {
    font-size: 16px !important;
    padding: 0.7rem 0.8rem;
    min-height: 44px;
  }

  .form-checkbox-label {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  /* Footer */
  .site-footer {
    padding: 2.75rem 0 1.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    gap: 1.5rem;
  }

  .footer-desc {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .footer-col-title {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }

  .footer-links-list {
    gap: 0.45rem;
  }

  .footer-link {
    font-size: 0.8rem;
    padding: 0.2rem 0;
    display: inline-block;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    padding-top: 1.25rem;
    font-size: 0.75rem;
  }

  .footer-bottom-links {
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
  }

  .legal-prose {
    padding: 1.25rem 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
  }
}

/* ============================================================
   Compact Smartphones (<= 480px)
   ============================================================ */
@media (max-width: 480px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header {
    height: 60px;
  }

  .nav-menu {
    top: 60px;
    max-height: calc(100vh - 60px);
    padding: 0.85rem 0.85rem 1.5rem;
  }

  .container {
    padding-left: 0.95rem;
    padding-right: 0.95rem;
  }

  .section-title {
    font-size: 1.25rem !important;
    line-height: 1.28;
  }

  .hero-section {
    padding: calc(60px + 1.25rem) 0 1.75rem;
  }

  .hero-title {
    font-size: 1.45rem !important;
    line-height: 1.22;
  }

  .hero-trust-badges {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .hero-dewpoint-banner {
    padding: 0.5rem 0.65rem;
  }

  .dewpoint-value {
    font-size: 1.05rem;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ============================================================
   Ultra-Compact Displays (<= 360px)
   ============================================================ */
@media (max-width: 360px) {
  .hero-title {
    font-size: 1.35rem !important;
  }

  .section-title {
    font-size: 1.15rem !important;
  }

  .brand-name {
    font-size: 1rem;
  }

  .btn {
    padding: 0.65rem 0.85rem;
    font-size: 0.85rem;
  }

  .simulator-container,
  .roi-card,
  .pilot-card,
  .contact-form-card {
    padding: 1rem 0.75rem;
  }

  .custom-range::-webkit-slider-thumb,
  .custom-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
  }

  .metric-box {
    padding: 0.5rem 0.4rem;
  }

  .metric-val {
    font-size: 1.15rem;
  }
}
