/* NanoX Ledger - Ledger-inspired dark design system */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #030303;
  --bg-black: #000000;
  --surface: rgba(255, 255, 255, 0.02);
  --border: #525252;
  --border-light: #e5e5e5;
  --text: #ffffff;
  --text-muted: #abb8c3;
  --text-dim: #525252;

  --orange: #ff6900;
  --orange-hover: #e55a00;
  --purple: #6a3794;
  --green: #00d084;
  --yellow: #fcb900;
  --red: #cf2e2e;

  --radius-btn: 100px;
  --radius-input: 72px;
  --radius-badge: 4px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.ledger-body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }

@media (max-width: 1024px) {
  .wrap { padding: 0 32px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
}

/* ---------- Top banner ---------- */
.top-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 44px;
  padding: 0 var(--space-3);
  background: linear-gradient(90deg, #1a1a1a, #262626);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}
.top-banner__text { font-weight: 500; }
.top-banner__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.top-banner:hover .top-banner__cta { color: var(--text-muted); }

@media (max-width: 640px) {
  .top-banner { font-size: 12.5px; padding: 0 var(--space-2); }
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: flex;
  align-items: center;
  background: rgba(3, 3, 3, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #262626;
}
.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.2px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}
.brand-mark__img {
  height: 60px;
  width: auto;
  max-width: none;
  display: block;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}
.nav__links a:hover { color: var(--text-muted); }

.nav__actions { display: flex; align-items: center; gap: var(--space-2); }

.nav__hamburger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--text);
  align-items: center;
  justify-content: center;
}

@media (max-width: 900px) {
  .nav__links, .nav__actions .btn-ghost { display: none; }
  .nav__hamburger { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 22px;
  padding: 12px 28px;
  border-radius: var(--radius-btn);
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.98); }

