/* ─── TOKENS ────────────────────────────────────────────────────────────────── */
:root {
  --bg:        #080807;
  --bg2:       #0f0f0d;
  --bg3:       #161613;
  --bg4:       #1e1e1a;
  --border:    #2a2a24;
  --border2:   #333328;
  --btc:       #f7931a;
  --btc2:      #e8820a;
  --btc-dim:   rgba(247,147,26,0.12);
  --btc-glow:  rgba(247,147,26,0.25);
  --text:      #f0ede6;
  --text2:     #e8e4de;
  --text3:     #c4bfb8;
  --green:     #22c55e;
  --mono:      'IBM Plex Mono', monospace;
  --display:   'Bebas Neue', sans-serif;
  --sans:      'Inter', sans-serif;
  --r:         14px;
}

/* ─── RESET ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

.bg-glow {
  position: fixed;
  top: -20vh;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(247,147,26,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

/* ─── LAYOUT ────────────────────────────────────────────────────────────────── */
.page {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 28px;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  filter: drop-shadow(0 0 10px rgba(247,147,26,0.24));
  transition: filter 0.2s;
}

.logo:hover .logo-icon {
  filter: drop-shadow(0 0 16px rgba(247,147,26,0.4));
}

.logo-text {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  letter-spacing: 0.5px;
}

.logo-text strong {
  color: var(--text);
  font-weight: 500;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-links a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.35px;
  color: var(--text3);
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  background: rgba(255,255,255,0.015);
  transition:
    color 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    transform 0.15s ease;
}

.top-links a:hover {
  color: var(--text2);
  border-color: rgba(247,147,26,0.2);
  background: rgba(247,147,26,0.05);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  background: rgba(255,255,255,0.015);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 14px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--text2);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

/* ─── TOOLS LIST ────────────────────────────────────────────────────────────── */
.tools-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text3);
}

.tool-shell {
  padding: 24px 0 0;
}

.tool-list {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 42px;
}

.tools-head {
  padding: 0 0 16px;
}

.tool-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  z-index: 1;
  transition: background 0.15s ease, border-color 0.15s ease;
  overflow: hidden;
}

.tool-row:hover {
  background: rgba(255,255,255,0.015);
}

.tool-row--link {
  cursor: pointer;
}

.tool-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247,147,26,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.tool-row--placeholder {
  cursor: default;
}

.tool-row--placeholder:hover {
  background: transparent;
}

.tool-icon {
  width: 24px;
  height: 24px;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  display: block;
  margin-top: 3px;
}

.tool-logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 6px;
  margin-top: 3px;
}

.tool-logo--brand {
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
}

.tool-icon::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 13px;
  height: 13px;
  border: 1.5px solid rgba(247,147,26,0.75);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(247,147,26,0.08);
}

.tool-icon::after {
  content: '';
  position: absolute;
  right: 2px;
  bottom: 4px;
  width: 8px;
  height: 1.5px;
  background: rgba(247,147,26,0.75);
  border-radius: 999px;
  transform: rotate(45deg);
}

.tool-icon--robot {
  width: 24px;
  height: 24px;
  margin-top: 3px;
}

.tool-icon--robot::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 3px;
  width: 16px;
  height: 12px;
  border: 1.5px solid rgba(247,147,26,0.75);
  border-radius: 5px;
  box-shadow: 0 0 0 3px rgba(247,147,26,0.07);
}

.tool-icon--robot::after {
  content: '';
  position: absolute;
  top: 9px;
  left: 7px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(247,147,26,0.82);
  box-shadow:
    6px 0 0 rgba(247,147,26,0.82),
    3px 7px 0 -1px rgba(247,147,26,0.72);
  transform: none;
}

.tool-main {
  min-width: 0;
  flex: 1;
}

.tool-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.tool-name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text);
}

.tool-creator-link {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.35px;
  color: rgba(240,237,230,0.58);
  text-decoration: none;
  transition: color 0.15s ease;
}

.tool-creator-link:hover {
  color: var(--btc);
}

.tool-description {
  margin-top: 8px;
  font-family: var(--mono);
  color: var(--text3);
  font-size: 11px;
  line-height: 1.75;
  max-width: 640px;
}

.tool-arrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--btc);
  white-space: nowrap;
  opacity: 0.75;
}

.tool-row--placeholder .tool-arrow {
  color: var(--text3);
  opacity: 0.95;
}

/* ─── FOOTER ────────────────────────────────────────────────────────────────── */
.footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 92px 0 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text3);
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── RESPONSIVE ────────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .tool-row {
    align-items: flex-start;
  }
}

@media (max-width: 760px) {
  .page { padding: 0 18px; }

  .top-bar,
  .footer {
    align-items: center;
  }

  .top-bar {
    position: relative;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 36px;
  }

  .menu-toggle {
    display: inline-flex;
    flex-shrink: 0;
  }

  .top-links {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(260px, calc(100vw - 36px));
    padding: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    background: rgba(15,15,13,0.96);
    box-shadow: 0 12px 32px rgba(0,0,0,0.32);
    gap: 8px;
    justify-content: flex-start;
    flex-direction: column;
    z-index: 20;
  }

  .top-links a {
    font-size: 10px;
    padding: 9px 10px;
    border-radius: 8px;
  }

  .top-bar.menu-open .top-links {
    display: flex;
  }

  .top-bar.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(5.5px) rotate(45deg);
  }

  .top-bar.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .top-bar.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-5.5px) rotate(-45deg);
  }

  .tool-shell {
    padding-top: 0;
  }

  .tools-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tool-list {
    margin-bottom: 30px;
  }

  .tool-row {
    gap: 16px;
    padding: 18px 18px;
  }

  .tool-logo {
    width: 24px;
    height: 24px;
    margin-top: 1px;
  }

  .tool-icon,
  .tool-icon--robot {
    width: 24px;
    height: 24px;
    margin-top: 1px;
  }

  .tool-name {
    font-size: 13px;
  }

  .tool-title-row {
    gap: 8px;
  }

  .tool-creator-link {
    font-size: 9px;
  }

  .tool-description {
    margin-top: 6px;
    font-size: 10px;
    line-height: 1.6;
  }

  .tool-arrow {
    display: none;
  }
}
