:root {
  --bg: #000000;
  --bg-2: #0a0a0a;
  --panel: #0c0c0d;
  --panel-2: #161617;
  --border: #232326;
  --border-strong: #38383c;
  --text: #f2f2f3;
  --text-dim: #8b8b92;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --seller: #3b82f6;
  --buyer: #10b981;
  --radius: 14px;
  --radius-sm: 9px;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2.5px solid var(--bg); background-clip: padding-box; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap {
  max-width: var(--max); margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; text-decoration: none; color: var(--text); }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  text-decoration: none; color: var(--text-dim); font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: all 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--panel-2); }
.nav-cta {
  background: var(--accent) !important; color: #fff !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 10px; }

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 64px; left: 0; right: 0; height: calc(100vh - 64px); height: calc(100dvh - 64px);
    background: var(--bg); flex-direction: column;
    align-items: stretch; padding: 20px; gap: 4px;
    visibility: hidden; opacity: 0; pointer-events: none; transform: translateY(-16px);
    transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
    border-top: 1px solid var(--border);
  }
  .nav-links.open {
    visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0);
  }
  .nav-links a { padding: 14px 16px; font-size: 16px; text-align: center; }
}

/* ---------- Layout helpers ---------- */
main { display: block; }
.section { padding: 90px 24px; }
.section-inner { max-width: var(--max); margin: 0 auto; }
.section-tight { padding: 60px 24px; }
.eyebrow { color: var(--accent); font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 5.5vw, 58px); line-height: 1.08; letter-spacing: -1px; margin: 0 0 20px; font-weight: 700; }
h2 { font-size: clamp(26px, 3.5vw, 36px); letter-spacing: -0.5px; margin: 0 0 16px; font-weight: 700; }
h3 { font-size: 19px; margin: 0 0 8px; font-weight: 600; }
p { color: var(--text-dim); margin: 0 0 16px; }
.lead { font-size: 19px; color: var(--text-dim); max-width: 640px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: var(--panel-2); border: 1px solid var(--border); color: var(--text);
  padding: 13px 24px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
}
.btn:hover { border-color: var(--border-strong); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.large { padding: 16px 30px; font-size: 15.5px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- Hero / 3D globe ---------- */
.hero { position: relative; padding: 70px 24px 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -15%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(560px circle at 18% 28%, rgba(59,130,246,0.16), transparent 62%),
    radial-gradient(480px circle at 82% 72%, rgba(16,185,129,0.10), transparent 60%);
  filter: blur(50px);
  animation: heroDrift 24s ease-in-out infinite alternate;
}
@keyframes heroDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2.5%) scale(1.06); }
}
.hero-grid { position: relative; z-index: 1; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-globe-wrap { position: relative; height: 460px; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 50%, #0a0a0a, #000 75%); border: 1px solid var(--border); }
#heroGlobe { width: 100%; height: 100%; }
.hero-globe-caption {
  position: absolute; bottom: 14px; left: 14px; right: 14px;
  background: rgba(12,12,13,0.85); backdrop-filter: blur(6px); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 12.5px; color: var(--text-dim);
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-globe-wrap { height: 320px; order: -1; }
}

/* ---------- Cards with 3D tilt ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 40px; }
.tilt-card {
  background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  transform-style: preserve-3d; will-change: transform;
}
.tilt-card:hover { border-color: var(--border-strong); box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6); transform: translateY(-3px); }
.tilt-card .icon { width: 42px; height: 42px; border-radius: 10px; background: var(--panel); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 16px; transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease; }
.tilt-card:hover .icon { border-color: var(--accent); color: var(--accent); transform: scale(1.06); }
.tilt-card p { margin-bottom: 0; font-size: 14.5px; }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 0; }
.stat .value { font-size: 34px; font-weight: 700; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat .label { color: var(--text-dim); font-size: 13px; margin-top: 4px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; margin-top: 40px; }
.step { position: relative; z-index: 1; padding-left: 46px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--panel-2); border: 1px solid var(--border-strong); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
  transition: border-color 0.3s ease, color 0.3s ease;
}
@media (min-width: 960px) {
  .steps::after {
    content: ""; position: absolute; top: 17px; left: 17px; right: 17px; height: 1px; z-index: 0;
    background: linear-gradient(90deg, var(--border-strong), var(--accent) 50%, var(--border-strong));
    transform: scaleX(0); transform-origin: left;
    transition: transform 1.1s cubic-bezier(.16,.8,.24,1) 0.25s;
  }
  .steps.in-view::after { transform: scaleX(1); }
}

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; background: none; border: none; color: var(--text);
  font-size: 16.5px; font-weight: 600; padding: 22px 4px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--sans);
}
.faq-q .plus { font-size: 20px; color: var(--accent); transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] .faq-q .plus { transform: rotate(45deg); }
.faq-a { padding: 0 4px 22px; color: var(--text-dim); font-size: 15px; }
.faq-item summary::-webkit-details-marker { display: none; }

/* ---------- Contact form ---------- */
.form-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; max-width: 560px;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-dim); margin-bottom: 6px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; background: var(--bg-2); border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; font-family: var(--sans);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field textarea { min-height: 130px; resize: vertical; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin-top: 14px; font-size: 14px; }
.form-msg.ok { color: var(--buyer); }
.form-msg.err { color: #f28b8b; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 50px 24px 30px; }
.footer-grid { max-width: var(--max); margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.footer-brand { max-width: 320px; }
.footer-links { display: flex; gap: 50px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-dim); margin: 0 0 14px; }
.footer-col a { display: block; color: var(--text-dim); text-decoration: none; font-size: 14.5px; padding: 5px 0; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { max-width: var(--max); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-dim); }

/* ---------- Cookie consent ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 100; max-width: 560px;
  background: var(--panel); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: 13.5px; margin-bottom: 14px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 60px 24px 100px; }
.legal h2 { margin-top: 40px; font-size: 21px; }
.legal p, .legal li { color: var(--text-dim); font-size: 15px; }
.legal .updated { color: var(--text-dim); font-size: 13.5px; margin-bottom: 40px; }

/* ---------- 404 ---------- */
.not-found { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; }
.not-found .code { font-size: 100px; font-weight: 700; letter-spacing: -3px; background: linear-gradient(120deg, var(--seller), var(--buyer)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Utility ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.16,.8,.24,1), transform 0.7s cubic-bezier(.16,.8,.24,1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Gentle stagger between a section's own heading block and its body */
.eyebrow.reveal { transition-delay: 0s; }
h2.reveal { transition-delay: 0.08s; }
p.lead.reveal { transition-delay: 0.16s; }
.card-grid.reveal, .steps.reveal { transition-delay: 0.2s; }

/* Staggered children within specific revealed containers */
.card-grid.reveal .tilt-card,
.steps.reveal .step,
.stats-strip.reveal .stat {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.card-grid.reveal.in-view .tilt-card,
.steps.reveal.in-view .step,
.stats-strip.reveal.in-view .stat {
  opacity: 1; transform: translateY(0);
}
.card-grid.reveal.in-view .tilt-card:nth-child(1) { transition-delay: 0.03s; }
.card-grid.reveal.in-view .tilt-card:nth-child(2) { transition-delay: 0.09s; }
.card-grid.reveal.in-view .tilt-card:nth-child(3) { transition-delay: 0.15s; }
.card-grid.reveal.in-view .tilt-card:nth-child(4) { transition-delay: 0.21s; }
.card-grid.reveal.in-view .tilt-card:nth-child(5) { transition-delay: 0.27s; }
.card-grid.reveal.in-view .tilt-card:nth-child(6) { transition-delay: 0.33s; }
.steps.reveal.in-view .step:nth-child(1) { transition-delay: 0.05s; }
.steps.reveal.in-view .step:nth-child(2) { transition-delay: 0.16s; }
.steps.reveal.in-view .step:nth-child(3) { transition-delay: 0.27s; }
.steps.reveal.in-view .step:nth-child(4) { transition-delay: 0.38s; }
.stats-strip.reveal.in-view .stat:nth-child(1) { transition-delay: 0.03s; }
.stats-strip.reveal.in-view .stat:nth-child(2) { transition-delay: 0.09s; }
.stats-strip.reveal.in-view .stat:nth-child(3) { transition-delay: 0.15s; }
.stats-strip.reveal.in-view .stat:nth-child(4) { transition-delay: 0.21s; }

/* No-JS / no-IntersectionObserver safety net: content must never stay hidden */
.no-js .reveal,
.no-js .card-grid.reveal .tilt-card,
.no-js .steps.reveal .step,
.no-js .stats-strip.reveal .stat {
  opacity: 1 !important; transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal,
  .card-grid.reveal .tilt-card,
  .steps.reveal .step,
  .stats-strip.reveal .stat { opacity: 1 !important; transform: none !important; }
  .hero::before { animation: none; }
}
