/* ========================================
   Steadfast Cloud - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a25;
  --accent-primary: #00d4ff;
  --accent-secondary: #7c3aed;
  --accent-gradient: linear-gradient(135deg, #00d4ff 0%, #7c3aed 100%);
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  --border-color: #2a2a3a;
  --success: #10b981;
  --error: #ef4444;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition: all 0.3s ease;
  --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 212, 255, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--text-primary);
}

img {
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

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

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
}

.navbar.scrolled {
  border-bottom-color: var(--border-color);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo-img {
  height: 150px;
  width: auto;
}

.footer-brand .logo-img {
  height: 130px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--bg-primary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-badge span {
  color: var(--accent-primary);
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  margin-top: 4rem;
  position: relative;
}

.hero-visual img {
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

/* Stats Section */
.stats {
  padding: 4rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 3rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-item p {
  color: var(--text-muted);
  margin: 0;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-header p {
  font-size: 1.125rem;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-tertiary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.feature-card h4 {
  margin-bottom: 0.75rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
}

/* How It Works */
.how-it-works {
  background: var(--bg-secondary);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border-color);
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 80px;
  height: 80px;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin: 0 auto 1.5rem;
  position: relative;
  z-index: 1;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  display: flex;
  gap: 1.5rem;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--accent-primary);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
}

.service-content h4 {
  margin-bottom: 0.75rem;
}

.service-content p {
  margin-bottom: 1rem;
}

.service-content ul {
  list-style: none;
}

.service-content li {
  color: var(--text-secondary);
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  font-size: 0.9375rem;
}

.service-content li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: start;
}

.pricing-card {
  padding: 2.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--accent-primary);
  position: relative;
  transform: scale(1.05);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  color: var(--bg-primary);
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.pricing-card h4 {
  margin-bottom: 0.5rem;
}

.pricing-card .price {
  font-size: 3rem;
  font-weight: 700;
  margin: 1rem 0;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-card .description {
  font-size: 0.9375rem;
  margin-bottom: 2rem;
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content p {
  font-size: 1.125rem;
}

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-member img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 2px solid var(--border-color);
}

.team-member h4 {
  margin-bottom: 0.25rem;
}

.team-member p {
  color: var(--accent-primary);
  font-size: 0.875rem;
  margin: 0;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  padding: 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  text-align: center;
}

.value-card h4 {
  margin: 1rem 0 0.5rem;
}

.value-card p {
  margin: 0;
  font-size: 0.9375rem;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h3 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-method-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-method span {
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-secondary);
  padding: 2.5rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-status {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
}

.form-status.success {
  display: block;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--success);
  color: var(--success);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--error);
  color: var(--error);
}

