:root {
  color: #f8f6ff;
  background: #090612;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-synthesis: none;
  --panel: rgba(29, 21, 48, 0.82);
  --line: rgba(197, 178, 255, 0.18);
  --muted: #b9afca;
  --purple: #9b6cff;
  --teal: #4fe1ca;
  --focus: #ffd84d;
  --esp-tools-button-color: #8f5cff;
  --esp-tools-button-text-color: #ffffff;
  --esp-tools-button-border-radius: 0.75rem;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 16% 0%, rgba(226, 43, 225, 0.22), transparent 31rem),
    radial-gradient(circle at 84% 2%, rgba(39, 158, 255, 0.18), transparent 30rem),
    linear-gradient(180deg, #0d0819, #090612 60%);
}

main,
footer {
  width: min(70rem, calc(100% - 2rem));
  margin-inline: auto;
}

main {
  padding: clamp(3rem, 8vw, 7rem) 0 4rem;
}

.hero {
  max-width: 52rem;
  margin-bottom: 3rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: min(100%, 44rem);
  margin: 0 0 clamp(1.5rem, 5vw, 2.5rem);
  transform: translateX(-8%);
}

.hero-logo {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  width: min(78vw, 40rem);
  height: auto;
  margin: 0;
}

.hero-beta {
  flex: 0 0 auto;
  margin-left: clamp(-2.5rem, -4vw, -1.25rem);
  padding: clamp(0.38rem, 1.2vw, 0.55rem) clamp(0.55rem, 1.8vw, 0.8rem);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0.55rem;
  color: #17102b;
  background: var(--focus);
  box-shadow: 0 0 24px rgba(255, 216, 77, 0.3);
  font-size: clamp(0.7rem, 2.3vw, 1.15rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  transform: rotate(-2deg);
  white-space: nowrap;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.06;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h3 {
  margin-bottom: 1.25rem;
  font-size: 1.45rem;
}

p,
li {
  color: var(--muted);
  line-height: 1.65;
}

.hero > p:last-child {
  max-width: 43rem;
  font-size: 1.1rem;
}

.requirements,
.warning {
  margin: 2rem 0 4rem;
  padding: clamp(1.25rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  backdrop-filter: blur(16px);
}

.requirements ol {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.35rem;
}

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

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.boards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.board-card {
  display: flex;
  flex-direction: column;
  min-height: 27rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--panel);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.board-card:hover {
  border-color: rgba(151, 121, 255, 0.44);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.22);
}

.status {
  align-self: flex-start;
  margin-bottom: 1rem;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  background: rgba(79, 225, 202, 0.12);
  color: var(--teal);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status--provisional {
  background: rgba(255, 216, 77, 0.12);
  color: var(--focus);
}

dl {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

dl div {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.8rem;
}

dt {
  color: #8f84a5;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

dd {
  margin: 0;
  color: #ede8f7;
  line-height: 1.35;
}

.notes {
  margin: 1.25rem 0;
  font-size: 0.92rem;
}

.profile-caution {
  margin: 0 0 1.25rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 216, 77, 0.24);
  border-radius: 0.65rem;
  color: #f7e7a2;
  background: rgba(255, 216, 77, 0.07);
  font-size: 0.82rem;
  line-height: 1.45;
}

esp-web-install-button {
  display: block;
  margin-top: auto;
}

button {
  min-height: 3rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border: 0;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--purple), #5d8dff);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.1);
}

button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.unsupported,
.load-error {
  color: #ffb7b7;
}

footer {
  padding: 0 0 3rem;
  border-top: 1px solid var(--line);
}

footer p {
  max-width: 48rem;
  font-size: 0.86rem;
}

@media (max-width: 38rem) {
  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .board-card {
    transition: none;
  }
}
