:root {
  --bg: #07111f;
  --bg-soft: rgba(8, 20, 37, 0.82);
  --panel: rgba(8, 18, 34, 0.76);
  --panel-border: rgba(122, 162, 247, 0.18);
  --text: #edf6ff;
  --muted: #98acc7;
  --accent: #57e6ff;
  --accent-2: #8dffb2;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(87, 230, 255, 0.18), transparent 34%),
    radial-gradient(circle at 85% 15%, rgba(141, 255, 178, 0.12), transparent 25%),
    linear-gradient(135deg, #040a13 0%, #07111f 45%, #0b1a2d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(87, 230, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 230, 255, 0.08) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  opacity: 0.08;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.7) 0.6px, transparent 0.8px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.7) 0.6px, transparent 0.8px),
    radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.7) 0.6px, transparent 0.8px);
  background-size: 170px 170px;
}

.shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.panel {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 1.5rem;
  padding: 2rem;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% 35%;
  height: 240px;
  background: radial-gradient(circle, rgba(87, 230, 255, 0.18), transparent 70%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lede,
.section-note,
.link-card p {
  color: var(--muted);
}

.lede {
  max-width: 42rem;
  margin-top: 1rem;
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-meta div {
  min-width: 140px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(87, 230, 255, 0.14);
  border-radius: 16px;
  background: rgba(6, 14, 26, 0.66);
}

.meta-label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-console {
  border: 1px solid rgba(141, 255, 178, 0.18);
  border-radius: 18px;
  overflow: hidden;
  background: #030813;
  align-self: stretch;
}

.console-bar {
  display: flex;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid rgba(141, 255, 178, 0.12);
  background: rgba(141, 255, 178, 0.06);
}

.console-bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(237, 246, 255, 0.45);
}

.console-body {
  margin: 0;
  padding: 1.2rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #c8f6ff;
  white-space: pre-wrap;
}

.links {
  margin-top: 1.5rem;
  padding: 1.75rem;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

h2 {
  font-size: clamp(1.5rem, 2vw, 2.2rem);
}

.section-note {
  font-size: 0.95rem;
}

.section-note code,
.link-path {
  font-family: "IBM Plex Mono", monospace;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 220px;
  padding: 1.2rem;
  border: 1px solid rgba(122, 162, 247, 0.14);
  border-radius: 20px;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(87, 230, 255, 0.06), transparent 42%),
    rgba(7, 17, 31, 0.86);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(87, 230, 255, 0.4);
  box-shadow: 0 18px 44px rgba(2, 8, 18, 0.45);
}

.link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.link-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  color: #031018;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.link-arrow {
  color: var(--accent);
  font-size: 1.1rem;
}

.link-card h3 {
  font-size: 1.25rem;
}

.link-card p {
  line-height: 1.55;
  flex: 1;
}

.link-path {
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(87, 230, 255, 0.14);
  background: rgba(2, 7, 14, 0.7);
  color: #bfeeff;
}

@media (max-width: 920px) {
  .hero,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 1rem, 1120px);
    padding-top: 0.75rem;
  }

  .hero,
  .links {
    padding: 1.15rem;
    border-radius: 20px;
  }

  h1 {
    font-size: 2.4rem;
  }

  .console-body {
    font-size: 0.86rem;
  }

  .hero-meta div,
  .link-card {
    min-height: auto;
  }
}
