/* ==========================================================================
   XEDLABS — TORCH COLOR LAYER v1.0
   Rich, subtle color injection for the Torch Lens reveal effect.
   This file overrides the muted dark-cyber palette with vibrant tinted
   gradients and saturated accents. Under the grayscale overlay everything
   reads as clean B&W; inside the torch beam the colors come alive.
   ========================================================================== */

/* ─────────────────────────────────────────────────────────────
   1. HERO — Deep space gradient (blue → indigo → purple)
   ───────────────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(
    160deg,
    #060d1f 0%,
    #0d1035 30%,
    #1a0a2e 55%,
    #0f1a3a 80%,
    #060d1f 100%
  );
}

/* Hero headline accent span: electric lime → cyan gradient */
.hero-headline .text-lime {
  background: linear-gradient(90deg, #ABFF02 0%, #00e5a0 60%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Status pill: subtle blue glow border */
.hero-status-pill {
  background: rgba(99, 102, 241, 0.12);
  border-color: rgba(99, 102, 241, 0.35);
}

.status-indicator-dot {
  background: #00e5a0;
  box-shadow: 0 0 8px rgba(0, 229, 160, 0.6);
}

/* Hero subhead: slightly blueish for depth */
.hero-subhead {
  color: rgba(190, 200, 225, 0.85);
}

/* Tech tags in hero: colored chip backgrounds */
.hero-tech-row .tech-tag {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: rgba(165, 180, 252, 0.9);
}

/* ─────────────────────────────────────────────────────────────
   2. SECTION BACKGROUNDS — Rich gradients instead of flat
   ───────────────────────────────────────────────────────────── */

/* Dark sections: deep navy → indigo */
.section-dark {
  background: linear-gradient(
    180deg,
    #05081a 0%,
    #0c0f28 35%,
    #100a24 65%,
    #080c20 100%
  );
}

/* Light sections: soft lavender-cream gradient */
.section-light {
  background: linear-gradient(
    180deg,
    #f0ecff 0%,
    #faf5f0 40%,
    #eef5ff 70%,
    #f5f0ff 100%
  );
  border-top-color: rgba(99, 102, 241, 0.1);
  border-bottom-color: rgba(99, 102, 241, 0.1);
}

/* ─────────────────────────────────────────────────────────────
   3. EDITORIAL EYEBROWS — Vivid gradient text
   ───────────────────────────────────────────────────────────── */
.editorial-eyebrow {
  background: linear-gradient(90deg, #00e5a0 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-light .editorial-eyebrow {
  background: linear-gradient(90deg, #047857 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─────────────────────────────────────────────────────────────
   4. HEADER — Subtle indigo-tinted background + hover glow
   ───────────────────────────────────────────────────────────── */
.site-header {
  background: linear-gradient(90deg, rgba(10, 13, 31, 0.96) 0%, rgba(14, 16, 40, 0.96) 50%, rgba(10, 13, 31, 0.96) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: rgba(99, 102, 241, 0.18);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header:hover,
.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(14, 18, 46, 0.98) 0%, rgba(24, 16, 52, 0.98) 50%, rgba(14, 18, 46, 0.98) 100%);
  border-bottom-color: rgba(255, 30, 138, 0.35);
  box-shadow: 0 8px 32px rgba(10, 13, 38, 0.55), 0 1px 0 rgba(99, 102, 241, 0.25);
}

.brand-link:hover .brand-logo {
  filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.35));
}

/* ─────────────────────────────────────────────────────────────
   5. PLATFORM SECTION (light) — Tabs & Panels colorized
   ───────────────────────────────────────────────────────────── */

/* Active tab: deep indigo instead of black */
.section-light .arch-tab.is-active {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
  border-color: #4338ca;
  color: #e0e7ff;
  box-shadow: 0 8px 24px rgba(67, 56, 202, 0.25);
}

.section-light .arch-tab.is-active .arch-tab-dot {
  background: #00e5a0;
  box-shadow: 0 0 6px rgba(0, 229, 160, 0.5);
}

/* Panel cards in light section: subtle blue tint */
.section-light .arch-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 100%);
  border-color: rgba(99, 102, 241, 0.12);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.08);
}

