:root{
    --bg0:#070b14;
    --bg1:#060a12;
  
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.70);
    --muted2: rgba(255,255,255,.55);
  
    --border: rgba(255,255,255,.12);
    --shadow: 0 18px 50px rgba(0,0,0,.35);
  
    --brand: #7c5cff;
    --brand2:#18d2ff;
    --ok:#22c55e;
  
    --radius: 18px;
    --radius2: 24px;
  }
  
  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  body{
    margin:0;
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--text);
    background: radial-gradient(1100px 600px at 15% -10%, rgba(124,92,255,.38), transparent 55%),
                radial-gradient(900px 550px at 85% 0%, rgba(24,210,255,.22), transparent 55%),
                linear-gradient(180deg, var(--bg0) 0%, var(--bg0) 30%, var(--bg1) 100%);
    line-height: 1.55;
  }
  
  a{ color: inherit; text-decoration: none; }
  a:hover{ text-decoration: underline; }
  img{ max-width: 100%; display:block; }
  
  .container{
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
  }
  
  .section{ padding: 72px 0; }
  .section.alt{
    background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
    border-top: 1px solid rgba(255,255,255,.06);
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .section.hero{ padding-top: 58px; }
  
  .section-head{ margin-bottom: 28px; }
  .row-between{
    display:flex;
    align-items:flex-end;
    justify-content: space-between;
    gap: 14px;
  }
  
  h1,h2,h3{ line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 10px; }
  h1{ font-size: clamp(2.1rem, 3.3vw, 3.2rem); font-weight: 800; }
  h2{ font-size: clamp(1.6rem, 2.3vw, 2.2rem); font-weight: 800; }
  h3{ font-size: 1.05rem; font-weight: 700; }
  
  .lead{ font-size: 1.05rem; color: var(--muted); margin: 12px 0 0; }
  .small{ font-size: .9rem; }
  .muted{ color: var(--muted); }
  .sr-only{
    position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0;
  }
  
  /* Background blobs */
  .bg-blobs{
    position: fixed; inset: 0; pointer-events: none;
    background:
      radial-gradient(700px 380px at 20% 10%, rgba(124,92,255,.18), transparent 55%),
      radial-gradient(680px 380px at 80% 20%, rgba(24,210,255,.14), transparent 55%),
      radial-gradient(600px 360px at 55% 90%, rgba(124,92,255,.10), transparent 60%);
    filter: blur(2px); opacity: .9; z-index: -1;
  }
  
  /* Header */
  .site-header{
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: rgba(7,11,20,.72);
    backdrop-filter: blur(10px);
  }
  .header-inner{
    display:flex; align-items:center; justify-content: space-between;
    padding: 14px 0; gap: 14px;
  }
  .brand {
    display: flex;
    align-items: center;
    gap: 12px;   /* ⬅️ increase spacing between logo & text */
  }
  .brand-logo {
    width: 52px;          /* ⬅️ was ~36–40 */
    height: 52px;
    object-fit: contain;
  }
  .brand-name {
    font-size: 1.05rem;   /* slight bump */
    font-weight: 700;
  }
  
  .brand-sub {
    font-size: 0.8rem;
    opacity: 0.85;
  }
  .brand-stack{ display:flex; flex-direction: column; line-height: 1.1; }
  .brand-name{ font-size: 1rem; letter-spacing: -0.01em; }
  .brand-sub{ font-size: .82rem; color: rgba(255,255,255,.68); font-weight: 600; margin-top: 2px; }
  
  .site-nav{ display:flex; align-items:center; gap: 10px; }
  .nav-link{
    font-size: .95rem;
    color: rgba(255,255,255,.78);
    padding: 10px 10px;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
  }
  .nav-link:hover{ background: rgba(255,255,255,.06); color: rgba(255,255,255,.92); text-decoration: none; }
  .nav-cta{
    background: rgba(124,92,255,.22);
    border: 1px solid rgba(124,92,255,.32);
    color: rgba(255,255,255,.92);
  }
  .nav-cta:hover{ background: rgba(124,92,255,.28); }
  
  .nav-toggle{
    display:none;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    border-radius: 14px;
    width: 44px; height: 44px;
  }
  .hamburger{
    display:block; width: 18px; height: 2px;
    background: rgba(255,255,255,.84);
    margin: 0 auto; position: relative;
  }
  .hamburger::before,
  .hamburger::after{
    content:""; position:absolute; left: 0;
    width: 18px; height: 2px;
    background: rgba(255,255,255,.84);
  }
  .hamburger::before{ top: -6px; }
  .hamburger::after{ top: 6px; }
  
  /* Buttons */
  .btn{
    display:inline-flex; align-items:center; justify-content:center; gap: 10px;
    padding: 12px 16px; border-radius: 14px; border: 1px solid transparent;
    font-weight: 700; letter-spacing: -0.01em; cursor: pointer;
    transition: transform .12s ease, background .2s ease, border-color .2s ease;
  }
  .btn:active{ transform: translateY(1px); }
  .btn-primary{
    background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(24,210,255,.85));
    border-color: rgba(255,255,255,.12);
    color: rgba(0,0,0,.88);
  }
  .btn-primary:hover{ text-decoration:none; }
  .btn-secondary{
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.14);
    color: rgba(255,255,255,.92);
  }
  .btn-secondary:hover{ background: rgba(255,255,255,.08); text-decoration:none; }
  .btn-block{ width: 100%; }
  
  /* Cards */
  .card{
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
  }
  .card p{ margin: 8px 0 0; color: var(--muted); }
  
  /* Hero */
  .hero-grid{
    display:grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 22px;
    align-items:start;
  }
  .eyebrow{
    display:inline-flex; align-items:center; gap: 10px;
    padding: 8px 12px; border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.86);
    font-weight: 700;
    margin: 0 0 12px;
  }
  .hero-actions{ display:flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
  .trust-row{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
  .pill{
    font-size: .9rem; padding: 8px 10px; border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.82);
  }
  
  /* Intelligence Score */
  .score{ margin-top: 16px; }
  .score-head{
    display:flex; align-items:flex-start; justify-content: space-between; gap: 10px;
  }
  .score-title{ margin: 0; }
  .score-main{
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 12px;
  }
  .score-index{
    padding: 14px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
  }
  .score-index-num{
    display:flex;
    align-items: baseline;
    gap: 6px;
  }
  .score-index-num .big{
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
  }
  .score-index-num .slash{
    font-size: 1.4rem;
    opacity: .75;
  }
  .score-index-num .outof{
    font-size: 1.1rem;
    opacity: .8;
    font-weight: 800;
  }
  .score-metrics{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .score-metric{
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
  }
  .kpi{
    margin:0;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.02em;
  }
  .sub{ margin: 4px 0 0; color: rgba(255,255,255,.68); font-size: .9rem; }
  
  /* Grids */
  .feature-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .usecase-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .two-col{ display:grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .two-col.tight{ gap: 10px; }
  
  .icon{
    width: 42px; height: 42px;
    display:grid; place-items:center;
    border-radius: 14px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    margin-bottom: 10px;
    font-size: 1.1rem;
  }
  
  .callout{
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(124,92,255,.22);
    background: rgba(124,92,255,.10);
  }
  
  /* Checklist */
  .checklist{ list-style: none; padding: 0; margin: 12px 0 0; }
  .checklist li{
    padding-left: 26px; margin: 10px 0; position: relative;
    color: rgba(255,255,255,.82);
  }
  .checklist li::before{
    content:"✓"; position:absolute; left: 0; top: 0;
    width: 18px; height: 18px; display:grid; place-items:center;
    color: rgba(34,197,94,.95); font-weight: 900;
  }
  
  /* Chat / Demonstration */
  .chat{ padding: 0; overflow: hidden; border-radius: var(--radius2); }
  .chat-top{
    display:flex; align-items:center; gap: 8px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
  }
  .dot{ width: 10px; height: 10px; border-radius: 999px; background: rgba(255,255,255,.22); }
  .chat-title{ margin-left: 8px; font-size: .92rem; color: rgba(255,255,255,.76); font-weight: 800; }
  .chat-status{
    margin-left: auto;
    font-size: .85rem;
    color: rgba(255,255,255,.68);
    font-weight: 700;
  }
  
  .chat-shell{
    display: grid;
    grid-template-columns: 1fr;
    min-height: 520px;
  }
  
  /* Ensure footer pins at bottom and body scrolls above it */
  .chat-left{
    display:flex;
    flex-direction: column;
    min-height: 520px;
  }
  
  .chat-body{
    flex: 1;
    padding: 14px;
    overflow:auto;
  }
  
  /* ✅ Tight vertical rhythm */
  .msg{ display:flex; margin: 8px 0; }
  .msg-user{ justify-content: flex-end; }
  .msg-ai{ justify-content: flex-start; }
  
  .msg-bubble{
    width: min(520px, 100%);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.035);
    padding: 10px 12px;
  }
  
  .msg-user .msg-bubble{
    background: rgba(124,92,255,.11);
    border-color: rgba(124,92,255,.22);
  }
  
  .msg-label{
    margin: 0 0 4px;
    font-size: .86rem;
    color: rgba(255,255,255,.78);
    font-weight: 800;
  }
  
  .msg-bubble p{ margin: 0; color: rgba(255,255,255,.88); }
  
  .msg-bubble ul{
    margin: 6px 0 0;
    padding-left: 18px;
    color: rgba(255,255,255,.86);
  }
  .msg-bubble li{ margin: 4px 0; }
  
  /* Typing cursor */
  .typing-cursor{
    display:inline-block;
    margin-left: 2px;
    transform: translateY(1px);
    opacity: .9;
    animation: cursorBlink 0.9s steps(1,end) infinite;
  }
  @keyframes cursorBlink{
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
  }
  
  /* Stationary footer note (fade-in after first answer completes) */
  .chat-footer-note{
    padding: 10px 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    background: rgba(7,11,20,0.92);
    border-top: 1px solid rgba(255,255,255,0.08);
  
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 420ms ease, transform 420ms ease;
  
    pointer-events: none;
  }
  .chat-footer-note.is-visible{
    opacity: 1;
    transform: translateY(0);
  }
  
  /* Inputs */
  input, textarea, select{
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.18);
    color: rgba(255,255,255,.92);
    outline: none;
    font: inherit;
  }
  select{ appearance: none; }
  input:focus, textarea:focus, select:focus{
    border-color: rgba(24,210,255,.38);
    box-shadow: 0 0 0 4px rgba(24,210,255,.12);
  }
  textarea{ resize: vertical; }
  
  /* Modal */
  .modal{
    position: fixed; inset: 0;
    background: rgba(0,0,0,.55);
    display:none;
    align-items:center;
    justify-content:center;
    padding: 18px;
    z-index: 80;
  }
  .modal.open{ display:flex; }
  .modal-card{
    width: min(920px, 100%);
    max-height: calc(100vh - 40px);   /* ✅ prevents header from being cut */
    display: flex;                   /* ✅ allows body to scroll */
    flex-direction: column;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(7,11,20,.92);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 90px rgba(0,0,0,.6);
    overflow: hidden;
  }
  .modal-head{
    position: sticky;   /* ✅ keeps header visible */
    top: 0;
    z-index: 2;
    display:flex; align-items:center; justify-content: space-between; gap: 10px;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
  }
  .demo-footer-note{
    padding: 12px 14px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.10);
    color: rgba(255,255,255,.72);
    font-size: .92rem;
    font-weight: 600;
  }
  .modal-body{
    padding: 14px;
    overflow: auto;     /* ✅ body scrolls, header stays */
    -webkit-overflow-scrolling: touch;
  }
  .modal-foot{
    display:flex; gap: 10px; justify-content:flex-end; flex-wrap: wrap;
    padding: 14px;
    border-top: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.03);
  }
  .modal-grid{
    display:grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .icon-btn{
    width: 42px; height: 42px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.04);
    color: rgba(255,255,255,.90);
    cursor: pointer;
  }
  .form .field{ margin-bottom: 12px; }
  label{
    display:block; margin-bottom: 6px;
    font-size: .92rem; color: rgba(255,255,255,.86); font-weight: 800;
  }
  
  .cta-actions{ display:flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
  
  /* Footer */
  .site-footer{
    border-top: 1px solid rgba(255,255,255,.06);
    padding: 26px 0;
    background: rgba(0,0,0,.16);
  }
  .footer-inner{
    display:flex; align-items:center; justify-content: space-between; gap: 16px;
  }
  .footer-links{ display:flex; gap: 14px; }
  .footer-links a{ color: rgba(255,255,255,.72); }
  .footer-links a:hover{ color: rgba(255,255,255,.92); text-decoration:none; }
  
  /* Responsive */
  @media (max-width: 980px){
    .feature-grid{ grid-template-columns: repeat(2, 1fr); }
    .usecase-grid{ grid-template-columns: repeat(2, 1fr); }
    .two-col{ grid-template-columns: 1fr; }
    .modal-grid{ grid-template-columns: 1fr; }
    .hero-grid{ grid-template-columns: 1fr; }
    .score-metrics{ grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) {
    .brand-logo {
      width: 44px;
      height: 44px;
    }
  }
  @media (max-width: 720px){
    .section{ padding: 56px 0; }
    .row-between{ align-items: flex-start; flex-direction: column; }
  
    .nav-toggle{ display: inline-flex; align-items:center; justify-content:center; }
    .site-nav{
      position: absolute; right: 20px; top: 74px;
      width: min(360px, calc(100% - 40px));
      display: none; flex-direction: column; align-items: stretch;
      gap: 6px; padding: 10px;
      border-radius: 18px; border: 1px solid rgba(255,255,255,.12);
      background: rgba(7,11,20,.92);
      backdrop-filter: blur(10px);
      box-shadow: var(--shadow);
    }
    .site-nav.open{ display:flex; }
    .nav-link{ padding: 12px 12px; }
  
    .footer-inner{ flex-direction: column; align-items:flex-start; }
  }