:root {
  color-scheme: dark;
  --bg: #070b14;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-border: rgba(255, 255, 255, 0.12);
  --text: #f7f9ff;
  --muted: rgba(247, 249, 255, 0.68);
  --accent: #40c9ff;
  --accent-2: #e81cff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  place-items: center;
  padding: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(232, 28, 255, 0.18), transparent 34%),
    radial-gradient(circle at 80% 25%, rgba(64, 201, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #0b1020 0%, var(--bg) 100%);
}

.home {
  width: min(1080px, 100%);
  padding: 28px 0;
}

.hero {
  margin-bottom: 22px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.05;
}

.hero p:not(.eyebrow) {
  max-width: 58ch;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: 16px;
}

.tool-card {
  position: relative;
  display: flex;
  min-height: 190px;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  color: inherit;
  text-decoration: none;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 170px;
  height: 170px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  filter: blur(10px);
  opacity: 0.28;
}

.tool-card:hover,
.tool-card:focus-visible {
  border-color: rgba(64, 201, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-3px);
  outline: none;
}

.tool-card h2,
.tool-card p,
.tool-card span {
  position: relative;
}

.tool-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.tool-card span {
  margin-top: auto;
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 720px) {
  body {
    padding: 16px;
  }

  .home {
    padding: 18px 0;
  }
}
