/* ===== Base ===== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #0a0a0a;
  color: #f5f5f5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

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

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

/* ===== Layout ===== */
.page {
  max-width: 880px;
  margin: 0 auto;
}

.section {
  padding: 48px 20px;
}

.section.dark {
  background: #111;
}

.section.gradient-top {
  background: linear-gradient(to bottom, #111, #0a0a0a);
}

.section.gradient-bottom {
  background: linear-gradient(to top, #111, #0a0a0a);
}

/* ===== Typography ===== */
h1 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 12px 0;
}

p {
  margin: 0;
  line-height: 1.6;
  color: #b8b8b8;
}

ul {
  padding-left: 18px;
  margin: 16px 0 0;
  color: #b8b8b8;
}

li {
  margin-bottom: 6px;
}

/* ===== Media ===== */
.media {
  margin-top: 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #222;
  max-width: 640px; /* KEY: caps image size on desktop */
}

.media.center {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Image grids ===== */
.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 24px;
}

@media (min-width: 640px) {
  .image-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Buttons / CTAs ===== */
.cta {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 600;
  background: #14a474;
  color: #ffffff;
}

.cta.secondary {
  background: #10b981;
  color: #041b14;
}

.cta:hover {
  opacity: 0.9;
}

/* ===== Utility ===== */
.small {
  font-size: 0.85rem;
  color: #8a8a8a;
}

.stack > * + * {
  margin-top: 12px;
}
