:root {
  --bg: #07060b;
  --bg-deep: #050409;
  --ink: #f7f6fb;
  --muted: #a6a1b3;
  --accent: #28f3d1;
  --accent-2: #9945ff;
  --card: rgba(18, 16, 26, 0.78);
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 60px rgba(6, 4, 12, 0.6);
}

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

body {
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 15% 15%, rgba(52, 232, 255, 0.14), transparent 38%),
    radial-gradient(circle at 80% 10%, rgba(153, 69, 255, 0.2), transparent 36%),
    radial-gradient(circle at 80% 80%, rgba(40, 243, 209, 0.16), transparent 45%),
    linear-gradient(180deg, #050409 0%, #0b0814 60%, #0a0912 100%);
  min-height: 100vh;
}

.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.08'/></svg>");
  pointer-events: none;
  mix-blend-mode: screen;
  z-index: 0;
}

.hero {
  position: relative;
  padding: 36px clamp(24px, 6vw, 96px) 24px;
  z-index: 1;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.logo {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  width: 24px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(40, 243, 209, 0.6);
}

.nav-links {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.nav-links span {
  cursor: default;
}

.nav-chip {
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(18, 16, 26, 0.7);
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-content {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  color: var(--muted);
}

h1 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.05;
  margin-bottom: 16px;
}

.lead {
  font-size: 1.05rem;
  max-width: 520px;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(160deg, rgba(36, 33, 52, 0.9), rgba(10, 8, 16, 0.9));
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 12px;
}

.hero-card ol {
  list-style: decimal;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-note {
  margin-top: 16px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
}

.main {
  padding: 12px clamp(24px, 6vw, 96px) 80px;
  position: relative;
  z-index: 1;
}

.search-section {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.search-section h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.search-section p {
  color: var(--muted);
}

.search-box {
  display: flex;
  gap: 12px;
  align-items: center;
  flex: 1 1 320px;
}

input[type="search"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(18, 16, 26, 0.7);
  font-size: 1rem;
  color: var(--ink);
}

.ghost {
  border: 1px dashed var(--border);
  background: transparent;
  padding: 10px 16px;
  border-radius: 12px;
  cursor: pointer;
  color: var(--muted);
}

.filter-box {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-button {
  border: 1px solid var(--border);
  background: rgba(18, 16, 26, 0.7);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.03em;
}

.filter-button.active {
  background: linear-gradient(90deg, rgba(40, 243, 209, 0.28), rgba(153, 69, 255, 0.32));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.alpha-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 24px;
}

.alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.alpha-button {
  border: 1px solid var(--border);
  background: rgba(18, 16, 26, 0.7);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.alpha-button.active {
  background: linear-gradient(90deg, rgba(40, 243, 209, 0.28), rgba(153, 69, 255, 0.32));
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.list-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.pill {
  background: rgba(18, 16, 26, 0.8);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--muted);
}

.domain-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.domain-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  transform: translateY(10px);
  opacity: 0;
  animation: rise 0.6s ease forwards;
}

.domain-card h4 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
}

.domain-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 16, 26, 0.7);
}

button.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  color: #07060b;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 20px rgba(40, 243, 209, 0.25);
}

.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  padding: 0 clamp(24px, 6vw, 96px);
  z-index: 2;
  pointer-events: none;
}

.footer-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 18px;
  background: rgba(18, 16, 26, 0.85);
  color: var(--muted);
  text-align: center;
  box-shadow: var(--shadow);
  pointer-events: auto;
}

.footer-link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(40, 243, 209, 0.6);
}

.footer-link:hover {
  color: var(--accent);
}

.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 9, 0.75);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 3;
}

.modal.hidden {
  display: none;
}

.modal-card {
  background: linear-gradient(160deg, rgba(28, 24, 42, 0.96), rgba(8, 7, 12, 0.96));
  border-radius: 20px;
  padding: 28px;
  width: min(440px, 90vw);
  position: relative;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  animation: pop 0.3s ease;
}

.modal-card h3 {
  font-family: "Space Grotesk", sans-serif;
  margin-bottom: 6px;
}

.modal-subtitle {
  color: var(--muted);
  margin-bottom: 18px;
}

.close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--muted);
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

input,
textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 1rem;
  background: rgba(8, 7, 12, 0.8);
  color: var(--ink);
}

.status {
  margin-top: 10px;
  font-size: 0.9rem;
  color: var(--muted);
  min-height: 18px;
}

@keyframes rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pop {
  from {
    transform: scale(0.95);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 980px) {
  .nav {
    flex-wrap: wrap;
  }
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 32px;
  }
  .nav {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
  .search-section {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-box {
    width: 100%;
  }
  .alpha-controls {
    align-items: flex-start;
  }
}
