:root {
  --bg-page: #d5dee8;
  --bg-cream: #ece9e2;
  --bg-dark: #111111;
  --white: #ffffff;
  --text: #111111;
  --text-73: rgba(17, 17, 17, 0.733);
  --text-60: rgba(17, 17, 17, 0.6);
  --text-55: rgba(17, 17, 17, 0.55);
  --text-45: rgba(17, 17, 17, 0.45);
  --text-35: rgba(17, 17, 17, 0.35);
  --white-77: rgba(255, 255, 255, 0.77);
  --white-69: rgba(255, 255, 255, 0.69);
  --white-55: rgba(255, 255, 255, 0.55);
  --white-45: rgba(255, 255, 255, 0.45);
  --white-35: rgba(255, 255, 255, 0.35);
  --rule: rgba(17, 17, 17, 0.12);
  --rule-light: rgba(255, 255, 255, 0.14);
  --font-sans: "Geist", "Geist Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", "Geist Mono Variable", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}

.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-60);
}

/* Topbar */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  z-index: 40;
}
.topbar .wrap {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
}
.brand img { width: 26px; height: 26px; }
.brand .dim { color: var(--text-60); }
.top-actions { display: flex; align-items: center; gap: 12px; }
.btn-lang {
  background: none;
  border: none;
  color: var(--text-60);
  font-size: 15px;
  padding: 6px 8px;
}
.btn-black {
  background: var(--bg-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.wc-trigger.wc-connected {
  background: #16311f;
  color: #d9ffe4;
}
.wc-trigger.wc-connected::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
  margin-right: 2px;
}
.btn-white.wc-connected {
  background: #eafff1;
  color: #0f5132;
  border-color: #a6e9bd;
}
.btn-white {
  background: var(--white);
  color: var(--text);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Ticker strip */
.ticker {
  padding-top: 64px;
}
.ticker .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 11px;
}
.ticker a:hover { color: var(--text); }

/* CA strip */
.ca-strip { background: var(--white); border-bottom: 1px solid var(--rule); }
.ca-strip-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  font-size: 13px;
}
.ca-value { color: var(--text-60); font-size: 13px; }
.ca-strip .mini-btn { margin-left: auto; }

/* Intro (black) hero */
.hero-intro { background: var(--bg-dark); color: var(--white); padding: 56px 0; }
.hero-intro .grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 48px;
  align-items: start;
}
.eyebrow {
  font-size: 12px;
  font-weight: 500;
  color: var(--white-69);
  margin-bottom: 18px;
}
.eyebrow::before { content: "— "; }
.hero-intro h1 {
  font-size: 52px;
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 20px;
}
.hero-intro p.lede {
  font-size: 18px;
  line-height: 1.5;
  color: var(--white-77);
  max-width: 46ch;
  margin: 0 0 26px;
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  font-weight: 500;
  color: var(--white-55);
}
.meta-row i { color: var(--white-35); font-style: normal; }

.steps-card {
  background: var(--white);
  color: var(--text);
  border-radius: 14px;
  padding: 18px;
}
.step {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 14px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--rule);
}
.step:last-of-type { border-bottom: none; }
.step .num { grid-row: span 2; font-size: 12px; color: var(--text-45); padding-top: 3px; }
.step .title { font-size: 16px; }
.step .sub { font-size: 13px; color: var(--text-55); }
.steps-card .btn-black { width: 100%; justify-content: space-between; margin-top: 10px; }

/* Hedge hero (page bg) */
.hero-hedge { padding: 60px 0; }
.hero-hedge .grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: start;
}
.hero-hedge h1 {
  font-size: 60px;
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 20px;
}
.hero-hedge p.lede {
  font-size: 18px;
  color: var(--text-73);
  max-width: 42ch;
  margin: 0 0 24px;
}
.btn-row { display: flex; gap: 10px; }

.card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
}
.card-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.card .big-number {
  font-size: 48px;
  line-height: 1.1;
  margin: 4px 0 2px;
}
.stat-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 18px 0;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-split .num { font-size: 24px; margin-top: 2px; }
.bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 44px;
  margin: 16px 0;
}
.bars span { flex: 1; background: var(--bg-dark); border-radius: 1px; opacity: 0.85; }
.dist-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
}
.dist-row .token-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #7cb87c; display: inline-block; }
.view-link { font-size: 13px; margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; }

/* Engines */
.engines { padding: 0 0 40px; }
.engines .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.engine-card {
  background: var(--white);
  border-radius: 14px;
  padding: 22px;
}
.engine-card .title-row {
  font-size: 22px;
  margin: 10px 0 2px;
}
.badge {
  font-size: 10px;
  font-family: var(--font-mono);
  background: var(--rule);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}
.engine-card .big-number { font-size: 48px; margin: 10px 0 6px; }
.engine-card .sub { font-size: 13px; color: var(--text-60); margin-bottom: 16px; }