/* Metric bar in light section: soft indigo tint */
.section-light .arch-metric-bar {
  background: linear-gradient(90deg, #f0ecff 0%, #ecf5ff 100%);
  border-color: rgba(99, 102, 241, 0.15);
}

.section-light .arch-metric-num {
  background: linear-gradient(90deg, #047857, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Badge in light section: richer */
.section-light .t-card-badge.badge-lime {
  background: rgba(4, 120, 87, 0.1);
  color: #047857;
  border-color: rgba(4, 120, 87, 0.3);
}

/* Check icons: emerald with subtle glow */
.section-light .check-ico {
  color: #059669;
  filter: drop-shadow(0 0 3px rgba(5, 150, 105, 0.3));
}

/* Tech tags in light panels: subtle colored chips */
.section-light .t-tech-tag {
  background: rgba(99, 102, 241, 0.06);
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.15);
}

/* 3D stage in light section: rich dark with blue glow border */
.section-light .terminal-3d-stage {
  background: radial-gradient(circle at 50% 45%, #12153a 0%, #0a0d26 65%, #060818 100%);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 20px 60px rgba(30, 27, 75, 0.35), 0 0 1px rgba(99, 102, 241, 0.3);
}

/* HUD elements: vivid colors */
.hud-pulse-dot {
  background: #00e5a0;
  box-shadow: 0 0 8px rgba(0, 229, 160, 0.6);
}

.hud-meta-pill {
  background: rgba(10, 13, 38, 0.9);
  border-color: rgba(99, 102, 241, 0.3);
  color: rgba(165, 180, 252, 0.9);
}

.hud-fps-pill {
  background: rgba(10, 13, 38, 0.9);
  border-color: rgba(0, 229, 160, 0.3);
  color: #00e5a0;
}

.hud-track-id {
  background: rgba(10, 13, 38, 0.9);
  color: rgba(165, 180, 252, 0.8);
  border-color: rgba(99, 102, 241, 0.2);
}

.hud-status-badge {
  background: rgba(0, 229, 160, 0.12);
  color: #00e5a0;
  border-color: rgba(0, 229, 160, 0.3);
}

/* Cyber brackets: crisp indigo-pink accent */
.cyber-bracket {
  border-color: rgba(99, 102, 241, 0.75);
}

.terminal-3d-stage:hover .cyber-bracket {
  border-color: #ff1e8a;
}

/* ─────────────────────────────────────────────────────────────
   6. BENTO GRID (#capabilities) — Each card uniquely tinted
   ───────────────────────────────────────────────────────────── */
.section-dark .bento-card {
  background: linear-gradient(145deg, #0c0f24 0%, #10132a 100%);
  border-color: rgba(99, 102, 241, 0.12);
}

/* Card 1: Blue tint */
.section-dark .bento-card:nth-child(1) {
  background: linear-gradient(145deg, #0a1028 0%, #0d1535 100%);
  border-color: rgba(59, 130, 246, 0.15);
}

.section-dark .bento-card:nth-child(1):hover {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.08);
}

.section-dark .bento-card:nth-child(1) .bento-pill {
  color: #60a5fa;
}

.section-dark .bento-card:nth-child(1) .bento-icon-svg {
  color: #60a5fa;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.4));
}

/* Card 2: Purple tint */
.section-dark .bento-card:nth-child(2) {
  background: linear-gradient(145deg, #100a24 0%, #150d32 100%);
  border-color: rgba(168, 85, 247, 0.15);
}

.section-dark .bento-card:nth-child(2):hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.08);
}

.section-dark .bento-card:nth-child(2) .bento-pill {
  color: #c084fc;
}

.section-dark .bento-card:nth-child(2) .bento-icon-svg {
  color: #c084fc;
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.4));
}

/* Card 3: Teal tint */
.section-dark .bento-card:nth-child(3) {
  background: linear-gradient(145deg, #061a1a 0%, #0a2525 100%);
  border-color: rgba(20, 184, 166, 0.15);
}

.section-dark .bento-card:nth-child(3):hover {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.08);
}

.section-dark .bento-card:nth-child(3) .bento-pill {
  color: #2dd4bf;
}

.section-dark .bento-card:nth-child(3) .bento-icon-svg {
  color: #2dd4bf;
  filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.4));
}

/* Card 4: Neon Pink tint */
.section-dark .bento-card:nth-child(4) {
  background: linear-gradient(145deg, #1b0a1c 0%, #260d28 100%);
  border-color: rgba(236, 72, 153, 0.16);
}

.section-dark .bento-card:nth-child(4):hover {
  border-color: rgba(255, 30, 138, 0.48);
  box-shadow: 0 0 30px rgba(255, 30, 138, 0.1);
}

.section-dark .bento-card:nth-child(4) .bento-pill,
.section-dark .bento-card:nth-child(4) .bento-icon-svg {
  color: #f472b6;
}

.section-dark .bento-card:nth-child(4) .bento-icon-svg {
  filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.4));
}

