:root {
  --bg: #020617;
  --bg-alt: #02081f;
  --bg-soft: #02091f;
  --card-bg: #020b27;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.25);
  --accent-strong: #0ea5e9;
  --accent-warm: #f97316;
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.8);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-full: 999px;
  --blur-hero: 42px;
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background: radial-gradient(circle at top, #0f172a 0, #020617 40%, #000 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 32px 16px 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: -30%;
  background:
    radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.16), transparent 55%),
    radial-gradient(circle at 90% 10%, rgba(14, 165, 233, 0.12), transparent 55%),
    radial-gradient(circle at 50% 100%, rgba(248, 250, 252, 0.06), transparent 55%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  z-index: 1;
}

/* Logo & title */

.logo-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.logo-circle {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: radial-gradient(circle at 30% 20%, #f97316, #0f172a);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 36px rgba(248, 113, 22, 0.55);
  position: relative;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
  background: #facc15;
  box-shadow: 0 0 24px rgba(250, 204, 21, 0.95);
}

.logo-title h1 {
  font-size: clamp(2.2rem, 3vw, 2.7rem);
  letter-spacing: 0.03em;
  margin: 0 0 4px;
}

.tagline {
  margin: 0;
  color: var(--text-muted);
}

/* Layout hero */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
}

.hero-left {
  max-width: 620px;
}

.hero-intro {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7f0;
  margin-bottom: 16px;
}

.hero-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  color: var(--text-muted);
}

.hero-list li {
  margin-bottom: 6px;
}

/* Buttons */

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease-out;
}

.btn.primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(56, 189, 248, 0.55);
}

.btn.ghost {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.45);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(248, 250, 252, 0.7);
  background: rgba(15, 23, 42, 0.9);
}

/* Status */

.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: var(--radius-full);
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-muted);
  font-size: 0.85rem;
  backdrop-filter: blur(16px);
}

.dot-online {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: #22c55e;
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.95);
}

/* Right column cards */

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), #020617);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 20px;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -60%;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0.33;
  pointer-events: none;
}

.card h2,
.card h3 {
  margin-top: 0;
}

/* Settings card */

.settings-card h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.settings-main {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.45);
  display: inline-block;
  margin: 0 0 8px;
}

.settings-sub {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.settings-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.settings-list li {
  margin-bottom: 4px;
}

/* Mesh illustration */

.map-card {
  padding-top: 16px;
}

.mesh-map {
  position: relative;
  height: 140px;
  margin: 6px 0 8px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.8), rgba(2, 6, 23, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.35);
  overflow: hidden;
}

.node {
  position: absolute;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.6);
  backdrop-filter: blur(14px);
}

.node-main {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at top, #38bdf8, #0f172a);
  color: #020617;
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.65);
}

.node-sub {
  color: var(--text);
}

.node-sub.n1 {
  top: 24%;
  left: 18%;
}

.node-sub.n2 {
  top: 22%;
  right: 10%;
}

.node-sub.n3 {
  bottom: 18%;
  left: 65%;
}

/* Links */

.link {
  position: absolute;
  width: 2px;
  height: 2px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(248, 250, 252, 0.2));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
  transform-origin: center;
  border-radius: var(--radius-full);
}

.l1 {
  top: 42%;
  left: 35%;
  width: 26%;
  height: 2px;
  transform: rotate(-10deg);
}

.l2 {
  top: 40%;
  right: 32%;
  width: 20%;
  height: 2px;
  transform: rotate(8deg);
}

.l3 {
  bottom: 30%;
  left: 48%;
  width: 22%;
  height: 2px;
  transform: rotate(20deg);
}

.mesh-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sections */

.section {
  padding: 36px 16px 52px;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 20px;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Community */

.community {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.9), #020617);
  border-top: 1px solid rgba(15, 23, 42, 1);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 14px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.9), #020617);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: all 0.16s ease-out;
}

.link-card h3 {
  margin: 0;
  font-size: 1rem;
}

.link-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.link-pill {
  display: inline-flex;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-strong);
  font-size: 0.8rem;
}

.link-card:hover {
  border-color: rgba(148, 163, 184, 0.8);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.85);
  transform: translateY(-1px);
}

/* Install section */

.install {
  background: radial-gradient(circle at top, rgba(15, 23, 42, 0.9), #020617);
  border-top: 1px solid rgba(15, 23, 42, 1);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.step-card {
  background: rgba(2, 6, 23, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(30, 64, 175, 0.6);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 16px;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%);
  opacity: 0.28;
  pointer-events: none;
}

.step-number {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.step-card ul,
.step-card ol {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.step-card li {
  margin-bottom: 4px;
}

/* Tech table */

.tech {
  background: #020617;
  border-top: 1px solid rgba(15, 23, 42, 1);
}

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.95);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

thead {
  background: rgba(15, 23, 42, 0.98);
}

th,
td {
  padding: 10px 12px;
  font-size: 0.9rem;
}

th {
  text-align: left;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.6);
}

tbody tr:hover {
  background: rgba(15, 23, 42, 0.95);
}

.tech-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */

.footer {
  border-top: 1px solid rgba(15, 23, 42, 1);
  background: #020617;
  padding: 18px 16px;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-links {
  margin: 6px 0 0;
}

.footer-links a {
  color: var(--accent-strong);
  text-decoration: none;
  font-size: 0.85rem;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* Responsive */

@media (max-width: 840px) {
  .hero {
    padding-top: 20px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-right {
    order: -1;
  }

  .logo-title {
    margin-bottom: 20px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding-bottom: 56px;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-intro {
    font-size: 0.98rem;
  }
}

.local {
  background: radial-gradient(circle at top, rgba(6, 78, 59, 0.6), #020617);
  border-top: 1px solid rgba(15, 23, 42, 1);
}

.local-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.local-card {
  background: rgba(2, 6, 23, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(22, 101, 52, 0.7);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 16px;
  position: relative;
  overflow: hidden;
}

.local-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.25), transparent 55%);
  opacity: 0.32;
  pointer-events: none;
}

.local-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.local-card p {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.local-list {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.local-list li {
  margin-bottom: 4px;
}

.local-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.local-mail {
  font-size: 0.85rem;
  color: var(--accent-strong);
  text-decoration: none;
}

.local-mail:hover {
  text-decoration: underline;
}

.repeater {
  background: radial-gradient(circle at top, rgba(30, 64, 175, 0.7), #020617);
  border-top: 1px solid rgba(15, 23, 42, 1);
}

.repeater-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.repeater-card {
  background: rgba(2, 6, 23, 0.96);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(37, 99, 235, 0.75);
  box-shadow: var(--shadow-soft);
  padding: 14px 14px 16px;
  position: relative;
  overflow: hidden;
}

.repeater-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.3), transparent 55%);
  opacity: 0.35;
  pointer-events: none;
}

.repeater-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.repeater-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.repeater-list li {
  margin-bottom: 4px;
}

.repeater-code {
  margin: 6px 0 8px;
  padding: 8px 10px;
  background: rgba(15, 23, 42, 0.96);
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.85rem;
  overflow-x: auto;
}

.repeater-code code {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  white-space: pre;
}

