:root{
  --bg: #05070a;
  --graphite: #0b0f16;
  --surface: #101724;
  --surface-2: #141d2c;
  --border: #1c2838;
  --border-bright: #2c3f56;
  --silver: #7d90a8;
  --silver-bright: #eaf2fb;
  --accent: #00e5ff;
  --accent-dim: #0095a8;
  --laser: #ff5a1f;
  --success: #3ddc84;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  background: var(--bg);
  color: var(--silver-bright);
  font-family: 'Space Grotesk', sans-serif;
  overflow-x: hidden;
}

body.menu-open{
  overflow: hidden;
}

h1, h2, h3, .font-display{
  font-family: 'Chakra Petch', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.font-mono{ font-family: 'Share Tech Mono', monospace; }

@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.grain-bg{
  background-image:
    linear-gradient(180deg, var(--bg) 0%, var(--graphite) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.012) 0px, rgba(255,255,255,0.012) 1px, transparent 1px, transparent 3px);
}

.metal-plate-bg{
  background-color: var(--graphite);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(0,229,255,0.08), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255,90,31,0.05), transparent 45%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 64px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 64px);
}

header.glass{
  background: rgba(12,13,15,0.34);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.06),
    0 8px 32px -16px rgba(0,0,0,0.5);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

header.glass.is-scrolled{
  background: rgba(9,10,12,0.72);
  box-shadow:
    inset 0 1px 0 0 rgba(255,255,255,0.05),
    0 8px 32px -12px rgba(0,0,0,0.7),
    0 1px 0 0 rgba(0,229,255,0.15);
}

.nav-link{
  position: relative;
  color: var(--silver);
  transition: color 0.25s ease;
}

