:root {
      --brand-primary: #F4D03F;
      --brand-primary-dark: #D4AC0D;
      --brand-primary-light: #F7DC6F;
      --brand-primary-rgb: 244, 208, 63;
      --brand-secondary: #1B2631;
      --brand-secondary-dark: #0D1117;
      --brand-secondary-light: #2C3E50;
      --brand-secondary-rgb: 27, 38, 49;
      --brand-accent-light: #F8F9FA;
      --brand-accent-medium: #6C757D;
      --brand-accent-dark: #495057;
      --brand-accent-rgb: 248, 249, 250;
      --brand-success: #28A745;
      --brand-success-light: #D4EDD9;
      --brand-warning: #FD7E14;
      --brand-warning-light: #FFF3CD;
      --brand-danger: #DC3545;
      --brand-danger-light: #F8D7DA;
      --brand-info: #17A2B8;
      --brand-info-light: #D1ECF1;
      --text-primary-light: var(--brand-secondary);
      --text-primary-dark: var(--brand-primary);
      --bg-primary-light: #FFFFFF;
      --bg-primary-dark: var(--brand-secondary);
      --border-primary-light: #DEE2E6;
      --border-primary-dark: var(--brand-accent-dark);
    }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    body {
      font-family: 'Maven Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      line-height: 1.6;
      color: var(--text-primary-light);
      background: var(--bg-primary-light);
    }
    h1, h2, h3, h4, h5, h6 { font-weight: 700; font-family: 'Maven Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;}
    .container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
    a { color: inherit; }
    header {
      background: rgba(27, 38, 49, 0.98);
      position: fixed; width: 100%; top: 0; z-index: 1000; transition: all 0.3s ease;
      border-bottom: 1px solid rgba(255,255,255,0.06);
      backdrop-filter: saturate(150%) blur(6px);
    }
    .header-content { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0; }
    .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
    .logo-img { height: 75px; width: auto; display: block; }
    .logo-text { font-size: 1.2rem; font-weight: 800; color: var(--brand-primary); letter-spacing: 0.4px; }
    .nav-actions { display: flex; gap: 0.75rem; align-items: center; }
    .lang-switcher { display: flex; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 4px; border: 1px solid rgba(255,255,255,0.08); }
    .lang-btn { padding: 6px 10px; border: none; background: transparent; cursor: pointer; border-radius: 6px; font-size: 0.9rem; color: #e5e7eb; transition: all 0.2s ease; }
    .lang-btn:hover { background: rgba(255,255,255,0.08); }
    .lang-btn.active { background: var(--brand-primary); color: #111827; font-weight: 700; }
    .btn {
      padding: 12px 22px; border: none; border-radius: 10px; cursor: pointer; font-size: 1rem; font-weight: 700;
      text-decoration: none; display: inline-block; text-align: center; transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
      position: relative; overflow: hidden; letter-spacing: 0.2px; will-change: transform;
    }
    .btn:active { transform: translateY(1px); }
    .btn-primary {
      background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
      color: #111827; box-shadow: 0 8px 24px rgba(var(--brand-primary-rgb), 0.25); border: 1px solid rgba(0,0,0,0.05);
    }
    .btn-primary:hover { box-shadow: 0 10px 28px rgba(var(--brand-primary-rgb), 0.34); filter: brightness(1.02); transform: translateY(-1px); }
    .btn-secondary { background: transparent; color: var(--brand-primary); border: 2px solid var(--brand-primary); }
    .btn-secondary:hover { background: var(--brand-primary); color: #111827; }
    .btn-app { background: var(--brand-primary); color: #111827; border: 1px solid rgba(0,0,0,0.06); padding: 10px 16px; font-size: 0.95rem; }
    .btn-app:hover { filter: brightness(1.02); transform: translateY(-1px); }
    .hero {
      background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-light));
      padding: 120px 0 80px; text-align: center; position: relative; overflow: hidden; color: #e5e7eb;
    }
    .hero::before { content: ''; position: absolute; inset: 0;
      background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0), radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
      background-size: 24px 24px, 64px 64px; pointer-events: none; }
    .hero-content { position: relative; z-index: 1; }
    .hero h1 { font-size: 3.2rem; font-weight: 800; margin-bottom: 1.2rem; color: #fff; line-height: 1.1; letter-spacing: 0.2px; }
    .hero p { font-size: 1.2rem; color: #cbd5e1; margin-bottom: 2.2rem; max-width: 760px; margin-left: auto; margin-right: auto; }
    .hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
    .hero-visual { max-width: 880px; margin: 0 auto; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
      border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.25); padding: 2rem; position: relative; }
    .chart-mockup { width: 100%; height: 300px; background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)); border-radius: 10px; position: relative; overflow: hidden; }
    .chart-line { position: absolute; top: 50%; left: 8%; width: 84%; height: 3px; background: linear-gradient(90deg, var(--brand-primary), #10b981, #f59e0b); border-radius: 2px; transform: translateY(-50%); opacity: 0.9; }
    .anomaly-dot { position: absolute; width: 12px; height: 12px; background: var(--brand-danger); border-radius: 50%; top: 45%; left: 60%;
      box-shadow: 0 0 0 0 rgba(220,53,69,0.6); animation: pulse 2s infinite; }
    @keyframes pulse { 0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(220,53,69,0.6); } 70% { transform: scale(1.15); box-shadow: 0 0 0 12px rgba(220,53,69,0); } 100% { transform: scale(1); } }
    .section-header { text-align: center; margin-bottom: 3rem; }
    .section-header h2 { font-size: 2.3rem; color: var(--brand-secondary); margin-bottom: 0.6rem; }
    .section-header p { font-size: 1.1rem; color: var(--brand-accent-dark); max-width: 720px; margin: 0 auto; }
    .section-header h3 { font-size: 1.25rem; color: var(--brand-accent-dark); }
    .problem-solution { padding: 80px 0; background: var(--bg-primary-light); }
    .features { padding: 80px 0; background: var(--brand-accent-light); }
    .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.6rem; margin-top: 2rem; }
    .feature-card { background: #fff; padding: 1.7rem; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,0.05); transition: transform 0.2s ease, box-shadow 0.2s ease; border: 1px solid var(--border-primary-light); }
    .feature-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,0.08); }
    .feature-card h3 { font-size: 1.2rem; margin: 0.6rem 0; color: var(--brand-secondary); }
    .feature-card p { color: var(--brand-accent-dark); }
    .how-it-works { padding: 80px 0; background: #fff; }
    .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 1.6rem; }
    .step { text-align: center; }
    .step-number { width: 60px; height: 60px; margin: 0 auto 0.8rem; background: var(--brand-primary); color: #111827; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; font-weight: 800; border: 2px solid rgba(0,0,0,0.06); }
    .step h3 { color: var(--brand-secondary); }
    .step p { color: var(--brand-accent-dark); }
    .pricing { padding: 80px 0; background: var(--brand-accent-light); }
    .pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 1.6rem; margin-top: 2rem; }
    .pricing-card { background: #fff; border-radius: 16px; padding: 2rem; box-shadow: 0 10px 38px rgba(0,0,0,0.08); transition: transform 0.2s ease, box-shadow 0.2s ease; border: 1px solid var(--border-primary-light); position: relative; }
    .pricing-card:hover { transform: translateY(-4px); box-shadow: 0 16px 46px rgba(0,0,0,0.12); }
    .pricing-card.featured { border: 2px solid var(--brand-primary); }
    .pricing-card.featured::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--brand-primary); color: #111827; padding: 6px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 800; border: 1px solid rgba(0,0,0,0.06); }
    .pricing-header { text-align: center; margin-bottom: 1.3rem; }
    .pricing-header h3 { font-size: 1.4rem; color: var(--brand-secondary); margin-bottom: 0.5rem; }
    .pricing-header .price { font-size: 2.2rem; font-weight: 900; color: var(--brand-secondary); margin-bottom: 0.4rem; }
    .pricing-header .tagline { color: var(--brand-accent-dark); font-size: 1rem; }
    .pricing-features { list-style: none; margin: 1rem 0 1.4rem; }
    .pricing-features li { padding: 0.45rem 0; display: flex; align-items: center; color: var(--brand-accent-dark); }
    .pricing-features li::before { content: '?'; color: #198754; font-weight: 900; margin-right: 0.5rem; }
    .cta-section { padding: 80px 0; background: linear-gradient(135deg, var(--brand-secondary-dark), var(--brand-secondary)); color: white; text-align: center; border-top: 1px solid rgba(255,255,255,0.06); }
    .cta-section h2 { font-size: 2.3rem; margin-bottom: 0.7rem; color: var(--brand-primary) }
    .cta-section p { font-size: 1.1rem; margin-bottom: 1.6rem; opacity: 0.95; }
    .cta-section .btn-primary { background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark)); color: #111827; }
    footer { background: var(--brand-secondary-dark); color: #e5e7eb; padding: 3rem 0 1rem; border-top: 1px solid rgba(255,255,255,0.06); }
    .footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; margin-bottom: 1.6rem; }
    .footer-section h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.8rem; color: #fff; }
    .footer-section a { color: #cbd5e1; text-decoration: none; display: block; margin-bottom: 0.5rem; transition: color 0.2s ease; }
    .footer-section a:hover { color: var(--brand-primary); }
    .footer-bottom { text-align: center; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,0.08); color: #cbd5e1; }
    .fade-in { opacity: 0; transform: translateY(24px); }
    .fade-in.visible { opacity: 1; transform: translateY(0); transition: opacity 0.6s ease, transform 0.6s ease; }
    .lang-content { display: none; }
    .lang-content.active { display: inline; }
    @media (max-width: 768px) {
      .hero h1 { font-size: 2.3rem; }
      .hero p { font-size: 1.05rem; }
      .hero-actions { flex-direction: column; align-items: center; }
      .features-grid, .pricing-grid { grid-template-columns: 1fr; }
      .nav-actions { gap: 0.5rem; }
    }



/* ===== md files ===== */

.qx-markdown h1, .qx-markdown h2, .qx-markdown h3 { color: var(--brand-secondary); margin: 1.2rem 0 .6rem; }
.qx-markdown p, .qx-markdown li { color: var(--brand-accent-dark); }
.qx-markdown ul, .qx-markdown ol { padding-left: 1.25rem; margin: .75rem 0; }
.qx-markdown a { color: var(--brand-primary); text-decoration: underline; }
.qx-markdown code { padding: .1rem .35rem; }
.qx-markdown pre { background: #0D1117; color:#e6edf3; padding: 1rem; border-radius: 10px; overflow:auto; }


/* ===== Blog Grid ===== */
#qx-blog .container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.qx-blog-title { font-size: 2rem; font-weight: 800; margin: 2rem 0 1rem; color: var(--brand-secondary); }

.qx-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.qx-tile {
  background: #fff;
  border: 1px solid var(--border-primary-light);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .2s ease;
}
.qx-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
}
.qx-cover img, .qx-placeholder {
  display: block; width: 100%; height: 220px; object-fit: cover;
}
.qx-placeholder { background: #f1f5f9; }
.qx-tile-title { font-size: 1.1rem; font-weight: 800; padding: 14px 16px; color: var(--brand-secondary); }
.qx-tile-title a { text-decoration: none; }

.qx-pagination {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 28px 0 40px;
}
.qx-pagination .page-numbers {
  padding: 8px 12px; border: 1px solid var(--border-primary-light);
  border-radius: 8px; text-decoration: none; color: var(--brand-secondary);
  background: #fff;
}
.qx-pagination .current, .qx-pagination a:hover {
  background: var(--brand-primary); color: #111827; border-color: transparent;
}

.pricing-features li::before {
  content: "\f00c";              /* fa-check */
  font: 900 0.95rem/1 "Font Awesome 6 Free";
  color: #198754;
  margin-right: 0.5rem;
  display: inline-block;
  width: 1.1em;
}

/* ---------- Blog grid ---------- */
.qx-blog-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand-secondary);
  margin: 120px 0 18px; /* space under fixed header */
}

