
:root {
  --bg: #0a0d12;
  --bg-card: rgba(255, 255, 255, 0.04);
  --cyan: #5eead4;
  --cyan-dim: rgba(94, 234, 212, 0.15);
  --cyan-bright: #99f6e4;
  --green: #22c55e;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --nav-height: 56px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 16px);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 35%, rgba(10, 13, 18, 0.5) 100%);
  pointer-events: none;
  z-index: 1;
}

.scanlines {
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.015) 3px,
    rgba(0,0,0,0.015) 6px
  );
  pointer-events: none;
  z-index: 10;
  opacity: 0.3;
}

.topnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem clamp(1rem, 4vw, 2rem);
  min-height: var(--nav-height);
  background: rgba(10, 13, 18, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(94, 234, 212, 0.08);
  transition: background 0.3s, border-color 0.3s;
}

.topnav.scrolled {
  background: rgba(10, 13, 18, 0.96);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.nav-logo {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.nav-logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--cyan);
  outline: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-cta {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bg);
  background: linear-gradient(135deg, var(--cyan), #2dd4bf);
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(94, 234, 212, 0.3);
}

.lang-switch {
  display: flex;
  gap: 0;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 2px;
}

.lang-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--bg);
  background: var(--cyan);
}

.lang-btn:focus-visible,
.nav-cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-burger span {
  display: block;
  height: 2px;
  background: var(--muted);
  border-radius: 1px;
  transition: all 0.3s;
}

.nav-burger:hover span,
.topnav.open .nav-burger span {
  background: var(--cyan);
}

.topnav.open .nav-burger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.topnav.open .nav-burger span:nth-child(2) {
  opacity: 0;
}
.topnav.open .nav-burger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .nav-burger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    gap: 0;
    background: rgba(10, 13, 18, 0.98);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .nav-links .nav-link {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .nav-links .nav-link:last-child { border-bottom: none; }
  .topnav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .topnav { padding: 0.6rem 1rem; }
}

.page {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding-top: 0;
}

.section-card {
  background: linear-gradient(180deg, rgba(12, 16, 22, 0.92) 0%, rgba(10, 13, 18, 0.98) 100%);
  position: relative;
  border-top: 1px solid rgba(94, 234, 212, 0.06);
}

.section-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(94, 234, 212, 0.03) 40%, transparent 80%);
  pointer-events: none;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 90% 50% at 50% 20%, rgba(94, 234, 212, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse 70% 40% at 50% 75%, rgba(34, 197, 94, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 560px;
}

.logo {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
  line-height: 1.1;
}

.logo-line { color: var(--text); }
.logo-accent {
  color: var(--cyan);
  text-shadow: 0 0 60px rgba(94, 234, 212, 0.3);
}

.tagline {
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-weight: 500;
}

.motto {
  margin-bottom: 2.5rem;
}

.motto-text {
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--cyan);
  text-shadow: 0 0 24px rgba(94, 234, 212, 0.2);
  margin-bottom: 0.4rem;
}

.motto cite {
  font-size: 0.8rem;
  font-style: normal;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  text-decoration: none;
  background: linear-gradient(135deg, var(--cyan) 0%, #2dd4bf 100%);
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(94, 234, 212, 0.35);
}

.cta:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.nodes-section {
  padding: 3rem 2rem;
}

.nodes-title,
.steps-title,
.faq-title {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-align: center;
  font-weight: 500;
  text-transform: uppercase;
}

.nodes-title { margin-bottom: 0.5rem; }
.steps-title,
.faq-title { margin-bottom: 1.5rem; }

.nodes-hint {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-bottom: 1rem;
}

.nodes-section.nodes-error .nodes-hint-error {
  display: block !important;
  color: #f87171;
}

.nodes-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 580px;
  margin: 0 auto;
}

.node-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.9rem;
  color: var(--muted);
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  transition: all 0.35s ease;
}

.node-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.node-item.loading .node-dot {
  animation: pulse 1.5s ease-in-out infinite;
}

.node-item.online {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.1);
  color: #4ade80;
  box-shadow: 
    0 0 28px rgba(34, 197, 94, 0.3),
    inset 0 0 20px rgba(34, 197, 94, 0.04);
}

.node-item.online span:last-child {
  color: #4ade80;
  text-shadow: 0 0 16px rgba(34, 197, 94, 0.6), 0 0 32px rgba(34, 197, 94, 0.3);
}

