 * {
      box-sizing: border-box;
    }

    :root {
      --bg: #050505;
      --panel: #0b0b0b;
      --panel-2: #101010;
      --border: #202020;
      --muted: #777;
      --text: #fff;
      --green: #4ade80;
    }

    html,
    body {
      margin: 0;
      min-height: 100%;
      background: var(--bg);
      color: var(--text);
      font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    }

    body {
      min-height: 100vh;
    }

    button,
    input {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    .app {
      width: min(1200px, calc(100% - 40px));
      margin: auto;
      padding: 36px 0 100px;
    }

    /* HEADER */

    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 90px;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.05em;
    }

    .brand-mark {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: grid;
      place-items: center;
      background: #fff;
      color: #000;
      font-weight: 900;
    }

    .status {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #888;
      font-size: 13px;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 14px var(--green);
    }

    /* HERO */

    .hero {
      max-width: 850px;
      margin-bottom: 50px;
    }

    .eyebrow {
      color: #777;
      text-transform: uppercase;
      letter-spacing: .18em;
      font-size: 11px;
      font-weight: 800;
      margin-bottom: 20px;
    }

    h1 {
      margin: 0;
      font-size: clamp(52px, 8vw, 100px);
      line-height: .92;
      letter-spacing: -.075em;
    }

    .hero p {
      max-width: 700px;
      color: #999;
      font-size: 18px;
      line-height: 1.65;
      margin-top: 30px;
    }

    /* SOURCE SWITCHER */

    .source-switcher {
      display: flex;
      gap: 8px;
      padding: 6px;
      width: fit-content;
      background: #0b0b0b;
      border: 1px solid var(--border);
      border-radius: 14px;
      margin-bottom: 12px;
    }

    .source-button {
      border: 0;
      background: transparent;
      color: #777;
      padding: 11px 18px;
      border-radius: 9px;
      font-weight: 700;
      transition: .2s;
    }

    .source-button:hover {
      color: #fff;
    }

    .source-button.active {
      background: #fff;
      color: #000;
    }

    /* SCANNER */

    .scanner {
      display: flex;
      gap: 8px;
      padding: 8px;
      background: #0c0c0c;
      border: 1px solid var(--border);
      border-radius: 20px;
      margin-bottom: 50px;
    }

    .scanner input {
      flex: 1;
      min-width: 0;
      padding: 18px;
      border: 0;
      outline: 0;
      background: transparent;
      color: #fff;
      font-size: 16px;
    }

    .scanner input::placeholder {
      color: #4f4f4f;
    }

    .scan-button {
      border: 0;
      border-radius: 14px;
      padding: 0 28px;
      background: #fff;
      color: #000;
      font-weight: 800;
      transition: .2s;
    }

    .scan-button:hover {
      transform: translateY(-2px);
    }

    .scan-button:disabled {
      opacity: .5;
      cursor: wait;
      transform: none;
    }

    /* LOADING */

    .loading {
      display: none;
      margin-bottom: 40px;
    }

    .loading.active {
      display: block;
    }

    .loading-bar {
      width: 100%;
      height: 3px;
      overflow: hidden;
      background: #151515;
      border-radius: 20px;
    }

    .loading-bar::after {
      content: "";
      display: block;
      width: 30%;
      height: 100%;
      background: #fff;
      animation: loading 1.1s infinite ease-in-out;
    }

    @keyframes loading {
      from {
        transform: translateX(-150%);
      }

      to {
        transform: translateX(450%);
      }
    }

    .loading-text {
      margin-top: 12px;
      color: #777;
      font-size: 13px;
    }

    /* ERROR */

    .error {
      display: none;
      padding: 18px;
      border: 1px solid #3b2020;
      border-radius: 14px;
      background: #160909;
      color: #ff9b9b;
      margin-bottom: 40px;
    }

    .error.active {
      display: block;
    }

    /* RESULTS */

    #results {
      display: none;
      animation: resultIn .5s ease;
    }

    #results.active {
      display: block;
    }

    @keyframes resultIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }

      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .site-info {
      margin-bottom: 36px;
    }

    .site-title {
      font-size: 36px;
      font-weight: 800;
      letter-spacing: -.05em;
    }

    .site-url {
      color: #666;
      margin-top: 8px;
      word-break: break-all;
    }

    /* REPOSITORY INFO */

    .repo-info {
      display: none;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
      margin-bottom: 16px;
    }

    .repo-info.active {
      display: grid;
    }

    .repo-item {
      padding: 18px;
      background: #0b0b0b;
      border: 1px solid #1c1c1c;
      border-radius: 14px;
    }

    .repo-label {
      color: #666;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .1em;
    }

    .repo-value {
      margin-top: 8px;
      font-weight: 700;
      color: #ddd;
      word-break: break-word;
    }

    /* STAT CARDS */

    .grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 50px;
    }

    .card {
      padding: 22px;
      background: var(--panel);
      border: 1px solid #1c1c1c;
      border-radius: 16px;
      transition: .2s;
    }

    .card:hover {
      border-color: #333;
      transform: translateY(-2px);
    }

    .card-label {
      color: #666;
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: .1em;
    }

    .card-value {
      margin-top: 12px;
      font-size: 34px;
      font-weight: 800;
      letter-spacing: -.05em;
    }

    /* SECTIONS */

    .section {
      margin-top: 48px;
    }

    .section-title {
      margin-bottom: 15px;
      color: #777;
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: .13em;
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .tag {
      padding: 9px 13px;
      border-radius: 999px;
      background: #0d0d0d;
      border: 1px solid #252525;
      color: #ccc;
      font-size: 13px;
    }

    /* FILES / PAGES */

    .pages {
      display: grid;
      gap: 9px;
    }

    .page {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      padding: 15px 18px;
      background: #0a0a0a;
      border: 1px solid #1b1b1b;
      border-radius: 12px;
      transition: .2s;
    }

    .page:hover {
      border-color: #333;
      background: #0e0e0e;
    }

    .page-url {
      min-width: 0;
      color: #bbb;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .page-status {
      color: var(--green);
      font-size: 12px;
      white-space: nowrap;
    }

    .page-status.failed {
      color: #ff8585;
    }

    .file-size {
      color: #666;
      font-size: 12px;
      white-space: nowrap;
    }

    .file-preview {
      margin-top: 8px;
      color: #555;
      font-family: monospace;
      font-size: 12px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    /* EMPTY */

    .empty {
      color: #555;
      font-size: 14px;
    }

    /* RESPONSIVE */

    @media (max-width: 850px) {
      .grid,
      .repo-info {
        grid-template-columns: repeat(2, 1fr);
      }

      .scanner {
        flex-direction: column;
      }

      .scan-button {
        min-height: 54px;
      }
    }

    @media (max-width: 520px) {
      .app {
        width: calc(100% - 24px);
        padding-top: 24px;
      }

      header {
        margin-bottom: 55px;
      }

      .grid,
      .repo-info {
        grid-template-columns: 1fr;
      }

      h1 {
        font-size: 55px;
      }

      .hero p {
        font-size: 16px;
      }

      .source-switcher {
        width: 100%;
      }

      .source-button {
        flex: 1;
      }

      .page {
        flex-direction: column;
        gap: 8px;
      }
    }