@font-face {
  font-family: "Nataito Display";
  src: url("../assets/fonts/Nataito-Teko-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #151515;
  --bg-soft: #1d1d1d;
  --bg-panel: #222222;
  --paper: #fffffa;
  --paper-soft: #f4f2eb;
  --muted: #a7a39a;
  --muted-strong: #d2cec4;
  --line: rgba(255, 255, 250, 0.14);
  --line-strong: rgba(255, 255, 250, 0.24);
  --red: #be1622;
  --blue: #009fe3;
  --red-soft: rgba(190, 22, 34, 0.18);
  --blue-soft: rgba(0, 159, 227, 0.16);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  --radius: 8px;
  --max: 1160px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  text-rendering: geometricPrecision;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
}

body::before {
  z-index: -3;
  background:
    radial-gradient(circle at 20% 18%, rgba(190, 22, 34, 0.32), transparent 26%),
    radial-gradient(circle at 82% 24%, rgba(0, 159, 227, 0.28), transparent 26%),
    radial-gradient(circle at 48% 62%, rgba(255, 255, 250, 0.1), transparent 28%),
    radial-gradient(circle at 76% 88%, rgba(190, 22, 34, 0.18), transparent 24%),
    linear-gradient(180deg, #202020 0%, #151515 42%, #101010 100%);
  background-size: 150% 150%;
  animation: siteGradient 16s ease-in-out infinite alternate;
}

body::after {
  z-index: -2;
  background-image: url("../assets/brand/ruido.png");
  background-size: 420px 420px;
  opacity: 0.07;
  mix-blend-mode: screen;
}

body.nav-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

p,
h1,
h2,
h3,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.header__inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  height: 44px;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  height: 34px;
  max-width: 80px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.nav a {
  transition: color 180ms var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--paper);
}

.nav-login {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--paper);
  font-weight: 500;
}

.nav-login:hover {
  border-color: var(--paper);
  background: rgba(255, 255, 250, 0.06);
}

.home-page .nav-login {
  display: none;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--paper);
  transition: transform 180ms var(--ease);
}

.nav-toggle span + span {
  margin-top: -12px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg) translate(4px, 4px);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg) translate(4px, -4px);
}

.divider {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 4px;
}

.background-blur {
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(50px);
}

.vertical {
  width: 2px;
  height: 120px;
  align-self: center;
}

.bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
}

.bottom-line[color="white"] {
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgb(255, 255, 255), rgba(255, 255, 255, 0));
}

.bottom-line[color="blue"] {
  background: linear-gradient(to right, rgba(0, 159, 227, 0), rgb(0, 159, 227), rgba(0, 159, 227, 0));
}

.bottom-line[color="red"] {
  background: linear-gradient(to right, rgba(190, 22, 34, 0), rgb(190, 22, 34), rgba(190, 22, 34, 0));
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.kicker::before {
  display: none;
  content: none;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 1040px;
  margin-top: 24px;
  font-size: 92px;
  font-weight: 500;
  line-height: 0.94;
}

h2 {
  margin-top: 24px;
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
}

h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.16;
}

.lead {
  max-width: 560px;
  margin-top: 28px;
  color: var(--muted-strong);
  font-size: 21px;
  font-weight: 400;
  line-height: 1.42;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: transform 180ms var(--ease), border-color 180ms var(--ease), background 180ms var(--ease), color 180ms var(--ease);
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.nav-toggle:focus-visible,
input:focus,
textarea:focus {
  outline: 3px solid rgba(0, 159, 227, 0.3);
  outline-offset: 2px;
}

.button--primary {
  background: var(--paper);
  color: var(--bg);
}

.button--primary:hover {
  background: var(--paper-soft);
}

.button--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--paper);
}

.button--ghost:hover {
  border-color: var(--paper);
}

.button--light {
  background: var(--paper);
  color: var(--bg);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.01);
  color: var(--paper);
  backdrop-filter: blur(6px);
  transition: border-color 180ms var(--ease), background 180ms var(--ease);
}

input {
  min-height: 46px;
  padding: 0 16px;
}

textarea {
  min-height: 132px;
  padding: 12px 16px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #77736c;
}

input:hover,
textarea:hover {
  border-color: var(--line-strong);
  background: #1c1c1c;
}

.footer {
  padding: 56px 0;
  color: var(--muted);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo--footer {
  height: 32px;
  max-width: 90px;
}

@keyframes siteGradient {
  0% {
    background-position: 0% 0%;
    filter: saturate(1);
  }

  50% {
    background-position: 78% 42%;
    filter: saturate(1.12);
  }

  100% {
    background-position: 100% 100%;
    filter: saturate(1.04);
  }
}

@media (max-width: 980px) {
  .vertical {
    width: 35%;
    height: 2px;
  }

  h1 {
    font-size: 68px;
  }

  h2 {
    font-size: 42px;
  }
}

@media (max-width: 720px) {
  .vertical {
    width: 50%;
    height: 2px;
  }

  .container {
    width: min(100% - 28px, var(--max));
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: fixed;
    top: 72px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-panel);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms var(--ease), transform 180ms var(--ease);
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav a {
    padding: 16px;
  }

  .nav-login {
    margin: 8px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 34px;
  }

  .lead {
    font-size: 18px;
  }

  .footer__inner {
    align-items: center;
    flex-direction: column;
  }
}