.btn-primary { background: var(--orange); color: #ffffff; }
.btn-primary:hover { background: var(--orange-hover); }

.btn-white { background: #ffffff; color: #000000; padding: 10px 22px; }
.btn-white:hover { background: #f5f5f5; }

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 10px 22px;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 4px 12px;
  border-radius: var(--radius-badge);
  background: var(--purple);
  color: #ffffff;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 600; }
p { margin: 0; }

.eyebrow {
  display: inline-block;
  font-family: 'Inter', monospace;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-2);
}

.section-head { max-width: 620px; }
.section-head.center { max-width: 620px; margin: 0 auto; text-align: center; }
.section-head h2 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.section-head p {
  margin-top: var(--space-2);
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.7;
  max-width: 60ch;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

@media (max-width: 640px) {
  .section-head h2 { font-size: 26px; }
}

/* ---------- Sections ---------- */
section { padding: var(--space-7) 0; }
@media (max-width: 1024px) { section { padding: var(--space-6) 0; } }
@media (max-width: 640px) { section { padding: var(--space-5) 0; } }

/* ---------- Hero ---------- */
.hero {
  padding-top: var(--space-6);
  padding-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: var(--space-3);
}
.hero__badge .avatars { display: flex; }
.hero__badge .avatars img {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  object-fit: cover;
  background: #333;
}
.hero__badge .avatars img:first-child { margin-left: 0; }
.hero__badge .divider { width: 1px; align-self: stretch; background: var(--border); }
.hero__badge .stars { display: flex; gap: 2px; color: var(--yellow); }
.hero__badge .info { font-size: 12.5px; color: var(--text-muted); }
.hero__badge .info span { color: #ffffff; font-weight: 700; }

.hero h1 {
  font-size: 54px;
  line-height: 1.08;
  letter-spacing: -1.2px;
  max-width: 14ch;
}
.hero h1 .accent { color: var(--orange); }

.hero p.lead {
  margin-top: var(--space-3);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 46ch;
}

.hero__ctas { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }

@media (max-width: 640px) {
  .hero h1 { font-size: 34px; }
  .hero__ctas .btn { width: 100%; }
}

.hero__visual {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 4/5;
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: var(--space-4) 0;
  border-top: 1px solid #262626;
  border-bottom: 1px solid #262626;
}
.logo-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  flex-wrap: wrap;
}
.logo-strip img, .logo-strip svg { height: 24px; width: auto; }

/* ---------- Feature grid (bento-ish) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--space-3);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.feature-card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 105, 0, 0.12);
  color: var(--orange);
}
.feature-card h3 { font-size: 17px; }
.feature-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.65; }

/* ---------- Split section (image + copy) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
}
.split__visual {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.split__visual img { width: 100%; display: block; }

.check-list { list-style: none; margin: var(--space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.check-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--text); }
.check-list li svg { color: var(--green); flex-shrink: 0; }

/* ---------- How it works (steps) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.step {
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}
.step .num { color: var(--orange); font-weight: 700; font-size: 14px; }
.step h4 { font-size: 15.5px; margin-top: 8px; }
.step p { color: var(--text-muted); font-size: 14px; margin-top: 6px; line-height: 1.6; }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
  margin-top: var(--space-5);
}
@media (max-width: 900px) { .benefits-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-card {
  border: 1px solid var(--border);
  padding: var(--space-3);
}
.benefit-card .icon { color: var(--purple); margin-bottom: var(--space-2); }
.benefit-card h3 { font-size: 16px; }
.benefit-card p { color: var(--text-muted); font-size: 14px; margin-top: 8px; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-5);
  align-items: start;
}
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }

.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item__q {
  width: 100%;
  background: none;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: var(--space-2) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  cursor: pointer;
}
.faq-item__q svg { flex-shrink: 0; transition: transform 0.2s ease; color: var(--text-muted); }
.faq-item[data-open="true"] .faq-item__q svg { transform: rotate(45deg); }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-item[data-open="true"] .faq-item__a { max-height: 400px; }
.faq-item__a p { color: var(--text-muted); font-size: 14.5px; line-height: 1.7; padding-bottom: var(--space-2); }

.faq-side {
  border: 1px solid var(--border);
  padding: var(--space-3);
  background: var(--surface);
}
.faq-side h3 { font-size: 18px; }
.faq-side p { color: var(--text-muted); font-size: 14.5px; margin-top: 8px; line-height: 1.6; }
.faq-side .btn { margin-top: var(--space-3); }

/* ---------- CTA ---------- */
.cta {
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255, 105, 0, 0.08), rgba(106, 55, 148, 0.08));
  padding: var(--space-6) var(--space-5);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-4);
  align-items: center;
}
@media (max-width: 900px) { .cta { grid-template-columns: 1fr; padding: var(--space-5) var(--space-3); } }
.cta h2 { font-size: 32px; line-height: 1.2; max-width: 16ch; }
.cta p { color: var(--text-muted); margin-top: var(--space-2); max-width: 46ch; }
.cta__ctas { display: flex; gap: var(--space-2); margin-top: var(--space-4); flex-wrap: wrap; }
.cta__visual { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
.cta__visual img { width: 100%; display: block; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid #262626; padding: var(--space-6) 0 var(--space-3); }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.footer__desc { color: var(--text-muted); font-size: 14.5px; margin-top: var(--space-2); max-width: 40ch; line-height: 1.65; }
.footer__col h4 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.footer__col ul { list-style: none; margin: var(--space-2) 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--text); text-decoration: none; font-size: 14.5px; }
.footer__col a:hover { color: var(--text-muted); }
.footer__bottom {
  border-top: 1px solid #262626;
  margin-top: var(--space-5);
  padding-top: var(--space-3);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  color: var(--text-dim);
  font-size: 13.5px;
}
.footer__bottom a { color: var(--text-dim); text-decoration: none; }

/* ---------- Mobile nav drawer ---------- */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.mobile-drawer[data-open="true"] { display: block; }
.mobile-drawer__scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.mobile-drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 82vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.mobile-drawer__close { align-self: flex-end; background: none; border: 1px solid var(--border); border-radius: 8px; width: 36px; height: 36px; color: var(--text); }
.mobile-drawer nav { display: flex; flex-direction: column; gap: var(--space-2); }
.mobile-drawer nav a { color: var(--text); text-decoration: none; font-size: 16px; font-weight: 500; }
.mobile-drawer .btn { width: 100%; }
