/* ==========================================================================
   CREOTEX - Advanced Engineering & Manufacturing
   Full-Page RGB Cybernetic Constellation & Premium UI Theme
   ========================================================================== */

:root {
  /* Core Deep Dark Surfaces (Translucent for Full-Page RGB Canvas Visibility) */
  --bg-primary: #030306;
  --bg-secondary: rgba(8, 8, 14, 0.72);
  --bg-tertiary: rgba(14, 14, 22, 0.85);
  --bg-elevated: rgba(20, 20, 32, 0.92);
  --bg-card: rgba(12, 12, 18, 0.82);
  --bg-card-hover: rgba(20, 20, 30, 0.94);

  /* RGB Accent Palette */
  --rgb-cyan: #00f2fe;
  --rgb-azure: #4facfe;
  --rgb-purple: #9d4edd;
  --rgb-magenta: #ff007f;
  --rgb-emerald: #00ff9d;
  --rgb-amber: #ffaa00;

  /* Pure White & Neutral Metallic Grays */
  --white: #ffffff;
  --white-90: rgba(255, 255, 255, 0.92);
  --white-80: rgba(255, 255, 255, 0.80);
  --white-60: rgba(255, 255, 255, 0.60);
  --white-40: rgba(255, 255, 255, 0.40);
  --white-20: rgba(255, 255, 255, 0.20);
  --white-10: rgba(255, 255, 255, 0.10);
  --white-05: rgba(255, 255, 255, 0.05);

  /* Metallic Silver Scales */
  --silver-bright: #f8fafc;
  --silver-light: #e2e8f0;
  --silver-mid: #cbd5e1;
  --silver-muted: #94a3b8;
  --gray-dark: #64748b;
  --gray-deep: #1e293b;

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Borders & Specular Highlights */
  --border-subtle: rgba(255, 255, 255, 0.09);
  --border-medium: rgba(255, 255, 255, 0.18);
  --border-accent: rgba(255, 255, 255, 0.35);
  --border-glow: 0 0 25px rgba(0, 242, 254, 0.2);

  /* Fonts */
  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  /* Layout */
  --container-max-width: 1280px;
  --container-padding: 24px;
  --header-height: 82px;
  --border-radius-sm: 6px;
  --border-radius-md: 12px;
  --border-radius-lg: 20px;
  --border-radius-xl: 26px;

  /* 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);
}

/* --------------------------------------------------------------------------
   Global Reset & Base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: dark;
  background-color: #030306;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Fixed Fullscreen RGB Particle Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Technical Precision Grid Overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  pointer-events: none;
  z-index: 0;
}

img, svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

/* Typography Helpers */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--white);
}

.mono {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  position: relative;
  z-index: 1;
}

.section {
  padding: 110px 0;
  position: relative;
  z-index: 1;
}

/* Section Header with subtle ambient backlight */
.section-header {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 60px auto;
  position: relative;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(0, 242, 254, 0.06) 0%, rgba(157, 78, 221, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

/* Pill Badge with RGB Shimmer */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: 9999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #ffffff;
  margin-bottom: 22px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  transition: var(--transition-fast);
}

.section-badge:hover {
  border-color: var(--rgb-cyan);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.3);
}

.section-badge .dot {
  width: 6px;
  height: 6px;
  background-color: var(--rgb-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--rgb-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

.section-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, #e2e8f0 70%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.12);
}

.section-desc {
  font-size: 1.12rem;
  color: var(--silver-muted);
  line-height: 1.75;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

/* Primary Button */
.btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #f4f4f5;
  color: #000000;
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.5);
}

/* Secondary Button */
.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
  border-color: #ffffff;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   Header & Highlighted Navbar (CREOTEX Highlight Effect)
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: all var(--transition-normal);
  background: linear-gradient(180deg, rgba(3, 3, 6, 0.85) 0%, rgba(3, 3, 6, 0.4) 100%);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
  background: rgba(3, 3, 6, 0.94);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(0, 242, 254, 0.25);
  height: 74px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.9), 0 1px 0 rgba(0, 242, 254, 0.2);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Highlighted Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 4px 0;
}

.brand-symbol {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(157, 78, 221, 0.15));
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 242, 254, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all var(--transition-normal);
}

.brand-logo:hover .brand-symbol {
  border-color: var(--rgb-cyan);
  box-shadow: 0 0 28px rgba(0, 242, 254, 0.5);
  transform: scale(1.05);
}

.brand-symbol svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.8));
}

.brand-name {
  display: flex;
  align-items: center;
}

