/* ============================================================
   Omega Darknet — Main Stylesheet
   Space/void aesthetic · Dark-first · Mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:             #07070d;
  --bg-2:           #0e0e1a;
  --bg-3:           #141422;
  --accent:         #8b5cf6;
  --accent-hover:   #a78bfa;
  --accent-dim:     rgba(139, 92, 246, 0.12);
  --accent-glow:    rgba(139, 92, 246, 0.25);
  --text:           #e2e8f0;
  --text-2:         #94a3b8;
  --text-3:         #475569;
  --live:           #22c55e;
  --live-dim:       rgba(34, 197, 94, 0.12);
  --border:         rgba(139, 92, 246, 0.15);
  --border-strong:  rgba(139, 92, 246, 0.35);
  --font-display:   'Space Grotesk', system-ui, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;
  --font-body:      system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Typography ─────────────────────────────────────────── */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }

p { color: var(--text-2); }

a {
  color: var(--accent-hover);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--accent); }

/* ── Layout ─────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0;
}

/* ── Header / Navigation ────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 13, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  /* contain dropdown within stacking context */
  isolation: isolate;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
  flex-wrap: nowrap;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.site-logo span {
  color: var(--accent);
}

.logo-img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.4rem 0.75rem;
  transition: color 0.2s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 0.35rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s, border-color 0.2s;
}
.nav-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

/* ── Hero Section ───────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}

.hero-omega {
  position: absolute;
  top: 50%;
  right: -5vw;
  transform: translateY(-50%);
  font-size: 40vw;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  opacity: 0.04;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-hover);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.75rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
}

.hero h1 {
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-2);
  max-width: 560px;
  margin-bottom: 1.5rem;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 0.3rem 0.65rem;
  letter-spacing: 0.04em;
}

/* ── Onion Card ─────────────────────────────────────────── */

.onion-card {
  position: relative;
  background: var(--bg-3);
  padding: 1.75rem 2rem;
  margin-top: 2rem;
  max-width: 680px;
  /* animated gradient border */
  border: 1px solid transparent;
  background-clip: padding-box;
  z-index: 1;
}

.onion-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg 80deg,
    var(--accent) 90deg 100deg,
    transparent 110deg 260deg,
    var(--accent-hover) 270deg 280deg,
    transparent 290deg 360deg
  );
  z-index: -1;
  animation: borderRotate 4s linear infinite;
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes borderRotate {
  to { --angle: 360deg; }
}

.onion-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.market-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--live);
  letter-spacing: 0.06em;
  background: var(--live-dim);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.3rem 0.6rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.onion-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.onion-address-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.onion-address {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-hover);
  word-break: break-all;
  flex: 1;
  min-width: 0;
}

.copy-btn {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.2s, border-color 0.2s;
}

.copy-btn:hover {
  color: var(--accent-hover);
  border-color: var(--border-strong);
}

.verified-note {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}

.card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-primary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  padding: 0.65rem 1.5rem;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg);
}

.btn-secondary {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent-hover);
  background: transparent;
  border: 1px solid var(--border-strong);
  padding: 0.65rem 1.25rem;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent-hover);
  color: var(--text);
}

/* ── Info Cards Grid ────────────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.info-card {
  background: var(--bg-2);
  padding: 1.75rem;
  transition: background 0.2s;
}

.info-card:hover {
  background: var(--bg-3);
}

.info-card-icon {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  border-left: 2px solid var(--accent);
  padding-left: 0.5rem;
}

.info-card h3 {
  margin-bottom: 0.6rem;
  font-size: 1rem;
}

.info-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ── FAQ Section ────────────────────────────────────────── */

.faq-section {
  padding: 4rem 0;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-title {
  margin-bottom: 2.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-item h3 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.faq-item p {
  font-size: 0.9rem;
}

/* ── Content Sections ───────────────────────────────────── */

.content-section {
  max-width: 720px;
}

.content-section h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.content-section h2:first-child {
  margin-top: 0;
}

.content-section p {
  margin-bottom: 1rem;
}

/* ── Steps ──────────────────────────────────────────────── */

.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 1.5rem 0;
}

.step-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.step-num {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

.step-body h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.step-body p {
  font-size: 0.88rem;
}

/* ── Markets Table ──────────────────────────────────────── */

.markets-table-wrap {
  overflow-x: auto;
  margin: 2rem 0;
}

.markets-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

.markets-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.markets-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-2);
  vertical-align: middle;
}

.markets-table tr:first-child td {
  background: var(--accent-dim);
}

.market-featured-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--accent-hover);
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  padding: 0.2rem 0.45rem;
  letter-spacing: 0.04em;
  margin-left: 0.5rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

.status-badge.live { color: var(--live); }
.status-badge.offline { color: var(--text-3); }

.status-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-badge.live .dot {
  animation: pulse-live 2s ease-in-out infinite;
}

/* ── Page Hero (inner pages) ────────────────────────────── */

.page-hero {
  background: var(--bg-2);
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero-omega {
  position: absolute;
  top: 50%;
  right: -2vw;
  transform: translateY(-50%);
  font-size: 20vw;
  font-family: var(--font-display);
  font-weight: 700;
  color: white;
  opacity: 0.03;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.page-hero-content {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-3);
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-3);
}

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

.breadcrumb-sep {
  color: var(--text-3);
}

/* ── Inline Link ────────────────────────────────────────── */

.inline-link {
  color: var(--accent-hover);
  border-bottom: 1px solid var(--border-strong);
  transition: color 0.2s, border-color 0.2s;
}

.inline-link:hover {
  color: var(--text);
  border-bottom-color: var(--accent-hover);
}

/* ── Highlight Box ──────────────────────────────────────── */

.highlight-box {
  background: var(--accent-dim);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.highlight-box p {
  font-size: 0.9rem;
  color: var(--text);
}

/* ── Footer ─────────────────────────────────────────────── */

.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
}

.footer-logo span { color: var(--accent); }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.footer-links a {
  font-size: 0.82rem;
  color: var(--text-3);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-2);
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-copyright {
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-3);
  max-width: 600px;
}

/* ── Fade-in animation (progressive enhancement) ──── */

.fade-in {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.js-ready .fade-in {
  opacity: 0;
  transform: translateY(16px);
}

.js-ready .fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────── */

@media (max-width: 700px) {
  /* Hamburger: show button, hide horizontal nav */
  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 65px;
    left: 0;
    right: 0;
    background: rgba(7, 7, 13, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
    gap: 0;
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    display: block;
    padding: 0.7rem 0.25rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }
  .site-nav a:last-child { border-bottom: none; }

  /* Content */
  .hero { padding: 2.5rem 0 2rem; }
  .hero-subtitle { max-width: 100%; }
  .onion-card { padding: 1.25rem; max-width: 100%; }
  .onion-address { font-size: 0.7rem; }
  .card-actions { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { width: 100%; text-align: center; }
  .content-section { max-width: 100%; }
  .markets-table th,
  .markets-table td { padding: 0.6rem 0.75rem; }
  .container { padding: 0 1rem; }
  h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
}