.qx-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-chart {
  width: inherit;
  height: inherit;
}

.qx-post-card {
  background: #fff;
  border: 1px solid var(--border-primary-light);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .2s ease;
}
.qx-post-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(0,0,0,0.1); }

.qx-post-media { display:block; aspect-ratio: 16/10; overflow:hidden; background: #f6f7f8; }
.qx-post-thumb { width:100%; height:100%; object-fit:cover; display:block; }

.qx-post-title {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  padding: 12px 14px 16px;
  color: var(--brand-secondary);
}
.qx-post-title a { text-decoration: none; color: inherit; }
.qx-post-title a:hover { color: var(--brand-primary-dark); }

/* Pagination */
.qx-pagination { display:flex; justify-content:center; gap:8px; margin: 18px 0 60px; }
.qx-pagination .page-numbers {
  display:inline-flex; align-items:center; justify-content:center;
  min-width:38px; height:38px; padding:0 10px; border-radius:8px;
  border:1px solid var(--border-primary-light); background:#fff; color:var(--brand-secondary);
  text-decoration:none; font-weight:700;
}
.qx-pagination .page-numbers:hover { border-color: var(--brand-primary); }
.qx-pagination .page-numbers.current {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  color:#111827; border-color:transparent;
}

/* ---------- Single post ---------- */
.qx-article { margin-top: 120px; }
.qx-breadcrumb a { color: var(--brand-accent-medium); text-decoration:none; }
.qx-breadcrumb a:hover { color: var(--brand-primary-dark); }

.qx-article-title { font-size: 2.2rem; font-weight: 900; color: var(--brand-secondary); margin: 10px 0 8px; }
.qx-article-meta { color: var(--brand-accent-dark); margin-bottom: 14px; }

.qx-hero-media { width: fit-content; justify-self: anchor-center; border-radius: 14px; overflow: hidden; border:1px solid var(--border-primary-light); box-shadow: 0 8px 24px rgba(0,0,0,0.06); margin: 12px 0 18px; }
/* .qx-hero-thumb { width:100%; height:auto; display:block; } */

.qx-article-content { font-size: 1.05rem; color: var(--brand-secondary); }
.qx-article-content h2 { font-size:1.5rem; margin-top: 1.4rem; }
.qx-article-content p { margin: 0.7rem 0; }
.qx-article-content ul { padding-left: 1.2rem; }

.qx-post-nav { display:flex; justify-content:space-between; margin: 24px 0 60px; }
.qx-post-nav a { text-decoration:none; color: var(--brand-secondary); }
.qx-post-nav a:hover { color: var(--brand-primary-dark); }

/* Responsive */
@media (max-width: 1024px) {
  .qx-blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .qx-blog-grid { grid-template-columns: 1fr; }
}


/* Responsive */
@media (max-width: 900px) { .qx-blog-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 600px) { .qx-blog-grid { grid-template-columns: 1fr; } }

/* --------- GUIDELINES ----------- */
/* Guidelines grid tweaks */
.guides-grid { margin-top: 2rem; }
.guide-card { display:flex; flex-direction:column; gap:.7rem; }

.guide-thumb { display:block; border-radius:12px; overflow:hidden; border:1px solid var(--border-primary-light,#e5e7eb); }
.guide-thumb img { display:block; width:100%; height:auto; }
.guide-thumb--placeholder {
  height:180px; display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,#f8fafc,#eef2f6); color:#64748b; font-weight:700;
}

.guide-title { margin:.2rem 0 0; font-size:1.2rem; }
.guide-title a { text-decoration:none; color:var(--brand-secondary,#1B2631); }
.guide-title a:hover { color:var(--brand-primary-dark,#D4AC0D); }

.guide-excerpt { color:#64748b; margin:0 0 .4rem; }

.guide-pagination { text-align:center; margin-top:2rem; }
.guide-pagination .page-numbers {
  display:inline-block; padding:.45rem .75rem; margin:.1rem; border:1px solid #e5e7eb; border-radius:8px; text-decoration:none;
}
.guide-pagination .current { background:#1B2631; color:#fff; border-color:#1B2631; }

/* Additional styles specific to this article */
        .highlight-box {
            background: linear-gradient(135deg, rgba(244, 208, 63, 0.1), rgba(244, 208, 63, 0.05));
            border-left: 4px solid var(--brand-primary);
            padding: 1.5rem;
            margin: 1.5rem 0;
            border-radius: 8px;
        }
        
        .highlight-box strong {
            color: var(--brand-primary-dark);
        }
        
        .chart-container {
            position: relative;
            height: 400px;
            margin: 2rem 0;
            padding: 1.5rem;
            background: white;
            border-radius: 14px;
            box-shadow: 0 4px 18px rgba(0,0,0,0.08);
            border: 1px solid var(--border-primary-light);
        }
		        
        .bar-chart-container {
			margin: 2rem auto;
            position: relative;
            height: 400px;
			width: 600px;
            padding: 1.5rem;
            background: white;
            border-radius: 14px;
            box-shadow: 0 4px 18px rgba(0,0,0,0.08);
            border: 1px solid var(--border-primary-light);
        }
        
        .comparison-table {
            width: 100%;
            margin: 2rem 0;
            border-collapse: collapse;
            background: white;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 4px 18px rgba(0,0,0,0.08);
        }
        
        .comparison-table th {
            background: var(--brand-secondary);
            color: white;
            padding: 1rem;
            text-align: left;
            font-weight: 700;
        }
        
        .comparison-table td {
            padding: 1rem;
            border-bottom: 1px solid var(--border-primary-light);
            color: var(--brand-accent-dark);
        }
        
        .comparison-table tr:last-child td {
            border-bottom: none;
        }
        
        .comparison-table tr:nth-child(even) {
            background: var(--brand-accent-light);
        }
        
        .pro {
            color: var(--brand-success);
            font-weight: 600;
        }
        
        .con {
            color: var(--brand-danger);
            font-weight: 600;
        }
        
        .example-box {
            background: linear-gradient(135deg, rgba(23, 162, 184, 0.08), rgba(23, 162, 184, 0.02));
            border-left: 4px solid var(--brand-info);
            padding: 1.5rem;
            margin: 2rem 0;
            border-radius: 8px;
        }
        
        .example-box h3 {
            color: var(--brand-info);
            margin-top: 0;
            margin-bottom: 1rem;
        }
        
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin: 2rem 0;
        }
        
        .stat-box {
            text-align: center;
            padding: 1.5rem;
            background: var(--brand-accent-light);
            border-radius: 12px;
            border: 1px solid var(--border-primary-light);
        }
        
        .stat-number {
            font-size: 2.5rem;
            font-weight: 900;
            color: var(--brand-primary-dark);
            display: block;
            margin-bottom: 0.5rem;
        }
        
        .stat-label {
            color: var(--brand-accent-dark);
            font-weight: 600;
        }
        
        .references {
            margin-top: 3rem;
            padding: 2rem;
            background: var(--brand-accent-light);
            border-radius: 14px;
            border: 1px solid var(--border-primary-light);
        }
        
        .references h2 {
            color: var(--brand-secondary);
            margin-bottom: 1.5rem;
            font-size: 1.8rem;
        }
        
        .references ol {
            padding-left: 1.5rem;
        }
        
        .references li {
            margin-bottom: 1rem;
            line-height: 1.6;
            color: var(--brand-accent-dark);
        }
        
        .references a {
            color: var(--brand-primary-dark);
            text-decoration: none;
            word-break: break-word;
        }
        
        .references a:hover {
            text-decoration: underline;
        }
        
        .article-cta {
            margin: 3rem 0;
            padding: 2.5rem;
            background: linear-gradient(135deg, var(--brand-secondary-dark), var(--brand-secondary));
            border-radius: 16px;
            text-align: center;
            color: white;
        }
        
        .article-cta h3 {
            color: var(--brand-primary);
            font-size: 1.8rem;
            margin-bottom: 1rem;
        }
        
        .article-cta p {
            color: #cbd5e1;
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
        }
        
        .qx-article-content sup {
            font-weight: 700;
        }
        
        .qx-article-content sup a {
            color: var(--brand-primary-dark);
            text-decoration: none;
            padding: 0 2px;
            transition: all 0.2s ease;
        }
        
        .qx-article-content sup a:hover {
            color: var(--brand-primary);
            text-decoration: underline;
        }
        
        @media (max-width: 768px) {
            .chart-container {
                height: 300px;
                padding: 1rem;
            }
            
            .stats-grid {
                grid-template-columns: 1fr;
            }
            
            .comparison-table {
                font-size: 0.9rem;
            }
            
            .comparison-table th,
            .comparison-table td {
                padding: 0.75rem;
            }
        }


/* ===== API Documentation Layout (QuantixAI – API Documentation template) ===== */

body.quantixai-api-docs {
  background: var(--bg-primary-dark);
  color: #e5e7eb;
}

/* Hero / heading on API pages */
.api-docs-hero {
  padding: 120px 0 48px;
  text-align: center;
}

.api-docs-hero h1 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--brand-primary);
  margin-bottom: 0.5rem;
}

.api-docs-hero p {
  max-width: 720px;
  margin: 0 auto;
  color: #cbd5e1;
  font-size: 1.05rem;
}

.api-docs-meta {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--brand-accent-medium);
}

/* Main layout */
.api-docs-layout {
  padding-bottom: 80px;
}

.api-docs-grid {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .api-docs-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Sidebar navigation */
.api-docs-sidebar {
  position: sticky;
  top: 104px;
  align-self: flex-start;
  background: #020617;
  border-radius: 12px;
  border: 1px solid var(--brand-accent-dark);
  padding: 1.2rem 1.4rem;
}

.api-docs-sidebar h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin: 0 0 0.75rem;
}

.api-docs-sidebar h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #e5e7eb;
  margin: 0 0 0.75rem;
}

.api-docs-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.api-docs-sidebar li + li {
  margin-top: 0.35rem;
}

.api-docs-sidebar a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
}

.api-docs-sidebar a:hover {
  color: var(--brand-primary-light);
}

/* Main content panel */
.api-docs-content {
  background: #020617;
  border-radius: 16px;
  border: 1px solid var(--brand-accent-dark);
  padding: 2rem 2.4rem;
}

/* Typography inside API docs */
.api-docs-section + .api-docs-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #111827;
}

.api-docs-section h2 {
  font-size: 1.6rem;
  margin: 0 0 0.8rem;
  color: #f9fafb;
}

.api-docs-section h3 {
  font-size: 1.15rem;
  margin: 1.5rem 0 0.5rem;
  color: #e5e7eb;
}

.api-docs-section h4 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
  color: #e5e7eb;
}

.api-docs-section h5 {
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
  color: #e5e7eb;
}


.api-docs-section p {
  margin: 0.6rem 0;
  color: #cbd5e1;
}

.api-docs-section ul,
.api-docs-section ol {
  margin: 0.6rem 0 0.8rem;
  padding-left: 1.25rem;
}

.api-docs-section li {
  color: #cbd5e1;
}

.api-docs-section a {
  color: var(--brand-primary-light);
  text-decoration: underline;
}

.api-docs-section a:hover {
  color: var(--brand-primary);
}

/* Code + pre blocks */
.api-docs-section pre {
  background: #020617;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border: 1px solid #1f2937;
  overflow-x: auto;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.api-docs-section code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Tables */
.api-docs-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.95rem;
}

.api-docs-section table th,
.api-docs-section table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid #111827;
  text-align: left;
  vertical-align: top;
}

