:root {
  --bg: #05080a;
  --text: #f3f6f8;
  --muted: #8d96a2;
  --line: rgba(220, 232, 240, 0.18);
  --line-strong: rgba(242, 248, 252, 0.34);
  --amber: #d79b3c;
  --amber-soft: rgba(215, 155, 60, 0.18);
  --shadow: rgba(0, 0, 0, 0.62);
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
}

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

.page-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 12%, rgba(153, 178, 194, 0.13), transparent 28rem),
    var(--bg);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  z-index: -4;
  background-image: url("assets/noir-rooftop.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.012);
}

.hero__background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 4, 6, 0.88) 0%, rgba(4, 7, 9, 0.67) 32%, rgba(4, 7, 9, 0.18) 68%),
    linear-gradient(180deg, rgba(2, 4, 6, 0.8) 0%, transparent 34%, rgba(2, 4, 6, 0.76) 100%);
}

.hero__background::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 20vh;
  background: linear-gradient(180deg, transparent, rgba(5, 8, 10, 0.98));
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(115deg, transparent 0 48%, rgba(255, 255, 255, 0.08) 49%, transparent 50%),
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2) 0 1px, transparent 1px);
  background-size: 7px 7px, 5px 5px;
  mix-blend-mode: screen;
}

.hero__rain {
  position: absolute;
  inset: -20% 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.24;
  background-image: repeating-linear-gradient(
    105deg,
    transparent 0 32px,
    rgba(214, 230, 240, 0.18) 33px,
    transparent 35px
  );
  animation: rain-drift 12s linear infinite;
}

.site-header {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 52px;
  color: rgba(245, 248, 250, 0.9);
}

.brand__mark {
  width: 52px;
  height: 28px;
  filter: drop-shadow(0 12px 22px var(--shadow));
}

.brand__mark path {
  fill: currentColor;
}

.header-link {
  position: relative;
  font-size: 1rem;
  line-height: 1;
  color: rgba(245, 248, 250, 0.9);
  padding: 14px 0;
}

.header-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--amber);
  transition: transform 220ms ease;
}

.header-link:hover::after,
.header-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.hero__content {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  align-self: center;
  padding: 24px 0 92px;
}

h1 {
  max-width: 940px;
  margin: 0;
  font-size: clamp(4rem, 8.4vw, 8.9rem);
  font-weight: 300;
  line-height: 0.96;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 22px 52px rgba(0, 0, 0, 0.78);
}

.hero__lead {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.35;
  font-weight: 400;
}

.hero__button {
  --button-border: rgba(215, 155, 60, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-width: 238px;
  min-height: 68px;
  margin-top: 52px;
  padding: 0 30px;
  border: 1px solid var(--button-border);
  border-radius: 4px;
  color: #f3b65b;
  background: rgba(7, 8, 9, 0.34);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 143, 0.08),
    0 18px 46px rgba(0, 0, 0, 0.36),
    0 0 28px var(--amber-soft);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 500;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.hero__button svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.hero__button:hover,
.hero__button:focus-visible {
  transform: translateY(-2px);
  background: rgba(215, 155, 60, 0.12);
  box-shadow:
    inset 0 0 0 1px rgba(255, 214, 143, 0.12),
    0 24px 62px rgba(0, 0, 0, 0.48),
    0 0 42px rgba(215, 155, 60, 0.2);
}

.hero__footer {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
  min-height: 136px;
  display: grid;
  place-items: center;
  gap: 22px;
  color: rgba(149, 159, 171, 0.78);
}

.hero__footer span {
  width: min(340px, 58vw);
  height: 20px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) left 50% / calc(50% - 14px) 1px no-repeat,
    linear-gradient(var(--line-strong), var(--line-strong)) right 50% / calc(50% - 14px) 1px no-repeat;
  position: relative;
}

.hero__footer span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transform: translate(-50%, -54%) rotate(45deg);
}

.hero__footer p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.4;
  text-align: center;
}

@keyframes rain-drift {
  from {
    transform: translate3d(0, -4%, 0);
  }

  to {
    transform: translate3d(-3%, 4%, 0);
  }
}

@media (max-width: 760px) {
  .hero {
    min-height: 100svh;
  }

  .hero__background {
    background-position: 61% center;
  }

  .hero__background::before {
    background:
      linear-gradient(90deg, rgba(2, 4, 6, 0.9) 0%, rgba(3, 5, 7, 0.68) 58%, rgba(3, 5, 7, 0.3) 100%),
      linear-gradient(180deg, rgba(2, 4, 6, 0.82) 0%, transparent 30%, rgba(2, 4, 6, 0.82) 100%);
  }

  .site-header,
  .hero__content,
  .hero__footer {
    width: min(calc(100% - 32px), var(--max));
  }

  .site-header {
    min-height: 76px;
  }

  .brand {
    width: 56px;
  }

  .brand__mark {
    width: 42px;
  }

  .header-link {
    display: none;
  }

  .hero__content {
    padding: 34px 0 54px;
  }

  h1 {
    max-width: 420px;
    font-size: clamp(3rem, 12vw, 4.8rem);
    line-height: 0.98;
  }

  .hero__lead {
    margin-top: 22px;
    font-size: 1.28rem;
  }

  .hero__button {
    width: 100%;
    max-width: 280px;
    min-height: 62px;
    margin-top: 38px;
    gap: 20px;
    font-size: 1.06rem;
  }

  .hero__footer {
    min-height: 112px;
  }
}

@media (max-width: 420px) {
  h1 {
    max-width: 350px;
    font-size: clamp(2.55rem, 12vw, 3rem);
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .hero__footer p {
    font-size: 0.94rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
