/* /tools landing page — site chrome comes from ../css/style.css.
   The previews are baked strips of real icons and tiles, drifting slowly, so
   the page shows what the tools hold instead of describing it. */

.topnav a.here { color: #ffffff; }

/* ---- hero ---- */

.tools-hero {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 128px 28px 8px;
  text-align: center;
}

.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  word-spacing: 0.55em;          /* letter-spacing alone runs the words together */
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}

.tools-hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0.01em;
  color: #ffffff;
  text-shadow: 0 0 30px rgba(28, 108, 255, 0.45);
  margin-bottom: 1.1rem;
}
.tools-hero h1 em {
  font-style: normal;
  background: linear-gradient(96deg, #7fa7ff 0%, #ffc487 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tools-lead {
  max-width: 54ch;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1rem;
}

.ribbon {
  margin-top: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 18px;
  font-size: 0.86rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.ribbon b { color: #cfe0ff; font-weight: 700; }
.ribbon .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.75);
}

/* ---- cards ---- */

.tools-main {
  position: relative;
  z-index: 1;
  max-width: 1060px;
  margin: 0 auto;
  padding: 34px 28px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
  min-height: 46vh;              /* keeps the footer off the middle of the screen */
}

.tool {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(28, 108, 255, 0.26);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(6px);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.tool:hover {
  border-color: rgba(28, 108, 255, 0.7);
  transform: translateY(-4px);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.5);
}

/* the drifting preview band */

.tool-strip {
  height: 116px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(13, 47, 139, 0.22), rgba(9, 10, 13, 0.9));
  border-bottom: 1px solid rgba(28, 108, 255, 0.28);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.strip-track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: toolsdrift 44s linear infinite;
}
.tool:hover .strip-track { animation-play-state: paused; }

.strip-track img {
  height: 100%;
  width: auto;
  display: block;
  image-rendering: pixelated;
  opacity: 0.95;
}

@keyframes toolsdrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* card body */

.tool-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tool-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  text-shadow: 0 0 20px rgba(28, 108, 255, 0.35);
  margin: 0;
}

.badge {
  padding: 0.22rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 0, 0.4);
  background: rgba(255, 122, 0, 0.09);
  color: #ffb066;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.tool-body > p {
  margin-top: 0.6rem;
  color: var(--text-dim);
  font-size: 0.93rem;
}

.does {
  margin: 1rem 0 1.4rem;
  padding: 0;
  list-style: none;
  flex: 1;
}
.does li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 0.42rem;
  color: #cfe0ff;
  font-size: 0.88rem;
}
.does li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 8px rgba(28, 108, 255, 0.9);
}

.open {
  align-self: flex-start;
  padding: 0.6rem 1.15rem;
  border-radius: 10px;
  border: 1px solid rgba(127, 167, 255, 0.5);
  background: linear-gradient(135deg, rgba(28, 108, 255, 0.9), rgba(13, 47, 139, 0.9));
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.tool:hover .open {
  box-shadow: 0 6px 24px rgba(28, 108, 255, 0.45);
  transform: translateX(2px);
}

/* ---- credit ---- */

.tools-credit {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 28px 60px;
  color: #767e8f;
  font-size: 0.74rem;
  line-height: 1.65;
  text-align: center;
}
.tools-credit p + p { margin-top: 0.65rem; }
.tools-credit a { color: #b08a4e; }
.tools-credit .fine { margin-top: 1.2rem; opacity: 0.8; }

@media (max-width: 820px) {
  .tools-main { grid-template-columns: 1fr; }
  .tools-hero { padding-top: 108px; }
  .tool-strip { height: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  .strip-track { animation: none; }
  .tool, .open { transition: none; }
}