/* Card 5: Indigo tint */
.section-dark .bento-card:nth-child(5) {
  background: linear-gradient(145deg, #0b0e28 0%, #11153a 100%);
  border-color: rgba(99, 102, 241, 0.18);
}

.section-dark .bento-card:nth-child(5):hover {
  border-color: rgba(99, 102, 241, 0.48);
  box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.section-dark .bento-card:nth-child(5) .bento-pill,
.section-dark .bento-card:nth-child(5) .bento-icon-svg {
  color: #818cf8;
}

.section-dark .bento-card:nth-child(5) .bento-icon-svg {
  filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.4));
}

/* Card 6: Amber tint */
.section-dark .bento-card:nth-child(6) {
  background: linear-gradient(145deg, #1a1206 0%, #241908 100%);
  border-color: rgba(245, 158, 11, 0.16);
}

.section-dark .bento-card:nth-child(6):hover {
  border-color: rgba(245, 158, 11, 0.48);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.08);
}

.section-dark .bento-card:nth-child(6) .bento-pill,
.section-dark .bento-card:nth-child(6) .bento-icon-svg {
  color: #fbbf24;
}

.section-dark .bento-card:nth-child(6) .bento-icon-svg {
  filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.4));
}

/* Bento spec values: vivid accent per card */
.section-dark .bento-card:nth-child(1) .bento-spec-item .v { color: #93c5fd; }
.section-dark .bento-card:nth-child(2) .bento-spec-item .v { color: #d8b4fe; }
.section-dark .bento-card:nth-child(3) .bento-spec-item .v { color: #99f6e4; }
.section-dark .bento-card:nth-child(4) .bento-spec-item .v { color: #f9a8d4; }
.section-dark .bento-card:nth-child(5) .bento-spec-item .v { color: #a5b4fc; }
.section-dark .bento-card:nth-child(6) .bento-spec-item .v { color: #fcd34d; }

/* Bento card radial spotlight: color-matched */
.section-dark .bento-card:nth-child(1)::before {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.08), transparent 60%);
}
.section-dark .bento-card:nth-child(2)::before {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(168, 85, 247, 0.08), transparent 60%);
}
.section-dark .bento-card:nth-child(3)::before {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(20, 184, 166, 0.08), transparent 60%);
}
.section-dark .bento-card:nth-child(4)::before {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 30, 138, 0.09), transparent 60%);
}
.section-dark .bento-card:nth-child(5)::before {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(99, 102, 241, 0.09), transparent 60%);
}
.section-dark .bento-card:nth-child(6)::before {
  background: radial-gradient(400px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(245, 158, 11, 0.08), transparent 60%);
}

/* Dark section title: subtle cool white */
.section-dark .section-title {
  color: #e8ecf5;
}

/* ─────────────────────────────────────────────────────────────
   7. METRICS & CASE STUDIES (#proof) — Colorful stat numbers
   ───────────────────────────────────────────────────────────── */

/* Metric cards in light section: white with colored top border */
.section-light .metric-card {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.08);
  border-top: 3px solid;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}