/* Luminous Highlighted "CREOTEX" Logo */
.brand-name .logo-title {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #ffffff 0%, #00f2fe 40%, #9d4edd 75%, #ff007f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 14px rgba(0, 242, 254, 0.45));
  transition: filter var(--transition-fast);
}

.brand-logo:hover .logo-title {
  filter: drop-shadow(0 0 20px rgba(0, 242, 254, 0.75));
}

/* Navbar Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-item {
  font-size: 0.95rem;
  font-weight: 600;
  color: #cbd5e1;
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.01em;
  transition: all var(--transition-fast);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #00f2fe, #9d4edd, #ff007f);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.9);
  transition: width var(--transition-fast);
}

.nav-item:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 242, 254, 0.6);
}

.nav-item.active {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(0, 242, 254, 0.8);
}

.nav-item:hover::after, .nav-item.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: var(--border-radius-sm);
  background: rgba(20, 20, 30, 0.8);
  border: 1px solid var(--border-medium);
  z-index: 1001;
}

.hamburger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--white);
  transition: all var(--transition-fast);
}

.hamburger-btn.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(14px);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: #08080c;
  border-left: 1px solid rgba(0, 242, 254, 0.3);
  z-index: 999;
  padding: 90px 28px 30px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right var(--transition-normal);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.9);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.mobile-nav-links .nav-item {
  font-size: 1.15rem;
  color: var(--silver-light);
}

.mobile-nav-links .nav-item.active {
  color: #00f2fe;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 660px;
}

.hero-title {
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.035em;
}

.hero-subtitle {
  font-size: 1.16rem;
  color: var(--silver-muted);
  line-height: 1.75;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 44px;
}

.hero-metrics-ticker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.metric-item .metric-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.02em;
}

.metric-item .metric-label {
  font-size: 0.74rem;
  color: var(--gray-dark);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* Hero Visual Card */
.hero-visual-wrapper {
  position: relative;
  perspective: 1000px;
}

.hero-main-card {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 
    0 25px 60px -15px rgba(0, 0, 0, 0.95), 
    0 0 35px rgba(0, 242, 254, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  background: #08080c;
}

.hero-main-card img {
  width: 100%;
  height: 470px;
  object-fit: cover;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #00f2fe, #ff007f, transparent);
  box-shadow: 0 0 18px #00f2fe;
  animation: scan-loop 4s ease-in-out infinite;
  z-index: 3;
}

.hud-telemetry {
  position: absolute;
  inset: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, transparent 40%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
  z-index: 2;
}

.hud-top, .hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.hud-badge .pulse-indicator {
  width: 6px;
  height: 6px;
  background: var(--rgb-cyan);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--rgb-cyan);
  animation: pulse-dot 1.8s infinite;
}

/* --------------------------------------------------------------------------
   Sections Grid & Cards Layout (Translucent Frosted Glass)
   -------------------------------------------------------------------------- */
.showcase-grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.showcase-grid-two.reverse {
  grid-template-columns: 1fr 1fr;
}

