/* === Base === */
body {
  font-family: system-ui, sans-serif;
  background: #0e1628;
  color: #f1f5f9;
  margin: 0;
  padding: 2rem;
  display: flex;
  justify-content: center;
}

main {
  width: 100%;
  max-width: 1200px;
  text-align: center;
}

/* === Header === */
h1 {
  color: #93c5fd;
  font-size: 2rem;
  margin-bottom: 0.3rem;
}

p {
  color: #cbd5e1;
  margin: 0.5rem 0 1.5rem;
}

/* === Grid === */
.tools-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Limit to max 3 per row */
@media (min-width: 1000px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* === Tool Card === */
.tool-card {
  background: #121c33;
  color: #f8fafc;
  border-radius: 1rem;
  padding: 1.5rem;
  text-decoration: none;
  transition: transform 0.25s, background 0.25s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.tool-card h2 {
  margin-bottom: 0.5rem;
  color: #93c5fd;
  font-size: 1.3rem;
}

.tool-card p {
  font-size: 0.95rem;
  color: #cbd5e1;
}

.tool-card:hover {
  background: #1e293b;
  transform: translateY(-4px);
}

/* === Footer === */
footer {
  margin-top: 3rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}