:root {
  --bg-primary: #0d0f14;
  --bg-secondary: #161a22;
  --bg-tertiary: #1e232d;
  --accent: #7c3aed;
  --accent-hover: #8b5cf6;
  --accent-muted: rgba(124, 58, 237, 0.18);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #2d3548;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(900px 500px at 15% -10%, var(--accent-muted), transparent 60%),
    radial-gradient(700px 400px at 110% 10%, rgba(56, 189, 248, 0.10), transparent 60%),
    var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.landing {
  max-width: 1100px;
  margin: 0 auto;
  padding: 5rem 1.5rem 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-header {
  text-align: center;
  margin-bottom: 3rem;
}

.landing-header h1 {
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.landing-header .subtitle {
  color: var(--text-secondary);
  margin: 0.75rem 0 0;
  font-size: 1.05rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  flex: 1;
}

.tool-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem 1.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.tool-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 60%, var(--accent-muted) 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.tool-card:hover {
  border-color: var(--accent);
  background: var(--bg-tertiary);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -16px rgba(124, 58, 237, 0.45);
}

.tool-card:hover::after { opacity: 1; }

.tool-icon {
  font-size: 2rem;
  line-height: 1;
}

.tool-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
  letter-spacing: -0.01em;
}

.tool-desc {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  flex: 1;
}

.tool-cta {
  margin-top: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--accent-hover);
}

.landing-footer {
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-family: 'JetBrains Mono', monospace;
}

@media (max-width: 480px) {
  .landing { padding: 3rem 1rem 1.5rem; }
  .tool-card { padding: 1.5rem 1.25rem; }
}
