/* ==========================================================================
   Declutter Premium Design System & Utility Stylesheet
   Core Palette: Slate-Dark space canvas, Glowing Violet/Cyan, Emerald Accents
   ========================================================================== */

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

:root {
  /* Color Variables */
  --bg-deep-space: #0B0F19;
  --bg-card-dark: #121826;
  --color-violet: #8B5CF6;
  --color-violet-glow: rgba(139, 92, 246, 0.15);
  --color-cyan: #06B6D4;
  --color-cyan-glow: rgba(6, 182, 212, 0.15);
  --color-emerald: #10B981;
  --color-emerald-glow: rgba(16, 185, 129, 0.15);
  --color-text-bright: #F8FAFC;
  --color-text-normal: #E2E8F0;
  --color-text-muted: #94A3B8;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
}

/* Global Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep-space);
  color: var(--color-text-normal);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--color-text-bright);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* 1. Typography & Accent Glows */
.glow-violet {
  color: #C084FC;
  text-shadow: 0 0 25px rgba(192, 132, 252, 0.4);
}

.glow-cyan {
  color: #22D3EE;
  text-shadow: 0 0 25px rgba(34, 211, 238, 0.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-emerald {
  background-color: var(--color-emerald-glow);
  color: #34D399;
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-violet {
  background-color: var(--color-violet-glow);
  color: #C084FC;
  border: 1px solid rgba(192, 132, 252, 0.2);
}

.badge-cyan {
  background-color: var(--color-cyan-glow);
  color: #22D3EE;
  border: 1px solid rgba(34, 211, 238, 0.2);
}

/* 2. Container & Layout Grid */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-cols-1 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
}

/* Brand Positioning Bar */
.brand-positioning-bar {
  background-color: rgba(18, 24, 38, 0.8);
  border-bottom: 1px solid var(--border-light);
  color: var(--color-text-normal);
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
  text-align: center;
  backdrop-filter: blur(10px);
}
.brand-positioning-bar strong {
  color: var(--color-text-bright);
}
.brand-positioning-bar span {
  color: var(--color-cyan);
}

/* 3. Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(11, 15, 25, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-text-bright);
  text-decoration: none;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-dot {
  width: 6px;
  height: 6px;
  background-color: var(--color-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--color-cyan);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-bright);
}

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background-color: var(--color-violet);
  color: var(--color-text-bright);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

.btn-primary:hover {
  background-color: #7C3AED;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--color-text-bright);
  border-color: var(--border-light);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.btn-emerald {
  background-color: var(--color-emerald);
  color: var(--color-text-bright);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}

.btn-emerald:hover {
  background-color: #059669;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
}

/* 5. Sections & Cards */
.section {
  padding: 5rem 0;
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 3rem;
}

@media (min-width: 992px) {
  .hero-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}

.hero-title {
  font-size: 2.75rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hero-title { font-size: 3.5rem; }
}

.hero-description {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 550px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Premium Glassmorphic Cards */
.glass-card {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 1rem;
  padding: 2rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.glass-card-violet::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-violet), transparent);
}

.glass-card-cyan::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-cyan), transparent);
}

.glass-card-emerald::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-emerald), transparent);
}

.feature-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-icon-violet {
  background-color: var(--color-violet-glow);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.feature-icon-cyan {
  background-color: var(--color-cyan-glow);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.feature-icon-emerald {
  background-color: var(--color-emerald-glow);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* 6. Before / After Visual Comparison Slider */
.slider-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background-color: #1E293B;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.slider-placeholder-before {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.slider-after-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%; /* JS Controlled */
  overflow: hidden;
  border-right: 2px solid transparent; /* JS handles border visual */
  z-index: 2;
}

.slider-placeholder-after {
  height: 100%;
  background: linear-gradient(135deg, #312E81 0%, #1E1B4B 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.slider-before-label, .slider-after-label {
  position: absolute;
  bottom: 1rem;
  background-color: rgba(11, 15, 25, 0.85);
  border: 1px solid var(--border-light);
  color: var(--color-text-bright);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 0.25rem;
  text-transform: uppercase;
  z-index: 10;
  transition: opacity 0.15s ease;
}

.slider-before-label { right: 1rem; }
.slider-after-label { left: 1rem; }

.slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--color-cyan);
  left: 50%; /* JS Controlled */
  z-index: 15;
  box-shadow: 0 0 10px var(--color-cyan);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%; /* JS Controlled */
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.75), 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 16;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.slider-handle svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-deep-space);
}

/* 7. Interactive Website Dashboard Sandbox Simulator */
.sandbox-container {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 1.25rem;
  padding: 1.5rem;
  margin-top: 2rem;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
}

.sandbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.sandbox-title-desc h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

.sandbox-title-desc p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.sandbox-controls {
  display: flex;
  gap: 0.5rem;
}