.node-item.online .node-dot {
  background: var(--green);
  box-shadow: 
    0 0 14px rgba(34, 197, 94, 0.9),
    0 0 28px rgba(34, 197, 94, 0.5);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { 
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.9), 0 0 28px rgba(34, 197, 94, 0.5);
    transform: scale(1);
  }
  50% { 
    box-shadow: 0 0 20px rgba(34, 197, 94, 1), 0 0 40px rgba(34, 197, 94, 0.6);
    transform: scale(1.12);
  }
}

.node-item.offline {
  opacity: 0.6;
}

.node-item.offline .node-dot {
  background: #64748b;
}

.node-item.unknown .node-dot {
  background: var(--muted);
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  padding: 3rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.feature {
  padding: 2rem 1.75rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  transition: all 0.35s ease;
}

.feature:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.feature-num {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.2em;
  margin-bottom: 0.6rem;
}

.feature h3 {
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.feature p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.strip {
  padding: 1.25rem;
  overflow: hidden;
  background: rgba(10, 13, 18, 0.98);
  border-top: 1px solid rgba(94, 234, 212, 0.08);
  border-bottom: 1px solid rgba(94, 234, 212, 0.05);
}

.strip-inner {
  display: flex;
  white-space: nowrap;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  animation: marquee 25s linear infinite;
  animation-iteration-count: infinite;
  will-change: transform;
}

.strip-inner span {
  flex-shrink: 0;
  padding-right: 3em;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-8.333%); }
}

.steps-block {
  padding: 3rem 2rem;
  text-align: center;
}


.steps-grid {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.step-card {
  padding: 1.25rem 1.35rem;
  border-radius: 12px;
  border: 1px solid var(--cyan-dim);
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.04) 0%, transparent 100%);
  min-width: 100px;
  flex-shrink: 0;
  transition: all 0.35s ease;
}

.step-card:hover {
  border-color: rgba(94, 234, 212, 0.3);
  box-shadow: 0 0 24px rgba(94, 234, 212, 0.08);
}

.step-icon {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 1.75rem;
  color: var(--cyan);
  margin-bottom: 0.35rem;
}

.step-card p {
  font-size: 0.82rem;
  color: var(--muted);
}

.step-arrow {
  color: var(--cyan);
  font-size: 1.25rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.step-card:hover + .step-arrow,
.step-arrow:hover {
  opacity: 0.8;
}

.faq-block {
  padding: 3rem 2rem;
  max-width: 520px;
  margin: 0 auto;
}


.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-block .faq-item {
  padding: 1.4rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.02) 100%);
  transition: all 0.3s ease;
}

.faq-block .faq-item:hover {
  border-color: var(--cyan-dim);
}

.faq-block .faq-item h4 {
  font-size: 0.9rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.faq-block .faq-item p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(94, 234, 212, 0.08);
  background: rgba(10, 13, 18, 0.5);
}

.support-link {
  display: inline-block;
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  transition: opacity 0.2s;
}

.support-link:hover {
  color: var(--cyan-bright);
  text-shadow: 0 0 20px rgba(94, 234, 212, 0.3);
}

.support-link:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer-quote {
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--muted);
}

.hero-content .logo { animation: fadeUp 0.8s ease forwards; }
.hero-content .tagline { animation: fadeUp 0.8s 0.1s ease forwards; opacity: 0; animation-fill-mode: both; }
.hero-content .motto { animation: fadeUp 0.8s 0.25s ease forwards; opacity: 0; animation-fill-mode: both; }
.hero-content .cta { animation: fadeUp 0.8s 0.4s ease forwards; opacity: 0; animation-fill-mode: both; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-inner {
  padding-top: calc(var(--nav-height) + 2rem);
  padding-bottom: 3rem;
}

.page-inner .content-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.page-inner .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}

.page-inner .back-link:hover {
  color: var(--cyan);
}

.page-inner .page-title {
  font-family: 'Cinzel', Georgia, serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.page-inner .doc-content {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-inner .doc-content h3 {
  font-size: 1rem;
  color: var(--cyan);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.page-inner .doc-content p {
  margin-bottom: 0.75rem;
}

.page-inner .doc-content ul {
  margin: 0.5rem 0 1rem 1.25rem;
}

.page-inner .doc-content li {
  margin-bottom: 0.35rem;
}

.page-inner .doc-content a {
  color: var(--cyan);
  text-decoration: none;
}

.page-inner .doc-content a:hover {
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}
