/* ============================================================
   TRUSTWEB — CLEARNET STYLESHEET
   Static information site. No PHP, no DB, no session.
   Matches the onion design system but with its own "wow" layer.
   ============================================================ */

/* 1. VARIABLES */
:root {
  --bg: #0a0a0a;
  --bg-2: #0d0d0d;
  --surface: #111111;
  --surface-2: #161616;
  --border: #1f1f1f;
  --border-hover: #2e2e2e;

  --text-primary: #f5f5f5;
  --text-secondary: #a3a3a3;
  --text-muted: #666666;

  --accent: #00E575;
  --accent-2: #00FF88;
  --accent-muted: rgba(0, 229, 117, 0.1);
  --accent-glow: rgba(0, 229, 117, 0.35);

  --trust: #FFC043;
  --trust-muted: rgba(255, 192, 67, 0.1);

  --danger: #FF4444;
  --info: #3b82f6;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  --font-mono: 'SF Mono', 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
}

/* 2. RESET */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* Subtle animated background mesh */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(0, 229, 117, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255, 192, 67, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 50% 100%, rgba(0, 229, 117, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
  animation: meshShift 30s ease-in-out infinite;
}

@keyframes meshShift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2%, 1%); }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* 3. TYPOGRAPHY */
h1, h2, h3, h4 { font-weight: 600; line-height: 1.25; color: var(--text-primary); }
h1 { font-size: 2.75rem; font-weight: 700; letter-spacing: -0.03em; }
h2 { font-size: 1.75rem; letter-spacing: -0.02em; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-accent { color: var(--accent); }
.text-trust { color: var(--trust); }
.text-mono { font-family: var(--font-mono); }
.text-small { font-size: 0.8125rem; font-weight: 500; }
.text-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* 4. LAYOUT */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.container-narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

/* 5. NAVIGATION */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

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

.nav-brand svg { display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--accent); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--accent);
  color: #000 !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.8125rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
  color: #000 !important;
}

/* 6. HERO */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
}

.hero-pulse {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: pulse 4s ease-out infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-pulse:nth-child(2) {
  animation-delay: 2s;
}

@keyframes pulse {
  0% { transform: translateX(-50%) scale(0.5); opacity: 0.5; }
  100% { transform: translateX(-50%) scale(1.5); opacity: 0; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-muted);
  border: 1px solid rgba(0, 229, 117, 0.25);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #f5f5f5 0%, #999 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero h1 .glitch {
  color: var(--accent);
  -webkit-text-fill-color: var(--accent);
  position: relative;
  display: inline-block;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-stats .dot {
  color: var(--accent);
  text-shadow: 0 0 6px var(--accent-glow);
  margin-right: 4px;
}

.hero-stats .sep {
  width: 1px;
  height: 12px;
  background: var(--border);
}

/* 7. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.15s ease, color 0.15s ease;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border-color: var(--border);
}
.btn-secondary:hover {
  background: var(--surface-2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

/* 8. CARDS */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  z-index: 1;
}

.card:hover {
  border-color: var(--border-hover);
}

.card-accent {
  border-color: rgba(0, 229, 117, 0.25);
}
.card-accent:hover {
  border-color: rgba(0, 229, 117, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0, 229, 117, 0.08);
}

.card-trust {
  border-color: rgba(255, 192, 67, 0.25);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* 9. GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* 10. SECTION HEADERS */
.section-head {
  text-align: center;
  margin-bottom: 56px;
}

.section-head .text-label {
  margin-bottom: 12px;
  color: var(--accent);
}

.section-head h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.section-head p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* 11. QUOTE / TESTIMONIAL */
.quote {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.8;
  position: relative;
}

.quote-author {
  font-style: normal;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 12px;
  display: block;
}

/* 12. PILL / BADGE */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--accent-muted);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 117, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pill-trust {
  background: var(--trust-muted);
  color: var(--trust);
  border-color: rgba(255, 192, 67, 0.25);
}

/* 13. MONO BOX */
.mono-box {
  display: block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent);
  word-break: break-all;
  line-height: 1.7;
}

/* 14. FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer ul a {
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.footer ul a:hover { color: var(--accent); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* 15. ANIMATIONS */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 16. RESPONSIVE */
@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .hero { padding: 80px 0 56px; }
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .hero-pulse { width: 280px; height: 280px; }

  .nav-inner { padding: 12px 16px; flex-wrap: wrap; gap: 12px; }
  .nav-links {
    gap: 16px;
    font-size: 0.8125rem;
    order: 3;
    width: 100%;
    justify-content: center;
    padding-top: 8px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  .grid-2, .grid-3, .footer-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .footer-grid { gap: 32px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 40px; }

  .hero-stats {
    padding: 12px 20px;
    gap: 16px;
    font-size: 0.6875rem;
  }

  .card { padding: 22px; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .container, .container-narrow { padding: 0 16px; }
}
