/* vladpad — main stylesheet
   crypto-128 inspired: black/white sections + lime #C9FA49 pop, Poppins display
*/

:root {
  /* crypto-128 palette */
  --lime: #C9FA49;
  --lime-dim: #b8e83a;
  --blue: #0055D4;
  --bg: #ffffff;
  --bg-2: #f6f7f4;
  --bg-3: #ececec;
  --bg-dark: #000000;        /* black hero */
  --bg-darker: #0e0e0e;
  --ink: #0e0e0e;            /* near-black text on white */
  --ink-dim: rgba(14, 14, 14, 0.65);
  --ink-faint: rgba(14, 14, 14, 0.4);
  --line: rgba(14, 14, 14, 0.10);
  --accent: #C9FA49;         /* lime (signature pop) */
  --accent-2: #0055D4;       /* secondary blue */
  --accent-ink: #0e0e0e;     /* black text on lime */
  --accent-glow: rgba(201, 250, 73, 0.4);
  --warn: #FFE103;
  --danger: #FF4400;
  --success: #00E340;
  --grad-1: linear-gradient(135deg, #C9FA49 0%, #b8e83a 100%);
  --grad-2: linear-gradient(135deg, #000000 0%, #0e0e0e 100%);
  --grad-bg: linear-gradient(180deg, #ffffff 0%, #f6f7f4 100%);
  --grad-dark: linear-gradient(180deg, #000000 0%, #0e0e0e 100%);
  --max: 1280px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 30px;            /* crypto-128 pill radius */
  --t-fast: 180ms cubic-bezier(.4,.0,.2,1);
  --t-slow: 600ms cubic-bezier(.4,.0,.2,1);
  --font-sans: 'Lato', system-ui, -apple-system, sans-serif;
  --font-display: 'Poppins', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ─── NAV ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
}
.nav-name {
  font-weight: 700; font-size: 18px;
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-link {
  font-size: 14px; font-weight: 400;
  color: var(--ink-dim);
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--accent); }
.nav-burger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 28px;
}
.nav-burger span {
  width: 100%; height: 2px;
  background: var(--ink);
  transition: transform var(--t-fast);
}

/* Mobile nav */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 32px;
}
.mobile-link {
  font-size: 24px; font-weight: 500;
  color: var(--ink);
}
.mobile-link:hover { color: var(--accent); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  font-size: 14px; font-weight: 500;
  border-radius: var(--r-sm);
  transition: all var(--t-fast);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-1);
  color: var(--accent-ink);
  font-weight: 700;
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-secondary {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-connect {
  padding: 10px 20px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 13px;
  border-radius: var(--r-sm);
}
.btn-connect:hover {
  background: rgba(204, 255, 0, 0.12);
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: var(--grad-bg);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 30%, var(--accent-glow) 0%, transparent 50%);
  opacity: 0.12;
  animation: pulse 8s ease-in-out infinite alternate;
}
@keyframes pulse {
  from { opacity: 0.15; transform: scale(0.95); }
  to { opacity: 0.3; transform: scale(1.05); }
}
.hero-content {
  position: relative;
  max-width: 720px;
  text-align: center;
  display: flex; flex-direction: column; gap: 28px; align-items: center;
}
.hero-title {
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.accent { color: var(--accent); }
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--ink-dim);
  max-width: 560px;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}
.hero-stats {
  display: flex; gap: 40px; margin-top: 24px; flex-wrap: wrap; justify-content: center;
}
.stat {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.stat-val {
  font-family: var(--font-mono);
  font-size: 22px; font-weight: 500;
  color: var(--accent);
}
.stat-label {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ─── SECTIONS ─── */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px 24px;
}
.section-alt {
  background: var(--bg-2);
  max-width: none;
  border-block: 1px solid var(--line);
}
.section-alt > * { max-width: var(--max); margin-inline: auto; }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
  display: flex; flex-direction: column; gap: 16px; align-items: center;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-lead {
  color: var(--ink-dim);
  font-size: 16px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg-2);
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.step-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent);
}
.step h3 { font-size: 20px; font-weight: 500; }
.step p { color: var(--ink-dim); font-size: 14px; }

/* Mechanics grid */
.mechanics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.mech-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  display: flex; flex-direction: column; gap: 8px;
  transition: all var(--t-fast);
  cursor: default;
}
.mech-card:hover {
  border-color: var(--accent);
  background: var(--bg-3);
}
.mech-head { display: flex; align-items: baseline; gap: 10px; }
.mech-num {
  font-family: var(--font-mono);
  font-size: 13px; color: var(--accent);
}
.mech-name { font-size: 18px; font-weight: 500; }
.mech-desc { font-size: 13px; color: var(--ink-dim); flex: 1; }
.mech-fee {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-faint);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.mech-fee.has-fee { color: var(--warn); }

/* Fees */
.fee-split { max-width: 600px; margin: 0 auto; text-align: center; }
.fee-bar {
  display: flex;
  height: 56px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.fee-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
}
.fee-seg.protocol { background: var(--bg-3); color: var(--ink); }
.fee-seg.creator { background: var(--grad-1); color: var(--accent-ink); }
.fee-note { margin-top: 16px; font-size: 13px; color: var(--ink-dim); }

/* Chain grid */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.chain-card {
  padding: 28px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  display: flex; flex-direction: column; gap: 8px; align-items: center;
  text-align: center;
}
.chain-k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.chain-v { font-family: var(--font-mono); font-size: 20px; color: var(--accent); font-weight: 500; }