/* Testimonials */
.testimonials {
  background: var(--bg-secondary);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  padding: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.testimonial-author h5 {
  margin: 0;
  font-size: 1rem;
}

.testimonial-author span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* CTA */
.cta {
  text-align: center;
  padding: 6rem 0;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta h2 {
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Footer */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.footer-links h5 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.footer-links a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.social-links a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* Page Headers */
.page-header {
  padding: 10rem 0 4rem;
  text-align: center;
  background: var(--bg-secondary);
  position: relative;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
}

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

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

/* Responsive */
@media (max-width: 1024px) {
  .features-grid,
  .pricing-grid,
  .testimonials-grid,
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    transform: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 1.5rem;
    transition: var(--transition);
    border-left: 1px solid var(--border-color);
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .features-grid,
  .services-grid,
  .pricing-grid,
  .testimonials-grid,
  .values-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .steps::before {
    display: none;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

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

  .service-card {
    flex-direction: column;
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* Workflow Visualization */
.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  position: relative;
}

.workflow::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 12.5%;
  right: 12.5%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  z-index: 0;
}

.workflow-phase {
  position: relative;
  z-index: 1;
}

.phase-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.phase-number {
  width: 50px;
  height: 50px;
  background: var(--accent-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg-primary);
  margin: 0 auto 0.75rem;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.phase-header h3 {
  font-size: 1.125rem;
  margin: 0;
  color: var(--text-primary);
}

.phase-connector {
  display: none;
}

.phase-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.phase-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.25rem;
  transition: var(--transition);
}

.phase-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
}

.phase-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.phase-card h5 {
  font-size: 0.9375rem;
  margin: 0 0 0.5rem 0;
  color: var(--text-primary);
}

.phase-card p {
  font-size: 0.8125rem;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.phase-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.phase-card ul li {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.phase-card ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-primary);
}

.phase-card.tall {
  flex: 1;
}

@media (max-width: 1024px) {
  .workflow {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .workflow::before {
    display: none;
  }

  .workflow-phase:nth-child(1) .phase-number,
  .workflow-phase:nth-child(2) .phase-number {
    margin-bottom: 0.75rem;
  }

  .workflow-phase:nth-child(1)::after,
  .workflow-phase:nth-child(3)::after {
    content: '';
    position: absolute;
    top: 25px;
    right: -1rem;
    width: 2rem;
    height: 3px;
    background: var(--accent-gradient);
  }
}

@media (max-width: 768px) {
  .workflow {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .workflow-phase::after {
    display: none !important;
  }

  .phase-connector {
    display: block;
    width: 3px;
    height: 2rem;
    background: var(--accent-gradient);
    margin: 0 auto;
  }

  .workflow-phase:last-child .phase-connector {
    display: none;
  }
}

/* Dashboard Preview */
.dashboard-preview {
  background: #111217;
  border: 1px solid #343b40;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.dashboard-preview:hover {
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.dashboard-preview:hover .dash-overlay {
  opacity: 1;
}

.dash-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.dash-overlay span {
  background: var(--accent-gradient);
  color: var(--bg-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
}

.dash-header {
  background: #181b1f;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #343b40;
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 14px;
}

.dash-logo {
  width: 24px;
  height: 24px;
  background: var(--accent-gradient);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--bg-primary);
}

.dash-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
}

.dash-badge {
  padding: 3px 8px;
  border-radius: 4px;
  background: #2a2d32;
  color: #8e8e8e;
}

.dash-badge.live {
  background: rgba(115, 191, 105, 0.15);
  color: #73bf69;
}

.dash-time {
  color: #6e6e6e;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: #343b40;
  padding: 1px;
}

.dash-stat {
  background: #181b1f;
  padding: 16px 12px;
  text-align: center;
}

.dash-stat.status {
  background: rgba(242, 204, 12, 0.1);
}

.dash-stat-label {
  font-size: 10px;
  color: #8e8e8e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.dash-stat-value {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.dash-stat-value.green { color: #73bf69; }
.dash-stat-value.yellow { color: #f2cc0c; }
.dash-stat-value.red { color: #f2495c; }
.dash-stat-value.blue { color: #3871dc; }

.dash-stat-sub {
  font-size: 10px;
  color: #6e6e6e;
}

.dash-charts {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1px;
  background: #343b40;
  padding: 1px 1px 0 1px;
}

.dash-chart {
  background: #181b1f;
  padding: 12px;
}

.dash-chart.wide {
  grid-column: span 1;
}

.dash-chart-title {
  font-size: 11px;
  color: #8e8e8e;
  margin-bottom: 12px;
}

.dash-gauge {
  position: relative;
  width: 100px;
  margin: 0 auto;
}

.dash-gauge svg {
  width: 100%;
  transform: rotate(180deg);
}

.dash-gauge-value {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  font-weight: 600;
  color: #73bf69;
}

.dash-lines {
  height: 80px;
  position: relative;
  background:
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(52, 59, 64, 0.3) 40px, rgba(52, 59, 64, 0.3) 41px),
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(52, 59, 64, 0.3) 20px, rgba(52, 59, 64, 0.3) 21px);
}

.dash-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
}

.dash-line.p50 {
  bottom: 60%;
  background: #73bf69;
  clip-path: polygon(0% 0%, 10% 100%, 25% 30%, 40% 70%, 55% 20%, 70% 50%, 85% 40%, 100% 60%);
}

.dash-line.p90 {
  bottom: 45%;
  background: #f2cc0c;
  clip-path: polygon(0% 50%, 15% 20%, 30% 80%, 45% 30%, 60% 60%, 75% 10%, 90% 50%, 100% 30%);
}

.dash-line.p99 {
  bottom: 30%;
  background: #ff9830;
  clip-path: polygon(0% 30%, 12% 70%, 28% 20%, 42% 60%, 58% 40%, 72% 80%, 88% 30%, 100% 50%);
}

.dash-threshold {
  position: absolute;
  bottom: 20%;
  left: 0;
  right: 0;
  border-top: 2px dashed #f2495c;
}

.dash-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 10px;
  color: #8e8e8e;
}

.dash-legend span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.dash-legend i {
  width: 12px;
  height: 2px;
  border-radius: 1px;
}

.dash-table {
  background: #181b1f;
  font-size: 11px;
}

.dash-table-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 8px 16px;
  background: #22252a;
  color: #8e8e8e;
  font-weight: 500;
  border-top: 1px solid #343b40;
}

.dash-table-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  padding: 8px 16px;
  border-top: 1px solid #2a2d32;
}

.dash-table-row .green { color: #73bf69; }
.dash-table-row .yellow { color: #f2cc0c; }
.dash-table-row .red { color: #f2495c; }

.dash-table-row .status-ok { color: #73bf69; }
.dash-table-row .status-warn { color: #f2cc0c; }
.dash-table-row .status-bad { color: #f2495c; }

@media (max-width: 768px) {
  .dash-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .dash-charts {
    grid-template-columns: 1fr;
  }

  .dash-stat-value {
    font-size: 18px;
  }
}
