:root {
  --bg: #000112;
  --bg-soft: #020316;
  --panel: rgba(5, 6, 28, .76);
  --panel-strong: rgba(5, 6, 28, .94);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, .64);
  --faint: rgba(255, 255, 255, .34);
  --line: rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .18);
  --red: #ff0037;
  --red-soft: rgba(255, 0, 55, .10);
  --green: #63d19e;
  --brand-font: "LUC Brand", "Aldo the Apache", Arial, Helvetica, sans-serif;
  --max: 760px;
  --mx: 50vw;
  --my: 30vh;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 0, 55, .07), transparent 34%),
    linear-gradient(180deg, #000112 0%, #010216 52%, #000112 100%);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

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

::selection { background: var(--red); color: #fff; }

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.grid {
  position: absolute;
  inset: -20%;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 54px 54px;
  transform: perspective(900px) rotateX(60deg) translateY(22%);
  transform-origin: center center;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 28%, #000 72%, transparent 100%);
  opacity: .55;
  animation: gridDrift 18s linear infinite;
}

.scanline {
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  top: -180px;
  background: linear-gradient(to bottom, transparent, rgba(255, 0, 55, .025), rgba(255,255,255,.018), transparent);
  filter: blur(.3px);
  animation: scan 8s linear infinite;
}

.cursor-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  left: calc(var(--mx) - 260px);
  top: calc(var(--my) - 260px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,0,55,.08) 0%, rgba(255,0,55,.025) 32%, transparent 68%);
  filter: blur(6px);
  opacity: .9;
  transition: opacity .2s ease;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: .012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.85'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 2;
  width: min(100% - 28px, var(--max));
  margin: 0 auto;
  padding: 22px 0 28px;
}

.topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 10px 0 18px;
  border-bottom: 1px solid rgba(255, 0, 55, .30);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: block;
  flex: 0 0 auto;
}

.brand-meta {
  min-width: 0;
  display: grid;
  gap: 3px;
  line-height: 1;
}

.brand-meta b {
  font-family: var(--brand-font);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .05em;
  white-space: nowrap;
}

.brand-luc { color: #fff; }
.brand-rp-lock {
  position: relative;
  display: inline-block;
  margin-left: .08em;
  color: var(--red);
  letter-spacing: -.10em;
}
.brand-rp-lock::before {
  content: "";
  position: absolute;
  width: .20em;
  height: .095em;
  left: -.12em;
  top: 55%;
  background: currentColor;
}

.brand-meta small {
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .17em;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.node-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.58);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  white-space: nowrap;
}

.node-status i {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 12px rgba(99, 209, 158, .45);
  animation: pulse 2.4s ease-in-out infinite;
}

.language {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}

.lang-btn {
  width: 34px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  opacity: .46;
  filter: saturate(.6);
  transition: opacity .16s ease, background .16s ease, filter .16s ease, box-shadow .16s ease;
}

.lang-btn:last-child { border-right: 0; }
.lang-btn:hover { opacity: .8; }
.lang-btn.is-active {
  opacity: 1;
  filter: saturate(1);
  background: rgba(255,0,55,.055);
  box-shadow: inset 0 -2px 0 var(--red);
}

.identity {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 52px 18px 30px;
}

.identity::before,
.identity::after {
  content: "";
  position: absolute;
  top: 72px;
  width: min(24vw, 150px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,0,55,.65));
}
.identity::before { left: 0; }
.identity::after { right: 0; transform: scaleX(-1); }

.eyebrow {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
}

.eyebrow b { color: var(--red); font-size: inherit; }

.identity-logo-wrap {
  position: relative;
  width: 126px;
  height: 126px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}

.identity-logo-wrap::before,
.identity-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255,0,55,.16);
  clip-path: polygon(0 0, 34% 0, 34% 1px, 100% 1px, 100% 66%, calc(100% - 1px) 66%, calc(100% - 1px) 100%, 62% 100%, 62% calc(100% - 1px), 0 calc(100% - 1px));
}

.identity-logo-wrap::after {
  inset: -18px;
  border-color: rgba(255,255,255,.06);
  animation: frameBreath 3.5s ease-in-out infinite;
}

.identity-logo {
  width: 112px;
  height: 112px;
  display: block;
  filter: drop-shadow(0 0 24px rgba(255,0,55,.10));
}

.code {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .20em;
}

.identity h1 {
  position: relative;
  margin: 0;
  font-family: var(--brand-font);
  font-size: clamp(58px, 14vw, 98px);
  font-weight: 400;
  line-height: .82;
  letter-spacing: .005em;
  text-transform: uppercase;
}

.identity h1 span { color: #fff; }
.identity h1 em {
  margin-left: .10em;
  color: var(--red);
  font-style: normal;
  text-shadow: 0 0 24px rgba(255,0,55,.16);
}

.identity h1::after {
  content: "CONNECT";
  position: absolute;
  inset: 0 auto auto 0;
  color: rgba(255,0,55,.10);
  font-family: inherit;
  font-weight: inherit;
  transform: translate(2px, 0);
  clip-path: inset(53% 0 32% 0);
  pointer-events: none;
  animation: glitchSlice 5.8s steps(1,end) infinite;
}

.tagline {
  margin: 24px 0 0;
  color: rgba(255,255,255,.70);
  font-size: clamp(15px, 3.3vw, 18px);
}

.tagline strong { color: #fff; }

.intro {
  margin: 15px 0 0;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.links {
  display: grid;
  gap: 10px;
  margin: 10px 0 26px;
}

.link-card {
  --px: 50%;
  --py: 50%;
  position: relative;
  isolation: isolate;
  min-height: 84px;
  display: grid;
  grid-template-columns: 42px 42px 1fr 32px;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at var(--px) var(--py), rgba(255,0,55,.09), transparent 34%),
    linear-gradient(90deg, rgba(255,255,255,.018), rgba(255,255,255,.006));
  box-shadow: 0 18px 42px rgba(0,0,0,.16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.link-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--red);
  transform: scaleY(.18);
  transform-origin: center;
  transition: transform .18s ease, box-shadow .18s ease;
}

.link-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 0 42%, rgba(255,255,255,.045) 48%, transparent 54% 100%);
  transform: translateX(-130%);
  transition: transform .48s ease;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255,0,55,.62);
  box-shadow: 0 22px 54px rgba(0,0,0,.26), 0 0 0 1px rgba(255,0,55,.03) inset;
  outline: none;
}

