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

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  padding: 3rem 1rem 4rem;
  color: #e5edf7;
  background:
    radial-gradient(circle at top left, rgb(59 130 246 / 0.22), transparent 36rem),
    radial-gradient(circle at right 20%, rgb(14 165 233 / 0.14), transparent 30rem),
    linear-gradient(135deg, #08111f 0%, #111827 48%, #1f2937 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(rgb(255 255 255 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site {
  position: relative;
  z-index: 2;
  max-width: 64rem;
  margin: 0 auto;
}

.not-found {
  position: relative;
  z-index: 2;
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.site > * + * {
  margin-top: 1.25rem;
}

.intro,
.panel {
  border: 1px solid rgb(148 163 184 / 0.2);
  border-radius: 1.5rem;
  background: rgb(15 23 42 / 0.72);
  box-shadow: 0 24px 80px rgb(0 0 0 / 0.28);
  backdrop-filter: blur(18px);
}

.intro {
  padding: clamp(2rem, 5vw, 4rem);
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: end;
  margin-top: 0.75rem;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.04em;
  animation: fade-in 0.8s ease-out forwards;
}

.lead {
  max-width: 42rem;
  margin-top: 1.5rem;
  color: #cbd5e1;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.65;
}

.eyebrow {
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-card {
  padding: 1.25rem;
  border: 1px solid rgb(147 197 253 / 0.24);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgb(30 41 59 / 0.95), rgb(15 23 42 / 0.68));
}

.hero-card span {
  display: block;
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-card strong {
  display: block;
  margin-top: 0.5rem;
  color: #f8fafc;
  font-size: 1.25rem;
  line-height: 1.25;
}

.hero-card p {
  margin-top: 0.75rem;
  color: #cbd5e1;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.panel {
  padding: clamp(1.5rem, 4vw, 2rem);
}

.section-heading {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
}

h2 {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #f8fafc;
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.app-card p,
.past > p {
  margin-top: 0.6rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.app-card {
  display: grid;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem;
  border: 1px solid rgb(147 197 253 / 0.24);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgb(30 41 59 / 0.88), rgb(15 23 42 / 0.62));
}

.app-card h3 {
  color: #f8fafc;
  font-size: 1.25rem;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgb(148 163 184 / 0.24);
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 650;
  color: #e5edf7;
  background-color: rgb(30 41 59 / 0.75);
  transition-property: color, background-color, box-shadow, transform;
  transition-duration: 0.2s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover {
  color: #fff;
  border-color: rgb(147 197 253 / 0.55);
  background-color: rgb(51 65 85 / 0.92);
  transform: translateY(-2px);
  box-shadow:
    0 18px 30px -20px rgb(59 130 246 / 0.7),
    0 12px 24px -20px rgb(0 0 0 / 0.7);
}

.btn:focus-visible {
  outline: 3px solid rgb(147 197 253 / 0.85);
  outline-offset: 3px;
}

.primary {
  border-color: transparent;
  color: #082f49;
  background: linear-gradient(135deg, #bfdbfe, #7dd3fc);
}

.primary:hover {
  color: #082f49;
  background: linear-gradient(135deg, #dbeafe, #bae6fd);
}

.past .btn {
  color: #cbd5e1;
  background-color: transparent;
}

.past .btn:hover {
  color: #fff;
  background-color: rgb(30 41 59 / 0.75);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

h2 .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.not-found > * + * {
  margin-top: 1.5rem;
}

.not-found p {
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: #d1d5db;
}

@media (min-width: 640px) {
  body {
    padding: 4rem 1.5rem 5rem;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  body {
    padding-inline: 2rem;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 19rem;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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