/* ==========================================================================
   DECA-Q — Architectural 3DCG, Scan to BIM & CAD Outsourcing Design System
   THEME: Deep Burgundy (Đỏ Đô) & Imperial Metallic Gold (Vàng Ánh Kim) - Mệnh Thổ
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color Palette - Luxury Deep Burgundy & Imperial Metallic Gold */
  --bg-primary: #0a0305;
  --bg-secondary: #13060a;
  --bg-surface: #1a080e;
  --bg-surface-elevated: #240c14;
  --bg-glass: rgba(19, 6, 10, 0.88);
  --bg-glass-card: rgba(26, 8, 14, 0.78);

  /* Primary Accents - Đỏ Đô Quý Phái & Vàng Ánh Kim (Không dùng đỏ gắt) */
  --accent-red: #7a0f1d;
  --accent-burgundy: #660b17;
  --accent-burgundy-light: #8c1323;
  --accent-crimson-glow: rgba(122, 15, 29, 0.35);
  
  --accent-gold: #d4af37;
  --accent-gold-bright: #f3c64c;
  --accent-gold-glow: rgba(212, 175, 55, 0.35);
  --accent-amber: #c59b27;

  --text-primary: #fff5f5;
  --text-secondary: #d1b8b8;
  --text-muted: #8c6e75;
  --text-accent: #f3c64c;

  --border-subtle: rgba(255, 220, 200, 0.08);
  --border-gold: rgba(212, 175, 55, 0.35);
  --border-red: rgba(122, 15, 29, 0.45);
  --border-active: rgba(243, 198, 76, 0.7);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Spacing */
  --container-max: 1280px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Styles & Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(122, 15, 29, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 85% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(212, 175, 55, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
}

::selection {
  background: var(--accent-gold);
  color: #1a0508;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Header Shared Styles */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-gold-bright);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
}

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

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 3rem;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
}

/* Circular Logo Style Matching the Official Icon */
.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(243, 198, 76, 0.75);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.4), 0 0 25px rgba(102, 11, 23, 0.6);
  object-fit: cover;
  display: block;
  transition: var(--transition-fast);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 22px rgba(243, 198, 76, 0.9), 0 0 35px rgba(122, 15, 29, 0.7);
  border-color: var(--accent-gold-bright);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #7a0f1d, #d4af37);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--accent-gold);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active {
  background: linear-gradient(135deg, #c59b27 0%, #e5b842 100%);
  color: #100305;
}