.api-docs-section table thead {
  background: #020617;
}

.api-docs-section table th {
  font-weight: 600;
  color: #e5e7eb;
}

.api-docs-section table td {
  color: #cbd5e1;
}

/* Callouts */
.api-callout {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}

.api-callout.info {
  background: rgba(56, 189, 248, 0.06);
  border-left: 4px solid #38bdf8;
}

.api-callout.warning {
  background: rgba(250, 204, 21, 0.06);
  border-left: 4px solid #facc15;
}

.api-callout.success {
  background: rgba(34, 197, 94, 0.06);
  border-left: 4px solid #22c55e;
}

/* Endpoint blocks */
.endpoint {
  margin-top: 1.3rem;
  padding: 1.1rem 1.3rem;
  border-radius: 12px;
  background: #020617;
  border: 1px solid #1f2937;
}

.endpoint-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.4rem;
}

.endpoint .method {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.endpoint .method.get    { background: #0f172a; color: #4ade80; }
.endpoint .method.post   { background: #0f172a; color: #60a5fa; }
.endpoint .method.delete { background: #0f172a; color: #f97373; }

.endpoint-path {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: #e5e7eb;
}

.endpoint-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-top: 0.3rem;
}

.api-docs-footer {
  margin-top: 3rem;
  font-size: 0.85rem;
  text-align: right;
  color: #64748b;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .api-docs-content {
    padding: 1.5rem;
  }
}

.api-docs-section {
  scroll-margin-top: 110px;
}

/* ===================== ABOUT PAGE ===================== */

body.quantixai-about {
  background: var(--bg-primary-light);
  color: var(--text-primary-light);
}

/* Background layers */
body.quantixai-about .bg-grid,
body.quantixai-about .bg-gradient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body.quantixai-about .bg-grid {
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0),
    radial-gradient(circle at 1px 1px, rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 24px 24px, 80px 80px;
  opacity: 0.5;
}

body.quantixai-about .bg-gradient {
  background: radial-gradient(circle at top left, rgba(244,208,63,0.16), transparent 55%),
              radial-gradient(circle at bottom right, rgba(27,38,49,0.28), transparent 60%);
}

/* Hero overrides */
body.quantixai-about .hero {
  text-align: center;
  padding: 100px 0 50px;
}

body.quantixai-about .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,0.7);
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(148,163,184,0.5);
}

