/* ─────────────────────────────────────────────────────
   BanLynk — style.css v2
   Aesthetic: engraved / cartographic / industrial
   Palette: pure black, white outlines, ivory accent
   Fonts: Playfair Display (serif display) + Anybody (light sans) + DM Mono
   Inspired by: chain-link outline logotype on black,
                topographic contour lines radiating from center
────────────────────────────────────────────────────── */

:root {
  --black:       #080808;
  --black-raise: #0e0e0e;
  --black-card:  #111111;
  --black-hover: #161616;
  --white:       #f0ede6;
  --white-dim:   rgba(240, 237, 230, 0.45);
  --white-dimmer:rgba(240, 237, 230, 0.18);
  --white-ghost: rgba(240, 237, 230, 0.07);
  --rule:        rgba(240, 237, 230, 0.1);
  --rule-bright: rgba(240, 237, 230, 0.22);
  --ivory:       #e8e0cc;
  --ivory-dim:   rgba(232, 224, 204, 0.15);

  --display: 'Playfair Display', Georgia, serif;
  --body:    'Anybody', sans-serif;
  --mono:    'DM Mono', monospace;

  --max-w: 1080px;
  --nav-h: 62px;
  --r:     4px;
}

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

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Topo Canvas ──────────────────────────── */

#topo-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

/* ensure content sits above canvas */
header, main, footer {
  position: relative;
  z-index: 1;
}

/* ── Nav ──────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, background 0.4s, backdrop-filter 0.4s;
}

.nav.scrolled {
  background: rgba(8, 8, 8, 0.88);
  border-color: var(--rule);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-text {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--white);
}

.nav-cta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--black);
  background: var(--white);
  text-decoration: none;
  padding: 8px 20px;
  border: 1px solid var(--white);
  transition: background 0.2s, color 0.2s;
}

.nav-cta:hover {
  background: transparent;
  color: var(--white);
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--white);
  transition: all 0.2s;
}

.nav-mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--black);
  border-bottom: 1px solid var(--rule);
  flex-direction: column;
  padding: 20px 48px;
  gap: 20px;
}

.nav-mobile-menu.open {
  display: flex;
}

.mobile-link {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link-cta {
  color: var(--white);
}

/* ── Buttons ──────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 28px;
  border: 1px solid transparent;
  transition: all 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.btn-primary:hover {
  background: transparent;
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white-dim);
  border-color: var(--rule-bright);
}

.btn-outline:hover {
  color: var(--white);
  border-color: var(--white-dim);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 12px;
}

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

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 48px 80px;
  text-align: center;
}

.hero-inner {
  max-width: 760px;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  animation: fade-up 0.8s ease both;
}

.eyebrow-rule {
  display: block;
  width: 32px;
  height: 1px;
  background: var(--white-dimmer);
}

.eyebrow-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-dimmer);
}

.hero-title {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 36px;
}

/* Outline treatment on first line — matching the logo's outline letterforms */
.title-line-1 {
  -webkit-text-stroke: 1px var(--white);
  color: transparent;
  animation: fade-up 0.8s ease 0.1s both;
}

.title-line-2 {
  color: var(--white);
  animation: fade-up 0.8s ease 0.22s both;
}

.hero-body {
  font-size: 15px;
  font-weight: 300;
  color: var(--white-dim);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.75;
  animation: fade-up 0.8s ease 0.34s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
  animation: fade-up 0.8s ease 0.46s both;
}

/* Chain divider */
.hero-chain {
  display: flex;
  justify-content: center;
  opacity: 0.2;
  animation: fade-up 0.8s ease 0.6s both;
}

.chain-svg {
  width: 320px;
  color: var(--white);
}

/* ── Section shared ───────────────────────── */

.section-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 48px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}

.label-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--white-dimmer);
}

.label-rule {
  flex: 1;
  max-width: 40px;
  height: 1px;
  background: var(--rule);
}

.label-text {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dimmer);
}