.link-card:hover::before,
.link-card:focus-visible::before {
  transform: scaleY(1);
  box-shadow: 0 0 18px rgba(255,0,55,.34);
}

.link-card:hover::after,
.link-card:focus-visible::after { transform: translateX(130%); }

.link-card.featured {
  border-color: rgba(255,0,55,.42);
  background:
    radial-gradient(circle at var(--px) var(--py), rgba(255,0,55,.13), transparent 36%),
    linear-gradient(90deg, rgba(255,0,55,.055), rgba(255,255,255,.008));
}

.index {
  color: rgba(255,255,255,.28);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .10em;
}

.icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.012);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}

.link-card:hover .icon,
.link-card:focus-visible .icon {
  color: #fff;
  border-color: rgba(255,0,55,.50);
  background: rgba(255,0,55,.05);
}

.web-icon {
  color: var(--red);
  font-family: var(--brand-font);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: -.12em;
}

.copy {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.copy b {
  color: #fff;
  font-family: var(--brand-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .075em;
}

.copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.arrow {
  color: var(--red);
  font-size: 18px;
  line-height: 1;
  text-align: right;
  transition: transform .18s ease;
}

.link-card:hover .arrow,
.link-card:focus-visible .arrow { transform: translate(3px, -2px); }
.link-card.featured:hover .arrow,
.link-card.featured:focus-visible .arrow { transform: translateX(4px); }

.telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.008);
}

.telemetry > div {
  min-width: 0;
  padding: 13px 12px;
  border-right: 1px solid var(--line);
}
.telemetry > div:last-child { border-right: 0; }
.telemetry span,
.telemetry b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.telemetry span {
  margin-bottom: 5px;
  color: var(--faint);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: .15em;
}
.telemetry b {
  color: rgba(255,255,255,.72);
  font-size: 8px;
  letter-spacing: .07em;
}
.telemetry b.ok { color: var(--green); }

footer {
  padding: 28px 0 12px;
  text-align: center;
}

.footer-rule {
  display: grid;
  grid-template-columns: 1fr 6px;
  gap: 9px;
  align-items: center;
  margin-bottom: 22px;
}
.footer-rule span { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,0,55,.42), transparent); }
.footer-rule i { width: 6px; height: 6px; background: var(--red); }

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: .04em;
}
footer p b {
  color: #fff;
  font-family: var(--brand-font);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .08em;
}
footer .brand-rp-lock { margin-right: .04em; }
footer .legal {
  max-width: 570px;
  margin: 13px auto 0;
  color: rgba(255,255,255,.28);
  font-size: 8px;
  line-height: 1.45;
}

@keyframes scan {
  from { transform: translateY(-10vh); }
  to { transform: translateY(125vh); }
}

@keyframes gridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 0 54px, 54px 0; }
}

@keyframes pulse {
  0%, 100% { opacity: .65; }
  50% { opacity: 1; box-shadow: 0 0 18px rgba(99, 209, 158, .65); }
}

@keyframes frameBreath {
  0%, 100% { opacity: .45; transform: scale(1); }
  50% { opacity: .8; transform: scale(1.018); }
}

@keyframes glitchSlice {
  0%, 89%, 100% { transform: translate(2px, 0); opacity: 0; }
  90% { transform: translate(-3px, -1px); opacity: .65; }
  91% { transform: translate(5px, 1px); opacity: .28; }
  92% { transform: translate(0, 0); opacity: 0; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, var(--max)); padding-top: 14px; }
  .topbar { min-height: 56px; }
  .brand-logo { width: 36px; height: 36px; }
  .brand-meta b { font-size: 15px; }
  .brand-meta small { font-size: 7px; }
  .node-status { display: none; }
  .identity { padding: 42px 6px 26px; }
  .identity::before, .identity::after { top: 62px; width: 18vw; }
  .identity-logo-wrap { width: 112px; height: 112px; }
  .identity-logo { width: 100px; height: 100px; }
  .identity h1 { font-size: clamp(54px, 18vw, 76px); }
  .links { gap: 8px; }
  .link-card {
    min-height: 78px;
    grid-template-columns: 32px 38px 1fr 24px;
    gap: 10px;
    padding: 12px;
  }
  .icon { width: 38px; height: 38px; }
  .copy b { font-size: 14px; }
  .copy small { font-size: 10px; }
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .telemetry > div:nth-child(2) { border-right: 0; }
  .telemetry > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 390px) {
  .brand-meta { display: none; }
  .identity h1 { font-size: 52px; }
  .identity-logo-wrap { margin-bottom: 18px; }
  .link-card { grid-template-columns: 28px 36px 1fr 18px; gap: 8px; }
  .copy small { max-width: 190px; }
}

@media (hover: none) {
  .cursor-glow { display: none; }
  .link-card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .cursor-glow { display: none; }
}