body.quantixai-about .hero-badge svg {
  width: 18px;
  height: 18px;
}

body.quantixai-about .hero .highlight {
  color: var(--brand-primary);
}

body.quantixai-about .hero-description {
  font-size: 1.15rem;
  max-width: 720px;
  margin: 1rem auto 0;
}

/* Stats bar */
body.quantixai-about .stats-bar {
  margin-top: 20px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

body.quantixai-about .stat {
  background: #fff;
  border-radius: 14px;
  padding: 1.3rem 1.5rem;
  text-align: center;
  border: 1px solid var(--border-primary-light);
  box-shadow: 0 6px 18px rgba(15,23,42,0.12);
}

body.quantixai-about .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brand-secondary);
}

body.quantixai-about .stat-value span {
  font-size: 1.1rem;
}

body.quantixai-about .stat-label {
  margin-top: 0.25rem;
  color: var(--brand-accent-dark);
  font-size: 0.95rem;
}

/* Generic section */
body.quantixai-about .section {
  padding: 80px 0;
  background: var(--bg-primary-light);
}

/* Mission */
body.quantixai-about .mission-content {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

body.quantixai-about .mission-text h3 {
  font-size: 1.7rem;
  color: var(--brand-secondary);
  margin-bottom: 1rem;
}

body.quantixai-about h4 {
  font-size: 1.7rem;
}

body.quantixai-about .mission-text p {
  color: var(--brand-accent-dark);
  margin-bottom: 0.8rem;
}

body.quantixai-about .mission-visual {
  display: flex;
  justify-content: center;
}

body.quantixai-about .path-comparison {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

body.quantixai-about .path-item {
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--border-primary-light);
  background: #fff;
  box-shadow: 0 6px 18px rgba(15,23,42,0.08);
}

body.quantixai-about .path-item.speed {
  border-left: 4px solid var(--brand-accent-medium);
}

body.quantixai-about .path-item.fidelity {
  border-left: 4px solid var(--brand-primary-dark);
  background-color: var(--brand-primary);
}

body.quantixai-about .path-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-accent-medium);
  margin-bottom: 0.15rem;
}