.nav-link::after{
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover{ color: var(--silver-bright); }

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

.btn-primary{
  background: var(--accent);
  color: #0a0a0c;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  box-shadow: 0 0 0 0 rgba(0,229,255,0.0);
}

.btn-primary:hover{
  background: #ff7238;
  box-shadow: 0 0 28px 2px rgba(0,229,255,0.45);
  transform: translateY(-2px);
}

.btn-primary:active{ transform: translateY(0); }

.btn-secondary{
  border: 1px solid var(--border-bright);
  color: var(--silver-bright);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.btn-secondary:hover{
  border-color: var(--laser);
  background: rgba(255,90,31,0.06);
  transform: translateY(-2px);
}

.hero-wrap{ position: relative; }

.laser-beam-line{
  stroke: var(--laser);
  stroke-width: 1.4;
  filter: drop-shadow(0 0 6px var(--laser)) drop-shadow(0 0 14px rgba(255,90,31,0.6));
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: cut-trace 3.2s cubic-bezier(0.65,0,0.35,1) 0.4s forwards;
}

@keyframes cut-trace{
  to{ stroke-dashoffset: 0; }
}

.laser-head{
  fill: var(--laser);
  filter: drop-shadow(0 0 8px var(--laser));
  offset-path: path('M 40 260 L 760 260 L 760 40 L 200 40 L 200 460 L 620 460 L 620 140');
  animation: move-head 3.2s cubic-bezier(0.65,0,0.35,1) 0.4s forwards, pulse-head 0.6s ease-in-out infinite;
  opacity: 0;
}

@keyframes move-head{
  0%{ offset-distance: 0%; opacity: 1; }
  98%{ opacity: 1; }
  100%{ offset-distance: 100%; opacity: 0; }
}

@keyframes pulse-head{
  0%, 100%{ r: 4; }
  50%{ r: 6; }
}

.plate-cut-shape{
  fill: var(--surface);
  stroke: var(--border-bright);
  stroke-width: 1;
}

.headline-reveal{
  clip-path: inset(0 100% 0 0);
  animation: reveal-text 1s ease-out 3.3s forwards;
}

@keyframes reveal-text{
  to{ clip-path: inset(0 0% 0 0); }
}

.spark{
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px 1px rgba(0,229,255,0.8);
  opacity: 0;
}

.service-card{
  background: linear-gradient(160deg, var(--surface) 0%, var(--graphite) 100%);
  border: 1px solid var(--border);
  transition: transform 0.35s cubic-bezier(0.2,0.8,0.2,1), border-color 0.35s ease, box-shadow 0.35s ease;
  position: relative;
}

.service-card::before{
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, transparent 40%, rgba(0,229,255,0.5) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.service-card:hover{
  transform: translateY(-6px);
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6), 0 0 30px -10px rgba(0,229,255,0.15);
}

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

.material-tag{
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-bright);
  color: var(--silver);
}

.adv-card{
  border-top: 1px solid var(--border);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.adv-card:hover{
  border-top-color: var(--accent);
  transform: translateY(-3px);
}

.adv-spec{
  font-family: 'Share Tech Mono', monospace;
  color: var(--accent);
}

.field{
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-bright);
  color: var(--silver-bright);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.field:focus{
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,255,0.15);
  background: rgba(255,255,255,0.045);
}

.field::placeholder{ color: #5f6470; }

.msg-icon{
  border: 1px solid var(--border-bright);
  transition: border-color 0.25s ease, transform 0.25s ease, color 0.25s ease;
  color: var(--silver);
}

.msg-icon:hover{
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

::selection{ background: var(--accent); color: #0a0a0c; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible{
  outline: 2px solid var(--laser);
  outline-offset: 2px;
}

.section-eyebrow{
  font-family: 'Share Tech Mono', monospace;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.divider-line{
  background: linear-gradient(90deg, var(--accent) 0%, transparent 60%);
  height: 2px;
}

.scanline{
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(255,255,255,0.02) 3px);
  pointer-events: none;
}

#heroCanvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

.light-sweep{
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    115deg,
    transparent 30%,
    rgba(255,90,31,0.05) 45%,
    rgba(255,255,255,0.035) 50%,
    rgba(0,229,255,0.05) 55%,
    transparent 70%
  );
  background-size: 300% 300%;
  animation: sweep-move 9s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes sweep-move{
  0%{ background-position: 100% 0%; }
  50%{ background-position: 0% 100%; }
  100%{ background-position: 100% 0%; }
}

.tilt-card{
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card .tilt-glow{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(0,229,255,0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.tilt-card:hover .tilt-glow{ opacity: 1; }

.example-card{
  background: linear-gradient(160deg, var(--surface) 0%, var(--graphite) 100%);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.example-card:hover{
  border-color: rgba(255,90,31,0.3);
  box-shadow: 0 24px 44px -22px rgba(0,0,0,0.65), 0 0 26px -8px rgba(255,90,31,0.18);
}

.example-visual{
  background:
    radial-gradient(circle at 30% 20%, rgba(0,229,255,0.07), transparent 55%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 22px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 22px),
    var(--graphite);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.example-visual svg{
  width: 62%;
  height: 62%;
  transition: transform 0.45s cubic-bezier(0.2,0.8,0.2,1), filter 0.45s ease;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}

.example-card:hover .example-visual svg{
  transform: scale(1.1) rotate(-2deg);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4)) drop-shadow(0 0 14px rgba(255,90,31,0.35));
}

.example-visual .part-line{
  stroke: var(--silver);
  stroke-width: 1.6;
  fill: none;
  transition: stroke 0.4s ease;
}

.example-card:hover .part-line{ stroke: var(--laser); }

.example-visual .part-fill{ fill: var(--surface-2); }

.example-visual .part-hole{
  fill: var(--graphite);
  stroke: var(--border-bright);
  stroke-width: 1;
}

.example-caption{
  border-top: 1px solid var(--border);
}

/* ============ NEW ANIMATIONS ============ */
@keyframes float-slow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.1); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes float-slow-reverse {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-40px, 30px) scale(0.95); }
  66% { transform: translate(20px, -20px) scale(1.1); }
}

@keyframes pulse-slow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.2); }
}

