@import url("https://fonts.googleapis.com/css2?family=Intel+One+Mono:wght@300;400;500;700&display=swap");

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #cfcfcf;
  color: #111111;
  font-family: "Intel One Mono", monospace;
}

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

button {
  font: inherit;
}

.page {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 84px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  margin-bottom: 82px;
}

.top-link,
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #111111;
  text-decoration: none;
}

.top-link {
  font-size: 14px;
  font-weight: 400;
}

.top-link img {
  width: 14px;
  height: 14px;
}

.top-link-left {
  justify-self: start;
}

.top-link-right {
  justify-self: end;
}

.brand {
  gap: 10px;
  justify-self: center;
  font-size: 18px;
  font-weight: 700;
}

.brand img {
  width: 26px;
  height: 26px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(360px, 560px);
  justify-content: space-between;
  align-items: center;
  gap: clamp(24px, 4vw, 40px);
  margin-bottom: 44px;
}

.hero-copy h1,
.category h2,
.feature-overlay h3,
.youtube-section h2 {
  margin: 0;
  font-family: "Intel One Mono", monospace;
}

.hero-copy h1 {
  margin-bottom: 18px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
}

.hero-copy p {
  margin: 0 0 30px;
  font-size: 20px;
  line-height: 1.42;
  font-weight: 300;
}

.cta-button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Intel One Mono", monospace;
}

.cta-button {
  min-height: 53px;
  padding: 14px 24px;
  background: #ff5752;
  color: #ffffff;
  font-size: 16px;
  font-weight: 500;
}

.cta-button img {
  width: 20px;
  height: 20px;
}

.hero-preview {
  width: 100%;
  max-width: 560px;
  margin-left: auto;
}

.hero-preview img {
  width: 100%;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.06));
}

.mobile-only {
  display: none;
}

.categories {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 56px;
}

.category {
  text-align: center;
}

.category picture,
.category img {
  margin: 0 auto;
}

.category img {
  width: 139px;
  height: 139px;
  object-fit: contain;
}

.category h2 {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.25;
  font-weight: 700;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 60px;
}

.feature-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  aspect-ratio: 460 / 381;
  overflow: hidden;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.04));
  pointer-events: none;
}

.feature-overlay {
  position: absolute;
  right: 40px;
  bottom: 40px;
  left: 40px;
  z-index: 1;
}

.feature-overlay h3 {
  max-width: 340px;
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  font-weight: 700;
}

.feature-overlay-right h3 {
  margin-left: auto;
  text-align: right;
}

.feature-overlay-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.small-button {
  width: 180px;
  min-height: 49px;
  padding: 13px 22px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.small-button img {
  width: 18px;
  height: 18px;
}

.purple {
  background: #6a44bf;
}

.dark {
  margin-left: auto;
  background: #24364f;
}

.youtube-section {
  text-align: center;
}

.youtube-section h2 {
  margin-bottom: 36px;
  font-size: 24px;
  line-height: 1.65;
  font-weight: 700;
}

.small-cta {
  width: 180px;
  min-height: 49px;
  padding: 13px 22px;
  font-size: 14px;
  font-weight: 500;
}

.small-cta img {
  width: 16px;
  height: 16px;
}

.cta-button:hover,
.small-button:hover,
.top-link:hover,
.brand:hover {
  opacity: 0.92;
}

@media (max-width: 860px) {
  .page {
    width: min(100%, calc(100% - 32px));
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-preview {
    margin: 0;
  }

  .categories {
    grid-template-columns: repeat(3, 1fr);
  }

  .feature-grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .feature-card {
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .page {
    width: min(100%, calc(100% - 40px));
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .topbar {
    grid-template-columns: auto 1fr auto;
    margin-bottom: 74px;
  }

  .top-link-left {
    display: none;
  }

  .top-link-right,
  .brand {
    font-size: 16px;
  }

  .brand {
    justify-self: start;
  }

  .hero {
    margin-bottom: 54px;
  }

  .hero-copy h1 {
    margin-bottom: 22px;
    font-size: 32px;
    line-height: 1.35;
  }

  .hero-copy p {
    margin-bottom: 34px;
    font-size: 20px;
    line-height: 1.55;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: block;
    width: 100%;
    margin-top: 48px;
  }

  .mobile-only img {
    width: 100%;
  }

  .categories {
    gap: 26px 8px;
    margin-bottom: 76px;
  }

  .category img {
    width: 104px;
    height: 104px;
  }

  .category h2 {
    margin-top: 12px;
    font-size: 12px;
  }

  .feature-grid {
    gap: 20px;
    margin-bottom: 62px;
  }

  .feature-card {
    width: 100%;
    height: auto;
    border-radius: 4px;
  }

  .feature-image {
    height: auto;
  }

  .feature-overlay {
    right: 20px;
    bottom: 22px;
    left: 20px;
  }

  .feature-overlay h3,
  .feature-overlay-right h3 {
    max-width: 100%;
    margin-bottom: 22px;
    font-size: 24px;
    line-height: 1.45;
  }

  .feature-overlay h3 {
    text-align: left;
  }

  .feature-overlay-right h3 {
    text-align: right;
  }

  .small-button {
    width: 180px;
    min-height: 40px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .small-cta {
    width: 180px;
    min-height: 40px;
    padding: 12px 18px;
  }

  .youtube-section h2 {
    margin-bottom: 30px;
    font-size: 24px;
    line-height: 1.55;
  }
}