body.quantixai-about .path-item.fidelity .path-label {
  color: var(--brand-secondary);
}

body.quantixai-about .path-title {
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 0.3rem;
}

body.quantixai-about .path-desc {
  color: var(--brand-accent-dark);
  font-size: 0.95rem;
}

/* Values */
body.quantixai-about .section-label {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--brand-accent-medium);
  margin-bottom: 0.25rem;
}

body.quantixai-about .section-title {
  color: var(--brand-secondary);
}

body.quantixai-about .section-subtitle {
  color: var(--brand-accent-dark);
  max-width: 680px;
  margin: 0.5rem auto 0;
}

body.quantixai-about .values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

body.quantixai-about .value-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--border-primary-light);
  box-shadow: 0 6px 20px rgba(15,23,42,0.08);
}

body.quantixai-about .value-icon {
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}

body.quantixai-about .value-card h4 {
  font-size: 1.1rem;
  color: var(--brand-secondary);
  margin-bottom: 0.35rem;
}

body.quantixai-about .value-card p {
  color: var(--brand-accent-dark);
  font-size: 0.95rem;
}

/* Tech section */
body.quantixai-about .tech-section {
  background: var(--brand-accent-light);
}

body.quantixai-about .tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 2rem;
}

body.quantixai-about .tech-card {
  display: flex;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--border-primary-light);
  box-shadow: 0 6px 20px rgba(15,23,42,0.08);
}

