:root {
  --black: #1d1d1b;
  --ink: #0e0f0e;
  --green: #00ef06;
  --white: #f7f7f3;
  --muted: #b9b9b4;
  --line: rgba(247, 247, 243, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 82px clamp(20px, 5vw, 72px) 54px;
  background:
    linear-gradient(90deg, rgba(14, 15, 14, 0.96), rgba(14, 15, 14, 0.82) 58%, rgba(14, 15, 14, 0.62)),
    var(--black);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(0deg, rgba(29, 29, 27, 0.82), rgba(29, 29, 27, 0));
  pointer-events: none;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 15, 14, 0.66), rgba(14, 15, 14, 0.08) 42%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
  min-width: 0;
  max-width: 100%;
}

.hero-logo {
  display: block;
  width: clamp(180px, 24vw, 320px);
  height: auto;
  margin: 0 0 24px;
}

h1,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(44px, 9vw, 118px);
  font-weight: 600;
  line-height: 0.92;
}

.lead {
  width: 100%;
  max-width: min(620px, 100%);
  margin: 28px 0 0;
  color: rgba(247, 247, 243, 0.86);
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.45;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(1040px, calc(100vw - clamp(40px, 10vw, 144px)));
  margin-top: 44px;
}

.link-button {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(247, 247, 243, 0.26);
  border-radius: 8px;
  padding: 16px;
  background: rgba(14, 15, 14, 0.7);
  color: var(--white);
  text-decoration: none;
  backdrop-filter: blur(16px);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.link-button span {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.15;
}

.link-button small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

.link-button:hover,
.link-button:focus-visible {
  border-color: var(--green);
  background: rgba(0, 239, 6, 0.12);
  outline: none;
}

.link-button.primary {
  border-color: var(--green);
  background: var(--green);
  color: var(--black);
}

.link-button.primary small {
  color: rgba(29, 29, 27, 0.7);
}

.link-button.primary:hover,
.link-button.primary:focus-visible {
  background: var(--white);
  color: var(--black);
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding: 72px 20px 42px;
  }

  .hero-content {
    width: calc(100vw - 40px);
  }

  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: calc(100vw - 40px);
  }

}

@media (max-width: 560px) {
  .hero {
    padding-top: 56px;
  }

  .hero-logo {
    width: 180px;
    margin-bottom: 22px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 58px);
  }

  .lead {
    margin-top: 22px;
  }

  .link-grid {
    grid-template-columns: 1fr;
    width: min(calc(100vw - 40px), 340px);
    margin-top: 32px;
  }

  .hero-content {
    width: min(calc(100vw - 40px), 340px);
  }

  .link-button {
    min-height: 86px;
  }
}