.section-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 3.5vw, 44px);
  letter-spacing: -0.025em;
  color: var(--white);
  margin-bottom: 56px;
  line-height: 1.1;
}

/* ── Features ─────────────────────────────── */

.features {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.feat-card {
  background: var(--black);
  padding: 36px 30px;
  position: relative;
  transition: background 0.25s;

  /* Reveal animation state */
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease, background 0.25s;
}

.feat-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

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

/* Stagger */
.feat-card:nth-child(1) { transition-delay: 0s, 0s, 0s; }
.feat-card:nth-child(2) { transition-delay: 0.07s, 0.07s, 0s; }
.feat-card:nth-child(3) { transition-delay: 0.14s, 0.14s, 0s; }
.feat-card:nth-child(4) { transition-delay: 0.05s, 0.05s, 0s; }
.feat-card:nth-child(5) { transition-delay: 0.12s, 0.12s, 0s; }
.feat-card:nth-child(6) { transition-delay: 0.19s, 0.19s, 0s; }

.feat-num {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--white-dimmer);
  margin-bottom: 20px;
}

.feat-icon-wrap {
  width: 32px;
  height: 32px;
  color: var(--white-dim);
  margin-bottom: 18px;
}

.feat-icon-wrap svg {
  width: 100%;
  height: 100%;
}

.feat-card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.feat-card p {
  font-size: 13px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.75;
}

.feat-card code {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ivory);
  background: var(--ivory-dim);
  padding: 1px 5px;
  letter-spacing: 0.02em;
}

/* ── How it works ──────────────────────────── */

.how {
  background: var(--black);
}

.steps-layout {
  display: grid;
  grid-template-columns: 1fr 80px;
  gap: 0 40px;
  align-items: start;
}

.steps-list {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 24px;
  padding-bottom: 52px;

  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.step.revealed {
  opacity: 1;
  transform: translateX(0);
}

.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(2) { transition-delay: 0.12s; }
.step:nth-child(3) { transition-delay: 0.24s; }

.step:last-child {
  padding-bottom: 0;
}

.step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-top: 4px;
}

.step-index {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--white-dimmer);
  line-height: 1;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.step-line {
  flex: 1;
  width: 1px;
  background: var(--rule);
  min-height: 40px;
}

.step-body h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.step-body p {
  font-size: 14px;
  font-weight: 300;
  color: var(--white-dim);
  line-height: 1.75;
  max-width: 480px;
}

/* Vertical chain deco */
.steps-deco {
  display: flex;
  justify-content: center;
  opacity: 0.18;
  padding-top: 4px;
}

.deco-chain-vert {
  width: 80px;
  color: var(--white);
}

/* ── CTA band ──────────────────────────────── */

.cta-band {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.cta-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-dimmer);
  margin-bottom: 8px;
}

.cta-heading {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 38px);
  color: var(--white);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

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

.footer {
  background: var(--black);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 30px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 14px;
  color: var(--white-dimmer);
  letter-spacing: -0.01em;
}

.footer-mid {
  opacity: 0.2;
}

.footer-chain {
  width: 96px;
  color: var(--white);
  display: block;
}

.footer-domain {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white-dimmer);
}

/* ── Animations ────────────────────────────── */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@media (max-width: 860px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-layout {
    grid-template-columns: 1fr;
  }

  .steps-deco {
    display: none;
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  .nav-mobile-menu {
    padding: 20px 24px;
  }

  .hero {
    padding: calc(var(--nav-h) + 40px) 24px 60px;
    text-align: left;
  }

  .hero-eyebrow {
    justify-content: flex-start;
  }

  .hero-title {
    font-size: clamp(44px, 13vw, 72px);
  }

  .hero-body {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-actions {
    justify-content: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .hero-chain {
    justify-content: flex-start;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .section-wrap {
    padding: 72px 24px;
  }

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

  .step {
    grid-template-columns: 40px 1fr;
    gap: 16px;
  }

  .footer-inner {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-mid {
    display: none;
  }

  .cta-inner {
    padding: 48px 24px;
  }
}
