:root {
  --ink:          #0F2350;
  --ink-deep:     #0A1A3D;
  --signal:       #2F5BD8;
  --signal-light: #5B86F0;
  --signal-pale:  #BFD0FB;
  --slate:        #707A8C;
  --slate-light:  #9098A6;
  --paper:        #EDEAE3;
  --paper-dark:   #E5E1D8;
  --white:        #FFFFFF;
  --border:       #E5E1D8;
  --border-inner: #ECE9E1;
  --good:         #1A7A5A;
  --warn:         #C07A14;
  --bad:          #B44040;
}

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

body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--signal); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  background: var(--ink);
  padding: 1.1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-wordmark { font-size: 1.2rem; letter-spacing: -0.02em; color: var(--paper); }
.logo-wordmark strong { font-weight: 700; }
.logo-wordmark span { font-weight: 400; color: #AEB7CC; }
header nav { display: flex; gap: 1.4rem; align-items: center; font-size: 0.875rem; }
header nav a { color: #7E88A3; font-weight: 500; }
header nav a:hover { color: var(--paper); text-decoration: none; }
.nav-cta {
  background: var(--signal); color: var(--white) !important;
  padding: 0.45rem 1.1rem; border-radius: 6px; font-weight: 600;
}
.nav-cta:hover { background: #2449B8 !important; }

.hero { max-width: 820px; margin: 4rem auto 2.5rem; padding: 0 2rem; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(47,91,216,0.09); border: 1px solid rgba(47,91,216,0.22);
  border-radius: 100px; padding: 0.3rem 1rem;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.1em; color: var(--signal); text-transform: uppercase; margin-bottom: 1.75rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; margin-bottom: 1.1rem; color: var(--ink);
}
.hero h1 em { font-style: normal; color: var(--signal); }
.hero p { font-size: 1.08rem; color: var(--slate); max-width: 600px; margin: 0 auto 1.9rem; }
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; margin-bottom: 0.75rem; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.75rem 1.6rem;
  background: var(--ink); color: var(--paper); border-radius: 7px; font-weight: 600; font-size: 0.925rem;
}
.btn-primary:hover { background: var(--ink-deep); text-decoration: none; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.75rem 1.6rem;
  background: transparent; color: var(--slate); border: 1px solid var(--paper-dark);
  border-radius: 7px; font-weight: 500; font-size: 0.925rem;
}
.btn-secondary:hover { border-color: var(--signal); color: var(--ink); text-decoration: none; }
.hero-note { font-size: 0.8rem; color: var(--slate-light); }

section { max-width: 1080px; margin: 0 auto; padding: 3.5rem 2rem; }
.section-tag {
  text-align: center; font-family: 'IBM Plex Mono', monospace; font-size: 0.7rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--slate-light); margin-bottom: 0.6rem;
}
.section-title {
  text-align: center; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--ink); margin-bottom: 0.6rem;
}
.section-subtitle { text-align: center; color: var(--slate); max-width: 560px; margin: 0 auto 2.5rem; font-size: 0.95rem; }

/* Mini-story cards */
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.story-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem;
}
.story-icon { font-size: 1.5rem; }
.story-title { font-weight: 700; font-size: 1rem; color: var(--ink); }
.story-quote { font-size: 0.875rem; color: var(--slate); font-style: italic; line-height: 1.6; }
.story-link { font-size: 0.8rem; font-weight: 600; margin-top: 0.4rem; }

