/* ═══════════════════════════════════════════════════════
   Anonyma Landing — Design System
   Zinc dark-mode · Inter · Glass morphism · Purple accent
   ═══════════════════════════════════════════════════════ */

:root {
  --bg:         #09090b;
  --bg-sub:     #0c0c0f;
  --surface:    #18181b;
  --surface2:   #27272a;
  --surface3:   #3f3f46;
  --border:     #27272a;
  --border2:    #3f3f46;
  --text:       #e4e4e7;
  --text2:      #a1a1aa;
  --text3:      #71717a;
  --text4:      #52525b;
  --white:      #fafafa;
  --accent:     #a78bfa;
  --accent2:    #7c3aed;
  --accent-bg:  rgba(167,139,250,.08);
  --green:      #22c55e;
  --green-bg:   rgba(34,197,94,.1);
  --radius:     16px;
  --radius-sm:  12px;
  --radius-xs:  8px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { min-height: 100vh; overflow-x: hidden; }

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface3); border-radius: 3px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ════════════════════════════════
   Navbar
   ════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(9,9,11,.8);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; }

.nav-links { display: flex; align-items: center; gap: 8px; }

.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
  padding: 7px 14px;
  border-radius: var(--radius-xs);
  transition: all .15s;
  text-decoration: none;
}
.nav-link:hover { color: var(--text); background: var(--surface2); text-decoration: none; }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: white;
  background: var(--accent2);
  padding: 8px 20px;
  border-radius: var(--radius-xs);
  transition: background .15s;
  text-decoration: none;
}
.nav-cta:hover { background: var(--accent); text-decoration: none; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text4);
  transition: background .3s;
}
.status-dot.live {
  background: var(--green);
  box-shadow: 0 0 8px rgba(34,197,94,.5);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(34,197,94,.3); }
  50% { box-shadow: 0 0 12px rgba(34,197,94,.6); }
}

/* ════════════════════════════════
   Hero
   ════════════════════════════════ */
.hero {
  padding: 160px 28px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(124,58,237,.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-logo {
  margin: 0 auto 40px;
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text3);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent2);
  color: white;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); text-decoration: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border2);
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  font-family: inherit;
}
.btn-ghost:hover { color: var(--white); border-color: var(--text3); text-decoration: none; }

/* ════════════════════════════════
   Live Stats Bar
   ════════════════════════════════ */
.stats-bar {
  max-width: 900px;
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  padding: 24px;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background .2s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: var(--surface2); }

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text4);
}

/* ════════════════════════════════
   Section Base
   ════════════════════════════════ */
section {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text3);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ════════════════════════════════
   Features Grid
   ════════════════════════════════ */
.features { padding-top: 40px; padding-bottom: 100px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: var(--radius-sm);
  color: var(--accent);
  margin-bottom: 20px;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 13.5px;
  color: var(--text3);
  line-height: 1.65;
}

/* ════════════════════════════════
   How It Works
   ════════════════════════════════ */
.how-it-works { padding-top: 40px; padding-bottom: 100px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  position: relative;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  position: relative;
}

.step-num {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent2);
  color: white;
  font-size: 16px;
  font-weight: 800;
  border-radius: 50%;
  margin-bottom: 18px;
}

.step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 13.5px;
  color: var(--text3);
  line-height: 1.6;
}

/* ════════════════════════════════
   Ecosystem
   ════════════════════════════════ */
.ecosystem { padding-top: 40px; padding-bottom: 100px; }

.eco-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.eco-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: all .25s;
}
.eco-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
}

.eco-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
  width: fit-content;
}
.eco-badge.live { background: var(--green-bg); color: var(--green); }
.eco-badge.soon { background: rgba(234,179,8,.1); color: #eab308; }

.eco-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.eco-desc {
  font-size: 13.5px;
  color: var(--text3);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.eco-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap .2s;
}
.eco-link:hover { gap: 10px; text-decoration: none; }

/* ════════════════════════════════
   Tech Specs
   ════════════════════════════════ */
.specs { padding-top: 40px; padding-bottom: 100px; }

.specs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  transition: background .15s;
}
.spec-row:hover { background: var(--surface2); }
.spec-row:nth-child(odd) { border-right: 1px solid var(--border); }

.spec-key {
  font-size: 13px;
  font-weight: 500;
  color: var(--text3);
}

.spec-val {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}

/* ════════════════════════════════
   CTA
   ════════════════════════════════ */
.cta-section {
  padding-top: 40px;
  padding-bottom: 120px;
  text-align: center;
}

.cta-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px 40px;
  position: relative;
  overflow: hidden;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.1) 0%, transparent 60%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.cta-desc {
  font-size: 16px;
  color: var(--text3);
  max-width: 460px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ════════════════════════════════
   Footer
   ════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 28px;
}

.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text4);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-link {
  font-size: 12px;
  font-weight: 500;
  color: var(--text4);
  transition: color .15s;
  text-decoration: none;
}
.footer-link:hover { color: var(--text2); text-decoration: none; }

/* ════════════════════════════════
   Fade-in Animations
   ════════════════════════════════ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease-out, transform .6s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ════════════════════════════════
   Responsive
   ════════════════════════════════ */
@media (max-width: 900px) {
  .features-grid,
  .steps,
  .eco-grid { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr; }
  .spec-row:nth-child(odd) { border-right: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hero { padding: 130px 20px 80px; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-cell:last-child { border-bottom: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; justify-content: center; }
}
