  :root {
    --bg-deep: #191127;
    --bg-mid: #180f26;
    --bg-card: #23133a;
    --bg-card-hover: #1f1232;
    --accent-blue: #883CF0;
    --accent-cyan: #7c3aed;
    --accent-purple: #8b5cf6;
    --accent-orange: #b29dce;
    --accent-pink: #873cf09d;
    --text-primary: #e8f4ff;
    --text-secondary: #ebe5e5;
    --text-dim: #d6d6d6;
    --border-subtle: #3a1c63;
    --glow-blue: rgba(153, 59, 246, 0.15);
    --glow-cyan: rgba(148, 6, 214, 0.12);
  }

  * { margin:0; padding:0; box-sizing:border-box; }

  html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-blue) var(--bg-deep);
  }

  body {
    background: var(--bg-deep);
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
  }

  /* ── GRID BACKGROUND ── */
  .grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background-image:
      linear-gradient(rgba(149, 59, 246, 0.057) 1px, transparent 1px),
      linear-gradient(90deg, rgba(153, 59, 246, 0.084) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
  }

  /* ── NAV ── */
  nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(20px);
    background: #180f26;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-brand {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-cyan);
  }
  .nav-brand span { color: var(--text-dim); }
  .nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
  }
  .nav-links a:hover { color: var(--accent-cyan); }

  /* ── HERO ── */
  .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 80px;
    z-index: 1;
  }
  .hero-orb {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    animation: orbFloat 12s ease-in-out infinite;
  }
  .hero-orb--blue { background: var(--accent-blue); top: 10%; left: 20%; }
  .hero-orb--purple { background: var(--accent-purple); bottom: 20%; right: 15%; animation-delay: -4s; }
  .hero-orb--cyan { background: var(--accent-cyan); top: 50%; left: 55%; width: 300px; height: 300px; animation-delay: -8s; }

  @keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
  }

  .hero-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: #23133a;
    border: 1px solid #3a1c63;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s ease both;
  }

  .hero h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(48px, 7vw, 96px);
    font-weight: 400;
    line-height: 1.05;
    max-width: 900px;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s 0.15s ease both;
  }
  .hero h1 em {
    font-style: italic;
    color: var(--accent-blue);
    /* -webkit-background-clip: text; */
    /* -webkit-text-fill-color: transparent; */
  }
  .hero-sub {
    max-width: 600px;
    color: var(--text-secondary);
    font-size: 17px;
    margin-top: 24px;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s 0.3s ease both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 56px;
    position: relative;
    z-index: 2;
    animation: fadeUp 0.8s 0.45s ease both;
  }
  .hero-stat {
    text-align: center;
  }
  .hero-stat-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 32px;
    font-weight: 700;
    color: var(--accent-cyan);
  }
  .hero-stat-label {
    font-size: 12px;
    color: var(--text-dim);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
  }

  /* ── SECTIONS ── */
  section { position: relative; z-index: 1; padding: 100px 24px; }

  .section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-blue);
    margin-bottom: 12px;
  }
  .section-title {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.15;
  }
  .section-desc {
    color: var(--text-secondary);
    max-width: 600px;
    font-size: 16px;
    line-height: 1.7;
  }

  .container { max-width: 1200px; margin: 0 auto; }

  /* ── INTERACTIVE SEARCH DEMO ── */
  .search-demo {
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 48px;
    margin-top: 48px;
    position: relative;
    overflow: hidden;
  }
  .search-demo::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  }
  .search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
  }
  .search-bar input {
    flex: 1;
    background: var(--bg-deep);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--text-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
  }
  .search-bar input:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 0 3px var(--glow-cyan);
  }
  .search-bar input::placeholder { color: var(--text-dim); }
  .search-btn {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    border: none;
    border-radius: 12px;
    padding: 16px 28px;
    color: var(--bg-deep);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    font-family: 'DM Sans', sans-serif;
  }
  .search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(93, 6, 214, 0.3);
  }

  .search-modes {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .mode-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
  }
  .mode-chip.active, .mode-chip:hover {
    background: var(--glow-blue);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
  }

  .search-results {
    display: grid;
    gap: 12px;
    min-height: 200px;
  }
  .search-result {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    transition: all 0.3s;
    animation: resultSlide 0.4s ease both;
  }
  .search-result:nth-child(2) { animation-delay: 0.08s; }
  .search-result:nth-child(3) { animation-delay: 0.16s; }

  @keyframes resultSlide {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
  }

  .search-result:hover {
    border-color: #5e309d;
    background: var(--bg-card-hover);
  }
  .result-score {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent-cyan);
    background: #291a3e;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: nowrap;
    min-width: 65px;
    text-align: center;
  }
  .result-content h4 {
    font-size: 15px;
    margin-bottom: 4px;
    font-weight: 600;
  }
  .result-content p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
  }
  .result-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .result-tag {
    font-size: 10px;
    font-family: 'JetBrains Mono', monospace;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
  }
  .result-tag--vector { background: rgba(139,92,246,0.12); color: var(--accent-purple); }
  .result-tag--text { background: rgba(59,130,246,0.12); color: var(--accent-blue); }
  .result-tag--semantic { background: rgba(107, 6, 214, 0.12); color: var(--accent-cyan); }

  .empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-dim);
    font-size: 14px;
  }
  .empty-state svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
  }

  /* ── ARCHITECTURE DIAGRAM ── */
  .arch-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 48px;
  }
  .arch-card {
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
  }
  .arch-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
  }
  .arch-card:hover::after { transform: scaleX(1); }
  .arch-card:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  }
  .arch-card[data-color="cyan"]::after { background: var(--accent-cyan); }
  .arch-card[data-color="blue"]::after { background: var(--accent-blue); }
  .arch-card[data-color="purple"]::after { background: var(--accent-purple); }
  .arch-card[data-color="orange"]::after { background: var(--accent-orange); }
  .arch-card[data-color="pink"]::after { background: var(--accent-pink); }

  .arch-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 20px;
  }
  .arch-icon--cyan { background: rgba(6,214,160,0.1); }
  .arch-icon--blue { background: rgba(59,130,246,0.1); }
  .arch-icon--purple { background: rgba(139,92,246,0.1); }
  .arch-icon--orange { background: rgba(245,158,11,0.1); }
  .arch-icon--pink { background: rgba(236,72,153,0.1); }

  .arch-card h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
  }
  .arch-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
  }

  .arch-detail {
    margin-top: 16px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
  }
  .arch-card.expanded .arch-detail { max-height: 300px; }
  .arch-detail-inner {
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
  }
  .arch-detail-inner code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(59,130,246,0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    color: var(--accent-blue);
  }

  /* ── PIPELINE VIZ ── */
  .pipeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-top: 48px;
    overflow-x: auto;
    padding-bottom: 20px;
  }
  .pipe-step {
    flex: 1;
    min-width: 180px;
    position: relative;
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    transition: all 0.4s;
    cursor: pointer;
  }
  .pipe-step:first-child { border-radius: 16px 0 0 16px; }
  .pipe-step:last-child { border-radius: 0 16px 16px 0; }
  .pipe-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: var(--accent-cyan);
    z-index: 2;
    width: 24px;
    height: 24px;
    background: var(--bg-deep);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
  }
  .pipe-step:hover {
    background: var(--bg-card-hover);
    z-index: 1;
  }
  .pipe-step.active {
    background: var(--glow-blue);
    border-color: var(--accent-blue);
  }
  .pipe-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--accent-cyan);
    letter-spacing: 2px;
    margin-bottom: 12px;
  }
  .pipe-icon {
    font-size: 28px;
    margin-bottom: 12px;
    display: block;
  }
  .pipe-step h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
  }
  .pipe-step p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
  }
  .pipe-expanded {
    margin-top: 24px;
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 32px;
    display: none;
  }
  .pipe-expanded.visible { display: block; animation: fadeUp 0.4s ease; }
  .pipe-expanded h4 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .pipe-expanded p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
  }

  /* ── COMPARISON TABLE ── */
  .compare-section { margin-top: 48px; }
  .compare-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
  }
  .compare-table th, .compare-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
  }
  .compare-table th {
    background: var(--bg-mid);
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 500;
  }
  .compare-table td {
    background: var(--bg-card);
    font-size: 14px;
    transition: background 0.3s;
  }
  .compare-table tr:hover td { background: var(--bg-card-hover); }
  .compare-table tr:last-child td { border-bottom: none; }
  .check { color: var(--accent-cyan); font-size: 18px; }
  .partial { color: var(--accent-orange); font-size: 14px; }
  .none { color: var(--text-dim); font-size: 14px; }

  /* ── FAQ ACCORDION ── */
  .faq-list { margin-top: 48px; display: grid; gap: 12px; }
  .faq-item {
    background: var(--bg-mid);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
  }
  .faq-item:hover { border-color: #5e309d; }
  .faq-q {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 500;
    font-size: 15px;
    user-select: none;
    transition: color 0.3s;
  }
  .faq-q:hover { color: var(--accent-cyan); }
  .faq-toggle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    color: var(--text-dim);
    transition: transform 0.3s, color 0.3s;
  }
  .faq-item.open .faq-toggle {
    transform: rotate(45deg);
    color: var(--accent-cyan);
  }
  .faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  .faq-item.open .faq-a { max-height: 300px; }
  .faq-a-inner {
    padding: 0 24px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.7;
  }

  /* ── FOOTER ── */
  footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 60px 24px 40px;
    border-top: 1px solid var(--border-subtle);
  }
  footer p {
    color: var(--text-dim);
    font-size: 13px;
  }
  footer a {
    color: var(--accent-cyan);
    text-decoration: none;
  }

  /* ── RESPONSIVE ── */
  @media (max-width: 768px) {
    nav { padding: 12px 20px; }
    .nav-links { display: none; }
    .hero-stats { flex-direction: column; gap: 24px; }
    .search-demo { padding: 24px; }
    .search-bar { flex-direction: column; }
    .pipeline { flex-direction: column; }
    .pipe-step { border-radius: 12px !important; }
    .pipe-step:not(:last-child)::after { display: none; }
    section { padding: 60px 16px; }
    .compare-table { font-size: 12px; }
    .compare-table th, .compare-table td { padding: 12px 14px; }
  }