/* ============================================
   WIKALA — Pixel Art / Minimal Aesthetic
   ============================================ */

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

:root {
  /* Silk Road palette */
  --bg: #0c0a08;
  --surface: #141210;
  --border: #231f1a;
  --border-light: #2e2822;
  --text: #f0e6d6;
  --text-dim: #a89880;
  --text-muted: #6b5d4d;

  /* Saffron — the red-gold spice of the Silk Road */
  --saffron: #c8442a;
  --saffron-bright: #e05535;
  --saffron-dim: #a03520;

  /* Sand dune gold */
  --sand: #d4a84b;
  --sand-bright: #e8c060;
  --sand-dim: #b8923a;

  /* Lapis lazuli — precious blue stone traded on the Silk Road */
  --lapis: #2e6b9e;
  --lapis-bright: #3d8bc4;

  /* Terracotta */
  --terra: #b46a3c;

  --mono: 'IBM Plex Mono', 'Courier New', monospace;
  --sans: 'Inter', -apple-system, sans-serif;
  --max-w: 1100px;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--sand);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav-cta {
  color: var(--sand) !important;
  font-weight: 600 !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.98);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  font-family: var(--mono);
  font-size: 1.2rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.mobile-menu a:hover { color: var(--sand); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 24px;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--sans);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--saffron-bright);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.pixel-border-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--sand) 0px,
    var(--sand) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.4;
  z-index: 3;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.btn-primary:hover {
  background: var(--sand-dim);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-dim);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  transform: translateY(-1px);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: clamp(60px, 10vh, 120px) 0;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

.container-narrow {
  max-width: 720px;
}

.label {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sand);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.section p {
  color: var(--text-dim);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.section strong {
  color: var(--text);
  font-weight: 600;
}

.section em {
  color: var(--saffron-bright);
  font-style: normal;
}

/* ============================================
   PIXEL DIVIDER
   ============================================ */
.pixel-divider {
  height: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
  background: repeating-linear-gradient(
    90deg,
    var(--border-light) 0px,
    var(--border-light) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.6;
}

/* ============================================
   TWO COL LAYOUT
   ============================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.pixel-art-container {
  display: flex;
  justify-content: center;
}

.pixel-art-container canvas {
  image-rendering: pixelated;
}

.highlight-text {
  color: var(--sand) !important;
  font-family: var(--mono);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ============================================
   CALLOUT
   ============================================ */
.callout {
  margin-top: 2rem;
  padding: 1.5rem;
  border: 1px solid var(--border-light);
  background: var(--surface);
}

.callout-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--saffron);
  margin-bottom: 0.5rem;
}

.callout h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.callout p {
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

.callout-answer {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--sand);
  font-weight: 600;
}

/* ============================================
   CARD GRID
   ============================================ */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

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

.card:hover {
  background: var(--surface);
}

.card-num {
  display: block;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--saffron);
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   STEPS / TIMELINE
   ============================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.step {
  display: flex;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  align-items: baseline;
}

.step:first-child {
  border-top: 1px solid var(--border);
}

.step-time {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--sand);
  flex-shrink: 0;
  width: 60px;
  letter-spacing: 0.05em;
}

.step-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.step-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footnote {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--sand) !important;
  opacity: 0.8;
}

/* ============================================
   PRINCIPLES
   ============================================ */
.principle-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.principle {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-dim);
  align-items: baseline;
}

.principle:first-child {
  border-top: 1px solid var(--border);
}

.principle span {
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--saffron);
  flex-shrink: 0;
  width: 24px;
  letter-spacing: 0.05em;
}

/* ============================================
   CTA
   ============================================ */
.section-cta {
  text-align: center;
  position: relative;
  padding: clamp(80px, 12vh, 160px) 0;
  overflow: hidden;
}

.cta-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.3;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.5rem;
}

.cta-inner > p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

.come-trade {
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--sand) !important;
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 1.5rem;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

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

.footer-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.footer-bottom p {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

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

  .hero-sub br { display: none; }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    justify-content: center;
    max-width: 260px;
  }

  .step {
    flex-direction: column;
    gap: 0.25rem;
  }

  .step-time {
    width: auto;
  }
}
