:root {
  --bg: #000000;
  --text: #f3f3f3;
  --muted: #d6d6d6;
  --handle: #7d7d7d;
  --gold-a: #facc22;
  --gold-b: #f89800;
  --font: "Inter", system-ui, sans-serif;
  --display: "Nohemi", "Inter", system-ui, sans-serif;
  --gold: linear-gradient(to left, #facc22 0%, #f89800 100%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.hero {
  background: #000;
}

.hero__shell {
  position: relative;
  width: min(1280px, 90vw);
  margin: 0 auto;
  overflow: hidden;
}

.hero__bg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to right, #000 0%, #000 80%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, #000 0%, #000 80%, transparent 100%),
    linear-gradient(to bottom, #000 0%, #000 68%, transparent 100%);
  mask-composite: intersect;
}

.hero__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #000 0%,
    rgba(0, 0, 0, 0.55) 22%,
    rgba(0, 0, 0, 0.12) 40%,
    transparent 52%
  );
}

.hero__shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.55) 82%, #000 100%),
    linear-gradient(90deg, transparent 78%, rgba(0, 0, 0, 0.45) 90%, #000 100%);
}

.hero__inner {
  position: absolute;
  inset: 0 auto 0 0;
  z-index: 1;
  width: min(540px, 48%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.6rem 1.4rem 2.6rem 0.4rem;
}

.hero__kicker {
  margin: 0 0 0.55rem;
  font-size: 14px;
  font-weight: 600;
  background: var(--gold);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__title {
  margin: 0;
  font-family: var(--display);
  font-size: 48px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero__accent {
  background: var(--gold);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  margin: 1rem 0 1.6rem;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
}

.hero__identity {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 150px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0.9rem;
}

.hero__person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.hero__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  flex-shrink: 0;
}

.hero__who {
  display: grid;
  line-height: 1.2;
}

.hero__who strong {
  font-size: 16px;
  font-weight: 600;
  color: #d6d6d6;
}

.hero__who a {
  color: var(--handle);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}

.hero__who a:hover {
  text-decoration: underline;
}

.hero__brands {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.hero__brand {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.hero__brand--java {
  filter:
    drop-shadow(0 0 4px rgba(231, 111, 0, 0.95))
    drop-shadow(0 0 10px rgba(231, 111, 0, 0.55))
    drop-shadow(0 0 18px rgba(83, 130, 161, 0.35));
}

.hero__brand--csharp {
  filter:
    drop-shadow(0 0 4px rgba(200, 170, 255, 0.95))
    drop-shadow(0 0 10px rgba(161, 121, 220, 0.7))
    drop-shadow(0 0 18px rgba(57, 0, 145, 0.45));
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0;
  color: #d6d6d6;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  transform: translate(50px, 50px);
}

.hero__scroll:hover {
  color: var(--text);
}

.hero__mouse {
  position: relative;
  width: 22px;
  height: 34px;
  border: 2px solid var(--gold-a);
  border-radius: 11px;
}

.hero__mouse-wheel {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 3px;
  height: 7px;
  border-radius: 2px;
  background: var(--gold-a);
  transform: translateX(-50%);
  animation: mouse-wheel 1.7s ease-in-out infinite;
}

.products {
  padding: 40px 0 80px;
  width: min(1280px, 90vw);
  margin: 0 auto;
}

@keyframes mouse-wheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  65% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__mouse-wheel {
    animation: none;
  }
}

.products__intro {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.products__intro-text {
  flex: 0 1 auto;
  max-width: calc(100% - 60px);
}

.products__intro-line {
  flex: 1 1 48px;
  min-width: 48px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  scroll-margin-top: 24px;
}

.products__loading,
.products__empty,
.products__error {
  grid-column: 1 / -1;
  text-align: center;
  color: #bdbdbd;
}

.product-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background: #111;
  isolation: isolate;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transform: scale(1.01);
  transition: transform 0.35s ease;
}

.product-card__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.4rem 1.35rem 1.2rem;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.product-card__caption h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  outline: 2px solid var(--gold-b);
  outline-offset: 3px;
}

.product-card:hover img,
.product-card:focus-visible img {
  transform: scale(1.05);
}

.footer {
  padding: 1.6rem 1.5rem 2.2rem;
  text-align: center;
  color: #a4a4a4;
  font-size: 17px;
}

@media (max-width: 1024px) {
  .hero__inner {
    width: min(460px, 52%);
    padding: 2.2rem 1.2rem 2.2rem 0.2rem;
  }

  .hero__title {
    font-size: 40px;
  }

  .products {
    padding: 40px 0 64px;
  }

  .products__grid {
    gap: 20px;
  }
}

@media (max-width: 767px) {
  .hero__shell {
    display: block;
    width: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .hero__bg {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    order: 0;
    width: 100%;
    height: 420px;
    min-height: 0;
    object-fit: cover;
    object-position: 80% 12%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    -webkit-mask-composite: unset;
    mask-composite: unset;
  }

  .hero__shell::before {
    display: block;
    z-index: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.12) 0%,
      transparent 18%,
      transparent 42%,
      rgba(0, 0, 0, 0.72) 62%,
      #000 78%
    );
  }

  .hero__shell::after {
    display: none;
  }

  .hero__inner {
    position: relative;
    inset: auto;
    z-index: 1;
    display: flex;
    width: min(350px, calc(100% - 40px));
    min-height: 0;
    margin: 0 auto;
    padding: 380px 0 48px;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
  }

  .hero__kicker {
    font-size: 14px;
  }

  .hero__title {
    font-size: 30px;
    line-height: 1.3;
    text-wrap: balance;
  }

  .hero__lead {
    margin: 10px 0 16px;
    font-size: 17px;
    line-height: 1.4;
    color: #d6d6d6;
  }

  .hero__identity {
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    align-self: stretch;
    gap: 16px;
    width: 100%;
    margin-bottom: 0;
  }

  .hero__avatar {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .hero__who {
    text-align: left;
  }

  .hero__who strong {
    font-size: 16px;
    color: #d6d6d6;
  }

  .hero__who a {
    font-size: 15px;
  }

  .hero__brands {
    position: relative;
    gap: 8px;
    flex-shrink: 0;
    margin-left: 20px;
  }

  .hero__brand {
    width: 42px;
    height: 42px;
  }

  .products {
    padding: 24px 20px 48px;
    width: 100%;
  }

  .products__intro {
    margin: 0 0 28px;
    font-size: 14px;
  }

  .hero__scroll {
    align-items: center;
    align-self: center;
    width: fit-content;
    margin: 66px auto 0;
    font-size: 14px;
    text-align: center;
    transform: none;
  }

  .products__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-card {
    border-radius: 16px;
  }

  .product-card__caption {
    padding: 2rem 1.1rem 1rem;
  }

  .product-card__caption h2 {
    font-size: 1.05rem;
  }
}
