:root {
  --bg-dark: #0B0F19;
  --bg-card: #111827;
  --bg-hover: #1F2937;
  --primary: #6366F1;
  --primary-light: #818CF8;
  --accent: #38BDF8;
  --text: #F9FAFB;
  --text-muted: #9CA3AF;
  --border: rgba(255, 255, 255, 0.08);
}

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Navigation Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(11, 15, 25, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-text { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.logo-text .highlight { color: var(--accent); }

.nav-links { display: flex; gap: 24px; }
.nav-item { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
.nav-item:hover, .nav-item.active { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 16px; }

/* Language Switcher */
.lang-selector { position: relative; }
.lang-btn {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 8px 12px; border-radius: 8px;
  cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 0.85rem;
}
.lang-dropdown {
  position: absolute; top: 110%; right: 0; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px; padding: 6px;
  display: none; flex-direction: column; gap: 4px; min-width: 130px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.lang-dropdown.show { display: flex; }
.lang-option { padding: 8px 12px; border-radius: 6px; font-size: 0.85rem; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.lang-option:hover { background: var(--bg-hover); }

/* Buttons */
.btn-primary, .btn-hero-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white; padding: 10px 20px; border-radius: 8px;
  border: none; cursor: pointer; font-weight: 600; font-size: 0.9rem; text-decoration: none;
  display: inline-block;
}
.btn-hero-primary { padding: 14px 28px; font-size: 1rem; }
.btn-hero-secondary {
  background: var(--bg-card); border: 1px solid var(--border);
  color: var(--text); padding: 14px 28px; border-radius: 8px;
  text-decoration: none; font-weight: 600; display: inline-block;
}

/* Sections */
.page-section { display: none; padding: 60px 0; }
.page-section.active { display: block; }

/* Hero */
.hero { text-align: center; padding-top: 30px; }
.badge-tag {
  display: inline-block; background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(129, 140, 248, 0.3); color: var(--primary-light);
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 24px;
}
h1 {
  font-size: 3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px;
  background: linear-gradient(to right, #FFFFFF, #94A3B8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 750px; margin: 0 auto 36px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-bottom: 40px; }

/* Interactive Demo Dashboard Component */
.demo-dashboard {
  display: grid; grid-template-columns: 280px 1fr;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; text-align: left; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5); margin-top: 20px;
}
.dash-sidebar { background: rgba(0,0,0,0.25); padding: 20px; border-right: 1px solid var(--border); }
.dash-file-info { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; }
.file-icon { font-size: 1.8rem; }
.dash-file-info p { font-size: 0.75rem; color: var(--text-muted); }

.dash-metrics { display: flex; flex-direction: column; gap: 12px; }
.metric-card { background: var(--bg-dark); padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
.m-label { display: block; font-size: 0.75rem; color: var(--text-muted); }
.m-value { font-weight: 700; font-size: 0.95rem; margin-top: 4px; display: block; }
.m-value.warn { color: #FBBF24; }

.dash-main { display: flex; flex-direction: column; }
.dash-tabs { display: flex; background: rgba(0,0,0,0.3); border-bottom: 1px solid var(--border); }
.dash-tab {
  background: none; border: none; color: var(--text-muted);
  padding: 14px 20px; font-size: 0.85rem; font-weight: 600; cursor: pointer;
}
.dash-tab.active { color: var(--text); border-bottom: 2px solid var(--accent); background: var(--bg-card); }

.dash-content { padding: 24px; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

.issue-item { display: flex; gap: 16px; padding: 14px; border-radius: 10px; margin-bottom: 12px; }
.issue-item.critical { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); }
.issue-item.warning { background: rgba(245, 158, 11, 0.1); border: 1px solid rgba(245, 158, 11, 0.3); }
.issue-item.success { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); }

.badge-issue { font-size: 0.65rem; font-weight: 800; padding: 4px 8px; border-radius: 4px; height: fit-content; }
.critical .badge-issue { background: #EF4444; color: white; }
.warning .badge-issue { background: #F59E0B; color: black; }
.success .badge-issue { background: #10B981; color: white; }

.code-view { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; line-height: 1.5; }
.c-purple { color: #A855F7; } .c-blue { color: #38BDF8; } .c-green { color: #34D399; } .c-yellow { color: #FBBF24; }

.dash-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.dash-table th, .dash-table td { padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.dash-table th { color: var(--text-muted); font-weight: 600; }
.text-green { color: #34D399; font-weight: 600; }
.text-yellow { color: #FBBF24; font-weight: 600; }

/* Grid Systems */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-header h2 { font-size: 2rem; margin-bottom: 8px; }
.section-header p { color: var(--text-muted); }

.card, .price-card, .doc-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 28px; }
.card-icon { font-size: 2rem; margin-bottom: 16px; }

/* Pricing */
.price-card { position: relative; }
.price-card.featured { border-color: var(--primary); }
.badge-featured { position: absolute; top: -12px; right: 20px; background: var(--primary); font-size: 0.75rem; padding: 4px 12px; border-radius: 10px; font-weight: 700; }
.price { font-size: 2.2rem; font-weight: 800; margin: 16px 0; }
.price span { font-size: 0.9rem; color: var(--text-muted); font-weight: 400; }
.price-list { list-style: none; margin: 24px 0; }
.price-list li { margin-bottom: 10px; color: var(--text-muted); font-size: 0.9rem; }
.price-list li::before { content: "✓ "; color: var(--accent); }
.btn-card { display: block; width: 100%; text-align: center; padding: 12px; background: var(--bg-hover); color: var(--text); border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.btn-card.primary { background: var(--primary); }

/* Contact Section */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; background: var(--bg-card); border: 1px solid var(--border); padding: 40px; border-radius: 16px; }
.contact-details { margin-top: 30px; display: flex; flex-direction: column; gap: 20px; }
.contact-item { display: flex; gap: 16px; align-items: center; }
.c-link { color: var(--accent); text-decoration: none; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.85rem; color: var(--text-muted); }
.form-group input, .form-group textarea { background: var(--bg-dark); border: 1px solid var(--border); color: white; padding: 12px; border-radius: 8px; }

/* Modals */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: none; justify-content: center; align-items: center; z-index: 1000;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 32px; border-radius: 16px; max-width: 440px; width: 90%; position: relative;
}
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; }
.modal-form { margin-top: 20px; display: flex; flex-direction: column; gap: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 30px 0; margin-top: 80px; text-align: center; color: var(--text-muted); font-size: 0.85rem; }
.footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 850px) {
  .demo-dashboard { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  h1 { font-size: 2.1rem; }
}