/* ==========================================================================
   FLEXTRON - Premium Industrial Bento Design (Modern B2B)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --color-primary: #ea580c;
  --color-primary-hover: #c2410c;
  --color-bg-page: #fafafa;
  --color-bg-card: #ffffff;
  --color-zinc-900: #18181b;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, sans-serif;
  color: #3f3f46; /* zinc-700 */
  background-color: var(--color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Manrope', sans-serif;
  color: var(--color-zinc-900);
  letter-spacing: -0.02em;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d4d4d8; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1aa; }

/* Buttons */
.btn-primary {
  background-color: var(--color-zinc-900);
  color: #ffffff;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover {
  background-color: #27272a;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(24, 24, 27, 0.2);
}
.btn-accent {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-accent:hover {
  background-color: var(--color-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(234, 88, 12, 0.3);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-zinc-900);
  font-weight: 600;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-secondary:hover {
  border-color: #d4d4d8;
  background-color: #f4f4f5;
}

/* Bento Cards */
.bento-card {
  background: #ffffff;
  border: 1px solid rgba(228, 228, 231, 0.6);
  border-radius: 24px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  overflow: hidden;
}
.bento-card:hover {
  border-color: #e4e4e7;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

/* Inputs */
.input-clean {
  background-color: #f4f4f5; /* zinc-100 */
  border: 1px solid transparent;
  color: var(--color-zinc-900);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.2s ease;
  width: 100%;
}
.input-clean:focus {
  outline: none;
  background-color: #ffffff;
  border-color: #a1a1aa;
  box-shadow: 0 0 0 4px rgba(24, 24, 27, 0.05);
}

/* Image zoom on hover */
.img-zoom-container {
  overflow: hidden;
}
.img-zoom-container img {
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.bento-card:hover .img-zoom-container img {
  transform: scale(1.05);
}

/* Scroll Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Range Slider */
input[type=range] {
  -webkit-appearance: none;
  background: #e4e4e7;
  border-radius: 9999px;
  height: 6px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-zinc-900);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform 0.1s;
}
input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Badges */
.badge-sn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  background-color: #f4f4f5;
  color: #71717a;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.badge-sn-active {
  background-color: var(--color-zinc-900);
  color: #ffffff;
}

/* Engineering Background Grid */
.bg-grid {
  background-size: 32px 32px;
  background-image: linear-gradient(to right, rgba(24, 24, 27, 0.03) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(24, 24, 27, 0.03) 1px, transparent 1px);
}

/* Infinite Marquee */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  width: 100%;
}
.marquee-content {
  display: flex;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Clean UI tweaks */
.fat-footer {
  background: var(--color-zinc-900);
  background-image: radial-gradient(circle at top right, rgba(234, 88, 12, 0.15), transparent 400px);
}


/* ==========================================================================
   CAD & PRECISION TECHNICAL SUITE
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap');

.font-mono {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Technical CAD Crosshairs */
.cad-frame {
  position: relative;
}
.cad-frame::before {
  content: '+';
  position: absolute;
  top: 10px;
  left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #71717a;
  pointer-events: none;
  line-height: 1;
}
.cad-frame::after {
  content: '+';
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #71717a;
  pointer-events: none;
  line-height: 1;
}

/* Dark Blueprint Grid */
.bg-grid-dark {
  background-size: 32px 32px;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

/* CAD Hotspots */
.cad-hotspot {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(234, 88, 12, 0.25);
  border: 1.5px solid #ea580c;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}
.cad-hotspot-inner {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ea580c;
  box-shadow: 0 0 10px #ea580c;
  transition: transform 0.2s;
}
.cad-hotspot:hover {
  transform: scale(1.25);
  background: rgba(234, 88, 12, 0.45);
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.6);
}
.cad-tooltip {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #18181b;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
  width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 12px 30px -5px rgba(0,0,0,0.6);
  border: 1px solid #3f3f46;
  z-index: 40;
}
.cad-hotspot:hover .cad-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Dimension Lines */
.cad-dimension-line {
  position: relative;
  border-top: 1px dashed #a1a1aa;
  margin: 12px 0;
}
.cad-dimension-line::before, .cad-dimension-line::after {
  content: '';
  position: absolute;
  top: -4px;
  width: 1px;
  height: 9px;
  background: #a1a1aa;
}
.cad-dimension-line::before { left: 0; }
.cad-dimension-line::after { right: 0; }

/* Status Pill */
.cad-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