/* Buttons with Harmonious Deep Burgundy & Metallic Gold Gradients (Không gắt) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: linear-gradient(135deg, #660b17 0%, #8c1323 35%, #c59b27 75%, #e5b842 100%);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(243, 198, 76, 0.55);
  cursor: pointer;
  transition: var(--transition-normal);
  box-shadow: 0 4px 18px rgba(102, 11, 23, 0.6), 0 0 12px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #7a0f1d 0%, #9e172a 35%, #d4af37 75%, #f3c64c 100%);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45), 0 0 20px rgba(122, 15, 29, 0.6);
  color: #fff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: rgba(212, 175, 55, 0.08);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-gold);
  cursor: pointer;
  transition: var(--transition-normal);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--accent-gold-bright);
  transform: translateY(-2px);
  color: #fff;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section with 3D Canvas
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

#hero-pointcloud-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

/* Hero Title Gradient: Smooth Vàng Ánh Kim & Đỏ Đô Quý Tộc */
.hero-title-gradient {
  background: linear-gradient(135deg, #f3c64c 0%, #d4af37 35%, #a82435 70%, #660b17 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(212, 175, 55, 0.25);
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 720px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Hero Stats Bar */
.hero-stats-bar {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
  background: var(--bg-glass-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(102, 11, 23, 0.25);
}

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

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-number.accent {
  color: var(--accent-gold-bright);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.4rem;
  font-weight: 500;
}

/* ==========================================================================
   Scan to BIM Core Technology Cinematic Video Player Section
   ========================================================================== */
.comparison-section {
  padding: 5rem 0;
  position: relative;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
}

/* Video Channel Selector Tabs */
.video-channel-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1080px;
  margin: 0 auto 1.5rem auto;
}

.video-tab-btn {
  background: rgba(18, 5, 9, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.video-tab-btn .tab-icon {
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
  transition: transform 0.25s ease, background 0.25s ease;
}

.video-tab-btn .tab-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.video-tab-btn .tab-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.video-tab-btn .tab-title {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
}

.video-tab-btn:hover {
  background: rgba(45, 10, 18, 0.9);
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.video-tab-btn:hover .tab-icon {
  transform: scale(1.08);
  background: rgba(122, 15, 29, 0.6);
}

.video-tab-btn.active {
  background: linear-gradient(135deg, rgba(122, 15, 29, 0.95), rgba(45, 10, 18, 0.98));
  border-color: var(--accent-gold-bright);
  box-shadow: 0 8px 25px rgba(122, 15, 29, 0.5), 0 0 20px rgba(212, 175, 55, 0.35);
  transform: translateY(-2px);
}

.video-tab-btn.active .tab-label {
  color: var(--accent-gold-bright);
}

.video-tab-btn.active .tab-title {
  color: #ffffff;
}

.video-tab-btn.active .tab-icon {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--accent-gold-bright);
}

@media (max-width: 768px) {
  .video-channel-tabs {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
}

.core-video-wrapper {
  margin-top: 0.5rem;
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.core-video-card {
  background: #0d0305;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 35px rgba(122, 15, 29, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.core-video-card:hover {
  border-color: var(--accent-gold);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 45px rgba(212, 175, 55, 0.35);
}

.core-video-header {
  background: linear-gradient(135deg, rgba(122, 15, 29, 0.9), rgba(34, 6, 12, 0.98));
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.core-video-title {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--accent-gold-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.02em;
}

.core-video-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.5s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.core-video-body {
  position: relative;
  background: #000000;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}

/* Cinematic Slides with Ken Burns drift */
.cine-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(1);
}

.cine-slide.active {
  opacity: 1;
  pointer-events: auto;
  animation: ken-burns 12s ease-out infinite alternate;
}

.cine-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes ken-burns {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.05) translate(-1%, -0.5%); }
}

/* Futuristic HUD Overlay */
.cine-slide-hud {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
  z-index: 5;
}

.hud-scanner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(8, 2, 4, 0.85);
  border: 1px solid #22c55e;
  color: #22c55e;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
  letter-spacing: 0.03em;
}

.hud-pulse {
  width: 7px;
  height: 7px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 1.2s infinite;
}

.hud-metric-box {
  background: rgba(14, 4, 8, 0.8);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-gold);
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.metric-row {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.5rem;
}

.metric-row strong {
  color: #ffffff;
}

/* Green Laser Scanning Beam Sweep */
.laser-scanner-sweep {
  position: absolute;
  top: 0;
  left: -10%;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, rgba(34, 197, 94, 0) 0%, rgba(34, 197, 94, 1) 50%, rgba(34, 197, 94, 0) 100%);
  box-shadow: 0 0 20px 4px rgba(34, 197, 94, 0.8), 0 0 40px 8px rgba(34, 197, 94, 0.4);
  pointer-events: none;
  z-index: 6;
  opacity: 0.85;
  animation: laser-sweep 4s ease-in-out infinite alternate;
}

@keyframes laser-sweep {
  0% { left: 0%; opacity: 0.2; }
  50% { opacity: 0.9; }
  100% { left: 100%; opacity: 0.2; }
}

.video-overlay-watermark {
  position: absolute;
  bottom: 1rem;
  right: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  pointer-events: none;
  backdrop-filter: blur(4px);
  z-index: 5;
}

/* Big Center Play Overlay */
.cine-play-overlay-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(20, 5, 10, 0.85);
  border: 2px solid var(--accent-gold-bright);
  border-radius: 50%;
  color: var(--accent-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 8;
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.2s ease, background 0.2s ease;
}

.core-video-body:hover .cine-play-overlay-btn,
.cine-play-overlay-btn.show-paused {
  opacity: 1;
}

.cine-play-overlay-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(122, 15, 29, 0.9);
  color: #ffffff;
}

/* Video Controls Toolbar */
.cine-controls-bar {
  background: #0f0306;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  border-top: 1px solid var(--border-subtle);
}

.cine-main-btns,
.cine-extra-btns {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.cine-ctrl-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.2s ease;
}

.cine-ctrl-btn:hover {
  background: rgba(122, 15, 29, 0.6);
  border-color: var(--border-gold);
  color: var(--accent-gold-bright);
}

.cine-time-display {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 0.25rem;
}

/* 3-Stage Navigation Pills */
.cine-stage-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cine-stage-pill {
  background: rgba(20, 5, 10, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 0.25s ease;
}

.cine-stage-pill .stage-num {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-family: var(--font-mono);
}

.cine-stage-pill:hover {
  border-color: var(--border-gold);
  color: #fff;
}

.cine-stage-pill.active {
  background: linear-gradient(135deg, rgba(122, 15, 29, 0.9), rgba(197, 155, 39, 0.35));
  border-color: var(--accent-gold-bright);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.cine-stage-pill.active .stage-num {
  background: var(--accent-gold-bright);
  color: #000000;
  font-weight: 800;
}

/* Progress Scrubber Bar */
.cine-progress-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  cursor: pointer;
  transition: height 0.2s ease;
}

.cine-progress-container:hover {
  height: 10px;
}

.cine-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e, #f3c64c 50%, #38bdf8 100%);
  width: 0%;
  transition: width 0.1s linear;
}

.cine-progress-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.comparison-container {
  position: relative;
  width: 100%;
  height: 520px;
  user-select: none;
  cursor: ew-resize;
  overflow: hidden;
}

.comparison-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.comparison-svg-art {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  will-change: clip-path;
  transition: none;
}

/* Slider Handle */
.comparison-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, #8c1323, #d4af37);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  z-index: 10;
  cursor: ew-resize;
  transform: translateX(-50%);
}

.handle-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: #140508;
  border: 2px solid var(--accent-gold-bright);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-bright);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6), 0 0 10px rgba(102, 11, 23, 0.6);
}

.handle-button svg {
  width: 22px;
  height: 22px;
}

/* Badges on Comparison tool */
.comparison-badge {
  position: absolute;
  top: 1.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  z-index: 5;
  backdrop-filter: blur(10px);
}

.badge-pointcloud {
  left: 1.5rem;
  background: rgba(19, 6, 10, 0.88);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-bright);
}

.badge-bim {
  right: 1.5rem;
  background: rgba(102, 11, 23, 0.4);
  border: 1px solid #8c1323;
  color: #f3c64c;
}

.comparison-instruction {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   Services Section (3 Pillars)
   ========================================================================== */
.services-section {
  padding: 7rem 0;
  position: relative;
}

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

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

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4af37, #7a0f1d, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(102, 11, 23, 0.25);
}

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

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(122, 15, 29, 0.2);
  border: 1px solid rgba(140, 19, 35, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold-bright);
  margin-bottom: 1.5rem;
}

.service-icon-box.green {
  background: rgba(212, 175, 55, 0.15);
  border-color: rgba(212, 175, 55, 0.35);
  color: var(--accent-gold-bright);
}