@keyframes pulse-slow-reverse {
  0%, 100% { opacity: 0.5; transform: scale(1.1); }
  50% { opacity: 0.2; transform: scale(0.9); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,255,0); }
  50% { box-shadow: 0 0 20px 2px rgba(0,229,255,0.3); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes bounce-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes laser-flash {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes ping {
  75%, 100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes price-up-anim {
  0% { transform: scale(1); color: var(--silver-bright); }
  50% { transform: scale(1.15); color: var(--success); }
  100% { transform: scale(1); color: var(--silver-bright); }
}

@keyframes price-down-anim {
  0% { transform: scale(1); color: var(--silver-bright); }
  50% { transform: scale(1.15); color: var(--laser); }
  100% { transform: scale(1); color: var(--silver-bright); }
}

.animate-float-slow { animation: float-slow 18s ease-in-out infinite; }
.animate-float-slow-reverse { animation: float-slow-reverse 22s ease-in-out infinite; }
.animate-pulse-slow { animation: pulse-slow 6s ease-in-out infinite; }
.animate-pulse-slow-reverse { animation: pulse-slow-reverse 8s ease-in-out infinite; }
.animate-pulse-glow { animation: pulse-glow 3s ease-in-out infinite; }
.animate-bounce-soft { animation: bounce-soft 2s ease-in-out infinite; }
.animate-laser-flash { animation: laser-flash 0.8s ease-in-out infinite; }
.animate-ping { animation: ping 1.2s cubic-bezier(0, 0, 0.2, 1) infinite; }
.animate-fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 3.8s forwards;
}
.delay-500 { animation-delay: 3.9s; }
.delay-700 { animation-delay: 4.1s; }
.delay-900 { animation-delay: 4.3s; }

/* Tags hover animation */
.animate-tag-hover {
  transition: all 0.3s cubic-bezier(0.2,0.8,0.2,1);
  position: relative;
  overflow: hidden;
}
.animate-tag-hover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.15), transparent);
  background-size: 200% 100%;
  animation: shimmer 2.5s linear infinite;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.animate-tag-hover:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--accent);
  color: var(--accent);
}
.animate-tag-hover:hover::before { opacity: 1; }

/* ============ CALCULATOR STYLES ============ */
.material-btn {
  position: relative;
  border: 2px solid var(--border);
  background: var(--graphite);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.2,0.8,0.2,1);
}
.material-btn:hover {
  transform: translateY(-4px);
}
.material-btn.active {
  border-color: var(--accent) !important;
  background: linear-gradient(135deg, rgba(0,229,255,0.15), rgba(0,229,255,0.05)) !important;
  box-shadow: 0 0 0 1px var(--accent), 0 8px 32px -8px rgba(0,229,255,0.5), inset 0 0 20px rgba(0,229,255,0.08);
  transform: translateY(-2px) scale(1.02);
}
.material-btn.active i, .material-btn.active span:last-of-type { color: var(--accent) !important; }
.material-btn.active::after {
  content: '✓';
  position: absolute;
  top: 8px;
  right: 10px;
  color: var(--accent);
  font-size: 14px;
  font-weight: bold;
  animation: bounce-soft 0.5s ease-out;
}

/* Range sliders */
.slider {
  -webkit-appearance: none;
  appearance: none;
  background: var(--graphite);
  border-radius: 999px;
  outline: none;
  transition: all 0.3s ease;
}
.slider:hover {
  border-color: var(--accent) !important;
}
.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 20px rgba(0,229,255,0.6), 0 4px 12px rgba(0,0,0,0.5);
  transition: all 0.2s ease;
}
.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 0 2px var(--accent), 0 0 30px rgba(0,229,255,0.9), 0 4px 16px rgba(0,0,0,0.6);
}
.slider::-webkit-slider-thumb:active {
  transform: scale(1.1);
}
.slider::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), 0 0 20px rgba(0,229,255,0.6);
}

/* Checkbox styling */
#calcForm input[type="checkbox"] {
  accent-color: var(--accent);
  width: 22px;
  height: 22px;
  cursor: pointer;
  transition: all 0.2s ease;
}
#calcForm input[type="checkbox"]:hover {
  transform: scale(1.1);
}
#calcForm label:has(input[type="checkbox"]:checked) {
  border-color: var(--accent) !important;
  background: linear-gradient(90deg, rgba(0,229,255,0.1), transparent) !important;
}

/* Price animation */
.animate-price-change {
  transition: all 0.4s cubic-bezier(0.2,0.8,0.2,1);
  display: inline-block;
}
.price-up { animation: price-up-anim 0.4s cubic-bezier(0.2,0.8,0.2,1); }
.price-down { animation: price-down-anim 0.4s cubic-bezier(0.2,0.8,0.2,1); }

/* Stats counter blocks */
.stat-block {
  position: relative;
  padding: 0.7rem 0.9rem;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 0.65rem;
  min-width: 120px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.stat-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.stat-block:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.04);
  border-color: rgba(0,229,255,0.2);
  box-shadow: 0 12px 32px -16px rgba(0,229,255,0.3);
}
.stat-block:hover::before { opacity: 1; }
.stat-block:hover .counter {
  color: var(--accent) !important;
  text-shadow: 0 0 15px rgba(0,229,255,0.4);
}