.image-card-frame {
  position: relative;
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 
    0 20px 45px rgba(0, 0, 0, 0.85),
    0 0 25px rgba(0, 242, 254, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  background: #08080c;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out, border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.image-card-frame:hover {
  border-color: rgba(0, 242, 254, 0.45);
  box-shadow: 
    0 25px 55px rgba(0, 0, 0, 0.9),
    0 0 30px rgba(0, 242, 254, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.image-card-frame img {
  width: 100%;
  height: 470px;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.image-card-frame:hover img {
  transform: scale(1.035);
}

.image-card-frame .hud-telemetry {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.52) 0%, transparent 42%, rgba(0, 0, 0, 0.88) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Feature Matrix Cards (Section 1) */
.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.feature-box {
  padding: 24px;
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.85) 0%, rgba(8, 8, 14, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-md);
  transition: var(--transition-normal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.feature-box:hover {
  border-color: rgba(0, 242, 254, 0.45);
  background: linear-gradient(180deg, rgba(22, 22, 34, 0.95) 0%, rgba(12, 12, 20, 1) 100%);
  transform: translateY(-4px);
  box-shadow: 
    0 14px 30px rgba(0, 0, 0, 0.7), 
    0 0 22px rgba(0, 242, 254, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.feature-box-icon {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(157, 78, 221, 0.12));
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.feature-box-icon svg {
  stroke: var(--white);
}

.feature-box h4 {
  font-size: 1.08rem;
  margin-bottom: 8px;
  color: var(--white);
}

.feature-box p {
  font-size: 0.88rem;
  color: var(--silver-muted);
  line-height: 1.6;
}

/* Feature Stack Cards (Vertical Layout for Sections 2, 3, 4) */
.feature-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.stack-card {
  position: relative;
  padding: 22px 24px;
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.85) 0%, rgba(8, 8, 14, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: all var(--transition-normal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

.stack-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--rgb-cyan), var(--rgb-purple));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stack-card:hover::before {
  opacity: 1;
}

@media (hover: hover) {
  .stack-card:hover {
    border-color: rgba(0, 242, 254, 0.45);
    background: linear-gradient(180deg, rgba(22, 22, 34, 0.95) 0%, rgba(12, 12, 20, 1) 100%);
    transform: translateY(-3px);
    box-shadow: 
      0 12px 30px rgba(0, 0, 0, 0.6), 
      0 0 22px rgba(0, 242, 254, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.25);
  }
}

.stack-card:active {
  transform: scale(0.99);
}

.stack-badge {
  width: 38px;
  height: 38px;
  min-width: 38px;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12), rgba(157, 78, 221, 0.12));
  border: 1px solid rgba(0, 242, 254, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all var(--transition-fast);
}

.stack-card:hover .stack-badge {
  border-color: var(--rgb-cyan);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  color: #00f2fe;
}

.stack-card-content {
  flex: 1;
  min-width: 0;
}

.stack-card h4 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--white);
  font-weight: 700;
  line-height: 1.3;
}

.stack-card p {
  font-size: 0.88rem;
  color: var(--silver-muted);
  line-height: 1.6;
}

/* Tech Pills */
.tech-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tech-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  color: var(--silver-light);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition-fast);
  white-space: normal;
  max-width: 100%;
}

.tech-pill:hover {
  border-color: rgba(0, 242, 254, 0.5);
  color: #ffffff;
  background: rgba(0, 242, 254, 0.1);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

/* --------------------------------------------------------------------------
   Footer (With Embedded Contact Details)
   -------------------------------------------------------------------------- */
.site-footer {
  background: rgba(2, 2, 4, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 90px 0 40px 0;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(16px);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 50px;
  margin-bottom: 60px;
  align-items: start;
}

.footer-brand p {
  color: var(--silver-muted);
  font-size: 0.92rem;
  margin-top: 16px;
  line-height: 1.7;
  max-width: 330px;
}

.footer-col:nth-child(2) {
  justify-self: center;
}

.footer-col:nth-child(3) {
  justify-self: end;
  width: 100%;
  max-width: 380px;
}

.footer-col h4 {
  font-size: 1.08rem;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  color: var(--silver-muted);
  font-size: 0.92rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--rgb-cyan);
  transform: translateX(4px);
}

/* Footer Contact Details Card */
.footer-contact-box {
  padding: 24px;
  background: linear-gradient(180deg, rgba(16, 16, 24, 0.9) 0%, rgba(8, 8, 14, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.contact-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-line svg {
  width: 20px;
  height: 20px;
  min-width: 20px;
  stroke: var(--rgb-cyan);
  filter: drop-shadow(0 0 6px rgba(0, 242, 254, 0.4));
}

.contact-info-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--silver-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.contact-value {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.highlight-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.contact-link {
  color: #ffffff;
}

.contact-link:hover {
  color: var(--rgb-cyan);
  text-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
  color: var(--gray-dark);
}

/* --------------------------------------------------------------------------
   Animations & Base Utility
   -------------------------------------------------------------------------- */
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.55; }
}

@keyframes scan-loop {
  0% { top: 0%; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #12121c;
  border: 1px solid rgba(0, 242, 254, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--rgb-cyan);
  color: #000000;
  border-color: var(--rgb-cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS — COMPLETE WEBSITE (ALL VIEWPORTS)
   Covers: Hero · Nav · Manufacturing · Robotics · Printers · Drones · Footer
   Breakpoints: 1400 · 1200 · 992 · 768 · 576 · 375 · 340
   ========================================================================== */

/* ══════════════════════════════════════════════════════════════════
   1. Wide Screens — Large Laptops (≤ 1400px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1400px) {
  :root {
    --container-max-width: 1200px;
  }
  .hero-title {
    font-size: clamp(2.4rem, 4.2vw, 3.8rem);
  }
  .hero-grid {
    gap: 40px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   2. Small Desktops (≤ 1200px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hero-title {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
  }
  .hero-subtitle {
    font-size: 1.06rem;
  }
  .hero-grid {
    gap: 36px;
    grid-template-columns: 1.1fr 0.9fr;
  }
  .hero-main-card img {
    height: 420px;
  }

  /* All showcase grids */
  .showcase-grid-two,
  .showcase-grid-two.reverse {
    gap: 36px;
  }

  /* Section cards image */
  .image-card-frame img {
    height: 430px;
  }

  /* Stack cards */
  .stack-card {
    padding: 20px 22px;
    gap: 16px;
  }

  /* Section titles */
  .section-title {
    font-size: clamp(2rem, 3.8vw, 3rem);
  }

  /* Footer grid tighter */
  .footer-top-grid {
    gap: 36px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   3. Tablets & Small Laptops (≤ 992px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
  /* ── Navigation ── */
  .nav-links {
    display: none;
  }
  .hamburger-btn {
    display: flex;
  }
  .nav-container {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* ── Hero ── */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .hero-content {
    text-align: center;
    max-width: 100%;
    order: 1;
  }
  .hero-visual-wrapper {
    order: 2;
    max-width: 560px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-cta-group {
    justify-content: center;
  }
  .hero-metrics-ticker {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
  .hero-main-card img {
    height: clamp(280px, 42vw, 420px);
  }
  .hero-title {
    font-size: clamp(2.1rem, 5vw, 3rem);
  }
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 28px;
  }

  /* ── All Showcase Grids → Single Column ── */
  .showcase-grid-two,
  .showcase-grid-two.reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  /* reverse: Image on top, cards below */
  .showcase-grid-two.reverse .image-card-frame {
    order: -1;
    width: 100%;
  }
  .showcase-grid-two.reverse .feature-stack,
  .showcase-grid-two.reverse > div:last-child {
    order: 1;
  }

  /* Image frame height */
  .image-card-frame img {
    height: clamp(280px, 46vw, 420px);
    width: 100%;
  }
  .image-card-frame .hud-telemetry {
    padding: 16px;
  }

  /* Feature stack */
  .feature-stack {
    width: 100%;
    gap: 14px;
  }

  /* Section heading */
  .section-title {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  }

  /* ── Footer Centered (≤ 992px) ── */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    justify-items: center;
  }

  .footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-brand .brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }

  .footer-brand p {
    text-align: center;
    margin: 16px auto 0 auto;
    max-width: 520px;
    line-height: 1.7;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-col:nth-child(2),
  .footer-col:nth-child(3) {
    justify-self: center;
    max-width: 100%;
  }

  .footer-col h4 {
    text-align: center;
    margin-bottom: 16px;
    width: 100%;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    width: 100%;
  }

  .footer-links a {
    text-align: center;
    display: inline-block;
  }

  .footer-links a:hover {
    transform: translateY(-2px);
  }

  .footer-contact-box {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    text-align: left;
  }

  /* Manufacturing reveal div */
  #manufacturing .showcase-grid-two > div:last-child {
    width: 100%;
  }
}

/* ══════════════════════════════════════════════════════════════════
   4. Phablets & Landscape Mobile (≤ 768px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Layout ── */
  .section {
    padding: 70px 0;
  }
  .section-header {
    margin-bottom: 36px;
  }
  .section-title {
    font-size: clamp(1.7rem, 5.2vw, 2.3rem);
    word-break: break-word;
  }
  .section-desc {
    font-size: 0.96rem;
    line-height: 1.65;
  }

  /* ── Hero ── */
  .hero-section {
    padding-top: calc(var(--header-height) + 20px);
    padding-bottom: 60px;
  }
  .hero-title {
    font-size: clamp(1.9rem, 6vw, 2.7rem);
  }
  .hero-subtitle {
    font-size: 0.96rem;
    margin-bottom: 24px;
  }
  .hero-metrics-ticker {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding-top: 22px;
  }
  .metric-item .metric-val {
    font-size: 1.15rem;
  }
  .metric-item .metric-label {
    font-size: 0.68rem;
  }
  .hero-cta-group {
    gap: 12px;
  }
  .btn {
    padding: 12px 22px;
    font-size: 0.9rem;
  }
  .hero-main-card img {
    height: clamp(240px, 52vw, 380px);
  }

  /* ── Manufacturing Cards Grid → 1 col ── */
  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 0 !important;
  }
  .feature-box {
    padding: 20px;
  }
  .feature-box h4 {
    font-size: 1rem;
  }
  .feature-box p {
    font-size: 0.84rem;
  }

  /* ── Stack Cards ── */
  .stack-card {
    padding: 16px;
    gap: 12px;
  }
  .stack-badge {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 0.82rem;
  }
  .stack-card h4 {
    font-size: 1rem;
  }
  .stack-card p {
    font-size: 0.84rem;
  }
  .tech-pills-row {
    gap: 6px;
    margin-top: 10px;
  }
  .tech-pill {
    font-size: 0.7rem;
    padding: 3px 9px;
  }

  /* ── Image Frame ── */
  .image-card-frame img {
    height: clamp(220px, 50vw, 320px);
  }
  .hud-badge {
    font-size: 0.67rem;
    padding: 5px 9px;
    gap: 5px;
  }

  /* ── Footer ── */
  .site-footer {
    padding: 60px 0 30px 0;
  }
  .footer-top-grid {
    margin-bottom: 40px;
    gap: 32px;
  }
  .footer-brand p {
    max-width: 480px;
  }
  .footer-col h4 {
    font-size: 1rem;
    margin-bottom: 14px;
  }
  .footer-contact-box {
    padding: 18px;
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
  }
  .contact-value {
    font-size: 0.88rem;
  }
  .highlight-name {
    font-size: 0.96rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
  }
  .footer-bottom > div:last-child {
    display: none; /* hide tagline on mobile */
  }
}

/* ══════════════════════════════════════════════════════════════════
   5. Mobile Portrait (≤ 576px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
  :root {
    --container-padding: 16px;
    --header-height: 70px;
  }

  /* ── Layout ── */
  .section {
    padding: 56px 0;
  }
  .section-header {
    margin-bottom: 26px;
  }
  .section-badge {
    font-size: 0.7rem;
    padding: 5px 13px;
    margin-bottom: 14px;
    letter-spacing: 0.1em;
  }
  .section-title {
    font-size: clamp(1.5rem, 6.5vw, 2rem);
    line-height: 1.18;
    word-break: break-word;
  }
  .section-desc {
    font-size: 0.87rem;
    line-height: 1.55;
  }

  /* ── Hero ── */
  .hero-section {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 48px;
    min-height: auto;
  }
  .hero-title {
    font-size: clamp(1.7rem, 7.5vw, 2.4rem);
    margin-bottom: 16px;
  }
  .hero-subtitle {
    font-size: 0.92rem;
    margin-bottom: 22px;
    line-height: 1.65;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
  }
  .btn {
    padding: 12px 20px;
    font-size: 0.88rem;
    width: 100%;
    justify-content: center;
  }
  .hero-metrics-ticker {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 18px;
  }
  .metric-item .metric-val {
    font-size: 1rem;
  }
  .metric-item .metric-label {
    font-size: 0.63rem;
  }
  .hero-main-card img {
    height: clamp(200px, 58vw, 300px);
  }

  /* ── Showcase grids ── */
  .showcase-grid-two,
  .showcase-grid-two.reverse {
    gap: 20px;
  }

  /* ── Manufacturing 2-col feature grid → 1 col ── */
  .feature-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .feature-box {
    padding: 18px 16px;
  }
  .feature-box-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    margin-bottom: 10px;
  }
  .feature-box h4 {
    font-size: 0.96rem;
  }
  .feature-box p {
    font-size: 0.82rem;
  }

  /* ── Stack Cards ── */
  .feature-stack {
    gap: 10px;
  }
  .stack-card {
    padding: 14px 13px;
    gap: 11px;
  }
  .stack-badge {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.74rem;
    border-radius: 7px;
  }
  .stack-card h4 {
    font-size: 0.96rem;
    margin-bottom: 4px;
  }
  .stack-card p {
    font-size: 0.81rem;
    line-height: 1.5;
  }
  .tech-pills-row {
    gap: 5px;
    margin-top: 9px;
  }
  .tech-pill {
    font-size: 0.68rem;
    padding: 3px 8px;
  }

  /* ── Image Frame ── */
  .image-card-frame {
    border-radius: var(--border-radius-lg);
  }
  .image-card-frame img {
    height: clamp(195px, 56vw, 265px);
  }
  .image-card-frame .hud-telemetry {
    padding: 11px;
  }
  .hud-top, .hud-bottom {
    gap: 5px;
    flex-wrap: wrap;
  }
  .hud-badge {
    font-size: 0.6rem;
    padding: 4px 7px;
    gap: 4px;
  }
  .hud-badge .pulse-indicator {
    width: 5px;
    height: 5px;
  }

  /* ── Footer ── */
  .site-footer {
    padding: 48px 0 24px 0;
  }
  .footer-top-grid {
    gap: 26px;
    margin-bottom: 30px;
  }
  .footer-brand p {
    font-size: 0.86rem;
    margin: 12px auto 0 auto;
    max-width: 100%;
  }
  .footer-col h4 {
    font-size: 0.96rem;
    margin-bottom: 12px;
  }
  .footer-links a {
    font-size: 0.86rem;
  }
  .footer-contact-box {
    padding: 16px;
    gap: 13px;
    max-width: 100%;
    margin: 0 auto;
  }
  .contact-line svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
  }
  .contact-value {
    font-size: 0.85rem;
  }
  .highlight-name {
    font-size: 0.9rem;
  }
  .contact-label {
    font-size: 0.62rem;
  }
  .footer-bottom {
    padding-top: 22px;
    font-size: 0.78rem;
  }

  /* Back to Top */
  .back-to-top {
    bottom: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   6. Ultra-Small Phones (≤ 375px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 375px) {
  :root {
    --container-padding: 12px;
  }
  .section {
    padding: 46px 0;
  }
  .section-header {
    margin-bottom: 20px;
  }
  .section-badge {
    font-size: 0.66rem;
    padding: 4px 10px;
    letter-spacing: 0.07em;
  }
  .section-title {
    font-size: 1.4rem;
    letter-spacing: -0.02em;
  }
  .section-desc {
    font-size: 0.82rem;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }
  .hero-subtitle {
    font-size: 0.87rem;
  }
  .hero-main-card img {
    height: clamp(180px, 60vw, 250px);
  }
  .hero-metrics-ticker {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .metric-item .metric-val {
    font-size: 0.92rem;
  }

  /* Showcase */
  .showcase-grid-two,
  .showcase-grid-two.reverse {
    gap: 16px;
  }
  .feature-stack {
    gap: 9px;
  }
  .stack-card {
    padding: 12px 11px;
    gap: 9px;
  }
  .stack-badge {
    width: 28px;
    height: 28px;
    min-width: 28px;
    font-size: 0.7rem;
    border-radius: 6px;
  }
  .stack-card h4 {
    font-size: 0.9rem;
  }
  .stack-card p {
    font-size: 0.78rem;
    line-height: 1.45;
  }
  .tech-pills-row {
    gap: 4px;
    margin-top: 7px;
  }
  .tech-pill {
    font-size: 0.63rem;
    padding: 2px 6px;
    letter-spacing: 0;
  }

  /* Image frame */
  .image-card-frame img {
    height: 185px;
  }
  .image-card-frame .hud-telemetry {
    padding: 8px;
  }
  .hud-badge {
    font-size: 0.56rem;
    padding: 3px 5px;
    gap: 3px;
  }

  /* Manufacturing feature boxes */
  .feature-box {
    padding: 14px 12px;
  }
  .feature-box-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
  }
  .feature-box h4 {
    font-size: 0.9rem;
  }
  .feature-box p {
    font-size: 0.79rem;
  }

  /* Footer */
  .site-footer {
    padding: 40px 0 20px 0;
  }
  .footer-top-grid {
    gap: 22px;
    margin-bottom: 24px;
  }
  .footer-brand p {
    font-size: 0.82rem;
    margin: 8px auto 0 auto;
    text-align: center;
  }
  .footer-contact-box {
    padding: 13px;
    gap: 11px;
    margin: 0 auto;
    max-width: 100%;
  }
  .contact-value {
    font-size: 0.81rem;
  }
  .highlight-name {
    font-size: 0.86rem;
  }
  .footer-bottom {
    font-size: 0.72rem;
    padding-top: 16px;
  }
}

/* ══════════════════════════════════════════════════════════════════
   7. Sub-Micro Screens (≤ 340px)
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 340px) {
  :root {
    --container-padding: 10px;
  }

  /* Prevent HUD badge overflow */
  .hud-top .hud-badge:last-child,
  .hud-bottom .hud-badge:last-child {
    display: none;
  }

  .hero-title {
    font-size: 1.4rem;
  }
  .section-title {
    font-size: 1.3rem;
  }
  .btn {
    padding: 10px 16px;
    font-size: 0.84rem;
  }
  .stack-card h4 {
    font-size: 0.86rem;
  }
  .tech-pill {
    font-size: 0.6rem;
    padding: 1px 5px;
  }
  .image-card-frame img {
    height: 165px;
  }
  .footer-contact-box {
    padding: 10px;
  }
  .contact-value {
    font-size: 0.78rem;
  }
}

