:root {
  color-scheme: dark;
  --bg: #050509;
  --surface: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.18);
  --text: #f7f7ff;
  --muted: #a7a8ba;
  --violet: #6262ff;
  --cyan: #12f5ff;
  --acid: #c8ff00;
  --radius: 8px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(98,98,255,.18), transparent 34%),
    linear-gradient(225deg, rgba(18,245,255,.11), transparent 38%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 10;
  width: min(1180px, calc(100% - 24px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 8, 18, .78);
  backdrop-filter: blur(18px);
}

.brand {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  width: 92px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(98,98,255,.45));
}

.brand-text {
  display: none;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-links {
  grid-column: 2;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.nav-dropdown-toggle,
.lang-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  padding: 0 12px;
  font-size: 12px;
  letter-spacing: 0;
  font-family: inherit;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[data-current="true"],
.nav-dropdown.is-open .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.lang-button:hover,
.lang-button[aria-expanded="true"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.06);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  cursor: pointer;
  outline: none;
  gap: 7px;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .72;
}

.nav-dropdown.is-open .nav-dropdown-toggle::after,
.nav-dropdown:focus-within .nav-dropdown-toggle::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-dropdown-menu,
.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  display: grid;
  gap: 6px;
  min-width: 172px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(8, 8, 18, .94);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}

.nav-dropdown-menu {
  left: 0;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu,
.lang-picker.is-open .lang-menu,
.lang-picker:focus-within .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  width: 100%;
  justify-content: flex-start;
}

.lang-picker {
  position: relative;
}

.lang-button {
  cursor: pointer;
  outline: none;
  gap: 8px;
  padding-right: 14px;
}

.lang-button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .72;
}

.lang-menu {
  right: 0;
  min-width: 178px;
}

.lang-menu button {
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  padding: 0 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.lang-menu button:hover,
.lang-menu button[aria-current="true"] {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,.06);
}

.flag-icon {
  position: relative;
  flex: 0 0 auto;
  width: 18px;
  height: 13px;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 4px 14px rgba(0, 0, 0, .26);
}

.flag-ar {
  background: linear-gradient(to bottom, #74acdf 0 33%, #fff 33% 66%, #74acdf 66%);
}

.flag-ar::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #f6b40e;
  transform: translate(-50%, -50%);
}

.flag-us {
  background: repeating-linear-gradient(to bottom, #b22234 0 1px, #fff 1px 2px);
}

.flag-us::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 8px;
  height: 7px;
  background: #3c3b6e;
}

.flag-it { background: linear-gradient(to right, #009246 0 33%, #fff 33% 66%, #ce2b37 66%); }
.flag-br { background: radial-gradient(circle at 50% 50%, #002776 0 18%, transparent 19%), linear-gradient(135deg, transparent 30%, #ffdf00 31% 69%, transparent 70%), #009c3b; }
.flag-de { background: linear-gradient(to bottom, #000 0 33%, #dd0000 33% 66%, #ffce00 66%); }
.flag-fr { background: linear-gradient(to right, #0055a4 0 33%, #fff 33% 66%, #ef4135 66%); }

.lang-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.lang-select {
  cursor: pointer;
  outline: none;
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--cyan) 50%),
    linear-gradient(135deg, var(--cyan) 50%, transparent 50%);
  background-position: calc(100% - 17px) 16px, calc(100% - 11px) 16px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.lang-select option {
  background: #080812;
  color: var(--text);
}

.mobile-menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  cursor: pointer;
}

.page {
  width: min(1060px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  padding: 128px 0 72px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 800;
  line-height: 1;
}

p {
  max-width: 680px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.btn {
  width: fit-content;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  margin-top: 30px;
  padding: 0 18px;
  border-radius: 999px;
  color: #081006;
  background: linear-gradient(135deg, var(--acid), #75ffdc);
  font-weight: 700;
}

.footer {
  width: min(1060px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0 28px;
  color: rgba(167, 168, 186, 0.75);
  font-size: 12px;
  letter-spacing: .01em;
}

.container {
  width: 100%;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.footer-main,
.footer-credit {
  display: grid;
  gap: 5px;
}

.footer-credit {
  max-width: 360px;
  text-align: right;
}

.footer a {
  color: #d6d7e7;
  transition: color .22s ease, text-shadow .22s ease;
}

.footer a:hover {
  color: var(--cyan);
  text-shadow: 0 0 16px rgba(18,245,255,.24);
}

@media (max-width: 820px) {
  .nav {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(8, 8, 18, .92);
    backdrop-filter: blur(18px);
  }

  .nav-links.is-open { display: flex; }
  .nav-links a,
  .nav-dropdown,
  .nav-dropdown-toggle {
    width: 100%;
  }

  .nav-dropdown-toggle {
    justify-content: space-between;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 6px;
    padding: 6px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .nav-dropdown.is-open .nav-dropdown-menu,
  .nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
  }

  .mobile-menu { display: inline-grid; place-items: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-credit { text-align: left; }
}