.service-icon-box.amber {
  background: rgba(197, 155, 39, 0.15);
  border-color: rgba(197, 155, 39, 0.35);
  color: var(--accent-gold-bright);
}

.service-category-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-gold-bright);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.service-card-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 1rem;
}

.service-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-features-list {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-features-list li {
  font-size: 0.9rem;
  color: var(--text-primary);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.service-features-list li svg {
  color: var(--accent-gold-bright);
  flex-shrink: 0;
  margin-top: 3px;
}

.service-card:nth-child(2) .service-features-list li svg {
  color: var(--accent-gold-bright);
}

.service-card:nth-child(3) .service-features-list li svg {
  color: var(--accent-gold-bright);
}

.service-software-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.25rem;
}

.software-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

.software-tags {
  font-size: 0.85rem;
  color: var(--accent-gold-bright);
  font-weight: 500;
}

/* ==========================================================================
   Portfolio Showcase Section
   ========================================================================== */
.portfolio-section {
  padding: 7rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.portfolio-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.portfolio-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
}

.portfolio-filter-btn:hover, .portfolio-filter-btn.active {
  background: linear-gradient(135deg, #660b17 0%, #8c1323 40%, #d4af37 100%);
  color: #ffffff;
  border-color: var(--accent-gold);
  box-shadow: 0 0 18px rgba(212, 175, 55, 0.4);
}

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

.portfolio-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(102, 11, 23, 0.3);
}

.portfolio-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #0f0306;
}

.portfolio-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-thumb {
  transform: scale(1.05);
}

.portfolio-category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(24, 7, 12, 0.92);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
}

.portfolio-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.portfolio-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.view-project-btn {
  margin-top: auto;
  background: transparent;
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-bright);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-fast);
}

.view-project-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-gold-bright);
  color: #fff;
}

/* ==========================================================================
   Standardized 5-Step Workflow Section
   ========================================================================== */
.workflow-section {
  padding: 7rem 0;
  position: relative;
}

.workflow-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  position: relative;
}

.workflow-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.25rem;
  position: relative;
  transition: var(--transition-fast);
}

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

.workflow-step-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold-bright);
  margin-bottom: 1rem;
  display: block;
}

.workflow-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

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

/* ==========================================================================
   DECA-Q Revit Add-in Suite & Commercialization Hub
   ========================================================================== */
.revit-tools-section {
  padding: 7rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.estimator-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(102, 11, 23, 0.2);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
}

.est-form-group {
  margin-bottom: 2rem;
}

.est-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
}

.est-select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
}

.est-select:focus {
  border-color: var(--accent-gold);
}

/* Modern Interactive Service Tabs */
.est-service-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.est-service-tab {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.65rem;
  color: #a1a1aa;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition-fast);
  text-align: center;
}

.est-service-tab .tab-icon {
  font-size: 1.45rem;
}

.est-service-tab:hover {
  border-color: var(--border-gold);
  color: #fff;
  background: rgba(212, 175, 55, 0.05);
}

.est-service-tab.active {
  border-color: var(--accent-gold);
  background: linear-gradient(135deg, rgba(122, 15, 29, 0.4) 0%, rgba(212, 175, 55, 0.2) 100%);
  color: var(--accent-gold-bright);
  box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}

@media (max-width: 640px) {
  .est-service-tabs {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .est-service-tab {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
}

.est-range-wrapper {
  margin-top: 0.5rem;
}

.est-range-slider {
  width: 100%;
  -webkit-appearance: none;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  outline: none;
}

.est-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7a0f1d 0%, #d4af37 100%);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-gold);
}

.est-range-value-badge {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--accent-gold-bright);
}

/* Date Range Selector Styling */
.est-date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.est-date-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.est-date-sublabel {
  font-size: 0.8rem;
  color: #a1a1aa;
  font-weight: 500;
  font-family: var(--font-body);
}

.est-date-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition-fast);
  color-scheme: dark;
}

.est-date-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.est-calc-badge {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold-bright);
  font-weight: 600;
}

@media (max-width: 640px) {
  .est-date-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.est-radio-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.est-checkbox-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.est-choice-label {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
  text-align: center;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .est-radio-group {
    grid-template-columns: 1fr;
  }
  .est-checkbox-group {
    grid-template-columns: repeat(2, 1fr);
  }
}

.est-choice-label:hover {
  border-color: var(--border-gold);
}

input[type="radio"]:checked + .est-choice-label,
input[type="checkbox"]:checked + .est-choice-label {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
  font-weight: 700;
}

.hidden-input {
  display: none;
}

/* Estimator Result Summary Card */
.est-summary-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.est-result-item {
  margin-bottom: 1.75rem;
}

.est-res-label {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

.est-res-val {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent-gold-bright);
}

.est-res-val.time {
  color: #e5b842;
}

.est-unit-rate {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: #d4af37;
  margin-top: 0.35rem;
}

.est-perks-list {
  margin: 1.5rem 0;
  padding: 1rem;
  background: rgba(122, 15, 29, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.est-perk-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.est-perk-item svg {
  color: var(--accent-gold-bright);
  flex-shrink: 0;
}

/* ==========================================================================
   Software Stack Section
   ========================================================================== */
.tech-section {
  padding: 6rem 0;
}

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

.tech-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.75rem;
  transition: var(--transition-fast);
}

.tech-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  background: var(--bg-surface-elevated);
}

.tech-icon {
  width: 44px;
  height: 44px;
  color: var(--accent-gold-bright);
}

.tech-name {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}

.tech-tag-badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Trust / About Section
   ========================================================================== */
.about-section {
  padding: 7rem 0;
  background: var(--bg-secondary);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-pillars-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-pillar-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  transition: var(--transition-fast);
}

.about-pillar-card:hover {
  border-color: var(--border-gold);
  transform: translateX(6px);
}

.pillar-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(122, 15, 29, 0.25);
  color: var(--accent-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.35rem;
}

.pillar-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Contact / RFQ Section
   ========================================================================== */
.contact-section {
  padding: 7rem 0;
  position: relative;
}

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

.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.contact-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-gold-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-title {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.contact-detail-val {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.rfq-form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(102, 11, 23, 0.2);
}

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

.form-field {
  margin-bottom: 1.25rem;
}

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.8rem 1rem;
  font-size: 0.9375rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #060103;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem 0;
}

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

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

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

.footer-links-list a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links-list a:hover {
  color: var(--accent-gold-bright);
  padding-left: 4px;
}

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

/* ==========================================================================
   Modal Dialog
   ========================================================================== */
.project-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-modal-backdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: flex !important;
}

