/* =========================================================
   Extracted from views/faq.ejs on 20260604-120850
========================================================= */

:root {
      --bg: #050507;
      --panel: rgba(255, 255, 255, 0.045);
      --panel-strong: rgba(255, 255, 255, 0.075);
      --line: rgba(255, 255, 255, 0.10);
      --muted: #a1a1aa;
      --indigo: #6366f1;
      --violet: #a855f7;
      --cyan: #22d3ee;
      --emerald: #34d399;
      --rose: #fb7185;
      --amber: #f59e0b;
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      background:
        radial-gradient(circle at 14% 8%, rgba(99,102,241,0.23), transparent 30rem),
        radial-gradient(circle at 88% 5%, rgba(168,85,247,0.20), transparent 32rem),
        radial-gradient(circle at 50% 110%, rgba(34,211,238,0.09), transparent 34rem),
        var(--bg);
      color: white;
      font-family: Inter, system-ui, sans-serif;
      overflow-x: hidden;
    }

    .font-display { font-family: 'Space Grotesk', Inter, system-ui, sans-serif; }

    .glass {
      background: var(--panel);
      border: 1px solid var(--line);
      backdrop-filter: blur(24px);
      box-shadow: 0 24px 90px rgba(0,0,0,0.36);
    }

    .glass-strong {
      background: var(--panel-strong);
      border: 1px solid rgba(255,255,255,0.13);
      backdrop-filter: blur(28px);
      box-shadow: 0 28px 100px rgba(0,0,0,0.42);
    }

    .nova-gradient {
      background: linear-gradient(90deg, #93c5fd, #818cf8, #c084fc, #22d3ee);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }

    .grid-bg {
      background-image:
        linear-gradient(rgba(99,102,241,0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,0.07) 1px, transparent 1px);
      background-size: 64px 64px;
      mask-image: linear-gradient(to bottom, black, transparent 80%);
    }

    .orb {
      position: absolute;
      border-radius: 999px;
      filter: blur(54px);
      opacity: .5;
      pointer-events: none;
    }

    .orb-one { width: 340px; height: 340px; background: #6366f1; top: 70px; right: 6%; }
    .orb-two { width: 280px; height: 280px; background: #a855f7; top: 680px; left: -90px; }
    .orb-three { width: 260px; height: 260px; background: #22d3ee; top: 1460px; right: -90px; opacity: .2; }

    .hover-lift {
      transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
    }

    .hover-lift:hover {
      transform: translateY(-7px);
      border-color: rgba(129,140,248,0.48);
      background: rgba(255,255,255,0.07);
      box-shadow: 0 30px 110px rgba(99,102,241,0.14);
    }

    .pulse-dot {
      width: 8px;
      height: 8px;
      background: var(--emerald);
      border-radius: 99px;
      box-shadow: 0 0 0 rgba(52,211,153,0.55);
      animation: pulse 2s infinite;
    }

    @keyframes pulse {
      0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); }
      70% { box-shadow: 0 0 0 12px rgba(52,211,153,0); }
      100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
    }

    .nova-brand-logo {
      position: relative;
      width: 64px;
      height: 64px;
      border-radius: 999px;
      flex: 0 0 auto;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: visible;
      filter:
        drop-shadow(0 0 16px rgba(99,102,241,0.65))
        drop-shadow(0 0 30px rgba(168,85,247,0.28));
    }

    .nova-brand-orb,
    .nova-brand-eyes {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
    }

    .nova-brand-orb {
      z-index: 1;
      animation: novaOrbSpin 42s linear infinite;
      transform-origin: center center;
    }

    .nova-brand-eyes {
      z-index: 2;
      animation: novaEyesBlink 5.8s infinite;
      transform-origin: center center;
    }

    @keyframes novaOrbSpin {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes novaEyesBlink {
      0%, 86%, 100% { transform: scale(0.78, 0.78); opacity: 1; }
      88% { transform: scale(0.78, 0.08); opacity: 0.75; }
      90% { transform: scale(0.78, 0.78); opacity: 1; }
      94% { transform: scale(0.78, 0.08); opacity: 0.75; }
      96% { transform: scale(0.78, 0.78); opacity: 1; }
    }

    /* =========================================================
       UNIQUE FAQ ANIMATION: 3D DIALOGUE CHAMBER
       Code-only CSS/HTML animation. No image generation.
       Different from Core, Engine, Terminal, Proof, Info and Pricing.
    ========================================================= */

    .dialogue-chamber {
      position: relative;
      min-height: 680px;
      perspective: 1400px;
      transform-style: preserve-3d;
      overflow: hidden;
    }

    .dialogue-stage {
      position: absolute;
      inset: 34px;
      border-radius: 2.4rem;
      background:
        radial-gradient(circle at 50% 30%, rgba(34,211,238,.12), transparent 20rem),
        radial-gradient(circle at 50% 82%, rgba(99,102,241,.14), transparent 26rem),
        linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.015));
      border: 1px solid rgba(255,255,255,.12);
      transform-style: preserve-3d;
      overflow: hidden;
    }

    .dialogue-floor {
      position: absolute;
      left: 50%;
      bottom: 40px;
      width: 720px;
      height: 340px;
      transform: translateX(-50%) rotateX(70deg) rotateZ(-4deg);
      transform-origin: center center;
      border-radius: 2rem;
      background:
        radial-gradient(circle at center, rgba(34,211,238,.11), transparent 36%),
        linear-gradient(rgba(129,140,248,.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(129,140,248,.18) 1px, transparent 1px);
      background-size: auto, 34px 34px, 34px 34px;
      mask-image: radial-gradient(circle at center, black 0%, black 50%, transparent 79%);
      opacity: .72;
      animation: dialogueFloorDrift 6s ease-in-out infinite;
    }

    @keyframes dialogueFloorDrift {
      0%, 100% { transform: translateX(-50%) rotateX(70deg) rotateZ(-4deg) translateY(0); opacity: .52; }
      50% { transform: translateX(-50%) rotateX(70deg) rotateZ(-4deg) translateY(-12px); opacity: .88; }
    }

    .speech-vortex {
      position: absolute;
      left: 50%;
      top: 49%;
      width: 330px;
      height: 330px;
      transform: translate(-50%, -50%) rotateX(64deg);
      transform-style: preserve-3d;
      border-radius: 999px;
      z-index: 4;
      animation: vortexTilt 8s ease-in-out infinite;
    }

    @keyframes vortexTilt {
      0%, 100% { transform: translate(-50%, -50%) rotateX(64deg) rotateZ(-4deg); }
      50% { transform: translate(-50%, -50%) rotateX(68deg) rotateZ(4deg); }
    }

    .speech-vortex span {
      position: absolute;
      inset: 0;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.13);
      box-shadow: inset 0 0 28px rgba(34,211,238,.08), 0 0 34px rgba(99,102,241,.08);
      animation: vortexSpin 13s linear infinite;
    }

    .speech-vortex span:nth-child(2) {
      inset: 38px;
      animation-duration: 10s;
      animation-direction: reverse;
      border-color: rgba(34,211,238,.18);
    }

    .speech-vortex span:nth-child(3) {
      inset: 76px;
      animation-duration: 7s;
      border-color: rgba(168,85,247,.20);
    }

    @keyframes vortexSpin {
      to { transform: rotateZ(360deg); }
    }

    .faq-nova-node {
      position: absolute;
      left: 50%;
      top: 31%;
      width: 184px;
      height: 184px;
      transform: translate(-50%, -50%);
      border-radius: 999px;
      display: grid;
      place-items: center;
      z-index: 12;
      animation: faqNodeFloat 5s ease-in-out infinite;
    }

    @keyframes faqNodeFloat {
      0%, 100% { transform: translate(-50%, -50%) translateY(0); }
      50% { transform: translate(-50%, -50%) translateY(-13px); }
    }

    .faq-node-glow {
      position: absolute;
      inset: -26px;
      border-radius: 999px;
      background:
        radial-gradient(circle, rgba(34,211,238,.20), transparent 56%),
        radial-gradient(circle, rgba(168,85,247,.22), transparent 66%);
      filter: blur(12px);
      animation: faqGlow 3.2s ease-in-out infinite;
    }

    @keyframes faqGlow {
      0%, 100% { opacity: .6; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.08); }
    }

    .faq-nova-node .nova-brand-logo {
      width: 146px;
      height: 146px;
    }

    .chat-bubble-3d {
      position: absolute;
      width: 168px;
      min-height: 92px;
      border-radius: 1.45rem 1.45rem 1.45rem .45rem;
      padding: 15px;
      background: rgba(8, 8, 14, .80);
      border: 1px solid rgba(255,255,255,.13);
      backdrop-filter: blur(16px);
      box-shadow: 0 18px 60px rgba(0,0,0,.35);
      z-index: 8;
      animation: bubbleFloat 6s ease-in-out infinite;
    }

    .chat-bubble-3d.user {
      border-radius: 1.45rem 1.45rem .45rem 1.45rem;
      background:
        linear-gradient(135deg, rgba(99,102,241,.18), rgba(255,255,255,.04)),
        rgba(8, 8, 14, .80);
    }

    .chat-bubble-3d .who {
      font-size: 10px;
      text-transform: uppercase;
      letter-spacing: .16em;
      color: #a5b4fc;
    }

    .chat-bubble-3d .text {
      margin-top: 7px;
      color: #e4e4e7;
      font-size: 13px;
      line-height: 1.35;
    }

    .bubble-a { left: 6%; top: 16%; animation-delay: 0s; }
    .bubble-b { right: 6%; top: 18%; animation-delay: .8s; }
    .bubble-c { left: 8%; bottom: 16%; animation-delay: 1.5s; }
    .bubble-d { right: 8%; bottom: 15%; animation-delay: 2.2s; }

    @keyframes bubbleFloat {
      0%, 100% { transform: translateY(0) translateZ(0); opacity: .86; }
      50% { transform: translateY(-16px) translateZ(18px); opacity: 1; }
    }

    .question-particle {
      position: absolute;
      width: 34px;
      height: 34px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.14);
      color: #67e8f9;
      box-shadow: 0 12px 44px rgba(34,211,238,.12);
      z-index: 9;
      animation: particleOrbit 8s ease-in-out infinite;
    }

    .qp-1 { left: 24%; top: 40%; animation-delay: 0s; }
    .qp-2 { right: 25%; top: 41%; animation-delay: 1s; }
    .qp-3 { left: 34%; bottom: 31%; animation-delay: 2s; }
    .qp-4 { right: 35%; bottom: 30%; animation-delay: 3s; }

    @keyframes particleOrbit {
      0%, 100% { transform: translateY(0) rotate(0deg); opacity: .55; }
      50% { transform: translateY(-18px) rotate(10deg); opacity: 1; }
    }

    .dialogue-beam {
      position: absolute;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(34,211,238,.76), transparent);
      filter: drop-shadow(0 0 10px rgba(34,211,238,.45));
      opacity: .58;
      z-index: 5;
      transform-origin: left center;
      animation: dialogueBeamPulse 3s ease-in-out infinite;
    }

    .dbeam-1 { width: 255px; left: 20%; top: 31%; transform: rotate(12deg); }
    .dbeam-2 { width: 250px; right: 20%; top: 33%; transform: rotate(168deg); }
    .dbeam-3 { width: 260px; left: 21%; bottom: 31%; transform: rotate(-17deg); }
    .dbeam-4 { width: 260px; right: 21%; bottom: 31%; transform: rotate(197deg); }

    @keyframes dialogueBeamPulse {
      0%, 100% { opacity: .16; }
      50% { opacity: .82; }
    }

    .faq-status-pill {
      position: absolute;
      left: 50%;
      bottom: 32px;
      transform: translateX(-50%);
      z-index: 13;
      display: inline-flex;
      align-items: center;
      gap: 10px;
      padding: 13px 18px;
      border-radius: 999px;
      background: rgba(5,5,7,.75);
      border: 1px solid rgba(255,255,255,.12);
      backdrop-filter: blur(18px);
      box-shadow: 0 14px 50px rgba(0,0,0,.35);
      color: #d4d4d8;
      font-size: 13px;
      white-space: nowrap;
    }

    .faq-status-pill i { color: #34d399; }

    .mobile-menu {
      max-height: 0;
      overflow: hidden;
      transition: max-height .25s ease;
    }

    .mobile-menu.open { max-height: 520px; }

    .faq-chat {
      min-height: 620px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
    }

    .chat-feed {
      flex: 1;
      overflow-y: auto;
      scroll-behavior: smooth;
    }

    .chat-feed::-webkit-scrollbar { width: 7px; }
    .chat-feed::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
    .chat-feed::-webkit-scrollbar-thumb { background: rgba(129,140,248,.35); border-radius: 99px; }

    .msg {
      display: flex;
      gap: 12px;
      margin-bottom: 16px;
      animation: msgIn .22s ease-out;
    }

    @keyframes msgIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }

    .msg.user { justify-content: flex-end; }

    .msg-avatar {
      width: 36px;
      height: 36px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      background: rgba(99,102,241,.14);
      border: 1px solid rgba(255,255,255,.12);
      color: #a5b4fc;
      flex: 0 0 auto;
    }

    .msg.user .msg-avatar { display: none; }

    .msg-bubble {
      max-width: 82%;
      padding: 14px 16px;
      border-radius: 1.35rem;
      background: rgba(255,255,255,.055);
      border: 1px solid rgba(255,255,255,.10);
      color: #e4e4e7;
      line-height: 1.5;
      font-size: 14px;
    }

    .msg.user .msg-bubble {
      background: linear-gradient(135deg, rgba(99,102,241,.38), rgba(168,85,247,.20));
      border-color: rgba(129,140,248,.25);
    }

    .quick-btn {
      border: 1px solid rgba(255,255,255,.12);
      background: rgba(255,255,255,.055);
      color: #d4d4d8;
      border-radius: 999px;
      padding: 10px 13px;
      font-size: 13px;
      transition: background .2s ease, border-color .2s ease, transform .2s ease;
      text-align: left;
    }

    .quick-btn:hover {
      background: rgba(255,255,255,.085);
      border-color: rgba(129,140,248,.42);
      transform: translateY(-2px);
    }

    .faq-card {
      cursor: pointer;
    }

    @media (max-width: 1000px) {
      .dialogue-chamber { min-height: 700px; }
      .dialogue-stage { inset: 16px; }
      .dialogue-floor { width: 500px; height: 280px; bottom: 78px; }
      .faq-nova-node { top: 28%; }
      .faq-nova-node .nova-brand-logo { width: 118px; height: 118px; }
      .speech-vortex { width: 260px; height: 260px; top: 48%; }
      .chat-bubble-3d { width: 132px; padding: 12px; }
      .chat-bubble-3d .text { font-size: 11px; }
      .bubble-a { left: 4%; top: 13%; }
      .bubble-b { right: 4%; top: 14%; }
      .bubble-c { left: 4%; bottom: 14%; }
      .bubble-d { right: 4%; bottom: 13%; }
      .dialogue-beam { display: none; }
      .question-particle { display: none; }
      .faq-status-pill {
        width: calc(100% - 48px);
        justify-content: center;
        text-align: center;
        white-space: normal;
        bottom: 28px;
      }
      .faq-chat { min-height: 640px; }
    }