/* Sample table */
.table-toolbar {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.1rem; align-items: center;
}
.table-toolbar select {
  font-family: 'Hanken Grotesk', sans-serif; font-size: 0.85rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--border); border-radius: 6px;
  padding: 0.45rem 0.7rem;
}
.table-wrap {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  overflow-x: auto;
}
table.sample { width: 100%; border-collapse: collapse; font-size: 0.86rem; min-width: 720px; }
table.sample th {
  text-align: left; font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-light);
  padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); background: var(--paper);
  position: sticky; top: 0;
}
table.sample td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border-inner); color: var(--ink); vertical-align: top; }
table.sample tbody tr:last-child td { border-bottom: none; }
table.sample tbody tr:hover { background: rgba(47,91,216,0.04); }
.hs-code { font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; color: var(--slate); }
.flow-tag {
  font-family: 'IBM Plex Mono', monospace; font-size: 0.68rem; font-weight: 600;
  padding: 0.15rem 0.5rem; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em;
}
.flow-export { background: rgba(26,122,90,0.12); color: var(--good); }
.flow-import { background: rgba(47,91,216,0.12); color: var(--signal); }
.trend { font-size: 0.78rem; font-weight: 600; }
.trend-strong { color: var(--good); }
.trend-growth { color: #3d8f68; }
.trend-flat   { color: var(--warn); }
.trend-decline{ color: var(--bad); }
.trend-na     { color: var(--slate-light); font-weight: 400; }
.row-hidden { display: none; }
.table-caption { padding: 0.9rem 1rem 0; font-size: 0.8rem; color: var(--slate-light); }

/* Data dictionary */
.dict-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 2rem; margin-top: 1.5rem; }
.dict-term {
  background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.3rem;
}
.dict-term dt { font-family: 'IBM Plex Mono', monospace; font-size: 0.82rem; font-weight: 600; color: var(--signal); margin-bottom: 0.35rem; }
.dict-term dd { font-size: 0.875rem; color: var(--slate); line-height: 1.6; }

/* Honesty box */
.honesty-box {
  background: var(--white); border: 1px solid var(--border); border-left: 4px solid var(--warn);
  border-radius: 10px; padding: 1.75rem 2rem; max-width: 780px; margin: 0 auto;
}
.honesty-box h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }
.honesty-box p { font-size: 0.92rem; color: var(--slate); line-height: 1.7; margin-bottom: 0.6rem; }
.honesty-box p:last-child { margin-bottom: 0; }
.honesty-box strong { color: var(--ink); }

/* FAQ */
.faq-list { max-width: 780px; margin: 1.5rem auto 0; display: flex; flex-direction: column; gap: 0.75rem; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 10px; padding: 1.1rem 1.3rem; }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.faq-item p { margin-top: 0.7rem; font-size: 0.9rem; color: var(--slate); line-height: 1.7; }
.faq-item a { color: var(--signal); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; }
.price-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.4rem 1.1rem; display: flex; flex-direction: column; gap: 0.7rem; text-align: center;
}
.price-card.featured { border-color: var(--signal); box-shadow: 0 0 0 1px var(--signal); }
.price-tier { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.price-amount { font-size: 1.35rem; font-weight: 800; color: var(--signal); letter-spacing: -0.02em; }
.price-amount span { font-size: 0.7rem; font-weight: 500; color: var(--slate-light); display: block; }
.price-desc { font-size: 0.78rem; color: var(--slate); line-height: 1.55; flex: 1; }
.price-card .btn-secondary, .price-card .btn-primary { justify-content: center; padding: 0.55rem 1rem; font-size: 0.82rem; }

.cta-strip {
  max-width: 780px; margin: 0 auto; padding: 2.5rem; text-align: center;
  background: var(--ink); border-radius: 16px; color: var(--paper);
}
.cta-strip h2 { font-size: 1.4rem; margin-bottom: 0.75rem; }
.cta-strip p { color: #AEB7CC; margin-bottom: 1.5rem; font-size: 0.95rem; }

footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  padding: 2rem; max-width: 1080px; margin: 2rem auto 0; border-top: 1px solid var(--paper-dark);
  font-size: 0.82rem; color: var(--slate-light);
}

@media (max-width: 1180px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
  .story-grid { grid-template-columns: 1fr; }
  .dict-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .pricing-grid { grid-template-columns: 1fr; }
  header nav { display: none; }
}
