*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0d14;
  --surface: #111520;
  --surface-hover: #161b2e;
  --border: #1e2438;
  --border-hover: #3a4a7a;
  --text: #e2e8f0;
  --muted: #6b7898;
  --accent: #4f8ef7;
  --accent-glow: rgba(79, 142, 247, 0.15);
  --radius: 8px;
  --max-width: 680px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Subtle dot-grid background */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle, #1e2438 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  width: 100%;
  position: relative;
  z-index: 1;
  animation: fade-up 0.5s ease both;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Header */

header {
  margin-bottom: 4rem;
}

.header-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ecf8e;
  box-shadow: 0 0 6px #3ecf8e;
  animation: pulse 2.5s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #e2e8f0 0%, #a0b4d0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}

.tagline {
  color: var(--muted);
  font-size: 1rem;
  max-width: 420px;
}

/* Section heading */

h2 {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
}

/* Tools */

.tools {
  margin-bottom: 3.5rem;
}

.tools ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.tools li a {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.125rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.tools li a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s;
}

.tools li a:hover {
  border-color: var(--border-hover);
  background: var(--surface-hover);
  box-shadow: 0 0 0 1px var(--border-hover), 0 4px 24px var(--accent-glow);
}

.tools li a:hover::before {
  opacity: 1;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.tool-icon {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  opacity: 0.8;
}

.tool-name {
  font-weight: 500;
  color: var(--text);
  flex: 1;
}

.arrow {
  width: 16px;
  height: 16px;
  color: var(--muted);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.tools li a:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.tool-desc {
  font-size: 0.875rem;
  color: var(--muted);
  padding-left: 1.625rem;
  line-height: 1.5;
}

/* Footer */

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem;
  width: 100%;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8125rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  main { padding-top: 3rem; }
}
