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

:root {
  --bg: #0f0f1a;
  --bg2: #1a1a2e;
  --bg3: #16213e;
  --text: #e0e0e0;
  --hint: #888;
  --accent: #0088cc;
  --green: #2ecc71;
  --orange: #e67e22;
  --red: #e74c3c;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--text);
  line-height: 1.6;
}

/* Nav */
nav {
  position: sticky; top: 0; background: var(--bg2);
  border-bottom: 1px solid rgba(255,255,255,0.08); z-index: 50;
}
.nav-inner {
  max-width: 960px; margin: 0 auto; padding: 12px 20px;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { color: var(--text); text-decoration: none; font-size: 22px; font-weight: 700; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--hint); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  font-size: 16px; font-weight: 600;
}
.btn-primary:hover { background: #006fa3; }
.btn-secondary {
  display: inline-block; background: rgba(255,255,255,0.08); color: var(--text);
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  font-size: 16px; font-weight: 600;
}
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

.hint { color: var(--hint); font-size: 13px; }

/* Sections */
section {
  max-width: 960px; margin: 0 auto; padding: 60px 20px;
}

/* Hero */
.hero {
  text-align: center; padding: 100px 20px 80px;
  max-width: 960px; margin: 0 auto;
}
.hero h1 { font-size: 42px; margin-bottom: 16px; line-height: 1.2; }
.hero p { color: var(--hint); font-size: 18px; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.hero .btn-primary { margin-right: 12px; }

/* Features */
.features h2 { text-align: center; font-size: 28px; margin-bottom: 40px; }
.feature-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg2); border-radius: 12px; padding: 24px;
}
.feature-icon { font-size: 28px; margin-bottom: 12px; }
.feature-card h3 { font-size: 16px; margin-bottom: 8px; }
.feature-card p { color: var(--hint); font-size: 14px; }

/* Download */
.download { text-align: center; }
.download h2 { font-size: 28px; margin-bottom: 32px; }
.download-options {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px; margin-bottom: 40px;
}
.download-card {
  background: var(--bg2); border-radius: 12px; padding: 32px;
}
.download-card h3 { font-size: 20px; margin-bottom: 8px; }
.download-card p { color: var(--hint); font-size: 14px; margin-bottom: 16px; }
.download-card .hint { margin-top: 12px; }

.qr-section { margin-bottom: 32px; }
.qr-section h3 { font-size: 18px; margin-bottom: 8px; }
.qr-box {
  display: inline-block; background: #fff; padding: 16px; border-radius: 12px;
  margin-top: 12px;
}
.qr-box img { width: 200px; height: 200px; }

.verify-section { margin-top: 32px; }
.verify-section h3 { font-size: 16px; margin-bottom: 8px; }
.verify-section code {
  display: block; background: var(--bg2); padding: 12px 16px; border-radius: 8px;
  font-size: 12px; word-break: break-all; max-width: 500px; margin: 8px auto 0;
  color: var(--green);
}

/* Relay */
.relay h2 { font-size: 28px; margin-bottom: 12px; }
.relay > p { color: var(--hint); font-size: 15px; margin-bottom: 32px; }
.relay h3 { font-size: 18px; margin: 24px 0 8px; }
.relay > p + .relay-benefits { margin-top: 0; }

.relay-benefits {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px; margin-bottom: 32px;
}
.benefit {
  background: var(--bg2); border-radius: 10px; padding: 20px;
}
.benefit h4 { font-size: 14px; margin-bottom: 6px; }
.benefit p { color: var(--hint); font-size: 13px; }

pre {
  background: var(--bg2); border-radius: 10px; padding: 16px;
  overflow-x: auto; margin: 12px 0;
}
pre code { color: var(--green); font-size: 13px; }

.relay-status {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 32px; flex-wrap: wrap;
}
.stat {
  background: var(--bg2); border-radius: 10px; padding: 20px 32px; text-align: center;
}
.stat-num { font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--hint); margin-top: 4px; }

/* Guide */
.guide h2 { font-size: 28px; margin-bottom: 32px; }
.step {
  display: flex; gap: 16px; margin-bottom: 20px; align-items: flex-start;
}
.step-num {
  background: var(--accent); color: #fff; width: 36px; height: 36px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
}
.step-body { flex: 1; }
.step-body h3 { font-size: 16px; margin-bottom: 4px; }
.step-body p { color: var(--hint); font-size: 14px; }

