:root {
  --bg: #03070b;
  --panel: rgba(6, 15, 24, 0.82);
  --panel-strong: rgba(8, 20, 32, 0.94);
  --text: #eafcff;
  --muted: #a4bdc7;
  --aqua: #18f1ff;
  --blue: #117cff;
  --violet: #8d4dff;
  --pink: #e25cff;
  --line: rgba(24, 241, 255, 0.22);
  --shadow: 0 0 50px rgba(24, 241, 255, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(17, 124, 255, 0.18), transparent 28%),
              radial-gradient(circle at bottom right, rgba(141, 77, 255, 0.18), transparent 26%),
              var(--bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: var(--aqua); text-decoration: none; }
a:hover { color: #ffffff; text-shadow: 0 0 18px rgba(24, 241, 255, 0.8); }

.nr-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #020508;
  transition: opacity 900ms ease, visibility 900ms ease;
}
.nr-loader.is-hidden { opacity: 0; visibility: hidden; }
.loader-ring {
  position: absolute;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  border: 1px solid rgba(24, 241, 255, 0.22);
  box-shadow: inset 0 0 35px rgba(141, 77, 255, 0.35), 0 0 55px rgba(24, 241, 255, 0.45);
  animation: spin 1.8s linear infinite;
}
.loader-ring::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border-top: 3px solid var(--aqua);
  border-right: 3px solid transparent;
  filter: drop-shadow(0 0 18px var(--aqua));
}
.loader-core {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  color: #031015;
  background: linear-gradient(135deg, var(--aqua), var(--violet), var(--pink));
  box-shadow: 0 0 42px rgba(24, 241, 255, 0.65);
}

@keyframes spin { to { transform: rotate(360deg); } }

.ambient {
  position: fixed;
  width: 34vw;
  height: 34vw;
  min-width: 280px;
  min-height: 280px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.28;
  pointer-events: none;
}
.ambient-one { top: 8%; left: -12%; background: var(--aqua); }
.ambient-two { right: -10%; bottom: 6%; background: var(--violet); }
.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: linear-gradient(rgba(24,241,255,.28) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(24,241,255,.28) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at center, black, transparent 76%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(3, 7, 11, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand { display: grid; gap: 2px; }
.brand-mark {
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(18px, 2vw, 28px);
  letter-spacing: .08em;
  font-weight: 800;
  color: var(--aqua);
  text-shadow: 0 0 22px rgba(24, 241, 255, .5);
}
.brand-sub {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .28em;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  flex-wrap: wrap;
  justify-content: center;
}
.top-nav a {
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  letter-spacing: .12em;
  padding: 9px 10px;
  border-radius: 999px;
}
.top-nav a:hover { background: rgba(24, 241, 255, .1); }

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 34px auto 80px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  align-items: start;
}
.hero-card, .toc-card, .legal-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(7, 18, 31, .9), rgba(4, 9, 16, .78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 28px;
}
.hero-card {
  grid-column: 1 / 2;
  padding: clamp(28px, 5vw, 58px);
  min-height: 300px;
}
.status-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--aqua);
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  letter-spacing: .18em;
  margin-bottom: 22px;
}
.pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 18px var(--aqua);
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
.hero-card h1 {
  margin: 0 0 18px;
  font-size: clamp(38px, 7vw, 78px);
  line-height: .94;
  letter-spacing: -.06em;
}
.hero-card p {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.72;
}
.meta-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.meta-grid div {
  padding: 16px;
  border: 1px solid rgba(24,241,255,.16);
  border-radius: 18px;
  background: rgba(0,0,0,.2);
}
.meta-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .18em;
  margin-bottom: 7px;
}
.meta-grid strong { font-size: 14px; }

.toc-card {
  position: sticky;
  top: 104px;
  grid-column: 2 / 3;
  grid-row: 1 / span 18;
  padding: 22px;
}
.toc-card h2 {
  margin: 0 0 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--aqua);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.toc-card a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid rgba(24,241,255,.1);
  color: var(--muted);
  font-size: 14px;
}
.toc-card a:hover { color: #fff; }

.legal-card {
  grid-column: 1 / 2;
  padding: clamp(22px, 4vw, 38px);
  transform: translateY(14px);
  opacity: 0;
  transition: opacity 700ms ease, transform 700ms ease, border-color 400ms ease;
}
.legal-card.is-visible { opacity: 1; transform: translateY(0); }
.legal-card:hover { border-color: rgba(24, 241, 255, .46); }
.legal-card h2 {
  margin: 0 0 16px;
  color: #ffffff;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -.035em;
}
.legal-card p, .legal-card li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}
.legal-card ul { padding-left: 22px; margin: 10px 0 0; }
.legal-card li { margin: 7px 0; }
.final-card { margin-bottom: 40px; }
.mail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  margin: 12px 0;
  border-radius: 999px;
  color: #041019;
  font-weight: 800;
  background: linear-gradient(135deg, var(--aqua), var(--violet));
  box-shadow: 0 0 34px rgba(24, 241, 255, .35);
}
.mail-button:hover { color: #000; filter: brightness(1.12); text-shadow: none; }
.copyright { font-family: "JetBrains Mono", monospace; font-size: 13px !important; }

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #001015;
  background: linear-gradient(135deg, var(--aqua), var(--violet));
  font-size: 24px;
  font-weight: 900;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.to-top.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .site-header {
    position: relative;
    display: grid;
    justify-content: center;
    text-align: center;
  }
  .top-nav { width: 100%; }
  .page-shell { grid-template-columns: 1fr; }
  .hero-card, .toc-card, .legal-card { grid-column: 1; }
  .toc-card { position: relative; top: auto; grid-row: auto; }
  .toc-card a { display: inline-block; margin-right: 12px; border-bottom: 0; }
  .meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .page-shell { width: min(100% - 20px, 1180px); margin-top: 18px; }
  .hero-card, .toc-card, .legal-card { border-radius: 20px; }
  .top-nav a { font-size: 12px; padding: 8px 6px; }
  .brand-sub { letter-spacing: .18em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