/* Hero section extras */
.hero-wrap::after {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 4px;
  height: 4px;
  background: var(--laser);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--laser), 0 0 20px var(--laser);
  animation: float-slow 8s ease-in-out infinite, pulse-glow 1.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}
.hero-wrap::before {
  content: '';
  position: absolute;
  bottom: 30%;
  left: 8%;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent), 0 0 16px var(--accent);
  animation: float-slow-reverse 10s ease-in-out infinite, pulse-glow 1.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 5;
}

/* Section titles gradient shimmer */
[data-aos="fade-up"] h2 {
  background: linear-gradient(90deg, var(--silver-bright), var(--accent), var(--silver-bright));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

/* Nav links underline shimmer */
.nav-link::after {
  background: linear-gradient(90deg, var(--accent), var(--laser), var(--accent));
  background-size: 200% 100%;
  animation: shimmer 3s linear infinite;
}

/* CTA buttons magnetic smoothness */
.btn-primary, .btn-secondary {
  will-change: transform;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s linear infinite;
}

/* Hero SVG parallax smooth */
.hero-wrap svg {
  transition: transform 0.15s ease-out;
  will-change: transform;
}

/* ============ HERO IMAGE STYLES ============ */
.hero-image-wrap {
  will-change: transform;
  transition: transform 0.2s ease-out;
  perspective: 1200px;
}

.hero-photo {
  display: block;
  border: 1px solid rgba(0,229,255,0.15);
  transition: transform 0.25s ease-out;
  will-change: transform;
}

/* Dark + gradient overlay for text readability */
.hero-photo-overlay {
  background:
    /* fade toward the TEXT (left side) */
    linear-gradient(90deg, rgba(5,7,10,0.35) 0%, rgba(5,7,10,0.15) 25%, rgba(5,7,10,0.05) 50%, transparent 75%),
    /* subtle top-bottom vignette */
    linear-gradient(180deg, rgba(5,7,10,0.1) 0%, transparent 35%, rgba(5,7,10,0.25) 100%),
    /* cyan corner glow */
    radial-gradient(circle at 75% 55%, rgba(0,229,255,0.12) 0%, transparent 50%);
  mix-blend-mode: normal;
  transition: opacity 0.3s ease;
}

/* Orange laser frame - animated border + corner tracking */
.hero-frame-laser {
  animation: frame-pulse 2.5s ease-in-out infinite;
  will-change: box-shadow, opacity;
}
@keyframes frame-pulse {
  0%, 100% {
    opacity: 0.65;
    box-shadow: 0 0 20px rgba(255,90,31,0.3), inset 0 0 20px rgba(255,90,31,0.15);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 50px rgba(255,90,31,0.6), inset 0 0 40px rgba(255,90,31,0.3);
    transform: scale(1.005);
  }
}

/* Animated cyan laser dot */
.animate-laser-dot {
  animation:
    laser-dot-move 6s cubic-bezier(0.4,0,0.2,1) infinite,
    pulse-head 0.8s ease-in-out infinite;
  will-change: transform;
}
@keyframes laser-dot-move {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(80px, 40px); }
  50%  { transform: translate(160px, -20px); }
  75%  { transform: translate(40px, 60px); }
  100% { transform: translate(0, 0); }
}

/* Animated sparks flying outward from the laser dot */
.hero-spark {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 3px;
  background: var(--laser);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--laser);
  transform: rotate(var(--rot, 0deg)) translateY(0);
  opacity: 0;
  animation: hero-spark-fly 1.6s ease-out var(--delay, 0s) infinite;
}
@keyframes hero-spark-fly {
  0% {
    opacity: 1;
    transform: rotate(var(--rot, 0deg)) translateY(0) scale(1);
  }
  70% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: rotate(var(--rot, 0deg)) translateY(-70px) scale(0);
  }
}

/* Scanline over hero image */
.hero-img-scanline {
  box-shadow: 0 0 15px var(--accent);
  animation: img-scan 5s linear infinite;
  will-change: transform;
}
@keyframes img-scan {
  0%   { transform: translateY(0); opacity: 0.8; }
  50%  { transform: translateY(380px); opacity: 0.4; }
  100% { transform: translateY(0); opacity: 0.8; }
}

/* Advantages icon container */
.adv-card [class*="w-12 h-12"] {
  transition: all 0.35s cubic-bezier(0.2,0.8,0.2,1);
}

