/* Shugar Media B.V. - Core Design System & Tactile Enhancements */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --bg-deep: #0a0b0e;
  --bg-surface: #111318;
  --bg-surface-elevated: #171a22;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-highlight: rgba(255, 94, 54, 0.35);
  --accent-orange: #ff5e36;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --text-main: #f4f4f6;
  --text-muted: #9ba1b0;
  --text-dim: #636b7c;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-deep);
}
::-webkit-scrollbar-thumb {
  background: #232733;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Typography Headings */
.font-display {
  font-family: 'Syne', sans-serif;
}
.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Tactile Grain Overlay */
.bg-grain {
  position: relative;
}
.bg-grain::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Glow and Gradient Borders */
.glass-panel {
  background: rgba(17, 19, 24, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
}

.glass-panel:hover {
  border-color: rgba(255, 94, 54, 0.3);
}

.glow-card {
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.glow-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 94, 54, 0.4), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.glow-card:hover::after {
  opacity: 1;
}

/* Infinite Marquee */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}
.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 28s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* Subtle Pulsing Signal Indicator */
@keyframes pulse-signal {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.92); }
}
.signal-dot {
  animation: pulse-signal 2.4s ease-in-out infinite;
}

/* Custom Interactive Slider for ROAS Calculator */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #1c202a;
  height: 6px;
  border-radius: 9999px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ff5e36;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(255, 94, 54, 0.5);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease;
}
input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Selection */
::selection {
  background: rgba(255, 94, 54, 0.35);
  color: #ffffff;
}
