@charset "UTF-8";

/* ==========================================================================
   QAZAQ SOLAR PRO — Premium Engineering Design System
   Sophisticated, Organic Tech, Smooth Transitions
   ========================================================================== */

:root {
  --bg-main: #0b0f17;
  --bg-surface: #111622;
  --bg-card: rgba(17, 22, 34, 0.75);
  --bg-card-hover: rgba(23, 30, 46, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-accent: rgba(16, 185, 129, 0.3);
  --accent-emerald: #10b981;
  --accent-emerald-soft: rgba(16, 185, 129, 0.12);
  --accent-amber: #f59e0b;
  --accent-amber-soft: rgba(245, 158, 11, 0.12);
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
}

body {
  background-color: var(--bg-main);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Fonts */
.font-display {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

/* Glassmorphism Cards */
.card-glass {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-glass:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.4);
}

.card-glass-active {
  background: rgba(20, 27, 42, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.5), inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}

/* Subtle Badges */
.badge-soft-emerald {
  background-color: var(--accent-emerald-soft);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-soft-amber {
  background-color: var(--accent-amber-soft);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.badge-soft-slate {
  background-color: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Background Atmospheric Light (Calm & Non-Aggressive) */
.bg-ambient-radial {
  background: radial-gradient(circle at 50% -10%, rgba(16, 185, 129, 0.06) 0%, rgba(11, 15, 23, 0) 65%);
}

.bg-dot-matrix {
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Animated SVG Energy Path (Subtle & Smooth) */
.dash-flow-green {
  stroke-dasharray: 6 6;
  animation: flowGreen 18s linear infinite;
}

.dash-flow-amber {
  stroke-dasharray: 6 6;
  animation: flowAmber 18s linear infinite;
}

@keyframes flowGreen {
  to { stroke-dashoffset: -360; }
}

@keyframes flowAmber {
  to { stroke-dashoffset: 360; }
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0b0f17;
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Custom Range Input (Clean & High-End) */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}

input[type=range]:focus {
  outline: none;
}

input[type=range]::-webkit-slider-runnable-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: #1e293b;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

input[type=range]::-webkit-slider-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  -webkit-appearance: none;
  margin-top: -7px;
  border: 2px solid #0b0f17;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  background: #34d399;
}

input[type=range]::-moz-range-track {
  width: 100%;
  height: 6px;
  cursor: pointer;
  background: #1e293b;
  border-radius: 3px;
}

input[type=range]::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background: #10b981;
  cursor: pointer;
  border: 2px solid #0b0f17;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Accordion Smooth Icon Rotation */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary .faq-chevron {
  transform: rotate(180deg);
}

/* Smooth modal animation */
.modal-fade-in {
  animation: modalFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