/* Metrics */
.metrics { background: var(--bg-cream); padding: 56px 0; }
.metrics h2 { font-size: 38px; font-weight: 400; margin: 6px 0 30px; }
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 8px;
}
.metric .value { font-size: 38px; margin: 6px 0 4px; }
.metric .value.small { font-size: 24px; }
.metric .sub { font-size: 12px; color: var(--text-60); }
.metrics .view-link { margin-bottom: 34px; display: inline-flex; }
.metrics-grid.secondary {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  margin-top: 12px;
}
.metrics-grid.secondary .value { font-size: 26px; }

/* Story sections */
.story-block { padding: 70px 0; }
.story-block .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.story-block.reverse .grid { direction: rtl; }
.story-block.reverse .grid > * { direction: ltr; }
.story-block h2 { font-size: 34px; font-weight: 400; line-height: 1.15; margin: 8px 0 16px; }
.story-block p { font-size: 16px; line-height: 1.6; color: var(--text-73); max-width: 54ch; margin: 0 0 18px; }
.story-media {
  background: #f2efe9;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  position: relative;
}
.story-media img { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.media-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--text-60);
  margin-top: 12px;
}
.mini-btn {
  font-size: 12px;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 6px 10px;
}

/* Treasury diagram */
.treasury-diagram {
  background: var(--white);
  border-radius: 14px;
  padding: 24px;
}
.treasury-diagram .top-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-60);
  margin-bottom: 18px;
}
.treasury-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.treasury-box {
  text-align: center;
  font-size: 12px;
  color: var(--text-60);
}
.treasury-box .icon {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin: 0 auto 8px;
}
.treasury-tickers { display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.treasury-tickers img { width: 18px; height: 18px; vertical-align: middle; margin-right: 6px; border-radius: 4px; }

/* Certificate */
.certificate { padding: 70px 0; text-align: center; }
.certificate .mark { width: 40px; height: 40px; margin: 0 auto 10px; opacity: 0.8; }
.certificate .brandname { font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.certificate h2 { font-size: 30px; font-weight: 400; margin: 18px 0 12px; }
.certificate p { max-width: 44ch; margin: 0 auto 18px; color: var(--text-73); }

/* Disclaimer */
.disclaimer { padding: 0 0 50px; }
.disclaimer-box {
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 22px 26px;
}
.disclaimer-box p { margin: 8px 0 0; font-size: 14px; color: var(--text-73); }

/* CTA bar */
.cta-bar {
  display: block;
  background: var(--bg-dark);
  color: var(--white);
}
.cta-bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  font-size: 16px;
}

/* Footer */
footer { background: var(--white); padding: 60px 0 30px; }
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule);
}
.footer-brand img { width: 22px; height: 22px; margin-bottom: 10px; }
.footer-brand .name { font-size: 16px; margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--text-60); max-width: 32ch; margin: 0 0 10px; }
.footer-col h4 {
  font-size: 11px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-60);
  margin: 0 0 12px;
}
.footer-col a { display: block; font-size: 14px; padding: 5px 0; color: var(--text); }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  font-size: 12px;
  color: var(--text-60);
}

/* App shell (Float/Flow/Options/Lending/Portfolio/$HARBOR/AI pages) */
.app-topbar {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
  z-index: 40;
}
.app-topbar-inner {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand.small { display: flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; }
.brand.small img { width: 20px; height: 20px; }
.app-nav { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav-item {
  font-size: 14px;
  padding: 7px 12px;
  border-radius: 7px;
  color: var(--text-73);
  white-space: nowrap;
}
.nav-item:hover { background: rgba(17,17,17,0.05); }
.nav-item.active { background: var(--bg-dark); color: var(--white); }
.nav-harborfun { background: #f4e94a; color: var(--text); font-weight: 500; }
.app-topbar-actions { display: flex; align-items: center; gap: 10px; }
.kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-45);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 8px;
}
.icon-link { font-size: 16px; color: var(--text-60); padding: 4px; }
.app-topbar-actions .btn-black { padding: 8px 16px; font-size: 14px; }

.page-strip {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.page-strip .wrap { display: flex; gap: 16px; flex-wrap: wrap; }

.page-hero { padding: 40px 0 32px; }
.page-hero h1 { font-size: 52px; font-weight: 400; margin: 8px 0 12px; line-height: 1.05; }
.page-hero p.lede { font-size: 16px; color: var(--text-73); max-width: 50ch; margin: 0 0 12px; }

.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-60);
  font-weight: 400;
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
}
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { font-family: var(--font-mono); text-align: right; }
.pill-btn {
  font-size: 12px;
  border: 1px solid var(--text);
  border-radius: 6px;
  padding: 4px 10px;
  background: none;
}
.section-pad { padding: 40px 0; }
.note-text { font-size: 13px; color: var(--text-60); max-width: 70ch; margin: 12px 0; }
.sample-note {
  font-size: 12px;
  color: var(--text-45);
  font-style: italic;
  margin: 10px 0;
}

@media (max-width: 900px) {
  .hero-intro .grid, .hero-hedge .grid, .engines .grid, .story-block .grid, .story-block.reverse .grid {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .hero-intro h1 { font-size: 38px; }
  .hero-hedge h1 { font-size: 42px; }
}
