/* ============================================================
   jev.lv — design tokens (Cyberpunk, one-pager)
   Near-black base, neon pink primary, neon cyan secondary,
   hexagon field in the background, everything else stays quiet.
   ============================================================ */

:root {
  --bg: #08060d;
  --panel: #0e0a17;
  --panel-2: #140e21;
  --line: #251c38;
  --line-strong: #3d2c5c;
  --text: #f1ecfb;
  --muted: #9a8cc2;
  --muted-2: #6a5c92;
  --pink: #ff2ec4;
  --pink-dim: #7a1263;
  --cyan: #16e6ff;
  --cyan-dim: #0c5566;

  --mono: "Space Mono", "IBM Plex Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --maxw: 780px;
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background-image: url("hex-bg.svg");
  background-repeat: repeat;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.025) 0px,
    rgba(255, 255, 255, 0.025) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}
@media (prefers-reduced-motion: reduce) {
  body::after { display: none; }
}

::selection { background: var(--pink); color: #0d0316; }

a { color: inherit; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------------- nav ---------------- */

.nav {
  position: sticky;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  background: rgba(8, 6, 13, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav__mark {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav__mark .dot { color: var(--pink); }

.langbar {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line-strong);
  padding: 2px;
}
.lang-btn {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-btn:hover, .lang-btn:focus-visible { color: var(--text); }
.lang-btn.active {
  background: var(--pink);
  color: #0d0316;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 46, 196, 0.5);
}

/* ---------------- hero ---------------- */

.hero {
  padding: 72px 0 32px;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--pink);
  display: inline-block;
}

.hero__name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: clamp(2.2rem, 7vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text);
  text-shadow: 0 0 24px rgba(255, 46, 196, 0.18);
  cursor: default;
}
.hero__name .callsign {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--pink);
  filter: drop-shadow(0 0 6px rgba(255, 46, 196, 0.55));
  position: relative;
  display: inline-block;
}
.hero__name:hover .callsign {
  animation: glitch 0.35s steps(2, jump-none) 1;
}
@keyframes glitch {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-2px, 1px); text-shadow: 2px 0 var(--cyan), -2px 0 var(--pink); }
  40% { transform: translate(2px, -1px); text-shadow: -2px 0 var(--cyan), 2px 0 var(--pink); }
  60% { transform: translate(-1px, 0); text-shadow: 1px 0 var(--cyan), -1px 0 var(--pink); }
  80% { transform: translate(1px, 0); text-shadow: none; }
  100% { transform: translate(0, 0); text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__name:hover .callsign { animation: none; }
}

.hero__tagline {
  margin: 22px 0 0;
  max-width: 46ch;
  font-size: clamp(1rem, 2.2vw, 1.1rem);
  color: var(--muted);
}

.hero__meta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted-2);
  letter-spacing: 0.03em;
}

/* ---------------- link groups ---------------- */

.link-groups {
  padding: 20px 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .link-groups { grid-template-columns: 1fr; }
}

.link-group {
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 22px 22px 24px;
}

.link-group__title {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.link-group[data-accent="pink"] .link-group__title { border-bottom-color: var(--pink-dim); }
.link-group[data-accent="cyan"] .link-group__title { border-bottom-color: var(--cyan-dim); }

.link-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  cursor: pointer;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}
.link-item:hover, .link-item:focus-visible {
  transform: translateX(2px);
}
.link-group[data-accent="pink"] .link-item:hover,
.link-group[data-accent="pink"] .link-item:focus-visible {
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255, 46, 196, 0.3);
}
.link-group[data-accent="cyan"] .link-item:hover,
.link-group[data-accent="cyan"] .link-item:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(22, 230, 255, 0.28);
}

.link-item__icon {
  width: 18px; height: 18px;
  flex: none;
  color: var(--muted-2);
}
.link-group[data-accent="pink"] .link-item__icon { color: var(--pink); }
.link-group[data-accent="cyan"] .link-item__icon { color: var(--cyan); }
.link-item__icon svg { width: 100%; height: 100%; }

.link-item__label {
  flex: 1;
  font-weight: 500;
}

.link-item__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-2);
  border: 1px solid var(--line-strong);
  padding: 3px 8px;
  flex: none;
}

.link-item--btn { border: 1px solid var(--line); }
.link-item[data-state="revealed"] {
  cursor: text;
}
.link-item[data-state="revealed"] .link-item__label {
  font-family: var(--mono);
  font-size: 13px;
}

.note {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  margin: 14px 0 0;
}

/* ---------------- footer ---------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 34px var(--pad) 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}
footer a { text-decoration: none; color: var(--muted-2); }
footer a:hover { color: var(--pink); }

.to-top {
  text-decoration: none;
  color: var(--muted-2);
  border: 1px solid var(--line);
  padding: 8px 12px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.to-top:hover { border-color: var(--pink); color: var(--pink); }

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
  box-shadow: 0 0 12px rgba(255, 46, 196, 0.5);
}
