/* ==========================================================================
   IDCS.LV DESIGN SYSTEM & STYLESHEET (VER 2.0 - LIGHT BUSINESS THEME)
   Aesthetic: Clean Executive Light Theme + IDCS Brand Green Accent + 3D Physics
   ========================================================================== */

:root {
  /* Color Palette (Clean Executive Light Mode) */
  --bg-light: #F8FAFC;
  --bg-subtle: #F1F5F9;
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.75);

  --border-subtle: #E2E8F0;
  --border-card: #E5E7EB;
  --border-glow: rgba(16, 185, 129, 0.35);

  /* IDCS Brand Colors: Emerald Green & Crimson Accent */
  --brand-green: #059669;
  --brand-green-dark: #047857;
  --brand-green-light: #10B981;
  --brand-green-glow: rgba(16, 185, 129, 0.28);
  --brand-green-soft: #ECFDF5;
  --brand-green-border: #A7F3D0;

  --accent-red: #E11D48;
  --accent-red-soft: #FFF1F2;
  --accent-gold: #D97706;
  --accent-blue: #0284C7;

  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  /* Typography */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Elevations & Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 36px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 10px 30px var(--brand-green-glow);
  --shadow-card-3d: 0 25px 50px rgba(15, 23, 42, 0.22), 0 8px 16px rgba(15, 23, 42, 0.12);
  --blur-glass: blur(16px);

  /* Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Theme Design System Overrides */
[data-theme="dark"] {
  --bg-light: #0B0F17;
  --bg-subtle: #111827;
  --bg-surface: #161F30;
  --bg-card: rgba(22, 31, 48, 0.88);
  --bg-card-hover: #1E293B;
  --bg-glass: rgba(11, 15, 23, 0.88);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-card: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(16, 185, 129, 0.45);

  --brand-green-soft: rgba(16, 185, 129, 0.14);
  --brand-green-border: rgba(16, 185, 129, 0.35);

  --text-main: #F8FAFC;
  --text-body: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 45px rgba(0, 0, 0, 0.65);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
  background-color: var(--bg-light);
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

body {
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
  position: relative;
  background: 
    radial-gradient(circle at 15% 10%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, rgba(2, 132, 199, 0.05) 0%, transparent 45%),
    radial-gradient(circle at 50% 60%, rgba(16, 185, 129, 0.04) 0%, transparent 50%),
    var(--bg-light);
  min-height: 100vh;
  line-height: 1.6;
  padding-top: 74px;
}

/* Ambient Container (Zero overflow leak) */
.ambient-container {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  perspective: 750px;
  perspective-origin: 50% 25%;
}

/* 3D Perspective Horizon Grid Scene (Variant 1) */
.grid-3d-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-style: preserve-3d;
}

/* Horizon Ambient Glow */
.grid-horizon-glow {
  position: absolute;
  top: 6%;
  left: 10%;
  right: 10%;
  height: 220px;
  background: radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.24) 0%, rgba(2, 132, 199, 0.12) 40%, transparent 75%);
  filter: blur(50px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* 3D Perspective Grid Plane (Horizon Floor) */
.grid-horizon-plane {
  position: absolute;
  left: -50%;
  width: 200%;
  top: 10%;
  height: 140%;
  transform-origin: 50% 0%;
  transform: rotateX(65deg) translateZ(0);
  background-size: 42px 42px, 42px 42px;
  background-image: 
    linear-gradient(to right, rgba(16, 185, 129, 0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.3) 1px, transparent 1px);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 15%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 15%, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.45) 45%, transparent 85%);
  will-change: transform;
  pointer-events: none;
}

/* Horizon Fade & Vignette */
.grid-horizon-fade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 30%, transparent 30%, var(--bg-light) 90%),
    linear-gradient(to bottom, transparent 0%, transparent 60%, var(--bg-light) 100%);
  pointer-events: none;
  transition: background 0.3s ease;
}

/* Dark Theme Specific Grid Enhancements */
[data-theme="dark"] .grid-horizon-plane {
  background-image: 
    linear-gradient(to right, rgba(16, 185, 129, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.45) 1px, transparent 1px);
}
[data-theme="dark"] .grid-horizon-glow {
  background: radial-gradient(ellipse at 50% 50%, rgba(16, 185, 129, 0.38) 0%, rgba(2, 132, 199, 0.18) 45%, transparent 75%);
}
[data-theme="dark"] .ambient-1 {
  background: rgba(16, 185, 129, 0.32);
}
[data-theme="dark"] .ambient-2 {
  background: rgba(2, 132, 199, 0.22);
}
[data-theme="dark"] .ambient-3 {
  background: rgba(217, 119, 6, 0.16);
}

/* Ambient Subtle Glow Orbs */
.ambient-glow {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.35;
}
.ambient-1 {
  top: -120px;
  right: -80px;
  background: rgba(16, 185, 129, 0.2);
}
.ambient-2 {
  top: 45%;
  left: -150px;
  background: rgba(2, 132, 199, 0.12);
}
.ambient-3 {
  bottom: 5%;
  right: -100px;
  background: rgba(217, 119, 6, 0.1);
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVIGATION BAR (Executive Glass & Sticky Light Mode)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  width: 100%;
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  background: var(--bg-glass);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: rgba(16, 185, 129, 0.25);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(11, 15, 23, 0.96);
  border-bottom-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55);
}

.site-header .container {
  max-width: 1440px;
  padding: 0 1.25rem;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 0.75rem;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .nav-inner {
  height: 66px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-decoration: none;
  flex-shrink: 0;
}

/* Brand IDCS Logo Badge (Fully on Green background) */
.logo-badge-full {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand-green-light) 0%, var(--brand-green-dark) 100%);
  border-radius: var(--radius-sm);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  box-shadow: 0 3px 12px var(--brand-green-glow);
  border: 1px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.logo-badge-full img {
    height: 2.5em; /* Izmantojot 'em', attēls automātiski pielāgosies teksta izmēram */
    width: auto;
    vertical-align: middle;
    transform: rotate(0deg);
    margin-right: 5px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  white-space: nowrap;
}

.brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  display: block;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Navigation Links Container (Executive Pill Bar with subtle dividers) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  flex-shrink: 1;
  background: rgba(241, 245, 249, 0.7);
  padding: 4px 6px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

[data-theme="dark"] .nav-links {
  background: rgba(22, 31, 48, 0.7);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Subtle separator between nav items */
.nav-item + .nav-item {
  position: relative;
}

.nav-item + .nav-item::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 25%;
  height: 50%;
  width: 1px;
  background: #CBD5E1;
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

[data-theme="dark"] .nav-item + .nav-item::before {
  background: rgba(255, 255, 255, 0.15);
}

.nav-item:hover + .nav-item::before,
.nav-item.active + .nav-item::before,
.nav-item + .nav-item:hover::before,
.nav-item + .nav-item.active::before {
  opacity: 0;
}

.nav-item {
  font-size: 0.81rem;
  font-weight: 600;
  color: var(--text-body);
  position: relative;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.nav-item:hover {
  background: #FFFFFF;
  color: var(--brand-green-dark);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(16, 185, 129, 0.15);
  transform: translateY(-1px);
}

[data-theme="dark"] .nav-item {
  color: #CBD5E1;
}

[data-theme="dark"] .nav-item:hover {
  background: #1E293B;
  color: #34D399;
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4), 0 0 8px rgba(16, 185, 129, 0.2);
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(5, 150, 105, 0.2) 100%);
  color: var(--brand-green-dark);
  font-weight: 700;
  border-color: var(--brand-green-border);
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.12);
}

[data-theme="dark"] .nav-item.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.3) 100%);
  color: #6EE7B7;
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.btn-header-quote {
  padding: 0.52rem 1.1rem;
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Vertical Dropdown Language Selector */
.lang-dropdown-wrapper {
  position: relative;
  display: inline-block;
  user-select: none;
}

.lang-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.lang-dropdown-trigger:hover,
.lang-dropdown-wrapper.is-open .lang-dropdown-trigger {
  border-color: var(--brand-green);
  box-shadow: 0 2px 8px var(--brand-green-glow);
  color: var(--brand-green-dark);
}

.lang-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.lang-dropdown-wrapper.is-open .lang-chevron {
  transform: rotate(180deg);
  color: var(--brand-green-dark);
}

.lang-dropdown-list {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 155px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 250;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-dropdown-wrapper.is-open .lang-dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-body);
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: all 0.15s ease;
}

.lang-dropdown-opt:hover {
  background: var(--bg-subtle);
  color: var(--brand-green-dark);
}

.lang-dropdown-opt.active {
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
  font-weight: 700;
}

/* Theme Toggle Button (Light / Dark) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  font-size: 1.1rem;
}

.theme-toggle-btn:hover {
  border-color: var(--brand-green);
  background: var(--brand-green-soft);
  box-shadow: 0 2px 8px var(--brand-green-glow);
  transform: translateY(-1px);
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: inline-block;
}
[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}
:root:not([data-theme="dark"]) .theme-toggle-btn .sun-icon {
  display: none;
}
:root:not([data-theme="dark"]) .theme-toggle-btn .moon-icon {
  display: inline-block;
}

/* Tier Finishing Options Chips */
.tier-options-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 1rem 0;
}

.opt-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand-green-dark);
}

[data-theme="dark"] .opt-chip {
  color: #34D399;
}

.opt-code {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: #E2E8F0;
  color: var(--text-main);
}

.lang-dropdown-opt.active .opt-code {
  background: var(--brand-green);
  color: #FFFFFF;
}

/* Action Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--brand-green-light) 0%, var(--brand-green-dark) 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px var(--brand-green-glow);
  cursor: pointer;
  transition: all 0.25s var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-green-glow);
  filter: brightness(1.06);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--brand-green-border);
  color: var(--brand-green-dark);
  transform: translateY(-2px);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 0;
}

.mobile-toggle:hover {
  border-color: var(--brand-green);
  color: var(--brand-green-dark);
  background: var(--brand-green-soft);
}

[data-theme="dark"] .mobile-toggle {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: #FFFFFF;
}

[data-theme="dark"] .mobile-toggle:hover {
  background: rgba(16, 185, 129, 0.15);
  border-color: var(--brand-green-border);
  color: #34D399;
}

/* ==========================================================================
   HERO SECTION & 3D SHOWCASE (LIGHT & FRESH)
   ========================================================================== */
.hero-section {
  padding: 4.5rem 0 5.5rem 0;
  position: relative;
}

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

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 10px var(--brand-green);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text-main);
  margin-bottom: 1.5rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-main) 10%, var(--brand-green) 60%, var(--brand-green-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.12rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 580px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
}

.stat-number span {
  color: var(--brand-green);
}

.stat-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   BLENDER 3D CARD RIG (LIGHT & SHADOW AESTHETICS)
   ========================================================================== */
.card-scene-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: clip;
  max-width: 100%;
}

.card-scene-container {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 85.6 / 53.98; /* Exact ISO/IEC 7810 ID-1 standard bank card ratio */
  height: auto;
  perspective: 1200px;
  cursor: grab;
  position: relative;
  container-type: inline-size;
  container-name: card;
  margin: 0 auto;
}

.card-scene-container:active {
  cursor: grabbing;
}

.card-3d {
  width: 100%;
  height: 100%;
  aspect-ratio: 85.6 / 53.98;
  border-radius: clamp(10px, 3.8cqi, 18px);
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.08s ease-out;
  box-shadow: var(--shadow-card-3d);
  user-select: none;
}

/* Card Faces */
.card-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 85.6 / 53.98;
  border-radius: clamp(10px, 3.8cqi, 18px);
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(0.75rem, 5.2cqi, 1.75rem);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4);
}

.card-face-back {
  transform: rotateY(180deg);
  padding: clamp(0.75rem, 5.2cqi, 1.75rem) 0 clamp(0.6rem, 4cqi, 1.25rem) 0;
}

