/* Polaris Desert Dusk & Smoke Theme */
:root {
  /* Desert Dusk Palette */
  --sand: #C8A985;
  --glow: #F0C896;
  --shadow: #8A6F5A;
  --horizon-mist: #E9DED1;
  --burnt-horizon: #B97450;
  
  /* Polaris Sky Palette */
  --midnight: #0C1A28;
  --deep-blue: #1C2F46;
  --polaris-blue: #A8C7FF;
  --north-star: #DDE7FF;
  --star-white: #F5F7FA;
  
  /* Glass/Smoke Effects */
  --glass-light: rgba(255, 255, 255, 0.22);
  --glass-medium: rgba(255, 255, 255, 0.14);
  --glass-dark: rgba(0, 0, 0, 0.22);
  --frost-edge: rgba(255, 255, 255, 0.33);
  --fog: rgba(200, 200, 200, 0.20);
  
  /* Accents */
  --aurora: #A4E3C0;
  --twilight: #E787C8;
  --orbit-purple: #C551FF;
  --nomad-orange: #FF883A;
  --lumen-teal: #7AD1D1;
  
  /* Semantic Colors */
  --bg-primary: var(--midnight);
  --bg-secondary: var(--deep-blue);
  --bg-surface: var(--sand);
  --text-primary: var(--star-white);
  --text-secondary: rgba(245, 247, 250, 0.75);
  --text-muted: rgba(245, 247, 250, 0.55);
  --border-color: rgba(255, 255, 255, 0.12);
  --cta-bg: var(--glow);
  --cta-text: var(--midnight);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(135deg, var(--midnight) 0%, var(--deep-blue) 50%, var(--midnight) 100%);
  background-attachment: fixed;
  line-height: 1.7;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Desert Dusk Background Pattern */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(200, 169, 133, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(240, 200, 150, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(168, 199, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Smoke/Glass Morphism Effect */
.smoke-panel {
  background: rgba(32, 35, 45, 0.51);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.smoke-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

/* Header */
header {
  background: rgba(12, 26, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 2rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.header-content {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

header h1 {
  margin: 0 0 0.5rem;
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--glow) 0%, var(--polaris-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Main Content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

/* Sections with Smoke Effect */
section {
  background: rgba(32, 35, 45, 0.51);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

section > * {
  position: relative;
  z-index: 1;
}

section h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 600;
}

section h3 {
  color: var(--text-primary);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

section p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

section ul, section ol {
  padding-left: 1.5rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

section li {
  margin-bottom: 0.5rem;
}

section strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Links */
a {
  color: var(--polaris-blue);
  text-decoration: none;
  transition: all 0.2s ease;
  border-bottom: 1px solid transparent;
}

a:hover {
  color: var(--glow);
  border-bottom-color: var(--glow);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  background: rgba(240, 200, 150, 0.2);
  color: var(--glow);
  border: 1px solid rgba(240, 200, 150, 0.3);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Summary Text */
.summary {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

/* Callout Box */
.callout {
  background: rgba(168, 199, 255, 0.1);
  border-left: 4px solid var(--polaris-blue);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 2rem 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.callout p {
  color: var(--text-secondary);
  margin: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

/* Dashboard Mockup Container */
.dashboard-mockup {
  background: rgba(12, 26, 40, 0.9);
  border-radius: 24px;
  padding: 2rem;
  margin: 2rem 0;
  border: 1px solid var(--border-color);
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.dashboard-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08) 0%,
    rgba(255, 255, 255, 0.02) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.dashboard-mockup > * {
  position: relative;
  z-index: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.dashboard-card {
  background: rgba(28, 47, 70, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 200, 150, 0.3);
  box-shadow: 0 8px 24px rgba(240, 200, 150, 0.2);
}

.dashboard-card-title {
  color: var(--glow);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-card-value {
  color: var(--text-primary);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.dashboard-card-label {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Responsive */
@media (max-width: 600px) {
  header, main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  section {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* Smooth Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(12, 26, 40, 0.5);
}

::-webkit-scrollbar-thumb {
  background: rgba(240, 200, 150, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(240, 200, 150, 0.5);
}