/* Calculator section anchor offset */
#calculator {
  scroll-margin-top: 100px;
}

/* Number inputs focus */
#calcForm input[type="number"]:focus {
  transform: scale(1.01);
}

/* Hero compact mode for standard laptop heights (900-1000px) — desktop only */
@media (min-width: 1024px) and (max-height: 1000px) {
  .hero-wrap {
    padding-top: 7rem !important;
    padding-bottom: 3.5rem !important;
  }
  .hero-wrap h1 {
    font-size: clamp(2.5rem, 4.5vw, 3.4rem) !important;
  }
  .hero-wrap h1 + p {
    font-size: 1rem !important;
    margin-bottom: 1.25rem !important;
  }
  .hero-wrap .stat-block {
    padding: 0.55rem 0.8rem;
    min-width: 108px;
  }
  .hero-wrap .stat-block [class*="text-2xl"] {
    font-size: 1.5rem !important;
  }
  .hero-wrap .stat-block [class*="text-lg"] {
    font-size: 0.85rem !important;
  }
  .hero-wrap .hero-image-wrap {
    margin-top: -1rem !important;
    max-width: 30rem;
  }
}

@media (min-width: 1024px) and (max-height: 860px) {
  .hero-wrap {
    padding-top: 6rem !important;
    padding-bottom: 2.5rem !important;
  }
  .hero-wrap h1 {
    font-size: clamp(2.25rem, 4.2vw, 3rem) !important;
    margin-bottom: 0.5rem !important;
  }
  .hero-wrap .section-eyebrow {
    margin-bottom: 0.75rem !important;
  }
  .hero-wrap .stat-block {
    padding: 0.5rem 0.75rem;
    min-width: 104px;
  }
  .hero-wrap .stat-block [class*="text-2xl"] {
    font-size: 1.35rem !important;
  }
}

/* ============================================
   MOBILE RESPONSIVE (≤ 768px and ≤ 480px)
   ============================================ */

