:root {
  color-scheme: dark;
  --bg: #071312;
  --panel: #0e2422;
  --text: #f4faf6;
  --muted: #a9bbb5;
  --line: rgba(255, 255, 255, 0.12);
  --teal: #31d3bd;
  --blue: #52a7ff;
  --gold: #eeb76a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(49, 211, 189, 0.16), transparent 34rem),
    linear-gradient(145deg, #071312, #0b211f 48%, #071015);
  color: var(--text);
}

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

.site-header,
.site-footer,
.hero,
.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-header {
  padding: 22px 0;
}

.brand,
nav,
.site-footer div,
.actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #041312;
  font-size: 0.78rem;
  font-weight: 1000;
}

nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
}

nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.hero {
  min-height: 660px;
  display: grid;
  align-items: center;
  padding: 48px 0 72px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.98;
}

h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
}

.lede,
.section-heading p,
.grid p,
.prose p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 700px;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 900;
}

.button.primary {
  background: var(--teal);
  color: #041312;
}

.button.secondary {
  border: 1px solid var(--line);
}

.section {
  margin-bottom: 72px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: 28px;
  align-items: end;
}

.app-card,
.grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(14, 36, 34, 0.76);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.22);
}

.app-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px;
}

.app-card img,
.app-detail img {
  border-radius: 22px;
}

.app-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.app-card > span {
  color: var(--teal);
  font-weight: 900;
}

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

.grid article {
  padding: 24px;
}

.grid span {
  display: inline-flex;
  margin-bottom: 38px;
  color: var(--teal);
  font-size: 0.8rem;
  font-weight: 1000;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
}

.page {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 96px;
}

.prose h1 {
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.prose h2 {
  margin-top: 36px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 1.35rem;
}

.prose a:not(.button) {
  color: var(--teal);
  font-weight: 900;
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    min-height: 0;
    padding-top: 36px;
  }

  .featured,
  .grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .app-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .app-card > span {
    grid-column: 1 / -1;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
