/* Shared chrome: tokens, reset, nav, language, footer, drawer */
@import url("../../resources/libs/fonts/fonts.css");

:root {
  --black: #050c14;
  --white: #eef7ff;
  --lime: #00d8f0;
  --lime-dim: rgba(0, 216, 240, 0.14);
  --gray: #9bb0c0;
  --gray-mid: #7e93a6;
  --gray-dark: #0d1a24;
  --line: #143044;
  --muted: #8aa0b2;
  --pad: clamp(20px, 4vw, 56px);
  --nav-h: 88px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { overflow-x: clip; }

body {
  background: var(--black);
  color: var(--white);
  font-family: Inter, system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--lime); color: #041018; }

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

a:link,
a:visited,
a:hover,
a:active,
a:focus {
  text-decoration: none;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
ul { list-style: none; }

.label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
  font-weight: 500;
}


/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 var(--pad);
  background: rgba(5, 12, 20, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: none;
}

.nav > * { pointer-events: auto; }

.nav.scrolled {
  background: rgba(5, 12, 20, 0.88);
  border-bottom-color: rgba(0, 216, 240, 0.28);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  z-index: 2;
  flex-shrink: 0;
}

.logo-mark { display: none; }

.logo-word {
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
  color: var(--white);
  text-shadow: 0 0 18px rgba(5, 12, 20, 0.85);
}

.logo-word span { color: var(--lime); }

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 36px;
  min-width: 0;
  margin-left: auto;
  margin-right: 40px;
}

.nav-links a {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .25s;
}

.nav-links a em { display: none; }

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

.nav-links a.is-active { color: var(--lime); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 2;
  flex-shrink: 0;
}

.lang { position: relative; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 0 0 18px;
  border: 0;
  border-left: 1px solid var(--line);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color .25s;
}

.lang-btn span::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  vertical-align: 2px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 4px solid currentColor;
  opacity: 0.7;
}

.lang-btn:hover,
.lang.open .lang-btn { color: var(--lime); }

.lang-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 168px;
  background: rgba(5, 12, 20, 0.94);
  border: 1px solid var(--line);
  border-top: 1px solid rgba(0, 216, 240, 0.35);
  padding: 8px 0;
  display: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.lang.open .lang-menu { display: block; }

.lang-menu button {
  width: 100%;
  text-align: left;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--white);
}

.lang-menu button:hover,
.lang-menu button.active {
  color: var(--lime);
}

.burger {
  display: none;
  width: 36px;
  height: 36px;
  border: 1px solid #fff;
  position: relative;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 1px;
  background: #fff;
}

.burger::before { top: 12px; }
.burger span { top: 17px; }
.burger::after { top: 22px; }


.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid #fff;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: .25s;
}

.btn:hover { border-color: var(--lime); color: var(--lime); }

.btn-solid {
  background: var(--lime);
  color: #041018;
  border-color: var(--lime);
  font-weight: 600;
}

.btn-solid:hover { background: #5eefff; color: #041018; }


footer {
  padding: 64px var(--pad) 36px;
  border-top: 1px solid var(--line);
  background: #050c14;
}

.foot-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px 72px;
  padding-bottom: 36px;
}

.foot-word {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1;
}

.foot-word span { color: var(--lime); }

.foot-identity p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.foot-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.foot-chips li {
  padding: 6px 10px;
  border: 1px solid rgba(0, 216, 240, 0.28);
  background: rgba(0, 216, 240, 0.06);
  color: var(--lime);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.foot-group {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 12px 28px;
  align-items: baseline;
}

.foot-group > span {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.foot-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.foot-inline a {
  font-size: 14px;
  color: #d0d0d0;
}

.foot-inline a:hover { color: var(--lime); }

.foot-end {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  color: var(--gray);
  font-size: 12px;
}


.drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: #050c14;
  z-index: 90;
  padding: 100px var(--pad) 40px;
}

.drawer.open { display: block; }

body.is-nav-open { overflow: hidden; }

.drawer a {
  display: block;
  font-family: "Inter Tight", Inter, sans-serif;
  font-size: clamp(28px, 7vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.drawer a:hover { color: var(--lime); }


@media (max-width: 1280px) {
  .nav-links { gap: 26px; }
  .logo-word { font-size: 22px; letter-spacing: 0.14em; }
}

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-right { margin-left: auto; }
  .burger { display: block; }
}

@media (max-width: 720px) {
  .foot-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .foot-chips { justify-content: flex-start; }

  .foot-group {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .foot-end { flex-direction: column; }
}