.section-light .metric-card:nth-child(1) { border-top-color: #3b82f6; }
.section-light .metric-card:nth-child(2) { border-top-color: #8b5cf6; }
.section-light .metric-card:nth-child(3) { border-top-color: #059669; }
.section-light .metric-card:nth-child(4) { border-top-color: #f59e0b; }

.section-light .metric-card:nth-child(1) .metric-number { color: #2563eb; }
.section-light .metric-card:nth-child(2) .metric-number { color: #7c3aed; }
.section-light .metric-card:nth-child(3) .metric-number { color: #059669; }
.section-light .metric-card:nth-child(4) .metric-number { color: #d97706; }

/* Case study cards: colored left accent bar */
.section-light .case-card {
  background: #ffffff;
  border-color: rgba(99, 102, 241, 0.08);
  border-left: 4px solid;
  box-shadow: 0 8px 28px rgba(99, 102, 241, 0.06);
}

.section-light .case-card:nth-child(1) { border-left-color: #6366f1; }
.section-light .case-card:nth-child(2) { border-left-color: #ec4899; }
.section-light .case-card:nth-child(3) { border-left-color: #059669; }
.section-light .case-card:nth-child(4) { border-left-color: #d97706; }

.section-light .case-card:nth-child(1) .case-stat-val { color: #4f46e5; }
.section-light .case-card:nth-child(2) .case-stat-val { color: #db2777; }
.section-light .case-card:nth-child(3) .case-stat-val { color: #047857; }
.section-light .case-card:nth-child(4) .case-stat-val { color: #b45309; }

/* Case meta badges */
.section-light .case-meta span {
  background: rgba(99, 102, 241, 0.06);
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.12);
  padding: 2px 10px;
  border-radius: 4px;
  border: 1px solid;
}

/* ─────────────────────────────────────────────────────────────
   8. TEAM / PRINCIPAL SECTION (#team) — Deep indigo
   ───────────────────────────────────────────────────────────── */
#team.section-dark {
  background: linear-gradient(180deg, #080c20 0%, #0d0f2d 50%, #0a0c24 100%);
}

#team .case-card {
  background: linear-gradient(135deg, #0e1230 0%, #141842 100%);
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 12px 40px rgba(30, 27, 75, 0.3);
}

#team .case-title {
  background: linear-gradient(90deg, #e0e7ff 0%, #c7d2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#team .case-stat-row {
  border-top-color: rgba(99, 102, 241, 0.15);
}

/* ─────────────────────────────────────────────────────────────
   9. SCOPING FORM (#scoping) — Deep blue with colored inputs
   ───────────────────────────────────────────────────────────── */
#scoping.section-dark {
  background: linear-gradient(180deg, #0a0c24 0%, #0c1030 50%, #080a20 100%);
}

#scoping .scoping-card {
  background: linear-gradient(145deg, #0e1230 0%, #12163a 100%);
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 16px 48px rgba(30, 27, 75, 0.25);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ─────────────────────────────────────────────────────────────
   10. FAQ (#faq) — Colored accent stripe on open items
   ───────────────────────────────────────────────────────────── */
.section-light .faq-item {
  border-left: 3px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.section-light .faq-item[open] {
  border-left-color: #6366f1;
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.08);
}

.section-light .faq-chevron {
  color: #6366f1;
}

.section-light .faq-item[open] .faq-chevron {
  color: #4f46e5;
}

/* ─────────────────────────────────────────────────────────────
   11. FOOTER — Subtle gradient with accent rule
   ───────────────────────────────────────────────────────────── */
.site-footer {
  background: linear-gradient(180deg, #060818 0%, #0a0d22 100%);
  border-top-color: rgba(99, 102, 241, 0.12);
}

.footer-links-row a {
  transition: color 0.15s ease;
}

.footer-links-row a:hover {
  color: #a5b4fc;
}

/* ─────────────────────────────────────────────────────────────
   12. BUTTONS — Richer colored interactions
   ───────────────────────────────────────────────────────────── */

/* Primary lime button: add subtle glow */
.btn-lime {
  box-shadow: 0 4px 16px rgba(171, 255, 2, 0.15);
}

.btn-lime:hover {
  box-shadow: 0 6px 24px rgba(171, 255, 2, 0.25);
}

/* Secondary buttons: subtle indigo border on hover */
.btn-secondary:hover {
  border-color: rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}

/* ─────────────────────────────────────────────────────────────
   13. NAV LINKS — Colored pill hover & active states
   ───────────────────────────────────────────────────────────── */
.nav-anchor:hover {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.24) 0%, rgba(255, 30, 138, 0.18) 100%);
  border-color: rgba(255, 30, 138, 0.45);
  box-shadow: 0 0 18px rgba(255, 30, 138, 0.18);
}

.nav-anchor.is-active {
  color: #e0e7ff;
  background: rgba(99, 102, 241, 0.22);
  border-color: rgba(99, 102, 241, 0.45);
}

/* ─────────────────────────────────────────────────────────────
   14. SCROLL / SELECTION — Colored scrollbar & highlight
   ───────────────────────────────────────────────────────────── */
html {
  scrollbar-color: rgba(99, 102, 241, 0.3) #060818;
}

::selection {
  background: rgba(99, 102, 241, 0.25);
  color: #e0e7ff;
}

/* ─────────────────────────────────────────────────────────────
   15. PROCESS STEPS — Colored step numbers
   ───────────────────────────────────────────────────────────── */
.process-step-num {
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.process-tag {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

/* ─────────────────────────────────────────────────────────────
   16. DARK SECTION — General card & spec refinements
   ───────────────────────────────────────────────────────────── */
.section-dark .bento-specs {
  border-top-color: rgba(99, 102, 241, 0.1);
}

.section-dark .bento-title {
  color: #eef2ff;
}

.section-dark .bento-desc {
  color: rgba(165, 180, 230, 0.7);
}

.section-dark .section-desc {
  color: rgba(165, 180, 230, 0.75);
}