/* Dynamic Glare & Hologram */
.card-glare {
  position: absolute;
  width: 150%;
  height: 150%;
  top: -25%;
  left: -25%;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0) 65%);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.card-hologram-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255,0,0,0.18) 0%,
    rgba(255,154,0,0.18) 15%,
    rgba(208,222,33,0.18) 30%,
    rgba(79,220,74,0.18) 45%,
    rgba(63,218,216,0.18) 60%,
    rgba(47,201,226,0.18) 75%,
    rgba(28,127,238,0.18) 90%,
    rgba(95,21,242,0.18) 100%
  );
  background-size: 200% 200%;
  mix-blend-mode: color-dodge;
  opacity: 0.6;
  z-index: 5;
}

/* Card Themes */
/* 1. IDCS Green Brand Theme (Default Hero Card) */
.theme-green .card-face,
.card-3d.theme-green .card-face {
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #064E3B 100%);
  border-color: rgba(167, 243, 208, 0.5);
  color: #FFFFFF;
}

/* 2. Obsidian Black Theme */
.theme-black .card-face,
.card-3d.theme-black .card-face {
  background: radial-gradient(circle at 80% 20%, #1E293B 0%, #0F172A 100%);
  border-color: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
}

/* 3. Hologram Prism Theme */
.theme-hologram .card-face,
.card-3d.theme-hologram .card-face {
  background: linear-gradient(135deg, #0284C7 0%, #3B82F6 50%, #6366F1 100%);
  border-color: rgba(191, 219, 254, 0.5);
  color: #FFFFFF;
}

/* 4. Royal Gold Theme */
.theme-gold .card-face,
.card-3d.theme-gold .card-face {
  background: linear-gradient(135deg, #78350F 0%, #B45309 50%, #451A03 100%);
  border-color: rgba(253, 230, 138, 0.5);
  color: #FFFBEB;
}

/* 5. Clean White Plastic Theme */
.theme-white .card-face,
.card-3d.theme-white .card-face {
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  border-color: rgba(0, 0, 0, 0.1);
  color: #0F172A;
}
.theme-white .card-brand-tag,
.theme-white .card-number-display {
  color: #0F172A !important;
}
.theme-white .emboss-text.is-embossed {
  color: #1E293B !important;
  text-shadow: -1px -1px 0px rgba(255, 255, 255, 0.9), 1px 1px 2px rgba(0, 0, 0, 0.25) !important;
}

/* Card Elements (Chip, Emboss, Hologram Seal) */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 6;
}

.card-brand-tag {
  display: flex;
  align-items: center;
  gap: clamp(5px, 1.8cqi, 8px);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(0.78rem, 3.4cqi, 1.1rem);
  letter-spacing: 0.05em;
  color: #FFFFFF;
}

.card-holo-seal {
  width: clamp(26px, 9.5cqi, 44px);
  height: clamp(26px, 9.5cqi, 44px);
  border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%, var(--brand-green) 0deg, var(--accent-gold) 90deg, var(--accent-blue) 180deg, #A855F7 270deg, var(--brand-green) 360deg);
  opacity: 0.9;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.card-holo-seal::after {
  content: 'PREW';
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  background-color: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.45rem, 1.7cqi, 0.6rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  color: #FFFFFF;
}

.card-middle-row {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 3.2cqi, 1.5rem);
  z-index: 6;
  margin: clamp(2px, 1.2cqi, 0.5rem) 0;
}

/* EMV / RFID Microchip Module */
.card-chip-module {
  width: clamp(32px, 11cqi, 50px);
  height: clamp(24px, 8.4cqi, 38px);
  border-radius: clamp(3px, 1.2cqi, 6px);
  background: linear-gradient(135deg, #ECC872 0%, #B8923D 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4), 0 2px 5px rgba(0, 0, 0, 0.4);
  border: 1px solid #785A18;
  flex-shrink: 0;
}

.chip-line-v {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 36%;
  width: 1px;
  background: #785A18;
}

.chip-line-h {
  position: absolute;
  left: 0;
  right: 0;
  top: 48%;
  height: 1px;
  background: #785A18;
}

.chip-center {
  position: absolute;
  width: clamp(8px, 3.2cqi, 14px);
  height: clamp(10px, 4cqi, 18px);
  left: 34%;
  top: 24%;
  border: 1px solid #785A18;
  border-radius: 2px;
}

/* Contactless NFC icon */
.card-nfc-wave {
  display: flex;
  align-items: center;
  opacity: 0.85;
  color: inherit;
}

.card-number-display {
  font-family: var(--font-mono);
  font-size: clamp(0.78rem, 3.8cqi, 1.15rem);
  letter-spacing: clamp(0.08em, 0.35cqi, 0.16em);
  color: #FFFFFF;
  margin-bottom: clamp(2px, 1.1cqi, 0.5rem);
  z-index: 6;
  white-space: nowrap;
}

.card-footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  z-index: 6;
}

/* Embossed Text Shader */
.emboss-text.is-embossed {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F8FAFC;
  text-shadow: 
    -1px -1px 0px rgba(255, 255, 255, 0.5),
    1px 1px 2px rgba(0, 0, 0, 0.8),
    2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: 700;
}

.card-preview-name {
  font-size: clamp(0.65rem, 2.7cqi, 0.85rem);
  display: block;
  white-space: nowrap;
}

.card-preview-org {
  font-size: clamp(0.5rem, 2.1cqi, 0.68rem);
  opacity: 0.8;
  margin-top: 2px;
  white-space: nowrap;
}

.card-expiry-box {
  text-align: right;
  font-size: clamp(0.55rem, 2.3cqi, 0.75rem);
  flex-shrink: 0;
}

/* Back Face Elements */
.card-magstripe {
  width: 100%;
  height: clamp(28px, 10cqi, 48px);
  background: linear-gradient(180deg, #111111 0%, #222222 50%, #0A0A0A 100%);
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.2);
}

.card-back-content {
  padding: 0 clamp(0.85rem, 5.2cqi, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: clamp(0.3rem, 2.1cqi, 0.75rem);
}

.card-signature-strip {
  height: clamp(20px, 7cqi, 34px);
  background: #FFFFFF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 clamp(6px, 2cqi, 10px);
  font-family: var(--font-mono);
  font-size: clamp(0.55rem, 2.2cqi, 0.75rem);
  font-style: italic;
  color: #1E293B;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
  border: 1px solid #CBD5E1;
}

.card-scratch-panel {
  height: clamp(18px, 6cqi, 28px);
  background: repeating-linear-gradient(45deg, #CBD5E1, #CBD5E1 10px, #94A3B8 10px, #94A3B8 20px);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.48rem, 2cqi, 0.65rem);
  font-weight: 700;
  color: #0F172A;
}

.card-barcode-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-fake-barcode {
  height: clamp(16px, 5.5cqi, 28px);
  width: clamp(75px, 28cqi, 150px);
  background: repeating-linear-gradient(90deg, #FFFFFF, #FFFFFF 2px, transparent 2px, transparent 4px, #FFFFFF 4px, #FFFFFF 7px, transparent 7px, transparent 9px);
  opacity: 0.85;
}

.card-back-disclaimer {
  font-size: clamp(0.42rem, 1.8cqi, 0.6rem);
  line-height: 1.3;
  opacity: 0.75;
}

/* Card Control Pill Toolbar */
.card-rig-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.5rem;
}

.btn-flip-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.btn-flip-card:hover {
  background: var(--brand-green-soft);
  border-color: var(--brand-green-border);
  color: var(--brand-green-dark);
  transform: translateY(-2px);
}

/* ==========================================================================
   CONFIGURATOR SECTION (LIGHT)
   ========================================================================== */
.configurator-section {
  padding: 5.5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-green);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.configurator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.config-panel {
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.config-group {
  margin-bottom: 1.75rem;
}

.config-group-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Material Swatches */
.swatches-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.swatch-btn {
  height: 48px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

.swatch-btn.active {
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-soft), 0 4px 12px var(--brand-green-glow);
  transform: scale(1.05);
}

.swatch-btn[data-theme="green"] { background: linear-gradient(135deg, #10B981, #047857); }
.swatch-btn[data-theme="black"] { background: #0F172A; }
.swatch-btn[data-theme="hologram"] { background: linear-gradient(135deg, #0284C7, #A855F7); }
.swatch-btn[data-theme="gold"] { background: linear-gradient(135deg, #B45309, #F59E0B); }
.swatch-btn[data-theme="white"] { background: #FFFFFF; border: 1px solid #CBD5E1; }

/* Feature Checkbox Toggles */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.toggle-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.toggle-chip:hover {
  border-color: var(--brand-green-border);
  color: var(--text-main);
}

.toggle-chip input[type="checkbox"] {
  accent-color: var(--brand-green);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.toggle-chip.is-active {
  border-color: var(--brand-green);
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
}

/* Custom Text Inputs */
.config-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.input-field {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.88rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: border-color 0.2s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3px var(--brand-green-soft);
}

/* ==========================================================================
   PRODUCT CATALOG (BENTO GRID LIGHT)
   ========================================================================== */
.catalog-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

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

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.bento-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--brand-green-border);
  box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.08);
}

.bento-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.bento-title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.bento-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-green);
  margin-top: auto;
}

.bento-link:hover {
  color: var(--brand-green-dark);
  gap: 10px;
}

/* Dark Theme Overrides for Bento Grid Cards */
[data-theme="dark"] .bento-card {
  background: var(--bg-card);
  border-color: var(--border-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.5), 0 0 25px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .bento-title {
  color: #FFFFFF;
}

[data-theme="dark"] .bento-desc {
  color: #94A3B8;
}

[data-theme="dark"] .bento-link {
  color: #34D399;
}

[data-theme="dark"] .bento-link:hover {
  color: #6EE7B7;
}

[data-theme="dark"] .bento-icon-box {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

/* ==========================================================================
   TECHNOLOGY & PERSONALIZATION (LIGHT)
   ========================================================================== */
.tech-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.tech-box {
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.tech-box:hover {
  background: var(--bg-surface);
  border-color: var(--brand-green-border);
  box-shadow: var(--shadow-md);
}

.tech-badge-mini {
  display: inline-block;
  padding: 4px 10px;
  background: var(--brand-green-soft);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 1rem;
}

.tech-box h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.6rem;
}

.tech-box p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   READY-MADE SYSTEMS & SOFTWARE (LIGHT)
   ========================================================================== */
.systems-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

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

.system-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.65rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.system-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
}

.system-card.featured-new {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(245, 158, 11, 0.05) 100%);
}

.system-card.featured-new::before {
  background: linear-gradient(90deg, #F59E0B, #EF4444);
  height: 5px;
}

.system-card.featured-new:hover {
  border-color: #F59E0B;
  box-shadow: 0 10px 25px rgba(245, 158, 11, 0.18);
}

.system-badge-new {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, #EF4444, #F59E0B);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.35);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  z-index: 2;
}

.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-green), var(--accent-gold));
}

.system-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--brand-green-dark);
}

.system-desc {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.system-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ==========================================================================
   EQUIPMENT & PRINTERS SECTION (LIGHT)
   ========================================================================== */
.equipment-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

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

.equipment-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.equipment-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
}

.equipment-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  background: var(--brand-green-soft);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
  align-self: flex-start;
}

.equipment-img-box {
  width: 100%;
  height: 200px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.equipment-img-box img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.equipment-card:hover .equipment-img-box img {
  transform: scale(1.05);
}

.equipment-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.equipment-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.equipment-quote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.25rem;
  background: var(--bg-surface);
  border: 1.5px solid var(--brand-green);
  color: var(--brand-green-dark);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-decoration: none;
}

.equipment-quote-btn:hover {
  background: var(--brand-green);
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--brand-green-glow);
}

.equipment-notice-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-md);
  gap: 1.5rem;
  flex-wrap: wrap;
}

.equipment-notice-text {
  font-size: 0.92rem;
  color: var(--brand-green-dark);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ==========================================================================
   PRICE MATRIX CARDS (A - THERMAL vs B - OFFSET)
   ========================================================================== */
.price-matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.price-tier-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.25s ease;
}

.price-tier-card:hover {
  border-color: var(--brand-green);
  box-shadow: var(--shadow-md);
}

.price-tier-card.featured {
  border-color: var(--brand-green);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--brand-green-soft) 100%);
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.08);
}