.modal-content-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 980px;
  width: 100%;
  max-height: 94vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(102, 11, 23, 0.35);
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--accent-gold);
  color: #100305;
}

.modal-image-view {
  width: 100%;
  min-height: 320px;
  max-height: 520px;
  background: #080203;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-gold);
}

.modal-image-view img {
  max-width: 100%;
  max-height: 500px;
  width: auto;
  height: auto;
  object-fit: contain !important; /* Đảm bảo nhìn thấy 100% bản vẽ, không bị cắt */
  border-radius: var(--radius-sm);
  transition: transform 0.25s ease;
}

/* CAD Tracing Interactive Before/After Comparison Showcase */
.cad-trace-comparison-wrapper {
  margin: 1.25rem 1.5rem 0;
  background: #0d0305;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.trace-viewer-header {
  background: linear-gradient(135deg, rgba(122, 15, 29, 0.85), rgba(42, 6, 12, 0.95));
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.trace-mode-switcher {
  display: flex;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(212, 175, 55, 0.3);
  gap: 0.25rem;
}

.trace-mode-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition-fast);
}

.trace-mode-btn.active, .trace-mode-btn:hover {
  background: var(--accent-gold);
  color: #100305;
}

.trace-comparison-slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 480px;
  max-height: 640px;
  overflow: hidden;
  background: #080203;
  display: flex;
  justify-content: center;
  align-items: center;
  user-select: none;
}

.trace-slider-img-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trace-slider-img-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  display: block;
}

.trace-layer-after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  background: #080203;
}

.trace-overlay-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  background: #080203;
}

.trace-slider-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--accent-gold-bright);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
  box-shadow: 0 0 15px rgba(243, 198, 76, 0.8);
}

.trace-slider-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--accent-gold-bright), var(--accent-gold));
  border: 2px solid #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #100305;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.trace-badge-tag {
  position: absolute;
  bottom: 0.75rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  z-index: 5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
}

.trace-badge-before {
  left: 0.75rem;
  background: rgba(192, 57, 43, 0.92);
  color: #fff;
  border: 1px solid #e74c3c;
}

.trace-badge-after {
  right: 0.75rem;
  background: rgba(15, 65, 30, 0.92);
  color: #2ecc71;
  border: 1px solid #27ae60;
}

/* Side by Side split view */
.trace-split-container {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #080203;
}

.trace-split-card {
  background: #120407;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trace-split-card-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.6rem;
  margin-bottom: 0.5rem;
  border-radius: 3px;
  width: 100%;
  text-align: center;
}

.trace-split-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  object-fit: contain !important;
  background: #080d14;
  padding: 0.35rem;
  border-radius: var(--radius-sm);
}