body.quantixai-about .tech-number {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--brand-primary-dark);
  min-width: 2.2rem;
}

body.quantixai-about .tech-content h4 {
  margin-bottom: 0.35rem;
  color: var(--brand-secondary);
}

body.quantixai-about .tech-content p {
  color: var(--brand-accent-dark);
  font-size: 0.95rem;
}

/* Trust section */
body.quantixai-about .trust-section {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: center;
}

body.quantixai-about .eu-badge {
  width: 120px;
  height: 80px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 50%, #2563eb 0, #1d4ed8 60%, #1e3a8a 100%);
  position: relative;
  box-shadow: 0 10px 30px rgba(15,23,42,0.4);
}

/* --- Simple EU badge for About page --- */
body.quantixai-about .eu-badge {
  width: 120px;
  height: 80px;
  border-radius: 12px;
  background: #1d4ed8; /* deep blue */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 10px 30px rgba(15,23,42,0.4);
}

/* ensure emoji looks crisp */
body.quantixai-about .eu-badge {
  line-height: 1;
}
body.quantixai-about .trust-content h3 {
  color: var(--brand-secondary);
  margin-bottom: 0.5rem;
}

body.quantixai-about .trust-content p {
  color: var(--brand-accent-dark);
}

body.quantixai-about .trust-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  margin-top: 0.9rem;
}

body.quantixai-about .trust-feature {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--brand-accent-dark);
}

body.quantixai-about .trust-feature svg {
  width: 16px;
  height: 16px;
  color: var(--brand-success);
}

/* CTA tweaks */
body.quantixai-about .cta-section .cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 900px) {
  body.quantixai-about .stats-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  body.quantixai-about .mission-content {
    grid-template-columns: minmax(0, 1fr);
  }
  body.quantixai-about .trust-section {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  body.quantixai-about .stats-bar {
    grid-template-columns: 1fr;
  }
  body.quantixai-about .values-grid {
    grid-template-columns: 1fr;
  }
  body.quantixai-about .tech-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Nav Dropdown ===== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-chevron {
  transition: transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 260px;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: saturate(150%) blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}

.nav-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.dropdown-icon {
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.dropdown-item-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dropdown-item-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #f9fafb;
}

.dropdown-item-desc {
  font-size: 0.8rem;
  color: #94a3b8;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 6px 0;
}

/* Mobile: convert dropdown to stacked links */
@media (max-width: 768px) {
  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: auto;
    margin-top: 8px;
  }
  
  .nav-dropdown-trigger .dropdown-chevron {
    display: none;
  }
  
  .nav-dropdown-item {
    padding: 8px 0;
  }
  
  .dropdown-divider {
    display: none;
  }
}

.nav-actions .btn-secondary {
  height: 42px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-dropdown-trigger {
  gap: 6px;
}

.dropdown-chevron {
  flex-shrink: 0;
}

/* ===== RESOURCES PAGES (Templates & Guides) ===== */

/* Hero badge for resources */
body.quantixai-resources .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Filter tabs section */
.resource-filters {
  background: var(--bg-primary-light);
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-primary-light);
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border: 1px solid var(--border-primary-light);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-tab:hover {
  border-color: var(--brand-primary);
  background: rgba(244, 208, 63, 0.05);
}

.filter-tab.active {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #111827;
}

/* Resource sections */
.resource-section {
  padding: 60px 0;
  background: var(--bg-primary-light);
}

.resource-section--alt {
  background: var(--brand-accent-light);
}

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

.resource-grid--guides {
  grid-template-columns: repeat(3, 1fr);
}

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

@media (max-width: 640px) {
  .resource-grid--guides {
    grid-template-columns: 1fr;
  }
}

/* Resource card */
.resource-card {
  background: #fff;
  border-radius: 16px;
  padding: 1.75rem;
  border: 1px solid var(--border-primary-light);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.resource-card__badge {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge--excel {
  background: #d4edda;
  color: #155724;
}

.badge--powerbi {
  background: #fff3cd;
  color: #856404;
}

.badge--pdf {
  background: #f8d7da;
  color: #721c24;
}

.badge--api {
  background: #e2e3e5;
  color: #383d41;
}

.badge--pages {
  background: #d1ecf1;
  color: #0c5460;
}

.resource-card__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-secondary);
  margin-bottom: 0.6rem;
  line-height: 1.3;
}

.resource-card__desc {
  color: var(--brand-accent-dark);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.resource-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.resource-card__features li {
  padding: 0.35rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--brand-accent-dark);
  font-size: 0.9rem;
}

.resource-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand-success);
  font-weight: 700;
}