.tier-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.tier-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-main);
}

.price-tier-card.featured .tier-badge {
  background: var(--brand-green);
  color: #FFFFFF;
}

.tier-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.tier-speed-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  margin-bottom: 1.5rem;
}

.tier-prices-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.tier-prices-table tr {
  border-bottom: 1px solid #F1F5F9;
}

.tier-prices-table tr:last-child {
  border-bottom: none;
}

.tier-prices-table td {
  padding: 8px 0;
  font-size: 0.92rem;
}

.tier-prices-table td.col-qty {
  font-weight: 600;
  color: var(--text-body);
}

.tier-prices-table td.col-price {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--brand-green-dark);
  text-align: right;
  font-size: 1.05rem;
}

.tier-options-box {
  background: #F8FAFC;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.tier-options-box div {
  display: flex;
  justify-content: space-between;
}

.tier-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
}

.tier-tax-hint {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  color: var(--brand-green-dark);
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  margin-top: 8px;
  font-weight: 600;
}

/* Tax Policy Banner */
.tax-disclaimer-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 4.5px solid var(--brand-green);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  margin-bottom: 2.75rem;
  box-shadow: var(--shadow-sm);
}

.tax-disclaimer-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.tax-disclaimer-content {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.5;
}

.tax-disclaimer-content strong {
  color: var(--brand-green-dark);
  font-weight: 700;
  margin-right: 6px;
}