/* Badge overlay on portfolio cards */
.portfolio-badge-overlay {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  background: rgba(10, 3, 5, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* PDF Drawing Slideshow Viewer in Modal */
.pdf-viewer-wrapper {
  margin-top: 1.5rem;
  background: #0d0305;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.pdf-viewer-header-banner {
  background: linear-gradient(135deg, rgba(122, 15, 29, 0.75), rgba(42, 6, 12, 0.95));
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pdf-viewer-banner-title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-gold-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-viewer-controls-bar {
  background: #140407;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pdf-ctrl-btn-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pdf-ctrl-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
}

.pdf-ctrl-btn:hover {
  background: var(--primary-burgundy);
  border-color: var(--accent-gold);
  color: #fff;
}

.pdf-play-btn {
  background: linear-gradient(135deg, #7a0f1d, #4d0710);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

.pdf-category-dropdown {
  background: #0d0305;
  border: 1px solid var(--border-gold);
  color: #f3c64c;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  max-width: 320px;
}

.pdf-canvas-container {
  background: #090204;
  padding: 1.5rem 1.25rem;
  overflow: hidden !important; /* Loại bỏ triệt để thanh cuộn */
  width: 100%;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  cursor: zoom-in;
}

.pdf-canvas-container canvas,
#steel-drawing-display {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  background: #ffffff;
  border-radius: 4px;
  margin: 0 auto;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pdf-canvas-container:hover canvas,
.pdf-canvas-container:hover #steel-drawing-display {
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.4);
}

.pdf-confidential-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #f3c64c;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.modal-body {
  padding: 2.25rem;
}

.modal-body .portfolio-category-tag {
  position: static !important;
  display: inline-block !important;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}

.modal-title {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.8vw, 1.55rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.modal-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.25rem 0;
}

.modal-spec-item {
  display: flex;
  flex-direction: column;
}

.modal-spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-spec-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-top: 0.25rem;
}

.modal-scope-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-scope-desc {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #20060b;
  border: 1px solid var(--accent-gold);
  color: #fef08a;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 10000;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   Responsive Breakpoints & Mobile Layout System (Chống Lệch Khung Hình)
   ========================================================================== */

/* 1. Universal Mobile Overflow & Layout Protection */
html, body {
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Tablet Breakpoint (max-width: 1024px) */
@media (max-width: 1024px) {
  .services-grid, .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .workflow-timeline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
  .estimator-box {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.25rem;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    padding: 1.5rem;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
}

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .container {
    padding-left: 1.15rem !important;
    padding-right: 1.15rem !important;
  }

  /* Header & Navigation */
  .site-header {
    height: var(--header-height);
  }

  .brand-logo {
    font-size: 1.25rem;
    gap: 0.5rem;
  }

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

  .header-actions {
    gap: 0.5rem;
  }

  .header-actions .btn-primary {
    display: none; /* Ẩn nút CTA dài trên header thanh nhỏ để tránh tràn */
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    padding: 0.2rem 0.45rem;
    font-size: 0.7rem;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--border-subtle);
    color: #fff;
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .mobile-toggle.active {
    background: var(--accent-red);
    border-color: var(--accent-gold);
    color: var(--accent-gold-bright);
  }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 3, 5, 0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 1.5rem 1.25rem 3rem 1.25rem;
    border-top: 1px solid var(--border-gold);
    z-index: 99999;
    overflow-y: auto;
    gap: 0.35rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.9);
  }

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

  .nav-link {
    display: block;
    font-size: 1.05rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    width: 100%;
    color: var(--text-primary);
  }

  .nav-link:hover, .nav-link.active {
    background: rgba(212, 175, 55, 0.12);
    border-color: var(--border-gold);
    color: var(--accent-gold-bright);
  }

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

  .nav-mobile-cta-item {
    display: block;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 1.5rem);
    padding-bottom: 2.5rem;
  }

  .section-tag {
    font-size: 0.72rem;
    padding: 0.3rem 0.75rem;
    margin-bottom: 0.75rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    line-height: 1.2;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    word-break: break-word;
  }

  .hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
  }

  .hero-cta-group .btn-primary,
  .hero-cta-group .btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.92rem;
  }

  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    padding: 1.25rem 0.85rem;
    gap: 1.25rem 0.75rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
  }

  .stat-item::after {
    display: none !important;
  }

  .stat-number {
    font-size: 1.65rem;
  }

  .stat-label {
    font-size: 0.75rem;
    margin-top: 0.2rem;
  }

  /* Video & Comparison Showcase */
  .comparison-section {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.65rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 0.92rem;
    margin-bottom: 2rem;
  }

  .video-channel-tabs {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .video-tab-btn {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .video-tab-btn .tab-icon {
    width: 38px;
    height: 38px;
    font-size: 1.3rem;
  }

  .video-tab-btn .tab-title {
    font-size: 0.82rem;
  }

  .core-video-header {
    padding: 0.65rem 0.85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .core-video-title {
    font-size: 0.82rem;
  }

  .cine-controls-bar {
    padding: 0.65rem 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .cine-main-btns {
    width: 100%;
    justify-content: space-between;
  }

  .cine-stage-nav {
    width: 100%;
    display: flex;
    gap: 0.35rem;
    justify-content: space-between;
    overflow-x: auto;
  }

  .cine-stage-pill {
    flex: 1;
    padding: 0.3rem 0.4rem;
    font-size: 0.68rem;
    justify-content: center;
    white-space: nowrap;
  }

  .hud-scanner-badge {
    font-size: 0.65rem;
    padding: 0.25rem 0.5rem;
  }

  .hud-metric-box {
    display: none;
  }

  .comparison-container {
    height: 280px;
  }

  .comparison-badge {
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
    top: 0.75rem;
  }

  .badge-pointcloud {
    left: 0.75rem;
  }

  .badge-bim {
    right: 0.75rem;
  }

  /* Services Section */
  .services-section {
    padding: 3.5rem 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .service-card-title {
    font-size: 1.25rem;
  }

  /* Estimator Tool */
  .estimator-section {
    padding: 3.5rem 0;
  }

  .estimator-box {
    padding: 1.25rem 1rem;
    gap: 1.75rem;
    border-radius: var(--radius-md);
  }

  .est-service-tabs {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .est-service-tab {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
    text-align: left;
  }

  .est-date-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .est-radio-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .est-checkbox-group {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .est-choice-label {
    white-space: normal;
    padding: 0.65rem 0.5rem;
    font-size: 0.8rem;
  }

  .est-summary-card {
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
  }

  .est-res-val {
    font-size: 1.45rem;
  }

  /* Portfolio Grid & Filter Bar */
  .portfolio-section {
    padding: 3.5rem 0;
  }

  .portfolio-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .portfolio-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .portfolio-filter-btn {
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .portfolio-thumb-wrapper {
    height: 200px;
  }

  .portfolio-content {
    padding: 1.25rem 1rem;
  }

  .portfolio-title {
    font-size: 1.05rem;
  }

  /* Standardized Workflow */
  .workflow-section {
    padding: 3.5rem 0;
  }

  .workflow-timeline {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 1.75rem;
  }

  .workflow-card {
    padding: 1.25rem 1rem;
  }

  /* Tech Stack (5 Software) */
  .tech-section {
    padding: 3.5rem 0;
  }

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

  .tech-card:last-child {
    grid-column: span 2;
  }

  .tech-card {
    padding: 1rem 0.75rem;
  }

  /* About / Trust Section */
  .about-section {
    padding: 3.5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-pillar-card {
    padding: 1.25rem 1rem;
    gap: 0.75rem;
  }

  /* Contact & RFQ Section */
  .contact-section {
    padding: 3.5rem 0;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
  }

  .contact-info-card {
    padding: 1.5rem 1.15rem;
  }

  .rfq-form-card {
    padding: 1.5rem 1.15rem;
  }

  .form-grid-2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Footer */
  .site-footer {
    padding: 3.5rem 0 1.5rem 0;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Project Details Modal (Chống tràn & Lệch khung trên Mobile) */
  .project-modal-backdrop {
    padding: 0.5rem !important;
    align-items: flex-start !important;
    overflow-y: auto !important;
  }

  .modal-content-box {
    max-height: none !important;
    min-height: auto;
    margin: 0.5rem auto !important;
    border-radius: var(--radius-md) !important;
    width: 100% !important;
  }

  .modal-close-btn {
    top: 0.65rem;
    right: 0.65rem;
    width: 36px;
    height: 36px;
    font-size: 0.95rem;
    background: rgba(0, 0, 0, 0.75);
  }

  .modal-image-view {
    min-height: 180px;
    max-height: 260px;
    padding: 0.5rem;
  }

  #modal-steel-gallery-wrapper,
  #modal-trace-comparison-wrapper {
    margin: 0.65rem 0.65rem 0 !important;
    border-radius: var(--radius-sm);
  }

  .pdf-viewer-header-banner {
    padding: 0.5rem 0.65rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .pdf-viewer-banner-title {
    font-size: 0.72rem !important;
    line-height: 1.35 !important;
  }

  .pdf-viewer-controls-bar {
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .pdf-ctrl-btn-group {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .pdf-category-dropdown {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 0.72rem !important;
    padding: 0.35rem 0.45rem;
  }

  .pdf-ctrl-btn {
    font-size: 0.72rem !important;
    padding: 0.3rem 0.5rem !important;
  }

  .pdf-canvas-container {
    padding: 0.65rem 0.4rem;
  }

  .pdf-sheet-caption {
    padding: 0.5rem 0.65rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .trace-viewer-header {
    padding: 0.5rem 0.65rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .trace-mode-switcher {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.3rem;
  }

  .trace-mode-btn {
    justify-content: center;
    font-size: 0.68rem !important;
    padding: 0.32rem 0.25rem !important;
  }

  .trace-badge-tag {
    font-size: 0.6rem !important;
    padding: 0.18rem 0.4rem !important;
    bottom: 0.45rem !important;
    max-width: 46% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    letter-spacing: 0 !important;
  }

  .trace-badge-before {
    left: 0.45rem !important;
  }

  .trace-badge-after {
    right: 0.45rem !important;
  }

  .trace-comparison-slider-container {
    min-height: 200px;
    max-height: 280px;
    aspect-ratio: 4 / 3;
  }

  .trace-split-container {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.45rem;
  }

  .trace-split-card-title {
    font-size: 0.68rem !important;
    padding: 0.25rem 0.4rem !important;
  }

  .trace-split-card img {
    max-height: 200px;
  }

  .modal-body {
    padding: 1.15rem 0.85rem !important;
  }

  .modal-title {
    font-size: 1.05rem !important;
    line-height: 1.35 !important;
    margin-top: 0.45rem !important;
  }

  .modal-spec-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 0.65rem;
    margin: 0.85rem 0;
  }

  .modal-spec-label {
    font-size: 0.65rem !important;
  }

  .modal-spec-val {
    font-size: 0.82rem !important;
  }

  .modal-scope-title {
    font-size: 0.88rem !important;
    margin-bottom: 0.35rem !important;
  }

  .modal-scope-desc {
    font-size: 0.82rem !important;
    line-height: 1.55 !important;
  }

  #trace-hint-text, .pdf-sheet-caption span {
    font-size: 0.72rem !important;
    line-height: 1.4 !important;
  }

  /* Lightbox HD Viewer on Mobile */
  .lightbox-toolbar {
    height: 50px;
    padding: 0 0.75rem;
  }

  .lightbox-title-box span:not(.lightbox-zoom-badge) {
    display: none; /* Ẩn bớt text tiêu đề dài trong toolbar lightbox */
  }

  .lightbox-controls {
    gap: 0.35rem;
  }

  .lightbox-btn {
    min-width: 32px;
    height: 30px;
    padding: 0.2rem 0.4rem;
    font-size: 0.72rem;
  }

  .lightbox-close-btn {
    width: 32px;
    height: 30px;
    font-size: 0.95rem;
    margin-left: 0.25rem;
  }

  .lightbox-watermark {
    display: none;
  }

  .lightbox-hint-bar {
    font-size: 0.68rem;
    height: 30px;
    padding: 0 0.5rem;
  }
}

/* ==========================================================================
   High-Definition Lightbox / Zoom Viewer Modal
   ========================================================================== */
.image-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 1, 2, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999999;
  display: none;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  user-select: none;
}

.image-lightbox-backdrop.active {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.lightbox-toolbar {
  height: 60px;
  background: linear-gradient(135deg, rgba(102, 11, 23, 0.95), rgba(35, 4, 8, 0.98));
  border-bottom: 1px solid var(--border-gold);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  z-index: 10;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.lightbox-title-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--accent-gold-bright);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
}

.lightbox-zoom-badge {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
}

.lightbox-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lightbox-btn {
  background: rgba(20, 4, 7, 0.8);
  border: 1px solid var(--border-gold);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 34px;
}

.lightbox-btn:hover {
  background: var(--accent-gold);
  color: #0d0305;
  border-color: var(--accent-gold-bright);
}

.lightbox-close-btn {
  background: rgba(122, 15, 29, 0.9);
  border: 1px solid var(--border-gold);
  color: #fff;
  font-size: 1.1rem;
  width: 36px;
  height: 34px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  transition: var(--transition-fast);
}

.lightbox-close-btn:hover {
  background: #ff4757;
  color: #fff;
  border-color: #ff4757;
}

.lightbox-viewport {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}

.lightbox-viewport:active {
  cursor: grabbing;
}

.lightbox-stage {
  position: relative;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 95%;
  max-height: 90%;
}

.lightbox-stage img, .lightbox-stage canvas {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  background: #ffffff;
  border-radius: 4px;
  pointer-events: none; /* Pointer handled by stage */
}

.lightbox-watermark {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: rgba(212, 175, 55, 0.35);
  pointer-events: none;
  z-index: 5;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.6);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.lightbox-hint-bar {
  height: 38px;
  background: rgba(10, 2, 4, 0.9);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 10;
  padding: 0 1rem;
}

.modal-image-view img {
  cursor: zoom-in;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.modal-image-view img:hover {
  opacity: 0.95;
}

/* ==========================================================================
   Micro-Screen Mobile Optimizations (max-width: 420px - iPhone SE, Galaxy Z Fold)
   ========================================================================== */
@media (max-width: 420px) {
  .brand-logo {
    font-size: 1.12rem;
    gap: 0.4rem;
  }

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

  .lang-btn {
    padding: 0.15rem 0.35rem;
    font-size: 0.65rem;
  }

  .hero-title {
    font-size: 1.65rem;
  }

  .hero-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 0.5rem;
    padding: 1rem 0.6rem;
  }

  .stat-number {
    font-size: 1.35rem;
  }

  .stat-label {
    font-size: 0.68rem;
  }

  .trace-mode-switcher {
    grid-template-columns: 1fr;
  }

  .pdf-ctrl-btn {
    font-size: 0.7rem;
    padding: 0.3rem 0.45rem;
  }

  .modal-title {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
  }

  .modal-body {
    padding: 0.95rem 0.75rem !important;
  }

  .trace-badge-tag {
    font-size: 0.52rem !important;
    padding: 0.15rem 0.3rem !important;
    bottom: 0.35rem !important;
    max-width: 46% !important;
  }

  .trace-badge-before {
    left: 0.35rem !important;
  }

  .trace-badge-after {
    right: 0.35rem !important;
  }
}

/* ==========================================================================
   DECA-Q Revit Add-in Suite & Commercialization Hub
   ========================================================================== */
.revit-tools-section {
  padding: 7rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.revit-tools-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.08) 0%, rgba(122, 15, 29, 0.05) 50%, transparent 75%);
  pointer-events: none;
}

/* 1. Installer Showcase Hero Card */
.installer-hero-card {
  background: linear-gradient(135deg, rgba(26, 26, 26, 0.95) 0%, rgba(18, 18, 18, 0.98) 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 2.75rem 3rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 35px rgba(212, 175, 55, 0.12);
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.installer-hero-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.installer-tag-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.installer-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.installer-pill.gold {
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--accent-gold-bright);
}

.installer-pill.version {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.installer-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.installer-title-accent {
  background: linear-gradient(135deg, #fff 0%, var(--accent-gold-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.installer-description {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.installer-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-val {
  font-size: 0.875rem;
  color: #fff;
  font-weight: 600;
}

.installer-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.btn-download-hero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #d4af37 0%, #b8972e 100%);
  color: #0d0d0d;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 2rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
  transition: all var(--trans-fast);
}

.btn-download-hero:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(212, 175, 55, 0.5);
  filter: brightness(1.08);
}

.btn-admin-hub {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px dashed rgba(212, 175, 55, 0.4);
  color: #e4e4e7;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-admin-hub:hover {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--accent-gold-bright);
  color: #fff;
}

/* Installer Trust Card Right */
.installer-hero-right {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.trust-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-gold-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.trust-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #d1d5db;
  line-height: 1.45;
}

.trust-checklist svg {
  color: var(--accent-gold-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.installer-quick-links {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.installer-quick-links a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color var(--trans-fast);
}

.installer-quick-links a:hover {
  color: var(--accent-gold-bright);
  text-decoration: underline;
}

/* 2. Tool Catalog Controls (Search & Filter Tabs) */
.tools-catalog-controls {
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.tools-search-wrapper {
  position: relative;
  max-width: 600px;
  width: 100%;
}

.tools-search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.95rem 1rem 0.95rem 2.85rem;
  font-size: 0.95rem;
  transition: all var(--trans-fast);
}

.tools-search-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
  outline: none;
}

.tools-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #71717a;
  pointer-events: none;
}

.tools-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tool-filter-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: #a1a1aa;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.tool-filter-btn:hover {
  color: #fff;
  border-color: rgba(212, 175, 55, 0.4);
}

.tool-filter-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

/* 3. Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4.5rem;
}

.tool-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--trans-fast);
  position: relative;
}

.tool-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 175, 55, 0.15);
}

.tool-card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
  cursor: pointer;
}

.tool-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans-medium);
}

.tool-card:hover .tool-thumbnail {
  transform: scale(1.05);
}

.tool-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  opacity: 0.85;
  transition: opacity var(--trans-fast);
}

.tool-card-media:hover .tool-media-overlay {
  opacity: 1;
}

.tool-play-pulse {
  width: 52px;
  height: 52px;
  background: rgba(212, 175, 55, 0.9);
  color: #0d0d0d;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
  transition: transform var(--trans-fast);
}

.tool-card-media:hover .tool-play-pulse {
  transform: scale(1.15);
}

.tool-watch-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.tool-category-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  color: #e4e4e7;
}

.tool-tier-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

.tool-tier-badge.badge-pro {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.95), rgba(184, 151, 46, 0.95));
  color: #000;
}

.tool-tier-badge.badge-free {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.tool-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

.tool-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.tool-card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.tool-shortcut-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-gold-bright);
}

.tool-card-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

.tool-meta-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.tool-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.tool-meta-row .meta-label {
  color: #71717a;
  font-family: var(--font-mono);
}

.tool-meta-row .meta-val {
  color: #d1d5db;
  font-weight: 500;
}

.tool-meta-row.roi .meta-val {
  color: var(--accent-gold-bright);
  font-weight: 600;
}

.tool-card-actions {
  display: block;
  margin-top: 0.5rem;
}

.btn-tool-watch {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--accent-gold-bright);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.btn-tool-watch:hover {
  background: var(--accent-gold);
  color: #000;
  border-color: var(--accent-gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(212, 175, 55, 0.25);
}

.btn-tool-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--trans-fast);
}

.btn-tool-dl:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.tools-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.tools-empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

/* 4. Commercial Pricing & Licensing Hub */
.pricing-section-wrapper {
  margin-top: 5rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-header {
  text-align: center;
  margin-bottom: 3rem;
}

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

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--trans-fast);
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
}

.pricing-card.featured {
  background: linear-gradient(180deg, rgba(32, 28, 20, 0.95) 0%, rgba(20, 20, 20, 0.98) 100%);
  border: 2px solid var(--accent-gold);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(212, 175, 55, 0.2);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.05);
}

.pricing-featured-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #d4af37, #b8972e);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

.pricing-plan-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.pricing-plan-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.pricing-cost {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.pricing-amount {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent-gold-bright);
}

.pricing-period {
  font-size: 0.85rem;
  color: #71717a;
}

.pricing-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pricing-perks li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.875rem;
  color: #d1d5db;
  line-height: 1.4;
}

.pricing-perks svg {
  color: var(--accent-gold-bright);
  flex-shrink: 0;
  margin-top: 3px;
}

/* 5. Modals System (Video Modal & Admin Modal & License Modal) */
.revit-modal-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.revit-modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}

.revit-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.revit-modal-dialog {
  position: relative;
  background: #141414;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.2);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.revit-modal-wrapper.open .revit-modal-dialog {
  transform: translateY(0);
}

.revit-modal-header {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.revit-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--trans-fast);
}

.revit-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.8);
}

.revit-modal-body {
  padding: 2rem;
}

/* Video Player in Modal */
.modal-video-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2rem;
}