.resource-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

/* Guide cards (smaller variant) */
.resource-card--guide {
  padding: 1.5rem;
}

.resource-card--guide .resource-card__title {
  font-size: 1.1rem;
}

/* ===== GATED DOWNLOAD MODAL ===== */
.download-gate-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.download-gate-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.download-gate-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(4px);
}

.download-gate-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2.25rem;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.download-gate-modal.is-open .download-gate-modal__dialog {
  transform: translateY(0);
}

.download-gate-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--brand-accent-light);
  border-radius: 8px;
  font-size: 1.25rem;
  color: var(--brand-accent-dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.download-gate-modal__close:hover {
  background: var(--border-primary-light);
}

.download-gate-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.download-gate-modal__title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-secondary);
  text-align: center;
  margin-bottom: 0.5rem;
}

.download-gate-modal__desc {
  text-align: center;
  color: var(--brand-accent-dark);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.download-gate-modal__file {
  background: var(--brand-accent-light);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.download-gate-modal__file-icon {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.download-gate-modal__file-name {
  font-weight: 600;
  color: var(--brand-secondary);
  font-size: 0.9rem;
  word-break: break-word;
}

/* Form inside download modal */
.download-gate-modal .se-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.download-gate-modal .se-list li {
  margin: 0.6rem 0;
}

.download-gate-modal .se-list label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brand-secondary);
  margin-bottom: 0.25rem;
}

.download-gate-modal .se-list input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-primary-light);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.download-gate-modal .se-list input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(244, 208, 63, 0.2);
}

.download-gate-modal input[type="submit"],
.download-gate-modal .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

.download-gate-modal__legal {
  font-size: 0.8rem;
  color: var(--brand-accent-medium);
  text-align: center;
  margin-top: 1rem;
}

.download-gate-modal__legal a {
  color: var(--brand-primary-dark);
}

/* Success state */
.download-gate-modal__success {
  text-align: center;
  padding: 1rem 0;
  display: none;
}

.download-gate-modal__success.is-visible {
  display: block;
}

.download-gate-modal__success-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: var(--brand-success-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.download-gate-modal__success h4 {
  font-size: 1.2rem;
  color: var(--brand-secondary);
  margin-bottom: 0.5rem;
}

.download-gate-modal__success p {
  color: var(--brand-accent-dark);
  margin-bottom: 1rem;
}

/* Hide form when showing success */
.download-gate-modal__form.is-hidden {
  display: none;
}

/* Responsive */
@media (max-width: 640px) {
  .download-gate-modal__dialog {
    padding: 1.5rem;
  }
  
  .download-gate-modal__title {
    font-size: 1.2rem;
  }
}

.zoom-img img {
  cursor: zoom-in;
}

.internal-link {
  color: var(--brand-primary-dark);
}

/* hamburger hidden on desktop */
.qx-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}

.qx-nav-toggle span {
  width: 24px;
  height: 2px;
  background: white;
  display: block;
}

/* MOBILE */
@media (max-width: 900px) {
  .qx-nav-toggle {
    display: flex;
    z-index: 1001;
      color: white!important;
  }

  /* convert your existing nav into a dropdown panel */
  #qx-mobile-nav.nav-actions {
    position: absolute;      /* use absolute since this partial is the "header" */
    top: 100%;
    left: 0;
    right: 0;

    display: grid;
    gap: 12px;
    padding: 16px;

    background: #0b0f14;     /* adjust to match your nav background */
    border-top: 1px solid rgba(255,255,255,0.08);

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  #qx-mobile-nav[data-state="open"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  /* make buttons full width */
  #qx-mobile-nav .btn,
  #qx-mobile-nav .btn-app {
    width: 100%;
    justify-content: space-between;
  }

  /* dropdown menu plays nicely in stacked layout */
  #qx-mobile-nav .nav-dropdown-menu {
    position: static;
    margin-top: 8px;
    box-shadow: none;
  }
}

/* Hide "Launch App" on tablet & mobile */
@media (max-width: 800px) {
  #qx-mobile-nav .btn-app {
    display: none !important;
  }
}