/* Mobile sticky CTA button (bottom fixed bar) */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 767px) {
  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }
  .mobile-sticky-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    padding: 0.85rem 1.25rem;
    background: var(--accent);
    color: #0a0a0c;
    border-radius: 0.85rem;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: 'Chakra Petch', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow:
      0 10px 30px -8px rgba(0,229,255,0.55),
      0 4px 14px -4px rgba(0,229,255,0.4),
      0 0 0 1px rgba(0,0,0,0.3);
    animation: mobile-cta-in 0.5s cubic-bezier(0.2,0.8,0.2,1) 0.3s both;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
  .mobile-sticky-cta:active {
    transform: scale(0.98);
  }
  @keyframes mobile-cta-in {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* --- HERO section mobile tweaks --- */
@media (max-width: 768px) {
  .hero-wrap {
    padding-top: 6.5rem !important;
    padding-bottom: 3rem !important;
    min-height: auto !important;
  }
  .hero-wrap h1 {
    font-size: clamp(2rem, 9vw, 2.75rem) !important;
    line-height: 1.08 !important;
  }
  .hero-wrap .section-eyebrow {
    margin-bottom: 0.9rem !important;
  }
  .hero-wrap h1 + p {
    font-size: 0.95rem !important;
    margin-bottom: 1.25rem !important;
    max-width: 100% !important;
  }
  .hero-wrap .btn-primary,
  .hero-wrap .btn-secondary {
    padding: 0.75rem 1.1rem !important;
    font-size: 0.85rem !important;
  }
  /* Stat cards */
  .hero-wrap .stat-block {
    padding: 0.6rem 0.75rem !important;
    min-width: 96px !important;
  }
  .hero-wrap .stat-block [class*="text-2xl"] {
    font-size: 1.35rem !important;
  }
  .hero-wrap .stat-block [class*="text-lg"] {
    font-size: 0.8rem !important;
  }
  .hero-wrap .stat-block span[class*="uppercase"] {
    font-size: 9px !important;
    letter-spacing: 0.08em !important;
  }
  .hero-wrap [class*="mt-8 pt-6"] {
    margin-top: 1.5rem !important;
    padding-top: 1rem !important;
    gap: 0.5rem !important;
  }
  .hero-image-wrap {
    margin-top: 0 !important;
  }
  .hero-wrap .hero-image-wrap {
    max-width: 100%;
  }
  /* Decorative elements on hero image - smaller */
  .hero-frame-laser {
    box-shadow: 0 0 16px rgba(255,90,31,0.35), inset 0 0 16px rgba(255,90,31,0.15) !important;
  }
  .hero-wrap .top-4.left-4,
  .hero-wrap .bottom-4.right-4 {
    width: 2.25rem !important;
    height: 2.25rem !important;
    top: 0.65rem !important;
    left: 0.65rem !important;
    bottom: 0.65rem !important;
    right: 0.65rem !important;
  }
  .animate-laser-dot {
    width: 0.55rem !important;
    height: 0.55rem !important;
  }
  /* Tech info badge bottom of hero image */
  .hero-wrap .-bottom-5 {
    bottom: -0.85rem !important;
    padding: 0.35rem 0.85rem !important;
  }
  .hero-wrap [class*="CNC ACTIVE"] {
    font-size: 10px !important;
  }
}

@media (max-width: 480px) {
  .hero-wrap {
    padding-top: 5.75rem !important;
    padding-bottom: 2.25rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .hero-wrap h1 {
    font-size: clamp(1.7rem, 10vw, 2.2rem) !important;
    line-height: 1.1 !important;
    margin-bottom: 0.6rem !important;
  }
  .hero-wrap h1 + p {
    font-size: 0.88rem !important;
    line-height: 1.55 !important;
    margin-bottom: 1rem !important;
  }
  .hero-wrap .section-eyebrow {
    margin-bottom: 0.65rem !important;
    font-size: 10px !important;
    letter-spacing: 0.1em !important;
  }
  .hero-wrap .flex.flex-wrap.gap-4 {
    gap: 0.5rem !important;
  }
  .hero-wrap .btn-primary,
  .hero-wrap .btn-secondary {
    padding: 0.7rem 1rem !important;
    font-size: 0.8rem !important;
    width: 100% !important;
    justify-content: center !important;
  }
  /* Stats: stack 2 in first row, 1 below OR all 2-col compact */
  .hero-wrap [class*="mt-8 pt-6"] {
    margin-top: 1.25rem !important;
    padding-top: 0.85rem !important;
    gap: 0.4rem !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }
  .hero-wrap [class*="mt-8 pt-6"] > .stat-block:last-child {
    grid-column: 1 / -1;
  }
  .hero-wrap .stat-block {
    padding: 0.5rem 0.6rem !important;
    min-width: 0 !important;
  }
  .hero-wrap .stat-block [class*="text-2xl"] {
    font-size: 1.2rem !important;
  }
  .hero-wrap .stat-block [class*="text-lg"] {
    font-size: 0.75rem !important;
  }
  .hero-wrap .stat-block span[class*="uppercase"] {
    font-size: 8.5px !important;
  }
}

/* --- HEADER / MOBILE MENU --- */
@media (max-width: 767px) {
  header.glass {
    height: 3.75rem !important;
  }
  header.glass > div {
    height: 3.75rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  header .font-display {
    font-size: 1.15rem !important;
  }
  #mobileMenu a {
    padding: 0.5rem 0 !important;
    font-size: 0.95rem !important;
  }
  #mobileMenu .btn-primary {
    margin-top: 0.5rem !important;
    padding: 0.75rem !important;
  }
}

/* --- SECTION paddings mobile --- */
@media (max-width: 768px) {
  section[id] {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  section[id] h2 {
    font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
    margin-bottom: 0.6rem !important;
  }
  section[id] .section-eyebrow {
    margin-bottom: 0.4rem !important;
  }
  section[id] > div:first-child > div:first-child {
    margin-bottom: 2rem !important;
  }
  section[id] p {
    font-size: 0.92rem !important;
  }
}

@media (max-width: 480px) {
  section[id] {
    padding-top: 2.75rem !important;
    padding-bottom: 2.75rem !important;
    padding-left: 0.85rem !important;
    padding-right: 0.85rem !important;
  }
  section[id] h2 {
    font-size: clamp(1.35rem, 7vw, 1.75rem) !important;
  }
}

/* --- SERVICES section --- */
@media (max-width: 768px) {
  #services .grid > div {
    padding: 1.5rem !important;
  }
  #services h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }
  #services p {
    font-size: 0.9rem !important;
  }
  #services .material-tag {
    font-size: 0.62rem !important;
    padding: 0.3rem 0.6rem !important;
  }
}

