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

:root {
  --fc-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --fc-font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --fc-font-mono: 'JetBrains Mono', monospace;
  
  --fc-bg-dark: #080c14;
  --fc-surface-card: rgba(15, 23, 42, 0.75);
  --fc-surface-card-hover: rgba(30, 41, 59, 0.85);
  --fc-border-subtle: rgba(51, 65, 85, 0.5);
  --fc-border-hover: rgba(16, 185, 129, 0.4);
  
  --fc-neon-emerald: #10b981;
  --fc-neon-glow: rgba(16, 185, 129, 0.2);
}

body {
  font-family: var(--fc-font-body);
  background-color: var(--fc-bg-dark);
  color: #94a3b8;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .fc-font-heading {
  font-family: var(--fc-font-heading);
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.fc-mono {
  font-family: var(--fc-font-mono);
}

/* Tło z subtelną siatką inżynieryjną (Linear Grid) */
.fc-mesh-bg {
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 60%),
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 48px 48px, 48px 48px;
}

/* Glassmorphism Dark Panel */
.fc-panel-glass {
  background: var(--fc-surface-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--fc-border-subtle);
  border-radius: 1.25rem;
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.06),
    0 12px 32px -8px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.fc-panel-glass:hover {
  border-color: var(--fc-border-hover);
  box-shadow: 
    inset 0 1px 0 0 rgba(255, 255, 255, 0.1),
    0 20px 40px -10px rgba(0, 0, 0, 0.6),
    0 0 25px -5px rgba(16, 185, 129, 0.15);
}

/* Przyciski High-Tech */
.fc-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #041f14;
  font-weight: 700;
  font-size: 0.875rem;
  min-height: 46px;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.fc-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #02120c;
}

.fc-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  background: rgba(30, 41, 59, 0.7);
  backdrop-filter: blur(10px);
  color: #f1f5f9;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 46px;
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(71, 85, 105, 0.6);
  transition: all 0.25s ease;
  text-decoration: none;
  cursor: pointer;
}

.fc-btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: #94a3b8;
  color: #ffffff;
  transform: translateY(-1px);
}

.fc-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.875rem;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(51, 65, 85, 0.6);
  transition: all 0.2s ease;
  text-decoration: none;
}

.fc-btn-outline:hover {
  background: rgba(30, 41, 59, 0.5);
  color: #f8fafc;
  border-color: #64748b;
}

/* Pola wejściowe Dark Terminal */
.fc-input-field {
  width: 100%;
  min-height: 46px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-family: var(--fc-font-body);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 0.75rem;
  background-color: rgba(11, 15, 25, 0.85);
  color: #f8fafc;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.fc-input-field:focus {
  border-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25), 0 0 15px rgba(16, 185, 129, 0.2);
}

/* Badges Telemetry */
.fc-badge-tech {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-family: var(--fc-font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
}

.fc-badge-subtle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-family: var(--fc-font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  background: rgba(30, 41, 59, 0.6);
  color: #94a3b8;
  border: 1px solid rgba(51, 65, 85, 0.6);
}

/* Custom Range Slider Dark High-Tech */
input[type="range"].fc-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 9999px;
  background: #111827;
  border: 1px solid #1f293d;
  outline: none;
  cursor: pointer;
}

input[type="range"].fc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981, inset 0 1px 2px #ffffff;
  cursor: pointer;
  border: 2px solid #080c14;
  transition: transform 0.15s ease;
}

input[type="range"].fc-range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

input[type="range"].fc-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  cursor: pointer;
  border: 2px solid #080c14;
}

/* Canvas Oscilloscope Effect */
.fc-canvas-box {
  background: rgba(5, 8, 14, 0.95);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 0.75rem;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Cookie Container */
.fc-cookie-container {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  max-width: 34rem;
  margin: 0 auto;
  z-index: 9999;
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(20px);
  color: #f8fafc;
  padding: 1.5rem;
  border-radius: 1.25rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(51, 65, 85, 0.8);
}

/* Efekt żywego pulsu kadencji */
@keyframes cadencePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
    filter: drop-shadow(0 0 8px #10b981);
  }
}

.fc-pulse-anim {
  animation: cadencePulse 1.1s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Akordeon */
.fc-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}

.fc-accordion-item.active .fc-accordion-content {
  max-height: 300px;
  opacity: 1;
}

.fc-accordion-item.active .fc-accordion-icon {
  transform: rotate(45deg);
  color: #10b981;
}
