/* Root theme variables (Web3 dark aesthetic) */
:root {
  --background: 0 0% 2%;
  --foreground: 210 40% 98%;
  --card: 0 0% 6%;
  --card-foreground: 210 40% 98%;
  --popover: 0 0% 6%;
  --popover-foreground: 210 40% 98%;
  --primary: 48 95% 50%;
  --primary-foreground: 210 40% 98%;
  --secondary: 0 0% 8%;
  --secondary-foreground: 210 40% 98%;
  --muted: 0 0% 8%;
  --muted-foreground: 217 10% 64%;
  --accent: 0 0% 8%;
  --accent-foreground: 210 40% 98%;
  --destructive: 0 84% 60%;
  --destructive-foreground: 210 40% 98%;
  --border: 0 0% 18%;
  --input: 0 0% 18%;
  --ring: 48 95% 50%;
  --radius: 12px;

  /* Web3 accents */
  --purple-500: 48 95% 50%;
  --purple-600: 48 95% 45%;
  --cyan-500: 0 0% 100%;
  --cyan-600: 0 0% 92%;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: hsl(var(--foreground));
  background: linear-gradient(135deg, hsl(var(--background)) 0%, hsl(0 0% 8%) 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout primitives */
.container {
  max-width: 1200px;
  padding: 0 1rem;
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid hsl(var(--border));
  background: rgba(12, 14, 18, 0.8);
  backdrop-filter: blur(10px);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: hsl(var(--primary));
  font-weight: 800;
  font-size: 1.125rem;
  text-decoration: none;
}

.nav {
  display: none;
  gap: 1.25rem;
  align-items: center;
}
@media (min-width: 768px) { .nav { display: flex; } }

.nav a {
  color: hsl(var(--muted-foreground));
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color .2s ease;
}
.nav a:hover { color: hsl(var(--primary)); }

/* Global link colors */
a, a:visited { color: hsl(var(--foreground)); }
a:hover { color: hsl(var(--primary)); }
.text-muted a { color: hsl(var(--foreground)); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 1.25rem;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
}

.btn-primary {
  color: hsl(var(--primary-foreground));
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--purple-600)) 50%, hsl(var(--cyan-600)) 100%);
  box-shadow: 0 0 20px hsla(var(--primary), 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35), 0 0 30px hsla(var(--primary), 0.45); }

.btn-outline {
  border-color: hsl(var(--primary));
  background: transparent;
  color: hsl(var(--primary));
}
.btn-outline:hover { background: hsl(var(--primary) / 0.08); }

/* Mobile menu */
.menu-btn {
  display: inline-flex;
  background: transparent;
  border: none;
  color: hsl(var(--foreground));
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
@media (min-width: 768px) { .menu-btn { display: none; } }

.mobile-nav {
  display: none;
  border-bottom: 1px solid hsl(var(--border));
  background: rgba(12, 14, 18, 0.9);
}
.mobile-nav.open { display: block; }

.mobile-nav .nav-list {
  padding: 1rem 0;
  display: grid;
  gap: 0.75rem;
}
.mobile-nav a {
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  font-weight: 600;
}
.mobile-nav a:hover { color: hsl(var(--primary)); }

/* Hero */
.section {
  padding: 3rem 0;
}
.section-muted {
  background: hsl(var(--secondary));
}

.hero-title {
  text-align: center;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(135deg, hsl(var(--primary)) 0%, hsl(var(--purple-500)) 50%, hsl(var(--cyan-500)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  max-width: 52ch;
  margin: 1rem auto 0;
  text-align: center;
  color: hsl(var(--muted-foreground));
  font-size: 1.125rem;
  line-height: 1.7;
}

/* Grid helpers */
.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.grid-3 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Card */
.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid hsl(var(--border));
  background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--background)) 100%);
  padding: 1.25rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.25), 0 0 40px hsla(var(--primary), 0.2);
  border-color: hsl(var(--primary) / 0.25);
}

.card h3, .card h2 {
  margin: 0 0 0.5rem 0;
}

.text-muted { color: hsl(var(--muted-foreground)); }
.text-center { text-align: center; }

/* Accent panel */
.panel {
  border-radius: 22px;
  border: 1px solid hsl(var(--primary) / 0.25);
  padding: 2rem;
  text-align: center;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.10), hsl(var(--purple-500) / 0.10), hsl(var(--cyan-500) / 0.10));
}

/* Dividers */
.hr {
  margin: 3rem 0;
  height: 1px;
  background: linear-gradient(90deg, hsl(var(--primary) / 0.25), transparent);
  border: 0;
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 0.9rem;
  color: hsl(var(--muted-foreground));
}
.breadcrumbs a {
  color: inherit;
  text-decoration: none;
}
.breadcrumbs a:hover { color: hsl(var(--primary)); }
.breadcrumbs .sep { margin: 0 0.5rem; user-select: none; }

/* Accordion (FAQ) */
.accordion { display: grid; gap: 0.75rem; }
.accordion-item {
  border: 1px solid hsl(var(--border));
  border-radius: 12px;
  background: linear-gradient(135deg, hsl(var(--card)) 0%, hsl(var(--background)) 100%);
  overflow: hidden;
}
.accordion-button {
  width: 100%;
  text-align: left;
  background: transparent;
  color: hsl(var(--foreground));
  border: 0;
  padding: 1rem 1.25rem;
  font-weight: 700;
  cursor: pointer;
}
.accordion-content {
  display: none;
  padding: 0 1.25rem 1rem 1.25rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.7;
}
.accordion-item.open .accordion-content { display: block; }

/* Footer */
.footer {
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  padding: 2rem 0;
  background: hsl(var(--secondary));
  text-align: center;
  font-size: 0.95rem;
}

/* Utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }

.badge-dot {
  width: 8px; height: 8px; border-radius: 9999px; margin-top: 6px; flex-shrink: 0;
}
.badge-primary { background: hsl(var(--primary)); }
.badge-purple { background: hsl(var(--purple-500)); }
.badge-cyan { background: hsl(var(--cyan-500)); }

/* Numbers */
.step {
  width: 24px; height: 24px; border-radius: 9999px;
  background: hsl(var(--primary));
  color: white;
  font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center;
}
