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

:root {
  --warehouse-orange: #E86A2C;
  --container-blue: #1A5F7A;
  --pallet-brown: #8B5E3C;
  --fog-white: #F4F4F6;
  --terminal-black: #1E1E1E;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--fog-white);
  color: var(--terminal-black);
  overflow-x: hidden;
}

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

/* Base resets for a premium feel */
* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--fog-white);
}
::-webkit-scrollbar-thumb {
  background: var(--container-blue);
  border-radius: 4px;
}

/* Utilities */
.liquid-glass {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 8px 32px rgba(0, 0, 0, 0.05);
}

.dark-glass {
  background: rgba(30, 30, 30, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.2);
}

.industrial-border {
  border: 2px solid var(--terminal-black);
}

/* Animations */
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.animate-ticker {
  display: inline-block;
  white-space: nowrap;
  animation: ticker 20s linear infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(232, 106, 44, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(232, 106, 44, 0); }
  100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(232, 106, 44, 0); }
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--warehouse-orange);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(232, 106, 44, 1);
  animation: pulse-ring 2s infinite;
}

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

.skeleton {
  background: linear-gradient(90deg, #e2e2e2 25%, #f0f0f0 50%, #e2e2e2 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* Interactions */
.btn-press {
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.1s ease;
}
.btn-press:active {
  transform: translateY(2px) scale(0.98);
}

/* Magnetic Area */
.magnetic-wrap {
  display: inline-block;
}

.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Layout Specifics */
.cockpit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--terminal-black);
  border: 1px solid var(--terminal-black);
}
.cockpit-grid > div {
  background: var(--fog-white);
  padding: 1.5rem;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.bento-col-4 { grid-column: span 4; }
.bento-col-8 { grid-column: span 8; }
.bento-col-6 { grid-column: span 6; }

@media (max-width: 1024px) {
  .bento-col-4, .bento-col-8, .bento-col-6 { grid-column: span 12; }
}

/* Custom Table */
.industrial-table {
  width: 100%;
  border-collapse: collapse;
}
.industrial-table th, .industrial-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}
.industrial-table th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #6b7280;
  letter-spacing: 0.05em;
}
.industrial-table tr:hover {
  background-color: rgba(26, 95, 122, 0.03);
}

/* Form inputs */
.industrial-input {
  border-bottom: 2px solid var(--terminal-black);
  background: transparent;
  transition: border-color 0.2s ease;
}
.industrial-input:focus {
  outline: none;
  border-bottom-color: var(--warehouse-orange);
}

/* Progress Step */
.step-item {
  position: relative;
}
.step-item::after {
  content: '';
  position: absolute;
  top: 1rem;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
}
.step-item:last-child::after {
  display: none;
}
.step-item.active .step-icon {
  background: var(--warehouse-orange);
  color: white;
  border-color: var(--warehouse-orange);
}
.step-item.active ~ .step-item .step-icon {
  background: white;
  border-color: #e5e7eb;
  color: #9ca3af;
}

html {
  scroll-behavior: smooth;
}

/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Custom Industrial Cursor */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--warehouse-orange);
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: transform 0.15s ease-out, width 0.3s ease, height 0.3s ease;
  display: none;
}
@media (pointer: fine) {
  .custom-cursor { display: block; }
}

/* Image Parallax Effect */
.parallax-img {
  transition: transform 0.5s cubic-bezier(0.33, 1, 0.68, 1);
}
.group:hover .parallax-img {
  transform: scale(1.1);
}