.modal-video-screen-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.modal-video-player, .modal-video-iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Simulated Interactive Revit Screen */
.revit-interactive-demo-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.demo-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) contrast(1.1);
}

.demo-overlay-hud {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.25rem;
  background: rgba(0, 0, 0, 0.35);
}

.hud-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(220, 38, 38, 0.85);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-rec 1.2s infinite;
}

@keyframes pulse-rec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hud-tool-tag {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
}

.hud-center-action {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hud-instruction-bubble {
  background: rgba(18, 18, 18, 0.9);
  border: 1px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: #fff;
  font-size: 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.8);
}

.hud-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hud-progress-line {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.hud-progress-fill {
  width: 65%;
  height: 100%;
  background: var(--accent-gold-bright);
  animation: hud-progress 3s infinite ease-in-out;
}

@keyframes hud-progress {
  0% { width: 10%; }
  50% { width: 85%; }
  100% { width: 100%; }
}

.hud-info-text {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #d1d5db;
}

/* Modal Sidebar */
.modal-tool-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-steps-list {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #d1d5db;
  line-height: 1.5;
}

/* Admin Hub Modal Tabs & Controls */
.admin-tab-nav {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.admin-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #a1a1aa;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.admin-tab-btn.active {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--accent-gold);
  color: var(--accent-gold-bright);
}

.admin-tab-content {
  display: none;
}

.admin-tab-content.active {
  display: block;
}

.admin-form-group {
  margin-bottom: 1.25rem;
}

.admin-form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #d1d5db;
  margin-bottom: 0.4rem;
  text-transform: uppercase;
}