/* --- LASER BENEFITS section --- */
@media (max-width: 768px) {
  #laser-benefits .grid {
    gap: 2rem !important;
  }
  #laser-benefits .w-14.h-14 {
    width: 2.75rem !important;
    height: 2.75rem !important;
  }
  #laser-benefits .w-14.h-14 svg {
    width: 1.35rem !important;
    height: 1.35rem !important;
  }
  #laser-benefits .benefit-item {
    padding: 0.9rem !important;
    gap: 0.75rem !important;
  }
  #laser-benefits .benefit-item p {
    font-size: 0.88rem !important;
  }
  /* Floating badges */
  #laser-benefits .animate-bounce-soft {
    padding: 0.45rem 0.6rem !important;
  }
  #laser-benefits .animate-bounce-soft .w-10.h-10 {
    width: 2.25rem !important;
    height: 2.25rem !important;
  }
  #laser-benefits .animate-bounce-soft svg {
    width: 1.1rem !important;
    height: 1.1rem !important;
  }
  #laser-benefits .animate-bounce-soft .text-lg {
    font-size: 0.95rem !important;
  }
  #laser-benefits .animate-bounce-soft .text-\[10px\] {
    font-size: 8px !important;
  }
}

@media (max-width: 480px) {
  #laser-benefits .benefit-item {
    padding: 0.75rem !important;
  }
  #laser-benefits .benefit-item p {
    font-size: 0.82rem !important;
  }
}

/* --- ADVANTAGES section grid --- */
@media (max-width: 768px) {
  #advantages .grid {
    grid-template-columns: 1fr 1fr !important;
  }
  #advantages .adv-card {
    padding: 1.25rem !important;
  }
  #advantages .adv-card h3 {
    font-size: 1rem !important;
  }
  #advantages .adv-card p {
    font-size: 0.82rem !important;
  }
}

@media (max-width: 480px) {
  #advantages .grid {
    grid-template-columns: 1fr !important;
  }
}

/* --- EXAMPLES section --- */
@media (max-width: 768px) {
  #examples .grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.75rem !important;
  }
  #examples h3 {
    font-size: 0.95rem !important;
  }
  #examples .material-tag {
    font-size: 0.58rem !important;
    padding: 0.2rem 0.45rem !important;
  }
  #examples .example-caption {
    padding: 0.75rem !important;
  }
}

@media (max-width: 480px) {
  #examples .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
}

/* --- CONTACTS section --- */
@media (max-width: 768px) {
  #contacts .grid {
    gap: 2.5rem !important;
  }
  #contacts h2 {
    margin-bottom: 1rem !important;
  }
  #contacts p {
    margin-bottom: 1.75rem !important;
  }
  #contacts .space-y-5 {
    gap: 0.9rem !important;
    margin-bottom: 1.5rem !important;
  }
  #contacts .space-y-5 a,
  #contacts .space-y-5 span {
    font-size: 0.95rem !important;
  }
  #contactForm {
    padding: 1.25rem !important;
    gap: 0.85rem !important;
  }
  #contactForm .field {
    padding: 0.7rem 0.85rem !important;
    font-size: 0.9rem !important;
  }
  #contactForm button[type="submit"] {
    padding: 0.85rem !important;
    font-size: 0.88rem !important;
  }
  #contacts .mt-20.pt-8 {
    margin-top: 2.5rem !important;
    padding-top: 1.25rem !important;
    gap: 0.5rem !important;
    font-size: 10px !important;
    flex-direction: column !important;
    text-align: center !important;
  }
}

/* --- FOOTER / COPYRIGHT --- */
@media (max-width: 480px) {
  #contacts .border-t.border-white\/5 > span {
    font-size: 9.5px !important;
    letter-spacing: 0.05em !important;
  }
}

/* Prevent horizontal scroll on any mobile */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
  }
  * {
    max-width: 100% !important;
  }
  img, svg, video, canvas {
    max-width: 100% !important;
    height: auto !important;
  }
  table {
    display: block;
    overflow-x: auto;
  }
}

/* AOS tweaks on small screens - no transform issues */
@media (max-width: 768px) {
  [data-aos] {
    transition-property: opacity !important;
  }
  [data-aos^="fade"] {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Safe area spacing for notched phones (general) */
@supports (padding: env(safe-area-inset-top)) {
  @media (max-width: 767px) {
    header.glass {
      padding-top: env(safe-area-inset-top, 0px);
    }
  }
}