/* Privacy */
.privacy h2 { font-size: 28px; margin-bottom: 12px; }
.privacy > p { color: var(--hint); font-size: 15px; margin-bottom: 24px; }
.privacy-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.privacy-do, .privacy-dont {
  background: var(--bg2); border-radius: 12px; padding: 24px;
}
.privacy-do { border-top: 3px solid var(--green); }
.privacy-dont { border-top: 3px solid var(--red); }
.privacy-do h3 { color: var(--green); }
.privacy-dont h3 { color: var(--red); }
.privacy-do h3, .privacy-dont h3 { font-size: 16px; margin-bottom: 12px; }
.privacy-do ul, .privacy-dont ul {
  list-style: none; padding: 0;
}
.privacy-do li, .privacy-dont li {
  color: var(--hint); font-size: 13px; padding: 4px 0;
  padding-left: 16px; position: relative;
}
.privacy-do li::before { content: '✓'; position: absolute; left: 0; color: var(--green); }
.privacy-dont li::before { content: '✗'; position: absolute; left: 0; color: var(--red); }

.source-code {
  background: var(--bg2); border-radius: 12px; padding: 24px; text-align: center;
}
.source-code h3 { margin-bottom: 8px; }
.source-code p { color: var(--hint); font-size: 14px; margin-bottom: 16px; }

/* Footer */
footer {
  text-align: center; padding: 40px 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--hint); font-size: 13px;
}
footer a { color: var(--accent); }

/* Apps section */
.apps h2 { text-align: center; font-size: 28px; margin-bottom: 40px; }
.section-hint { text-align: center; color: var(--hint); font-size: 15px; margin-bottom: 32px; }

.apps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.app-card {
  background: var(--bg2); border-radius: 14px; padding: 28px;
  border-top: 3px solid var(--accent); display: flex; flex-direction: column; gap: 14px;
}
.app-iwacu { border-top-color: #27ae60; }
.app-abantu { border-top-color: #2980b9; }
.app-isoko { border-top-color: #7f8c8d; }

.app-header { display: flex; align-items: center; gap: 14px; }
.app-icon { font-size: 36px; flex-shrink: 0; }
.app-icon-sm { font-size: 22px; flex-shrink: 0; }
.app-header h3 { font-size: 20px; margin-bottom: 2px; }
.app-tagline { color: var(--hint); font-size: 13px; }

.app-card > p { color: var(--hint); font-size: 14px; line-height: 1.6; }

.app-features {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.app-features li {
  font-size: 13px; color: var(--hint);
  padding-left: 16px; position: relative;
}
.app-features li::before { content: '·'; position: absolute; left: 0; color: var(--accent); }

.btn-app {
  display: inline-block; background: rgba(255,255,255,0.06); color: var(--text);
  padding: 10px 18px; border-radius: 8px; text-decoration: none;
  font-size: 14px; font-weight: 600; align-self: flex-start;
  border: 1px solid rgba(255,255,255,0.12); margin-top: auto;
}
.btn-app:hover { background: rgba(255,255,255,0.12); }
.btn-disabled { opacity: 0.45; cursor: default; pointer-events: none; }

.badge-soon {
  font-size: 10px; font-weight: 600; background: rgba(127,140,141,0.3);
  color: var(--hint); padding: 2px 7px; border-radius: 10px;
  vertical-align: middle; text-transform: uppercase; letter-spacing: 0.05em;
}

.coming-soon-card { opacity: 0.75; }

/* Download per-app */
.download-app {
  background: var(--bg2); border-radius: 14px; padding: 28px;
  margin-bottom: 20px;
}
.download-app-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.download-app-header h3 { font-size: 20px; }

.download-platforms {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px;
}
.platform-group { display: flex; flex-direction: column; gap: 10px; }
.platform-group h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--hint); margin-bottom: 4px; }

.platform-btn {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 16px; text-decoration: none; color: var(--text);
  transition: background 0.15s;
}
.platform-btn:hover { background: rgba(255,255,255,0.11); }
.platform-icon { font-size: 22px; flex-shrink: 0; }
.platform-btn strong { display: block; font-size: 14px; }
.platform-btn small { display: block; font-size: 12px; color: var(--hint); }

/* Relay grid */
.relay-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.relay-app-card {
  background: var(--bg2); border-radius: 12px; padding: 24px;
}
.relay-app-card h3 { font-size: 16px; margin-bottom: 8px; }
.relay-app-card > p { color: var(--hint); font-size: 14px; margin-bottom: 12px; }
.relay-onion { margin-top: 10px; }
.onion-addr { font-family: monospace; font-size: 12px; color: var(--green); }

/* Source grid */
.source-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; margin-top: 24px;
}
.source-code { background: var(--bg2); border-radius: 12px; padding: 24px; }
.source-code h3 { font-size: 15px; margin-bottom: 4px; }
.source-code p { color: var(--hint); font-size: 13px; margin-bottom: 14px; }

/* Mobile */
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  .hero .btn-primary, .hero .btn-secondary { display: block; margin: 8px 0; }
  .nav-links { display: none; }
  .relay-status { flex-direction: column; align-items: center; }
  .apps-grid, .download-platforms, .relay-grid, .source-grid { grid-template-columns: 1fr; }
}