/* ==========================================================================
   INSTANT CALCULATOR (LIGHT EXECUTIVE PANEL)
   ========================================================================== */
.calculator-section {
  padding: 6rem 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.calc-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.calc-controls {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calc-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calc-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.range-slider {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #CBD5E1;
  outline: none;
  accent-color: var(--brand-green);
}

.calc-number-input {
  width: 100px;
  padding: 8px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: right;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.calc-select {
  padding: 10px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.9rem;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

.calc-summary-panel {
  background: linear-gradient(145deg, var(--brand-green-soft) 0%, var(--bg-surface) 100%);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.summary-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--brand-green-dark);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.summary-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.summary-val-big {
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.summary-val-unit {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brand-green);
}

.summary-val-time {
  font-weight: 700;
  color: var(--brand-green-dark);
}

/* Client Status Segmented Selector */
.calc-client-tabs {
  display: flex;
  background: var(--bg-subtle);
  padding: 4px;
  border-radius: var(--radius-pill);
  gap: 4px;
  border: 1px solid var(--border-subtle);
}

.calc-client-tab {
  flex: 1;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  user-select: none;
}

.calc-client-tab.active {
  background: var(--bg-surface);
  color: var(--brand-green-dark);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

[data-theme="dark"] .calc-client-tab.active {
  color: #34D399;
}

/* Tax Breakdown Details */
.summary-tax-breakdown {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

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

.summary-tax-breakdown-row strong {
  font-family: var(--font-mono);
  color: var(--text-main);
  font-size: 0.88rem;
}

.summary-tax-breakdown-row.highlight {
  color: var(--brand-green-dark);
  font-weight: 700;
  padding-top: 4px;
  border-top: 1px solid var(--border-subtle);
}

.summary-tax-breakdown-row.highlight strong {
  color: var(--brand-green);
  font-size: 0.95rem;
}

/* ==========================================================================
   TECHNICAL ARTWORK GUIDELINES (SPECS LIGHT)
   ========================================================================== */
.specs-section {
  padding: 6rem 0;
  background: var(--bg-light);
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.spec-tile {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.spec-tile-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-green-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.spec-tile-val {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.specs-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

/* Detailed Technical Blueprint & Visual Layout */
.blueprint-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-top: 2rem;
}

.blueprint-visual-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}

.blueprint-img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
  background: var(--bg-surface);  
  border: 1px solid var(--border-subtle);
}

.blueprint-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.blueprint-specs-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.blueprint-specs-table tr:last-child td {
  border-bottom: none;
}

.blueprint-specs-table td:first-child {
  font-weight: 700;
  color: var(--brand-green-dark);
}

.blueprint-rules-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.blueprint-rule-item {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  background: var(--bg-subtle);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border-left: 3.5px solid var(--brand-green);
}

/* ==========================================================================
   CONTACT SECTION (LIGHT)
   ========================================================================== */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
}

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

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

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-green);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Company Map Card with Distinct Firm Pin */
.company-map-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  margin-top: 0.5rem;
}

.map-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--brand-green-soft);
  border-bottom: 1px solid var(--brand-green-border);
  flex-wrap: wrap;
  gap: 10px;
}

.map-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-green-dark);
}

.map-route-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--brand-green);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  box-shadow: 0 2px 8px var(--brand-green-glow);
  transition: all 0.2s ease;
  text-decoration: none;
}

.map-route-btn:hover {
  background: var(--brand-green-dark);
  transform: translateY(-1px);
}

.map-iframe-container {
  height: 250px;
  width: 100%;
  position: relative;
}

.map-footer-hint {
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
}

