:root {
  color-scheme: dark;
  --bg: #07090d;
  --text: #f4f7fb;
  --muted: #aab4c2;
  --line: rgba(255, 255, 255, 0.18);
  --atlas: #28d7a3;
  --sommelier: #ffbf4a;
  --blue: #4ea3ff;
  --panel: rgba(9, 14, 24, 0.68);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 22% 18%, rgba(78, 163, 255, 0.24), transparent 26rem),
    radial-gradient(circle at 86% 64%, rgba(255, 191, 74, 0.17), transparent 24rem),
    linear-gradient(135deg, #080b12 0%, #10131d 48%, #08090d 100%);
}

a {
  color: inherit;
}

#signal-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}

.shell {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 100vh;
  align-content: center;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.site-header {
  display: grid;
  gap: 8px;
}

.site-header p {
  margin: 0;
  color: var(--sommelier);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
}

.tool-card {
  position: relative;
  display: grid;
  min-height: 246px;
  align-content: space-between;
  gap: 22px;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.tool-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -42% 20%;
  height: 170px;
  transform: rotate(-7deg);
  opacity: 0.55;
  filter: blur(18px);
}

.tool-card.atlas::before {
  background: linear-gradient(90deg, transparent, rgba(40, 215, 163, 0.6), rgba(78, 163, 255, 0.4));
}

.tool-card.sommelier::before {
  background: linear-gradient(90deg, transparent, rgba(255, 191, 74, 0.65), rgba(236, 81, 83, 0.38));
}

.tool-card:hover,
.tool-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(14, 21, 34, 0.82);
  outline: none;
}

.card-top,
.launch {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.domain {
  min-width: 0;
  color: #dce7f2;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.tool-card strong {
  position: relative;
  display: block;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

.launch {
  color: #ffffff;
  font-weight: 800;
}

.summary {
  position: relative;
  display: block;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(40, 215, 163, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(40, 215, 163, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(40, 215, 163, 0);
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 28px, 680px);
    min-height: 100vh;
  }

  .links {
    grid-template-columns: 1fr;
  }

  .tool-card {
    min-height: 230px;
    padding: 20px;
  }

  .card-top {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
