
:root {
      --bg: #0b0f14;
      --card: rgba(255,255,255,0.06);
      --text: #e5e7eb;
      --muted: #9ca3af;
      --brand: linear-gradient(135deg,#60a5fa, #a78bfa 40%, #f472b6 80%);
      --brand-solid: #8b5cf6;
      --accent: #22d3ee;
      --ring: rgba(139,92,246,.45);
      --shadow: 0 10px 30px rgba(0,0,0,.35);
      --radius: 18px;
    }
    [data-theme="light"] {
      --bg: #f8fafc;
      --card: rgba(255,255,255,.9);
      --text: #0b0f14;
      --muted: #4b5563;
      --ring: rgba(99,102,241,.35);
      --shadow: 0 10px 30px rgba(2,6,23,.08);
    }

    html, body { height: 100%; }
    body {
      background:
        radial-gradient(1200px 600px at 10% -10%, rgba(99,102,241,.25), transparent 60%),
        radial-gradient(800px 500px at 110% 10%, rgba(236,72,153,.18), transparent 60%),
        var(--bg);
      color: var(--text);
      font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
      letter-spacing: .01em;
    }

    /* Top nav */
    .nav-blur {
      backdrop-filter: saturate(1.2) blur(10px);
      background: linear-gradient(180deg, rgba(15,18,25,.65), rgba(15,18,25,.35));
      border-bottom: 1px solid rgba(148,163,184,.12);
    }
    [data-theme="light"] .nav-blur {
      background: rgba(255,255,255,.7);
      border-bottom-color: rgba(15,23,42,.06);
    }
    .brand-mark {
      background: var(--brand);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
      font-family: "Space Grotesk", Inter, system-ui;
      font-weight: 800;
      letter-spacing: .5px;
    }

    /* Hero */
    #hero {
      position: relative;
      display: grid;
      place-items: center;
      min-height: 68vh;
      padding: 7rem 1rem 4rem;
      overflow: hidden;
      isolation: isolate;
    }
    .blob {
      position: absolute;
      width: 60vmax;
      height: 60vmax;
      background:
        radial-gradient(circle at 30% 30%, rgba(99,102,241,.45), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(244,114,182,.35), transparent 60%);
      filter: blur(50px) saturate(1.2);
      opacity: .7;
      animation: float 18s ease-in-out infinite;
      z-index: -1;
    }
    @keyframes float {
      0%, 100% { transform: translate3d(-6%, -4%, 0) rotate(0.001deg); }
      50% { transform: translate3d(6%, 4%, 0) rotate(0.001deg); }
    }
    .hero-card {
      max-width: 980px;
      background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
      border: 1px solid rgba(148,163,184,.16);
      border-radius: 24px;
      padding: 2.25rem;
      box-shadow: var(--shadow);
    }
    [data-theme="light"] .hero-card { background: rgba(255,255,255,.9); }

    .tagline {
      display: inline-flex;
      align-items: center;
      gap: .5rem;
      padding: .35rem .75rem;
      border-radius: 999px;
      font-size: .85rem;
      color: var(--text);
      background: rgba(255,255,255,.12);
      border: 1px solid rgba(148,163,184,.18);
    }
    [data-theme="light"] .tagline { background: rgba(15,23,42,.06); }

    .cta {
      display: inline-flex;
      align-items: center;
      gap: .6rem;
      padding: .9rem 1.2rem;
      border-radius: 14px;
      font-weight: 700;
      border: 0;
      background: var(--brand);
      color: #fff;
      box-shadow: 0 10px 25px rgba(99,102,241,.35);
      transition: transform .08s ease, box-shadow .2s ease;
      text-decoration: none;
    }
    .cta:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(99,102,241,.4); }

    /* Sections */
    section { padding: 72px 0; }
    .section-title {
      font-family: "Space Grotesk", Inter, system-ui;
      font-weight: 800;
      letter-spacing: .2px;
      margin-bottom: 28px;
    }
    .section-sub {
      color: var(--muted);
      margin-bottom: 28px;
      font-size: .98rem;
    }

    /* Cards */
    .hx-card {
      background: var(--card);
      border: 1px solid rgba(148,163,184,.16);
      border-radius: var(--radius);
      padding: 1.25rem;
      height: 100%;
      transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
      box-shadow: var(--shadow);
    }
    .hx-card:hover {
      transform: translateY(-4px);
      border-color: var(--ring);
      box-shadow: 0 18px 45px rgba(0,0,0,.28);
    }
    .hx-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
    .hx-link { text-decoration: none; font-weight: 600; }
    .hx-link .arrow { opacity: .7; transition: transform .15s ease; display: inline-block; }
    .hx-link:hover .arrow { transform: translateX(3px); }

    /* Search */
    .searchbar {
      display: flex;
      align-items: center;
      gap: .75rem;
      background: var(--card);
      border: 1px solid rgba(148,163,184,.2);
      border-radius: 14px;
      padding: .75rem 1rem;
      color: var(--text);
    }
    .searchbar input {
      background: transparent;
      border: 0;
      color: var(--text);
      width: 100%;
      outline: none;
    }

    /* Footer */
    footer {
      border-top: 1px solid rgba(148,163,184,.16);
      color: var(--muted);
    }

    /* Utilities */
    .gradient-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
    .pill { border-radius: 999px; }
    .small { font-size: .9rem; }
    .muted { color: var(--muted); }

    /* Details and search highlight */
    .details { margin-top: .75rem; }
    .details summary {
      cursor: pointer;
      user-select: none;
      padding: .45rem .6rem;
      border: 1px solid rgba(148,163,184,.28);
      border-radius: 10px;
      display: inline-block;
      font-weight: 700;
    }
    .details[open] summary { background: rgba(255,255,255,.08); }
    .details ul { margin: .5rem 0 0 1rem; }
    .highlight { background: rgba(250,204,21,.35); padding: .05rem .15rem; border-radius: 4px; }

    .empty-banner { display: none; margin: 1rem auto 0; max-width: 960px; }
    .empty-banner.show { display: block; }

    /* Quick Exit styles */
    .btn-exit {
      background: #ef4444;
      color: #fff;
      border: 1px solid rgba(0,0,0,.08);
      font-weight: 800;
    }
    .btn-exit:hover { filter: brightness(0.95); }
    .quick-dock .exit {
      background: linear-gradient(180deg, rgba(239,68,68,.95), rgba(185,28,28,.95));
      color: #fff !important;
      border: 1px solid rgba(0,0,0,.15);
    }

    /* Base quick-dock (desktop and tablets) */
    .quick-dock {
      position: fixed;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(15,18,25,.7);
      border: 1px solid rgba(148,163,184,.18);
      border-radius: 999px;
      padding: .4rem;
      display: flex;
      gap: .4rem;
      z-index: 40;
      backdrop-filter: blur(10px) saturate(1.1);
      box-shadow: var(--shadow);
    }
    [data-theme="light"] .quick-dock { background: rgba(255,255,255,.85); }
    .quick-dock a {
      padding: .6rem .9rem;
      border-radius: 999px;
      text-decoration: none;
      font-weight: 700;
      font-size: .95rem;
      border: 1px solid rgba(148,163,184,.18);
      color: var(--text);
      background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
    }

    /* Mobile bottom bar full width, buttons side by side in one row */
    @media (max-width: 576px) {
      .quick-dock {
        left: 0;
        right: 0;
        bottom: 0;
        transform: none;
        width: 100%;
        height: auto;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 12px;
        border-radius: 0;
        border-top: 1px solid rgba(148,163,184,.18);
        background: rgba(15,18,25,.9);
        backdrop-filter: blur(10px) saturate(1.05);
        box-shadow: 0 -10px 30px rgba(0,0,0,.35);
      }
      [data-theme="light"] .quick-dock {
        background: rgba(255,255,255,.95);
        border-top-color: rgba(15,23,42,.08);
        box-shadow: 0 -10px 30px rgba(2,6,23,.12);
      }

      .quick-dock a {
        flex: 1 1 0;
        min-height: 52px;
        font-size: 1rem;
        font-weight: 800;
        border-radius: 12px;
        border: 1px solid rgba(148,163,184,.22);
        text-align: center;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.06));
      }

      .quick-dock a:active { transform: translateY(1px); }
    }
