:root {
  --green: #a1f666;
  --green-dark: #2c541d;
  --bar: #1c1c1c;
  --panel: #0e0e0e;
  --divider: #374151;
  --bg: #000;
  --text: #fff;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ---------- Top bar ---------- */
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: var(--bar);
  padding: 8px;
  animation: slide-in-top 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

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

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo {
  position: relative;
  display: block;
  width: 60px;
  height: 60px;
}

.logo__ring {
  width: 100%;
  height: 100%;
  animation: spin 8s linear infinite;
}

.logo__apu {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
}

.pill {
  background: var(--green);
  color: #000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-decoration: none;
  padding: 4px 16px;
  border-radius: 9999px;
  transition: background-color 0.3s, color 0.3s;
}

.pill:hover {
  background: rgba(161, 246, 102, 0.5);
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  background-image: url("/images/grid-1920-lighter.webp");
  background-size: 100% auto;
  background-repeat: repeat-y;
  background-position: center 75px;
}

.content {
  position: relative;
  z-index: 10;
  margin-top: 100px;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.eyebrow {
  margin: 0;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.875rem;
  opacity: 0.8;
}

h1 {
  margin: 0;
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: 900;
  color: var(--green);
  text-wrap: balance;
}

h1 span {
  color: #fff;
}

.preview {
  width: 100%;
  max-width: 900px;
  border-radius: 16px;
  border: 1px solid var(--green);
  box-shadow: 0 0 60px rgba(161, 246, 102, 0.15);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--green);
  color: #000;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.4;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 9999px;
  transition: background-color 0.3s, color 0.3s;
}

.btn:hover {
  background: var(--green-dark);
  color: #fff;
}

.btn--disabled,
.btn--disabled:hover {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
  cursor: default;
}

/* ---------- Table ---------- */
.table-wrap {
  width: 100%;
  max-width: 1024px;
  padding: 32px 0;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--green);
  border-radius: 12px;
  overflow: hidden;
}

th {
  background: var(--green);
  color: #000;
  font-size: 1.25rem;
  padding: 16px;
}

td {
  background: var(--panel);
  font-size: 1rem;
  padding: 16px;
  border-top: 1px solid var(--divider);
}

thead + tbody tr:first-child td {
  border-top: none;
}

td.blurb {
  text-align: left;
  font-size: 0.875rem;
  overflow-wrap: break-word;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 10;
  margin-top: auto;
  padding: 24px 16px 32px;
  display: flex;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer a {
  color: var(--green);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  .logo {
    width: 80px;
    height: 80px;
  }

  .logo__apu {
    width: 50px;
    height: 50px;
  }

  .pill {
    font-size: 1.125rem;
  }

  .hero__grid {
    background-position: center 95px;
  }

  .content {
    margin-top: 150px;
  }

  h1 {
    font-size: 3.75rem;
  }

  .btn {
    font-size: 1.875rem;
    padding: 24px 40px;
  }

  th,
  td {
    font-size: 1.875rem;
  }

  td.blurb {
    font-size: 1.125rem;
  }
}

@media (min-width: 1280px) {
  .topbar {
    height: 6rem;
    display: flex;
    align-items: center;
    padding: 10px 8px;
  }
}

/* ---------- Animations ---------- */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slide-in-top {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo__ring,
  .topbar {
    animation: none;
  }
}
