/* TCG Ledger marketing site — same "Foil" design tokens as the app
   (collection-app-flutter/lib/theme.dart), transcribed 1:1. */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root {
  --bg: #F6F4F0;
  --surface: #FFFFFF;
  --ink: #171410;
  --ink2: #6B6558;
  --ink3: #9A9385;
  --ink4: #C6C0B4;
  --gold: #B08D4F;
  --gold-deep: #8C6D36;
  --gold-light: #C9A961;
  --gold-pale: #EADFC6;
  --gold-wash: #FBF6EC;
  --hairline: rgba(23, 20, 16, 0.07);
  --divider: rgba(23, 20, 16, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { overflow-x: hidden; }

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

img, svg { max-width: 100%; display: block; }

.label {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink3);
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 240, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hairline);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand-mark { width: 30px; height: 30px; flex-shrink: 0; }

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.nav-brand-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.nav-brand-tagline {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--gold-deep);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink2);
}

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

.nav-cta {
  background: var(--gold);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13.5px;
  box-shadow: 0 6px 16px rgba(176, 141, 79, 0.28);
}

/* ---------- Hero ---------- */

.hero {
  padding: 88px 24px 64px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, var(--gold-wash) 0%, rgba(251, 246, 236, 0) 70%);
}

.hero-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0 0 20px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .accent { color: var(--gold-deep); }

.hero p.sub {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink2);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--gold);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 10px 24px rgba(176, 141, 79, 0.3);
}

.btn-secondary {
  background: var(--surface);
  border: 1px solid var(--hairline);
  color: var(--ink) !important;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
}

/* ---------- Mock UI panel ---------- */

.mock-panel {
  max-width: 380px;
  margin: 56px auto 0;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 22px;
  text-align: left;
  box-shadow: 0 30px 60px -20px rgba(23, 20, 16, 0.18);
}

.mock-hero {
  background: linear-gradient(145deg, #FCF7EC 0%, #FFFFFF 42%, #FAF4E8 100%);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 14px;
}

.mock-value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 4px 0 14px;
  font-variant-numeric: tabular-nums;
}

.mock-chart {
  height: 46px;
  width: 100%;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--divider);
}
.mock-row:last-child { border-bottom: none; }

.mock-thumb {
  width: 28px;
  height: 38px;
  border-radius: 4px;
  background: linear-gradient(160deg, var(--gold-pale), var(--gold-light));
  flex-shrink: 0;
}

.mock-row-title { font-size: 13px; font-weight: 600; }
.mock-row-sub { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.mock-row-value { margin-left: auto; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mock-row-up { color: #2F7D5F; font-size: 10.5px; font-weight: 600; margin-top: 2px; }

/* ---------- Sections ---------- */

section { padding: 72px 24px; }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 10px 0 14px;
}
.section-head p { color: var(--ink2); font-size: 16px; line-height: 1.6; margin: 0; }

/* ---------- Feature grid ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 26px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 20px; height: 20px; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink2);
  margin: 0;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
  counter-reset: step;
}

.step { text-align: center; }

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 15px;
  margin: 0 auto 18px;
}

.step h3 { font-size: 16px; font-weight: 700; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--ink2); line-height: 1.6; margin: 0; }

/* ---------- Platform banner ---------- */

.platform-banner {
  background: var(--ink);
  color: #fff;
  border-radius: 24px;
  max-width: 1032px;
  margin: 0 auto;
  padding: 56px 40px;
  text-align: center;
}
.platform-banner h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.platform-banner p {
  color: rgba(255,255,255,0.6);
  font-size: 15px;
  max-width: 480px;
  margin: 0 auto 28px;
  line-height: 1.6;
}
.platform-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  gap: 7px;
}
.pill.live { border-color: var(--gold-light); color: var(--gold-light); }
.pill-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo svg { width: 22px; height: 22px; }
.footer-logo span {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink2);
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
  color: var(--ink3);
  font-weight: 500;
}
.footer-links a:hover { color: var(--ink); }

/* ---------- Legal pages ---------- */

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}
.legal h1 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
}
.legal .updated {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
  margin-bottom: 40px;
}
.legal h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 40px 0 14px;
}
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink2);
}
.legal ul { padding-left: 20px; }
.legal a { color: var(--gold-deep); font-weight: 600; }
.legal strong { color: var(--ink); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 34px; }
  .hero p.sub { font-size: 16px; }
  .nav-links { gap: 16px; font-size: 13px; }
}

@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 64px 20px 48px; }
  .hero h1 { font-size: 28px; }
  .platform-banner { padding: 40px 24px; border-radius: 18px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
