/* HelixAI Design System — theme.css
   Always dark. helixai.media palette. */

/* ─── Design Tokens (permanent dark palette) ─── */
:root {
  --purple:        #a855f7;
  --purple-bright: #c084fc;
  --cyan:          #22d3ee;
  --teal:          #2dd4bf;
  --bg:            #0a0a14;
  --bg-alt:        #13131f;
  --bg-card:       #1a1a2e;
  --bg-elev:       #22223a;
  --text-dark:     #f5f5fa;
  --text-body:     #c0c0d0;
  --text-muted:    #8a8aa0;
  --border:        #2a2a3e;
  --border-light:  #353550;
  --red:           #ef4444;

  /* Legacy aliases (used by base.html and app UI) */
  --bg-secondary:  #13131f;
  --bg-tint:       #1a1a2e;
  --nav-bg:        rgba(10, 10, 20, 0.85);
  --card-shadow:   0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ─── Base ─── */
body {
  background:  #0a0a14;
  color:       #c0c0d0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size:   16px;
  line-height: 1.7;
}

/* ─── Navigation / Header ─── */
nav, .header {
  background:    rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 9000;
}
nav a, .header a {
  color: #c0c0d0;
}
nav a:hover, .header a:hover {
  color: #c084fc;
}

/* Login / outlined button */
.btn-login, nav a.btn-secondary {
  border:        1.5px solid var(--purple);
  color:         var(--purple);
  background:    transparent;
  border-radius: 6px;
  padding:       6px 16px;
}

/* Get Started / gradient button */
.btn-primary, nav a.btn-primary, button[type="submit"] {
  background:    linear-gradient(135deg, #a855f7, #22d3ee);
  color:         #ffffff;
  border:        none;
  border-radius: 7px;
  padding:       11px 24px;
  font-weight:   500;
  cursor:        pointer;
}

/* Ghost / secondary */
.btn-secondary, .btn-ghost {
  border:        1.5px solid var(--cyan);
  color:         var(--cyan);
  background:    transparent;
  border-radius: 7px;
  padding:       11px 24px;
  font-weight:   500;
  cursor:        pointer;
}

/* ─── Cards & Panels ─── */
.card, .panel, .feature-card, .pricing-card, .step,
.stat-card, .feature-section {
  background:    var(--bg-card);
  border:        1px solid var(--border-light);
  border-radius: 10px;
  box-shadow:    var(--card-shadow);
}

/* ─── Section Backgrounds ─── */
.section-alt { background: var(--bg-alt); }
section:nth-child(even) { background: var(--bg-alt); }
section:nth-child(odd)  { background: var(--bg); }

/* ─── Form Inputs ─── */
input, textarea, select, .form-control {
  background:    var(--bg-card);
  border:        1px solid var(--border);
  color:         var(--text-dark);
  border-radius: 7px;
  padding:       10px 14px;
  font-family:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
input:focus, textarea:focus, select:focus, .form-control:focus {
  border-color: var(--purple);
  box-shadow:   0 0 0 3px rgba(168, 85, 247, 0.15);
  outline:      none;
}

/* ─── Labels ─── */
label, .form-group label {
  color: var(--text-body);
}

/* ─── Comparison Table ─── */
.compare-col-helix th, .table-helix-header {
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  color:      #ffffff;
}
.check, .feature-check { color: var(--teal); font-weight: 600; }
.cross, .feature-cross { color: var(--text-muted); }

/* ─── CTA Banners ─── */
.cta-section, .cta-banner {
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  color:      #ffffff;
}
.cta-section .btn-primary, .cta-banner .btn-primary {
  background: #ffffff;
  color:      var(--purple);
}
.cta-section .btn-secondary, .cta-banner .btn-secondary {
  border:     1.5px solid rgba(255, 255, 255, 0.4);
  color:      #ffffff;
  background: transparent;
}

/* ─── Footer ─── */
footer {
  background:  #0a0a14;
  color:       var(--text-muted);
  border-top:  1px solid var(--border);
}
footer img.logo {
  filter:  brightness(0) invert(1);
  opacity: 0.55;
}
footer a { color: var(--text-body); }
footer a:hover { color: #c084fc; }

/* ─── Pricing Cards ─── */
.pricing-card.featured, .pricing-card.best-value {
  border: 2px solid var(--purple);
}
.pricing-card .price-amount {
  color:          var(--purple);
  font-weight:    200;
  font-size:      3rem;
  letter-spacing: -0.04em;
}
.pricing-card .feature-item::before { color: var(--teal); }

/* ─── Auth Pages ─── */
.auth-page {
  min-height:      100vh;
  background:      var(--bg);
  display:         flex;
  align-items:     center;
  justify-content: center;
}
.auth-card {
  background:    var(--bg-card);
  border:        1px solid var(--border-light);
  box-shadow:    var(--card-shadow);
  border-radius: 12px;
  padding:       2.5rem;
  max-width:     420px;
  width:         100%;
}

/* ─── Blog / Article ─── */
.article-body, .blog-content {
  color:       var(--text-body);
  line-height: 1.8;
}
.article-body a, .blog-content a { color: var(--purple); }
.article-body a:hover, .blog-content a:hover { color: var(--cyan); }
code, pre {
  background:    var(--bg-elev);
  border:        1px solid var(--border-light);
  border-radius: 6px;
}

/* ─── Alerts ─── */
.alert-error {
  background: rgba(239, 68, 68, 0.15);
  color:      #fca5a5;
  border-left-color: #ef4444;
}
.alert-success {
  background: rgba(16, 185, 129, 0.15);
  color:      #6ee7b7;
  border-left-color: #10b981;
}

/* ─── Badges ─── */
.badge-success {
  background: rgba(16, 185, 129, 0.2);
  color:      #6ee7b7;
}
.badge-warning {
  background: rgba(245, 158, 11, 0.2);
  color:      #fcd34d;
}
.badge-danger {
  background: rgba(239, 68, 68, 0.2);
  color:      #fca5a5;
}
.badge-info {
  background: rgba(59, 130, 246, 0.2);
  color:      #93c5fd;
}

/* ─── Quick Actions Bar ─── */
.quick-actions-bar {
  background:    #13131f;
  border-bottom: 1px solid var(--border);
}
.quick-action.secondary {
  background: var(--bg-elev);
  color:      var(--text-body);
}

/* ─── Modal ─── */
.helix-modal {
  background:   var(--bg-alt);
  border:       1px solid var(--border);
}
.helix-modal-header,
.helix-modal-footer {
  border-color: var(--border);
}
.helix-modal-title {
  color: var(--text-dark);
}
.helix-modal-body {
  color: var(--text-body);
}
.helix-modal-btn-cancel {
  background: var(--bg-elev);
  color:      var(--text-body);
}

/* ─── Items list ─── */
.item:hover {
  background: var(--bg-elev);
}
.item,
.section-header {
  border-color: var(--border);
}
.item-info h3,
.section-header h2 {
  color: var(--text-dark);
}
.item-meta {
  color: var(--text-muted);
}

/* ─── Stat card numbers ─── */
.stat-card .number {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(135deg, #a855f7, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
}
.stat-card h3 {
  color: var(--text-muted);
}

/* ─── Nav overrides (always dark) ─── */
nav, .nav {
  background: rgba(10, 10, 20, 0.85) !important;
  backdrop-filter: blur(12px) !important;
}

/* ─── Cards — always dark ─── */
[class*="card"],
.step-card,
.feature-card,
.feature-box,
.pricing-card,
.stat-card {
  background:   #1a1a2e !important;
  border-color: #353550 !important;
  color:        #f5f5fa !important;
}
[class*="card"] p,
[class*="card"] h1,
[class*="card"] h2,
[class*="card"] h3,
[class*="card"] h4,
.step-card p,
.step-card h3,
.feature-card p,
.feature-card h3 {
  color: #f5f5fa !important;
}

/* ─── Section transparency — lets canvas helix show through ─── */
section,
.hero,
main,
.features-section,
.steps-section,
.testimonials,
.faq-section {
  background: rgba(10, 10, 20, 0.70) !important;
}

/* ─── z-index: canvas=0 (behind everything), content=1+ ─── */
body > *:not(canvas),
.header, nav, .nav, .quick-actions-bar,
main, section, footer, .container, .content-wrapper,
.hero, .features, .steps-section, .testimonials, .faq {
  position: relative;
  z-index:  1;
}

/* Nav and modals always on top */
nav, .nav, .quick-actions-bar,
.helix-modal-overlay, .helix-toast, #helix-modal-overlay {
  z-index: 9000;
}