.admin-input, .admin-textarea, .admin-select {
  width: 100%;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.admin-input:focus, .admin-textarea:focus, .admin-select:focus {
  border-color: var(--accent-gold);
  outline: none;
}

.admin-tool-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: #0d0d0d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
}

.admin-tool-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.admin-tool-sub {
  font-size: 0.75rem;
  color: #71717a;
}

.btn-sm-del {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
}

.btn-sm-del:hover {
  background: #ef4444;
  color: #fff;
}

/* Toast System */
.revit-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(18, 18, 18, 0.95);
  border: 1px solid var(--accent-gold);
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(212, 175, 55, 0.3);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.revit-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.revit-toast.error {
  border-color: #ef4444;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(239, 68, 68, 0.3);
}

/* Responsive adjustments for Revit Tools */
@media (max-width: 1024px) {
  .installer-hero-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.25rem 2rem;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card.featured {
    transform: none;
  }
  .modal-video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .installer-specs-grid {
    grid-template-columns: 1fr;
  }
  .installer-hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-download-hero, .btn-admin-hub {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Bundle & Unified Installer Notice Helpers */
.tool-package-indicator {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font-family: var(--font-mono);
}

.modal-bundle-note {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--accent-gold-bright);
  padding: 0.65rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  color: #e4e4e7;
  line-height: 1.45;
  margin-top: 0.75rem;
}

.admin-tab-notice {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.825rem;
  color: #93c5fd;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}