.form-feedback {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.form-feedback.success {
  background: var(--brand-green-soft);
  color: var(--brand-green-dark);
  border: 1px solid var(--brand-green-border);
}

[data-theme="dark"] .form-feedback.success {
  color: #34D399;
}

.form-feedback.error {
  background: #FEF2F2;
  color: #B91C1C;
  border: 1px solid #FECACA;
}

[data-theme="dark"] .form-feedback.error {
  background: rgba(185, 28, 28, 0.18);
  color: #FCA5A5;
  border-color: rgba(239, 68, 68, 0.35);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* ==========================================================================
   FOOTER (CLEAN LIGHT)
   ========================================================================== */
.site-footer {
  padding: 3rem 0;
  background: var(--bg-light);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Footer Project Links (High Visibility & Interactive Zoom) */
.footer-project-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brand-green-dark);
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  border-radius: var(--radius-pill);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.footer-project-link .external-icon {
  opacity: 0.75;
  transition: transform 0.25s ease, opacity 0.25s ease;
  flex-shrink: 0;
}

.footer-project-link:hover {
  transform: translateY(-2px) scale(1.1);
  background: var(--brand-green);
  color: #FFFFFF !important;
  border-color: var(--brand-green);
  box-shadow: 0 4px 14px var(--brand-green-glow);
  text-decoration: none;
}

.footer-project-link:hover .external-icon {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* ==========================================================================
   GDPR COOKIE CONSENT BANNER (Glassmorphic & Non-Intrusive)
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: calc(100% - 32px);
  max-width: 920px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1.5px solid var(--brand-green-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18), 0 0 20px rgba(16, 185, 129, 0.1);
  padding: 1.25rem 1.75rem;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  box-sizing: border-box;
}

.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  width: 100%;
}

.cookie-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  background: var(--brand-green-soft);
  border: 1px solid var(--brand-green-border);
  border-radius: 50%;
  flex-shrink: 0;
}

.cookie-icon {
  font-size: 1.6rem;
  line-height: 1;
}

.cookie-text-block {
  flex: 1;
  min-width: 0;
}

.cookie-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.cookie-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 0.6rem 1.15rem;
  font-size: 0.84rem;
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE QUERIES
   ========================================================================== */
