:root {
  --panel: #08090a; --line: #1b1c1e; --line-2: #2b2d30;
  --text: #fff; --soft: #c9cccf; --muted: #9a9ea3; --dim: #85898e;
  --red: #e52d20; --red-dark: #c5241a;
  --page: 2240px;
  --pad: clamp(16px, 2.6vw, 56px);
  --edge: max(var(--pad), (100vw - var(--page)) / 2 + var(--pad));
  --gap-section: clamp(88px, 11vw, 200px);
  --display: "Inter Tight", Inter, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; background: #000; }
body { font: 400 16px/1.5 Inter, system-ui, sans-serif; color: var(--text); background: #000; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 1em; height: 1em; display: block; }
svg[hidden] { display: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(38px, 4.9vw, 104px); line-height: 1.02; letter-spacing: -.028em; }
h2 { font-size: clamp(34px, 4.1vw, 84px); line-height: 1.07; letter-spacing: -.025em; }
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: var(--pad); }
.page { position: relative; }
main > section { position: relative; }
.center { text-align: center; }
.fine { color: var(--dim); font-size: 13px; line-height: 1.5; max-width: 52ch; }
.lead { margin: 22px auto 0; max-width: 44ch; text-align: center; color: var(--soft); font-size: clamp(16px, 1.2vw, 21px); text-wrap: balance; }
.head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px 48px; }
.head__side { color: var(--soft); font-size: clamp(15px, 1.1vw, 18px); text-align: right; }
.head__side p { max-width: 38ch; margin-left: auto; }

/* buttons: white and red blocks with a square arrow */
.sq { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 2px; overflow: hidden; font-size: 17px; }
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 52px; padding: 6px 6px 6px 26px;
  font-size: 15px; font-weight: 500; white-space: nowrap; border: 0; border-radius: 3px; cursor: pointer; transition: background-color .25s, color .25s;
}
.btn:hover .sq svg, .rows a:hover .sq svg, .bar__cta:hover .sq svg { animation: arrow .5s var(--ease); }
@keyframes arrow { 49% { transform: translateX(150%); } 50% { transform: translateX(-150%); } 100% { transform: none; } }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--red .sq { background: #fff; color: #000; }
.btn--white { background: #fff; color: #000; }
.btn--white:hover { background: #e7e8e9; }
.btn--white .sq { background: var(--red); color: #fff; }
.btn--glass { padding-right: 26px; color: #fff; background: #ffffff1f; backdrop-filter: blur(18px) saturate(1.3); box-shadow: inset 0 0 0 1px #ffffff2e; }
.btn--glass:hover { background: #fff; color: #000; }

/* header */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 76px; padding: 0 var(--edge);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; transition: background-color .3s;
}
.header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(#000c, #0000); transition: opacity .3s; }
.header.is-solid { height: 64px; background: #000000c7; backdrop-filter: blur(22px) saturate(1.4); box-shadow: 0 1px 0 #ffffff1c; }
.header.is-solid::before { opacity: 0; }
.logo { justify-self: start; background: #fff; padding: 7px 13px; border-radius: 3px; }
.logo img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav__item { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 44px; padding: 0 20px; font-size: 14px; font-weight: 500; background: #fff; color: #000; border-radius: 3px; transition: color .3s; }
.nav__item::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red); transform: translateY(101%); transition: transform .45s var(--ease); }
.nav__item:hover { color: #fff; }
.nav__item:hover::after { transform: none; }
.nav__item--lead { padding-left: 4px; gap: 14px; }
.nav__item .sq { width: 36px; height: 36px; background: var(--red); color: #fff; }
.header__right { justify-self: end; display: flex; gap: 4px; }
.header .btn { min-height: 44px; padding: 4px 4px 4px 20px; gap: 18px; font-size: 14px; }
.header .btn .sq { width: 36px; height: 36px; }
.icon-btn, .burger { width: 44px; height: 44px; display: grid; place-items: center; font-size: 19px; background: #fff; color: var(--red); border: 0; border-radius: 3px; cursor: pointer; transition: background-color .25s, color .25s; }
.icon-btn:hover { background: var(--red); color: #fff; }
.burger { display: none; color: #000; }

/* footer */
.footer { padding-block: 40px clamp(20px, 2.4vw, 48px); border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 14px; color: var(--soft); }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 5px; }
.footer__logo { width: 100%; margin-top: clamp(40px, 6vw, 110px); }

@media (max-width: 1180px) {
  .header { grid-template-columns: auto 1fr; }
  .burger { display: grid; }
  .nav { display: none; position: absolute; top: 100%; inset-inline: 0; flex-direction: column; padding: 8px var(--pad) 24px; background: #000; }
  .nav.is-open { display: flex; }
  .nav__item { min-height: 54px; font-size: 16px; }
}
@media (max-width: 820px) {
  h1 { font-size: clamp(27px, 9vw, 64px); }
  .head { grid-template-columns: 1fr; }
  .head__side { text-align: left; }
  .head__side p { margin: 0; }
  .header { height: 66px; }
}
@media (max-width: 560px) {
  .header__right .btn { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