/* Billing Toggle */
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.toggle-label {
  font-size: 0.95rem;
  color: #6b7280;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toggle-label.active {
  color: #111827;
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e5e7eb;
  border-radius: 28px;
  transition: background 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--brand-primary);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(24px);
}

.save-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

/* ── Custom Solution Card ── */
.custom-solution-card {
  margin-top: 2.5rem;
  background: linear-gradient(135deg, var(--brand-secondary), var(--brand-secondary-light));
  border-radius: 20px;
  padding: 2.8rem;
  border: 1px solid rgba(244, 208, 63, 0.25);
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  position: relative;
  overflow: hidden;
}

.custom-solution-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 24px 24px;
  pointer-events: none;
}

.custom-solution-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}

.custom-solution-badge {
  display: inline-block;
  background: rgba(244, 208, 63, 0.15);
  color: var(--brand-primary);
  border: 1px solid rgba(244, 208, 63, 0.3);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.custom-solution-text h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 0.8rem;
}

.custom-solution-text > p {
  color: #cbd5e1;
  font-size: 1.05rem;
  margin-bottom: 1.4rem;
  max-width: 580px;
}

.custom-solution-services {
  list-style: none;
  margin-bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.custom-solution-services li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #e2e8f0;
  font-size: 0.97rem;
}

.custom-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.custom-inline-link {
  color: var(--brand-primary);
  text-decoration: underline;
}

.custom-solution-note {
  font-size: 0.9rem;
  color: #94a3b8;
  border-left: 3px solid rgba(244,208,63,0.4);
  padding-left: 0.85rem;
}

/* Right column: process + CTA */
.custom-solution-cta {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.custom-process-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.custom-step {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.custom-step-num {
  width: 32px;
  height: 32px;
  background: var(--brand-primary);
  color: #111827;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-step strong {
  display: block;
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.custom-step span {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.4;
}

.custom-solution-btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 14px 20px;
}

.custom-solution-subtext {
  text-align: center;
  color: #64748b;
  font-size: 0.82rem;
  margin-top: -0.4rem;
}

@media (max-width: 960px) {
  .custom-solution-inner {
    grid-template-columns: 1fr;
  }
  .custom-solution-card {
    padding: 2rem;
  }
}

/* Interactive budget slider widget */
        .budget-widget {
            background: white;
            border-radius: 14px;
            box-shadow: 0 4px 18px rgba(0,0,0,0.08);
            border: 1px solid var(--border-primary-light);
            padding: 2rem;
            margin: 2rem 0;
        }
        .budget-widget h3 { color: var(--brand-secondary); margin-bottom: 0.4rem; font-size: 1.15rem; }
        .budget-widget p.subtitle { color: var(--brand-accent-dark); font-size: 0.95rem; margin-bottom: 1.5rem; }
        .channel-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
        .channel-label { min-width: 120px; font-weight: 700; color: var(--brand-secondary); font-size: 0.95rem; }
        .channel-slider {
            flex: 1;
            min-width: 140px;
            cursor: pointer;
            -webkit-appearance: none;
            appearance: none;
            height: 6px;
            border-radius: 4px;
            background: #DEE2E6;
            outline: none;
        }
        .channel-slider::-webkit-slider-runnable-track {
            height: 6px;
            border-radius: 4px;
            background: transparent;
        }
        .channel-slider::-webkit-slider-thumb {
            -webkit-appearance: none;
            appearance: none;
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #1B2631;
            cursor: pointer;
            border: 3px solid #F4D03F;
            box-shadow: 0 2px 6px rgba(0,0,0,0.25);
            transition: background 0.2s ease, transform 0.15s ease;
            margin-top: -7px;
        }
        .channel-slider::-webkit-slider-thumb:hover {
            background: #F4D03F;
            transform: scale(1.15);
        }
        .channel-slider::-moz-range-thumb {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            background: #1B2631;
            cursor: pointer;
            border: 3px solid #F4D03F;
            box-shadow: 0 2px 6px rgba(0,0,0,0.25);
        }
        .channel-slider::-moz-range-track {
            height: 6px;
            border-radius: 4px;
            background: #DEE2E6;
        }
        .channel-spend { min-width: 80px; text-align: right; font-weight: 700; color: var(--brand-primary-dark); }
        .channel-roi-badge {
            min-width: 90px;
            text-align: center;
            font-size: 0.85rem;
            font-weight: 700;
            padding: 3px 8px;
            border-radius: 20px;
        }
        .roi-high { background: rgba(40, 167, 69, 0.12); color: #155724; }
        .roi-med  { background: rgba(253, 126, 20, 0.12); color: #7d4200; }
        .roi-low  { background: rgba(220, 53, 69, 0.12);  color: #721c24; }
        .widget-summary {
            margin-top: 1.5rem;
            padding: 1rem 1.5rem;
            background: var(--brand-accent-light);
            border-radius: 10px;
            display: flex;
            gap: 2rem;
            flex-wrap: wrap;
            align-items: center;
        }
        .summary-item { display: flex; flex-direction: column; }
        .summary-label { font-size: 0.85rem; color: var(--brand-accent-dark); font-weight: 600; }
        .summary-value { font-size: 1.4rem; font-weight: 900; color: var(--brand-secondary); }
        .summary-value.highlight { color: var(--brand-primary-dark); }
        .widget-note { font-size: 0.85rem; color: var(--brand-accent-medium); margin-top: 1rem; font-style: italic; }

.feature-card-accent {
  position: relative;
  border: 1.5px solid var(--primary-color, #2563eb);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.feature-card-accent::before {
  content: "Core Value";
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color, #2563eb);
}