@media (max-width: 1280px) {
  .nav-links {
    gap: 0.15rem;
  }
  .nav-item {
    padding: 5px 7px;
    font-size: 0.8rem;
  }
  .brand-sub {
    display: none;
  }
  .btn-header-quote {
    padding: 0.48rem 0.95rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 1140px) {
  .nav-links {
    display: none;
  }
  .nav-links.mobile-open {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    border-bottom: 2px solid var(--brand-green);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16);
    padding: 1rem 1.25rem;
    gap: 0.4rem;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    z-index: 150;
    animation: slideDownMobile 0.2s ease forwards;
  }
  @keyframes slideDownMobile {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .nav-links.mobile-open .nav-item {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links.mobile-open .nav-item-cta {
    display: block;
    background: linear-gradient(135deg, var(--brand-green-light) 0%, var(--brand-green-dark) 100%);
    color: #FFFFFF !important;
    font-weight: 700;
    text-align: center;
    border: none;
    margin-top: 6px;
    box-shadow: 0 4px 14px var(--brand-green-glow);
  }
  .nav-links.mobile-open .nav-item + .nav-item::before {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  /* Hide desktop header quote button on tablets and mobile to prevent header overflow */
  .nav-actions .btn-header-quote {
    display: none !important;
  }
}

@media (max-width: 1200px) and (min-width: 1025px) {
  .systems-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  .configurator-layout {
    grid-template-columns: 1fr;
  }
  .bento-grid, .tech-grid, .systems-cards-grid, .equipment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .price-matrix-grid, .blueprint-wrapper {
    grid-template-columns: 1fr;
  }
  .calc-wrapper {
    grid-template-columns: 1fr;
  }
  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  /* Global Container & Mobile Spacing */
  .container {
    padding: 0 1rem;
    max-width: 100%;
    box-sizing: border-box;
  }
  .calculator-section,
  .catalog-section,
  .specs-section,
  .configurator-section,
  .tech-section,
  .systems-section,
  .faq-section,
  .contact-section {
    padding: 3rem 0;
  }
  .section-title {
    font-size: clamp(1.6rem, 5.5vw, 2.2rem);
    word-break: break-word;
  }
  .section-desc {
    font-size: 0.95rem;
  }
  .section-head {
    margin-bottom: 2rem;
  }

  .site-header .container {
    padding: 0 0.75rem;
  }
  .nav-inner {
    height: 60px;
    gap: 0.5rem;
    justify-content: space-between;
  }
  .brand-logo {
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
  }
  .logo-badge-full {
    height: 34px;
    padding: 0 8px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .brand-name {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
  }
  .btn-header-quote {
    display: none !important;
  }
  .lang-dropdown-trigger {
    padding: 5px 8px;
    font-size: 0.8rem;
    gap: 4px;
  }
  .theme-toggle-btn {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .mobile-toggle {
    width: 36px;
    height: 36px;
    font-size: 1.25rem;
    flex-shrink: 0;
  }

  /* 3D Card Proportions & Responsiveness */
  .card-scene-container {
    width: 100%;
    max-width: min(100%, 390px);
    aspect-ratio: 85.6 / 53.98;
    margin: 0 auto;
  }

  /* ==========================================================================
     CALCULATOR RIG MOBILE RESPONSIVENESS (ZERO OVERFLOW)
     ========================================================================== */
  .calc-wrapper {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }
  .calc-controls {
    gap: 1.15rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .calc-row {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .calc-label {
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 4px;
  }

  /* Single column features on mobile - prevents 2-col button burst */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
  }
  .toggle-chip {
    padding: 10px 12px;
    font-size: 0.82rem;
    line-height: 1.35;
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-break: break-word;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .toggle-chip input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
  }
  .toggle-chip span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
  }

  /* Slider container responsive */
  .slider-container {
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .range-slider {
    min-width: 0;
    flex: 1;
  }
  .calc-number-input {
    width: 78px;
    padding: 6px 8px;
    font-size: 0.9rem;
    flex-shrink: 0;
    box-sizing: border-box;
  }

  .calc-select {
    width: 100%;
    max-width: 100%;
    font-size: 0.84rem;
    padding: 9px 10px;
    box-sizing: border-box;
    text-overflow: ellipsis;
  }

  .calc-client-tabs {
    width: 100%;
    box-sizing: border-box;
  }
  .calc-client-tab {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  /* Summary Panel Mobile */
  .calc-summary-panel {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .summary-title {
    font-size: 1.05rem;
    margin-bottom: 1rem;
  }
  .summary-row {
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }
  .summary-label {
    font-size: 0.84rem;
  }
  .summary-val-big {
    font-size: clamp(1.8rem, 7vw, 2.3rem);
    word-break: break-all;
  }
  .summary-val-unit {
    font-size: 1.15rem;
  }
  .summary-tax-breakdown {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
  }
  .summary-tax-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
  }
  .summary-tax-breakdown-row span {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    line-height: 1.35;
  }
  .summary-tax-breakdown-row strong {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
  }

  /* Price Tier Cards & Other Modules on Mobile */
  .price-tier-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }
  .tier-options-box {
    padding: 0.75rem;
    font-size: 0.82rem;
  }
  .tier-options-box div {
    flex-wrap: wrap;
    gap: 4px;
  }
  .tier-prices-table td {
    padding: 6px 0;
    font-size: 0.88rem;
  }
  .tier-prices-table td.col-price {
    font-size: 0.98rem;
  }
  .tax-disclaimer-banner {
    padding: 12px 14px;
    gap: 12px;
    margin-bottom: 2rem;
  }

  /* Configurator, Blueprint & Contact */
  .config-panel {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
  }
  .config-input-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .swatches-grid {
    gap: 6px;
  }
  .swatch-btn {
    height: 42px;
  }
  .blueprint-wrapper {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
  }
  .contact-form {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    box-sizing: border-box;
    width: 100%;
  }
  .specs-action-bar {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .bento-grid, .tech-grid, .systems-cards-grid, .equipment-grid, .specs-grid {
    grid-template-columns: 1fr;
  }
  .specs-action-bar {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .footer-project-links {
    justify-content: center;
    gap: 0.5rem;
  }
  .cookie-banner {
    bottom: 12px;
    padding: 1rem;
    width: calc(100% - 20px);
  }
  .cookie-banner-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .cookie-actions {
    width: 100%;
    display: flex;
    gap: 8px;
  }
  .cookie-actions .cookie-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
    padding: 0.55rem 0.75rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 56px;
  }
  .container {
    padding: 0 0.75rem;
  }
  .calculator-section,
  .catalog-section,
  .specs-section,
  .configurator-section,
  .tech-section,
  .systems-section,
  .faq-section,
  .contact-section {
    padding: 2.25rem 0;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }
  .hero-stats-row {
    gap: 1rem;
  }
  .stat-number {
    font-size: 1.55rem;
  }

  .site-header .container {
    padding: 0 0.5rem;
  }
  .nav-inner {
    height: 56px;
    gap: 0.35rem;
  }
  .brand-logo {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }
  .logo-badge-full {
    height: 32px;
    padding: 0 7px;
    font-size: 0.92rem;
  }
  /* On compact phones, hide secondary text so logo badge + language + theme + menu fit seamlessly */
  .brand-name {
    display: none;
  }
  .nav-actions {
    gap: 5px;
    flex-shrink: 0;
  }
  .lang-dropdown-trigger {
    padding: 4px 7px;
    font-size: 0.76rem;
    gap: 3px;
  }
  .theme-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 0.95rem;
    flex-shrink: 0;
  }
  .mobile-toggle {
    width: 34px;
    height: 34px;
    font-size: 1.15rem;
    flex-shrink: 0;
  }

  .card-scene-container {
    width: 100%;
    max-width: min(100%, 340px);
    aspect-ratio: 85.6 / 53.98;
    margin: 0 auto;
  }

  .calc-wrapper {
    padding: 1rem 0.75rem;
    gap: 1.25rem;
  }
  .calc-summary-panel {
    padding: 1rem 0.75rem;
  }
  .calc-number-input {
    width: 72px;
    font-size: 0.88rem;
  }
  .calc-client-tab {
    padding: 6px 6px;
    font-size: 0.78rem;
  }
  .tax-disclaimer-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }
  .cookie-banner {
    bottom: 8px;
    padding: 0.85rem 0.75rem;
    width: calc(100% - 12px);
  }
  .cookie-title {
    font-size: 0.95rem;
  }
  .cookie-desc {
    font-size: 0.78rem;
    line-height: 1.4;
  }
  .cookie-actions {
    flex-direction: column;
    width: 100%;
    gap: 6px;
  }
  .cookie-actions .cookie-btn {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.5rem;
  }
  .site-header .container {
    padding: 0 0.35rem;
  }
  .card-scene-container {
    width: 100%;
    max-width: min(100%, 300px);
    aspect-ratio: 85.6 / 53.98;
    margin: 0 auto;
  }
  .calc-wrapper {
    padding: 0.85rem 0.5rem;
    gap: 1rem;
  }
  .calc-summary-panel {
    padding: 0.85rem 0.5rem;
  }
  .slider-container {
    gap: 0.4rem;
  }
  .calc-number-input {
    width: 66px;
    padding: 5px 6px;
    font-size: 0.84rem;
  }
  .calc-client-tab {
    padding: 5px 4px;
    font-size: 0.74rem;
  }
  .toggle-chip {
    padding: 8px 10px;
    font-size: 0.78rem;
    gap: 8px;
  }
  .summary-val-big {
    font-size: 1.7rem;
  }
  .summary-tax-breakdown-row {
    font-size: 0.75rem;
  }
  .summary-tax-breakdown-row strong {
    font-size: 0.82rem;
  }
  .price-tier-card,
  .config-panel,
  .blueprint-wrapper,
  .contact-form {
    padding: 0.85rem 0.5rem;
  }
}

/* Calculator Extras Hint & Request Note */
.calc-extras-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
  padding: 6px 10px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .calc-extras-hint {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #94A3B8;
}

.calc-summary-extras-note {
  margin-top: 10px;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: #D97706;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: var(--radius-sm);
  line-height: 1.35;
}

[data-theme="dark"] .calc-summary-extras-note {
  color: #FCD34D;
  background: rgba(217, 119, 6, 0.15);
  border-color: rgba(217, 119, 6, 0.35);
}

/* ==========================================================================
   COMPREHENSIVE DARK THEME CONTRAST & VISIBILITY POLISH
   ========================================================================== */
[data-theme="dark"] .catalog-section,
[data-theme="dark"] .calculator-section,
[data-theme="dark"] .specs-section,
[data-theme="dark"] .systems-section {
  background: var(--bg-light);
}

[data-theme="dark"] .section-title {
  color: #FFFFFF;
}

[data-theme="dark"] .section-desc {
  color: #94A3B8;
}

[data-theme="dark"] .section-badge {
  color: #34D399;
}

/* Bento Grid Dark Cards */
[data-theme="dark"] .bento-card {
  background: var(--bg-surface);
  border-color: var(--border-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .bento-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55), 0 0 25px rgba(16, 185, 129, 0.15);
}

[data-theme="dark"] .bento-title {
  color: #F8FAFC !important;
}

[data-theme="dark"] .bento-desc {
  color: #94A3B8 !important;
}

[data-theme="dark"] .bento-link {
  color: #34D399 !important;
}

[data-theme="dark"] .bento-link:hover {
  color: #6EE7B7 !important;
}

[data-theme="dark"] .bento-icon-box {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34D399;
}

/* Technology Section Dark */
[data-theme="dark"] .tech-section {
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .tech-box {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

[data-theme="dark"] .tech-box:hover {
  background: var(--bg-card-hover);
  border-color: var(--brand-green-border);
}

[data-theme="dark"] .tech-box h3 {
  color: #FFFFFF;
}

[data-theme="dark"] .tech-box p {
  color: #94A3B8;
}

/* Systems Section Dark */
[data-theme="dark"] .system-card {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

[data-theme="dark"] .system-card.featured-new {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(245, 158, 11, 0.08) 100%);
  border-color: rgba(245, 158, 11, 0.45);
}

[data-theme="dark"] .system-card.featured-new:hover {
  border-color: #F59E0B;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .system-logo {
  color: #34D399;
}

[data-theme="dark"] .system-desc {
  color: #94A3B8;
}

/* Equipment Section Dark */
[data-theme="dark"] .equipment-section {
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .equipment-card {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

[data-theme="dark"] .equipment-card-title {
  color: #FFFFFF;
}

[data-theme="dark"] .equipment-card-desc {
  color: #94A3B8;
}

[data-theme="dark"] .equipment-img-box {
  background: #111827;
  border-color: var(--border-card);
}

[data-theme="dark"] .equipment-notice-bar {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .equipment-notice-text {
  color: #34D399;
}

/* Price Tier Cards Dark */
[data-theme="dark"] .price-tier-card {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

[data-theme="dark"] .price-tier-card.featured {
  background: linear-gradient(180deg, var(--bg-surface) 0%, rgba(16, 185, 129, 0.15) 100%);
  border-color: rgba(16, 185, 129, 0.55);
}

[data-theme="dark"] .tier-title {
  color: #FFFFFF;
}

[data-theme="dark"] .tier-speed-pill {
  color: #CBD5E1;
}

[data-theme="dark"] .tier-prices-table td {
  color: #E2E8F0;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .tier-prices-table .col-price {
  color: #34D399;
}

[data-theme="dark"] .tier-options-box {
  background: var(--bg-subtle);
  border-color: var(--border-card);
  color: #CBD5E1;
}

[data-theme="dark"] .tier-options-box strong {
  color: #34D399;
}

[data-theme="dark"] .tier-tax-hint {
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .tier-note {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
}

/* Calculator Dark */
[data-theme="dark"] .calc-wrapper {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

[data-theme="dark"] .calc-label {
  color: #F8FAFC;
}

[data-theme="dark"] .calc-select,
[data-theme="dark"] .calc-number-input {
  background: var(--bg-subtle);
  color: #F8FAFC;
  border-color: var(--border-card);
}

[data-theme="dark"] .calc-summary-panel {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.14) 0%, var(--bg-subtle) 100%);
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .summary-title {
  color: #34D399;
}

[data-theme="dark"] .summary-val-big {
  color: #FFFFFF;
}

[data-theme="dark"] .summary-val-time {
  color: #34D399;
}

/* Specs & Blueprint Dark */
[data-theme="dark"] .spec-tile {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

[data-theme="dark"] .spec-tile-title {
  color: #34D399;
}

[data-theme="dark"] .spec-tile-val {
  color: #FFFFFF;
}

[data-theme="dark"] .blueprint-wrapper {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

[data-theme="dark"] .blueprint-visual-box {
  background: var(--bg-subtle);
  border-color: var(--border-card);
}

[data-theme="dark"] .blueprint-img {
  background: #111827;
  border-color: var(--border-card);
}

[data-theme="dark"] .blueprint-specs-table td {
  color: #CBD5E1;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .blueprint-specs-table strong {
  color: #FFFFFF;
}

[data-theme="dark"] .blueprint-rule-item {
  background: var(--bg-subtle);
  color: #CBD5E1;
}

[data-theme="dark"] .specs-action-bar {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

/* Contact & Footer Dark */
[data-theme="dark"] .contact-section {
  background: var(--bg-subtle);
  border-color: var(--border-subtle);
}

[data-theme="dark"] .contact-form {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

[data-theme="dark"] .company-map-wrapper {
  background: var(--bg-surface);
  border-color: var(--border-card);
}

[data-theme="dark"] .site-footer {
  background: var(--bg-light);
  border-color: var(--border-subtle);
}

/* Footer Projects & Cookie Banner Dark Theme */
[data-theme="dark"] .footer-project-link {
  color: #34D399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .footer-project-link:hover {
  color: #FFFFFF !important;
  background: var(--brand-green);
  border-color: var(--brand-green);
}

[data-theme="dark"] .cookie-banner {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), 0 0 25px rgba(16, 185, 129, 0.18);
}
