:root {
  --bg: #101214;
  --bg-soft: #171a1f;
  --surface: rgba(22, 25, 31, 0.76);
  --surface-strong: rgba(28, 32, 38, 0.92);
  --border: rgba(110, 233, 241, 0.18);
  --border-strong: rgba(110, 233, 241, 0.32);
  --text: #e7fbff;
  --muted: #8ea8b2;
  --accent: #6ee9f1;
  --accent-2: #3dcfd8;
  --accent-3: #9df4ff;
  --success: #8ef4c9;
  --warning: #ffe08a;
  --shadow: 0 0 0 1px rgba(110, 233, 241, 0.08), 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 80px rgba(61, 207, 216, 0.08);
  --radius: 24px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 24%),
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.02), transparent 18%),
    linear-gradient(180deg, #2a2e33 0%, #1b1e23 42%, #101214 100%);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
code, .brand, .eyebrow, .hero-points, .stat-value, .command-box code, .terminal-body {
  font-family: "JetBrains Mono", monospace;
}

.page-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(110,233,241,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,233,241,0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 92%);
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
  position: relative;
}

.glass {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18, 21, 26, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(110, 233, 241, 0.10);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent);
}

.nav-links, .nav-actions, .lang-switch, .hero-actions, .hero-points, .footer-wrap, .connect-notes {
  display: flex;
  align-items: center;
}

.nav-links {
  gap: 24px;
  color: var(--muted);
}

.nav-links a:hover, .to-top:hover { color: var(--accent-3); }

.nav-actions {
  gap: 16px;
}

.lang-switch {
  padding: 4px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 999px;
  font: inherit;
}

.lang-btn.active {
  color: var(--bg);
  background: var(--accent);
  box-shadow: 0 0 18px rgba(110, 233, 241, 0.22);
}

.ghost-btn, .secondary-btn, .copy-btn {
  border: 1px solid var(--border-strong);
  color: var(--text);
  background: rgba(255,255,255,0.02);
}

.primary-btn, .secondary-btn, .ghost-btn, .copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #021015;
  box-shadow: 0 0 30px rgba(110, 233, 241, 0.18);
}

.primary-btn:hover, .secondary-btn:hover, .ghost-btn:hover, .copy-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(157, 244, 255, 0.4);
}

.hero {
  padding-top: 64px;
}

.hero-grid, .security-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--accent-3);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  margin-bottom: 18px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(42px, 6vw, 74px);
  letter-spacing: -0.04em;
  max-width: 10ch;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.03em;
}

h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.lead, .section-head p, .feature-card p, .detail-card p, .footer-text, .security-list span, .note span {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  font-size: 18px;
  max-width: 58ch;
  margin: 20px 0 28px;
}

.hero-actions {
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.hero-points {
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.hero-points span {
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.02);
}

.terminal-card {
  border-radius: var(--radius);
  overflow: hidden;
}

.terminal-topbar {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(110, 233, 241, 0.10);
}

.terminal-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
}

.terminal-body {
  padding: 22px;
  font-size: 15px;
  line-height: 1.7;
  color: #cdf7fb;
}

.terminal-line { margin-bottom: 16px; }
.prompt, .chat-system { color: var(--accent); }
.chat-time { color: var(--muted); margin-right: 8px; }
.chat-nick { color: var(--warning); }
.cursor {
  display: inline-block;
  width: 9px;
  height: 1.1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: -0.18em;
  animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.section-head {
  max-width: 78ch;
  margin-bottom: 28px;
}

.section-head.narrow { max-width: 60ch; }
.section-head.align-left { margin-bottom: 0; }

.feature-grid, .audience-grid, .detail-strip {
  display: grid;
  gap: 18px;
}

.stat, .feature-card, .security-list, .connect-card, .donate-card {
  border-radius: var(--radius);
}

.stat, .feature-card, .security-list, .donate-card {
  padding: 24px;
}

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

.detail-strip {
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
}

.detail-card {
  border-radius: var(--radius);
  padding: 24px;
}

.feature-card {
  min-height: 220px;
}

.security-grid { align-items: stretch; }
.security-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.security-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(110,233,241,0.08);
}

.security-item strong {
  display: block;
  color: var(--accent-3);
  margin-bottom: 8px;
}

.audience-grid {
  grid-template-columns: repeat(3, 1fr);
}

.audience-pill {
  padding: 18px 20px;
  border-radius: 20px;
  text-align: center;
  font-weight: 600;
}

.connect-card {
  padding: 34px;
}

.command-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 24px 0;
  background: rgba(0,0,0,0.28);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
}

.command-box code {
  font-size: clamp(13px, 2vw, 17px);
  word-break: break-all;
  color: var(--accent-3);
}

.copy-btn {
  cursor: pointer;
  white-space: nowrap;
}

.connect-notes {
  gap: 14px;
  flex-wrap: wrap;
}

.note {
  min-width: 180px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(110,233,241,0.08);
}

.note strong {
  display: block;
  margin-bottom: 6px;
}

.donate-section {
  padding-top: 12px;
}

.donate-head {
  margin-bottom: 0;
}

.donate-card {
  padding: 34px;
}

.donate-box {
  margin-bottom: 0;
}

.site-footer {
  padding: 26px 0 46px;
  color: var(--muted);
}

.footer-wrap {
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

@media (max-width: 1100px) {
  .feature-grid, .audience-grid, .detail-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .security-grid { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-wrap { min-height: 68px; }
  .section { padding: 72px 0; }
  .feature-grid, .audience-grid, .security-list, .detail-strip { grid-template-columns: 1fr; }
  .command-box { flex-direction: column; align-items: stretch; }
  .copy-btn { width: 100%; }
}

@media (max-width: 560px) {
  .container { width: min(var(--container), calc(100% - 20px)); }
  h1 { max-width: 100%; }
  .hero-actions, .nav-actions, .connect-notes, .footer-wrap { flex-direction: column; align-items: stretch; }
  .lang-switch { align-self: flex-start; }
  .terminal-body { font-size: 13px; }
  .connect-card, .donate-card { padding: 22px; }
}