.sandbox-workspace {
  background-color: #0B0F19;
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1rem;
  min-height: 280px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .sandbox-workspace {
    grid-template-columns: 1fr 1fr;
  }
}

.sandbox-zone {
  border: 2px dashed rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 1rem;
  background-color: rgba(255, 255, 255, 0.01);
  transition: all 0.2s ease;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sandbox-zone-active {
  border-color: var(--color-violet);
  background-color: var(--color-violet-glow);
}

.sandbox-zone-dock {
  border-color: rgba(6, 182, 212, 0.1);
  background-color: rgba(6, 182, 212, 0.01);
}

.sandbox-zone-dock.sandbox-zone-active {
  border-color: var(--color-cyan);
  background-color: var(--color-cyan-glow);
}

.sandbox-zone-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding-bottom: 0.25rem;
  margin-bottom: 0.25rem;
}

.sandbox-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-light);
  cursor: grab;
  transition: all 0.2s ease;
}

.sandbox-item:active {
  cursor: grabbing;
}

.sandbox-item-dragging {
  opacity: 0.5;
  border-style: dashed;
}

.sandbox-item-icon {
  font-size: 1.5rem;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  background-color: rgba(255, 255, 255, 0.05);
}

.sandbox-item-details {
  flex-grow: 1;
}

.sandbox-item-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-bright);
}

.sandbox-item-meta {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.sandbox-item-actions {
  display: flex;
  gap: 0.25rem;
}

.sandbox-item-btn {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--color-text-bright);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sandbox-item-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--border-hover);
}

.sandbox-item-btn-dock {
  background-color: var(--color-cyan-glow);
  color: #22D3EE;
  border-color: rgba(6, 182, 212, 0.2);
}

.sandbox-item-btn-dock:hover {
  background-color: var(--color-cyan);
  color: var(--bg-deep-space);
}

.sandbox-item-btn-undock {
  background-color: rgba(245, 158, 11, 0.1);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.2);
}

.sandbox-item-btn-delete:hover {
  background-color: rgba(239, 68, 68, 0.2);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.3);
}

.sandbox-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.sandbox-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sandbox-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--color-text-bright);
}

.sandbox-stat-lbl {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* 8. Logger Console Widget */
.logger-console {
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #080C14;
  margin-top: 1.5rem;
  box-shadow: inset 0 4px 10px rgba(0,0,0,0.5);
}

.logger-header {
  background-color: rgba(18, 24, 38, 0.5);
  border-bottom: 1px solid var(--border-light);
  padding: 0.5rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-text-muted);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.logger-dot-red, .logger-dot-yellow, .logger-dot-green {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}
.logger-dot-red { background-color: #EF4444; }
.logger-dot-yellow { background-color: #F59E0B; }
.logger-dot-green { background-color: #10B981; }

.logger-body {
  padding: 1rem;
  font-family: monospace;
  font-size: 0.8rem;
  max-height: 120px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.logger-entry {
  display: flex;
  gap: 0.75rem;
  line-height: 1.4;
}

.logger-time {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

.logger-msg-info { color: #94A3B8; }
.logger-msg-success { color: #34D399; }
.logger-msg-warn { color: #FBBF24; }

/* 9. FAQ Accordions */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-item {
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  background-color: var(--bg-card-dark);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover, .faq-item.active {
  border-color: var(--border-hover);
}

.faq-trigger {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--color-text-bright);
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.faq-icon {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--color-cyan);
}

.faq-panel {
  max-height: 0; /* JS Expanded */
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-content {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 10. Footer Section */
footer {
  border-top: 1px solid var(--border-light);
  background-color: #070B13;
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr repeat(3, 1fr);
  }
}

.footer-logo-side p {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-nav-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-bright);
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
}

.footer-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-nav-link:hover {
  color: var(--color-text-bright);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.75rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: color 0.2s ease;
}

.footer-bottom-link:hover {
  color: var(--color-text-bright);
}

/* 11. Float Toasts */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--color-cyan);
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  color: var(--color-text-bright);
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon {
  font-size: 1.1rem;
  color: var(--color-cyan);
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 12. Vertical Timelines (Changelog Specific) */
.timeline-container {
  max-width: 800px;
  margin: 3rem auto 0;
  position: relative;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.5rem;
  width: 2px;
  background-color: var(--border-light);
}

.timeline-item {
  position: relative;
  padding-left: 4rem;
  margin-bottom: 3.5rem;
}

.timeline-badge {
  position: absolute;
  left: 0.5rem;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--bg-deep-space);
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: border-color 0.2s ease;
}

.timeline-item:hover .timeline-badge {
  border-color: var(--color-cyan);
  box-shadow: 0 0 10px var(--color-cyan-glow);
}

.timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-text-muted);
}

.timeline-item:hover .timeline-dot {
  background-color: var(--color-cyan);
}

.timeline-meta {
  font-size: 0.8rem;
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.timeline-card {
  background-color: var(--bg-card-dark);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.timeline-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}
