:root {
  --bg: #03080c;
  --bg-soft: #07131b;
  --panel: rgba(7, 22, 31, 0.78);
  --panel-solid: #081820;
  --line: rgba(76, 220, 255, 0.22);
  --line-strong: rgba(76, 220, 255, 0.55);
  --cyan: #4cdcff;
  --cyan-hot: #8beaff;
  --text: #e9f8ff;
  --muted: #8ca8b5;
  --shadow: 0 0 40px rgba(30, 197, 255, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 15% 10%, rgba(25, 165, 213, 0.11), transparent 30rem),
    radial-gradient(circle at 90% 25%, rgba(0, 121, 173, 0.08), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

::selection {
  background: var(--cyan);
  color: #001015;
}

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

.grid-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(76, 220, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 220, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

.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;
}

.section-shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px max(20px, calc((100vw - var(--max)) / 2));
  background: rgba(3, 8, 12, 0.78);
  border-bottom: 1px solid rgba(76, 220, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(76, 220, 255, 0.08), 0 0 18px rgba(76, 220, 255, 0.12);
  font-size: 0.77rem;
}

.brand-text {
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  gap: 30px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.74rem;
  font-weight: 800;
  transition: color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--cyan);
}

.hero {
  min-height: calc(100vh - 71px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: clamp(40px, 8vw, 100px);
  align-items: center;
  padding-block: 80px;
}

.eyebrow {
  margin: 0 0 15px;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.manifesto h2,
.join-card h2 {
  margin: 0;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.045em;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  font-size: clamp(5rem, 13vw, 10.5rem);
  font-weight: 950;
}

.outline-text {
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  text-shadow: 0 0 30px rgba(76, 220, 255, 0.22);
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: #b7d1db;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--line-strong);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #001218;
  background: var(--cyan);
  box-shadow: 0 0 28px rgba(76, 220, 255, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--cyan-hot);
  box-shadow: 0 0 35px rgba(76, 220, 255, 0.38);
}

.btn-ghost {
  color: var(--text);
  background: rgba(4, 19, 27, 0.5);
}

.btn-large {
  min-height: 60px;
  padding-inline: 30px;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 32px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-strip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
}

.hero-panel {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(76, 220, 255, 0.06), transparent 55%),
    rgba(2, 12, 18, 0.64);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-panel::before,
.hero-panel::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

.hero-panel::before {
  top: 32px;
  left: 0;
}

.hero-panel::after {
  right: 0;
  bottom: 32px;
}

.core {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
  box-shadow:
    inset 0 0 45px rgba(76, 220, 255, 0.12),
    0 0 45px rgba(76, 220, 255, 0.18);
}

.core span {
  transform: rotate(-45deg);
  color: var(--cyan);
  font-size: 2.6rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(76, 220, 255, 0.35);
}

.orbital {
  position: absolute;
  border: 1px solid rgba(76, 220, 255, 0.25);
  border-radius: 50%;
}

.orbital-one {
  width: 330px;
  height: 330px;
}

.orbital-two {
  width: 420px;
  height: 220px;
  transform: rotate(-22deg);
}

.hero-panel p {
  position: absolute;
  bottom: 42px;
  left: 42px;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  line-height: 1.8;
}

.hero-panel strong {
  color: var(--cyan);
}

.block-section {
  padding-block: 110px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2,
.manifesto h2,
.join-card h2 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-weight: 950;
}

.section-heading > p:last-child {
  max-width: 650px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.finder-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.finder-step {
  display: flex;
  gap: 20px;
  min-height: 170px;
  padding: 28px;
  border-right: 1px solid var(--line);
}

.finder-step:last-child {
  border-right: 0;
}

.finder-featured {
  background: linear-gradient(135deg, rgba(76, 220, 255, 0.1), transparent);
}

.step-number {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.finder-step h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  text-transform: uppercase;
}

.finder-step p {
  margin: 0;
  color: var(--muted);
}

.server-name {
  display: block;
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  text-align: left;
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 950;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.copy-hint {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.feature-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-block;
  margin-bottom: 35px;
  font-size: 1.5rem;
}

.feature-card h3 {
  margin: 0;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.manifesto {
  position: relative;
  margin-block: 50px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(76, 220, 255, 0.05), transparent 30%, rgba(76, 220, 255, 0.03)),
    #041016;
  overflow: hidden;
}

.manifesto::after {
  content: "TERRA NUL";
  position: absolute;
  right: -40px;
  bottom: -65px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(76, 220, 255, 0.08);
  font-size: clamp(7rem, 20vw, 19rem);
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.manifesto-inner {
  position: relative;
  z-index: 2;
  padding-block: 120px;
}

.manifesto h2 span {
  color: var(--cyan);
}

.manifesto-inner > p:not(.eyebrow) {
  max-width: 690px;
  color: #b7d1db;
  font-size: 1.08rem;
}

.free-callout {
  margin-top: 30px;
  padding-left: 18px;
  border-left: 2px solid var(--cyan);
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 16px;
}

.admin-card {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 130px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.admin-avatar {
  display: grid;
  place-items: center;
  width: 76px;
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  background: rgba(76, 220, 255, 0.05);
  font-size: 2rem;
  font-weight: 950;
  box-shadow: inset 0 0 25px rgba(76, 220, 255, 0.07);
}

.role {
  color: var(--cyan);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.2em;
}

.admin-card h3 {
  margin: 3px 0 0;
  font-size: 1.75rem;
  text-transform: uppercase;
}

.join-section {
  padding-block: 80px 120px;
}

.join-card {
  padding: clamp(36px, 8vw, 80px);
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(135deg, rgba(76, 220, 255, 0.11), transparent 50%),
    var(--panel-solid);
  box-shadow: var(--shadow);
  text-align: center;
}

.join-card p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px auto 30px;
  color: var(--muted);
}

.join-card small {
  display: block;
  margin-top: 16px;
  color: #688793;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding-block: 30px 45px;
  border-top: 1px solid rgba(76, 220, 255, 0.12);
  color: #64828e;
  font-size: 0.77rem;
}

.site-footer div {
  display: flex;
  gap: 16px;
}

.site-footer strong {
  color: #91b6c4;
}

.site-footer p {
  margin: 0;
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  padding: 12px 16px;
  border: 1px solid var(--line-strong);
  background: #071820;
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-panel {
    min-height: 420px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .finder-card {
    grid-template-columns: 1fr;
  }

  .finder-step {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .finder-step:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 720px) {
  .section-shell {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header {
    padding-inline: 14px;
  }

  .brand-text {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 14px;
    left: 14px;
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    background: #06131b;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
  }

  .hero {
    padding-block: 65px 55px;
  }

  .hero h1 {
    font-size: clamp(4.2rem, 22vw, 7rem);
  }

  .hero-panel {
    min-height: 350px;
  }

  .orbital-one {
    width: 250px;
    height: 250px;
  }

  .orbital-two {
    width: 310px;
    height: 180px;
  }

  .core {
    width: 125px;
    height: 125px;
  }

  .hero-panel p {
    left: 24px;
    bottom: 24px;
  }

  .block-section {
    padding-block: 80px;
  }

  .feature-grid,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer div {
    flex-direction: column;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
