.hero {
  margin: 0 auto;
  padding: 70px 0 80px;
  display: grid;
  gap: 42px;
}

.hero-copy {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-projects {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 360px));
  gap: 24px;
  justify-content: center;
}

.project-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 22px;
  background: #f0efed;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.08);
  width: 100%;
}

.project-thumb {
  height: 190px;
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.thumb-blue,
.thumb-green,
.thumb-purple {
  background: linear-gradient(160deg, #cb2b2c, #9d1f20);
}

.project-card h3 {
  font-size: 18px;
  font-weight: 700;
}

.project-card p {
  color: #5a5854;
  font-size: 14px;
  font-family: "Roboto Serif", "Times New Roman", serif;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  background: #f7f6f4;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  color: #3f3d39;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.project-links {
  display: flex;
  gap: 18px;
  font-weight: 600;
  font-size: 14px;
}

.project-links a {
  color: #1e1d1b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.project-links .icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.project-links svg {
  width: 100%;
  height: 100%;
}

.project-links .icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.project-links .link-demo {
  color: #2f6ae0;
}

.eyebrow {
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.hero h1 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 800;
  margin-bottom: 16px;
  white-space: nowrap;
}

.lead {
  color: var(--muted);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 28px;
  font-family: "Roboto Serif", "Times New Roman", serif;
}

.primary-btn {
  border: none;
  background: #0f0f0f;
  color: #fff;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.16);
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.btn-normal-spacing {
  letter-spacing: 0;
}
.hero-visual {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  padding-top: 24px;
}

.hero-action {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
  backface-visibility: hidden;
}

.hero-track.js-marquee {
  animation: none;
}

.hero-track-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}

.hero-track-row > *:nth-child(1) {
  transform: translateY(18px);
}

.hero-track-row > *:nth-child(2) {
  transform: translateY(-12px);
}

.hero-track-row > *:nth-child(3) {
  transform: translateY(22px);
}

.hero-track-row > *:nth-child(4) {
  transform: translateY(-16px);
}

.hero-track-row > *:nth-child(5) {
  transform: translateY(14px);
}

.mock-card {
  background: var(--card);
  border-radius: 24px;
  width: 220px;
  height: 220px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.06);
}

.mock-card.wide {
  width: 360px;
  height: 240px;
  border-radius: 32px;
}

.mock-card.tall {
  width: 180px;
  height: 260px;
}

.phone-mock {
  width: 190px;
  height: 320px;
  border-radius: 32px;
  background: #111114;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.phone-notch {
  position: absolute;
  top: 12px;
  width: 70px;
  height: 14px;
  background: #1b1b1f;
  border-radius: 999px;
}

.phone-screen {
  width: 150px;
  height: 260px;
  background: #1c1d22;
  border-radius: 22px;
  padding: 18px 14px;
  display: grid;
  gap: 10px;
}

.screen-row {
  height: 14px;
  background: #2a2c34;
  border-radius: 999px;
}

.screen-chart {
  height: 90px;
  background: linear-gradient(120deg, #323447, #20222b);
  border-radius: 16px;
}

@media (min-width: 1400px) {
  .hero-track {
    gap: 40px;
  }

  .hero-track-row {
    gap: 40px;
  }

  .mock-card {
    width: 260px;
    height: 260px;
  }

  .mock-card.wide {
    width: 460px;
    height: 280px;
  }

  .mock-card.tall {
    width: 220px;
    height: 320px;
  }

  .phone-mock {
    width: 210px;
    height: 360px;
  }
}

@media (min-width: 2000px) {
  .hero-track {
    gap: 52px;
  }

  .hero-track-row {
    gap: 52px;
  }

  .mock-card {
    width: 300px;
    height: 300px;
  }

  .mock-card.wide {
    width: 540px;
    height: 320px;
  }

  .mock-card.tall {
    width: 250px;
    height: 360px;
  }

  .phone-mock {
    width: 240px;
    height: 400px;
  }
}