/* Footer */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 24px 40px;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 40px;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 280px; }
.footer-brand p { color: var(--ink-dim); font-size: 14px; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-h { font-size: 12px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--ink-faint); margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--ink-dim); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  grid-column: 1 / -1;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 32px; margin-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px; color: var(--ink-faint);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .steps { grid-template-columns: 1fr; }
  .chain-grid { grid-template-columns: repeat(2, 1fr); }
  .footer { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .hero-stats { gap: 28px; }
}
@media (max-width: 480px) {
  .chain-grid { grid-template-columns: 1fr; }
  .hero { padding: 100px 20px 60px; }
  .footer-cols { gap: 32px; }
}

/* reveal on scroll */
.reveal { opacity: 1; transform: none; transition: opacity 700ms, transform 700ms; }
.reveal.in { opacity: 1; transform: none; }

/* ─── CRYPTO-128 STYLE OVERRIDES ─── */
/* Hero: pure black, white text, generous size, lime accent */
.hero {
  background: #000000;
  color: #ffffff;
}
.hero-bg { background: #000000; }
.hero-bg::after {
  background: radial-gradient(ellipse at 70% 30%, var(--accent-glow) 0%, transparent 50%);
  opacity: 0.22;
}
.hero-title {
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
.hero-title .accent { color: var(--lime); }
.hero-sub { color: rgba(255, 255, 255, 0.72); font-family: var(--font-sans); }
.hero-stats .stat-val { color: var(--lime); font-family: var(--font-display); }
.hero-stats .stat-label { color: rgba(255, 255, 255, 0.5); }

/* Buttons: black pill with white text (crypto-128 signature) */
.btn-connect {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  font-family: var(--font-display);
  font-weight: 500;
  border-radius: 999px;
  padding: 12px 28px;
  letter-spacing: 0.02em;
}
.btn-connect:hover {
  background: var(--lime);
  color: #0e0e0e;
  border-color: var(--lime);
}
.btn-primary {
  background: var(--lime);
  color: #0e0e0e;
  border-radius: 999px;
  padding: 18px 38px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--lime-dim);
  box-shadow: 0 10px 28px var(--accent-glow);
}
.btn-secondary {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  border-radius: 999px;
  padding: 18px 38px;
  font-family: var(--font-display);
  font-weight: 500;
  background: transparent;
}
.btn-secondary:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: rgba(201, 250, 73, 0.06);
}
/* Light-context secondary (sections) */
body .section .btn-secondary,
body .footer .btn-secondary {
  border-color: var(--ink);
  color: var(--ink);
}
body .section .btn-secondary:hover {
  background: var(--ink);
  color: #fff;
}

/* Eyebrow: small uppercase, lime on dark, ink on light */
.eyebrow {
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Section alt: black like crypto-128's contrasting blocks */
.section-alt {
  background: #000000;
  color: #ffffff;
}
.section-alt .section-title { color: #fff; }
.section-alt .section-lead { color: rgba(255, 255, 255, 0.7); }
.section-alt .eyebrow { color: var(--lime); }
.section-alt .step,
.section-alt .mech-card,
.section-alt .chain-card {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-alt .step:hover,
.section-alt .mech-card:hover,
.section-alt .chain-card:hover {
  border-color: var(--lime);
  background: rgba(201, 250, 73, 0.04);
}
.section-alt .step h3,
.section-alt .mech-name,
.section-alt .chain-v { color: #fff; font-family: var(--font-display); }
.section-alt .step p,
.section-alt .mech-desc,
.section-alt .chain-k { color: rgba(255, 255, 255, 0.62); }
.section-alt .step-num,
.section-alt .mech-num { color: var(--lime); font-family: var(--font-display); }
.section-alt .mech-fee { color: rgba(255, 255, 255, 0.45); border-top-color: rgba(255, 255, 255, 0.1); }
.section-alt .mech-fee.has-fee { color: var(--lime); }

/* Nav: white on light, black on hero */
.nav { background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--line); }
.nav.nav-over-dark {
  background: rgba(0, 0, 0, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav.nav-over-dark .nav-name { color: #fff; font-family: var(--font-display); }
.nav.nav-over-dark .nav-link { color: rgba(255, 255, 255, 0.78); font-family: var(--font-display); }
.nav.nav-over-dark .nav-link:hover { color: var(--lime); }
.nav.nav-over-dark .nav-burger span { background: #fff; }
.nav-name { font-family: var(--font-display); font-weight: 600; }
.nav-link { font-family: var(--font-display); font-weight: 400; }

/* Stat values on light sections */
.section .stat-val { color: var(--ink); font-family: var(--font-display); }

/* Accent class — solid lime, no gradient (crypto-128 simplicity) */
.accent {
  color: var(--lime);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
  background-clip: initial;
}
.section .accent { color: var(--ink); }

/* Section titles: Poppins display, large */
.section-title, .hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Card hover on light: subtle */
.step:hover { border-color: var(--ink); }
.mech-card:hover { border-color: var(--ink); background: var(--bg-2); }

/* Mobile nav: black bg, white links */
.mobile-nav { background: #000000; }
.mobile-link { color: #fff; font-family: var(--font-display); }
.mobile-link:hover { color: var(--lime); }
.mobile-nav .btn-connect { background: var(--lime); color: #0e0e0e; border-color: var(--lime); }
