/* ===== Equarion — Stock Tokenization Platform Whitepaper ===== */
/* Minimal financial / compliance aesthetic: white, near-black, gold accent, clean lines */

:root {
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --ink: #111827;
  --ink-2: #4b5563;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --gold: #b8860b;
  --gold-2: #8c6d1f;
  --gold-soft: #f5efdf;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --radius: 10px;
  --radius-sm: 8px;
  --maxw: 1160px;
  --serif: "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 28px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.nav__logo {
  width: 32px; height: 32px; border-radius: 8px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
}
.nav__logo img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.nav__name { font-weight: 700; letter-spacing: 0.2em; font-size: 14px; }
.nav__links { display: flex; gap: 24px; }
.nav__link {
  color: var(--muted); text-decoration: none; font-size: 13.5px; font-weight: 500;
  letter-spacing: 0.01em; transition: color 0.2s; padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.nav__link:hover, .nav__link.active { color: var(--ink); border-bottom-color: var(--gold); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 7px; padding: 8px 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 17px; height: 2px; background: var(--ink); margin: 3px 0; border-radius: 2px; }
.nav__progress { height: 2px; background: transparent; }
.nav__progress span { display: block; height: 100%; width: 0; background: var(--gold); }

/* ===== HERO ===== */
.hero {
  position: relative; min-height: 88vh; display: flex; align-items: center;
  padding: 130px 28px 70px;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(184,134,11,0.06), transparent),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(17,24,39,0.04), transparent);
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero__visual { position: relative; display: flex; justify-content: center; }
.hero__visual svg { width: 100%; max-width: 480px; height: auto; }
.hero__logo { margin-bottom: 24px; }
.hero__logo img {
  width: 88px; height: 88px; object-fit: contain; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; padding: 14px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}
.hero__title {
  font-size: clamp(46px, 8vw, 88px); line-height: 1.0; font-weight: 800; letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero__title span { color: var(--gold); font-family: var(--serif); font-weight: 600; }
.hero__lead { font-size: clamp(20px, 2.6vw, 27px); color: var(--ink); font-weight: 600; margin-bottom: 10px; }
.hero__sub { font-size: 17px; color: var(--muted); margin-bottom: 34px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 38px; }
.hero__meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); letter-spacing: 0.03em; }
.hero__meta .dot { color: var(--gold); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 4px; font-size: 14.5px; font-weight: 600;
  text-decoration: none; transition: 0.22s; letter-spacing: 0.01em;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--gold-2); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ===== SECTIONS ===== */
.section { padding: 92px 28px; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.container { max-width: var(--maxw); margin: 0 auto; }
.chapter { font-size: 11px; letter-spacing: 0.26em; color: var(--gold-2); text-transform: uppercase; margin-bottom: 14px; font-weight: 700; }
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; line-height: 1.12; }
.section__title span { color: var(--gold); }
.section__lead { font-size: 16.5px; color: var(--ink-2); max-width: 820px; margin-bottom: 40px; }
.section__tagline {
  margin-top: 34px; font-size: 15.5px; color: var(--ink); font-weight: 600;
  border-left: 3px solid var(--gold); padding-left: 16px; background: var(--gold-soft);
  border-radius: 0 6px 6px 0; padding-top: 8px; padding-bottom: 8px;
}
.block__title { font-size: 20px; font-weight: 700; margin: 46px 0 18px; letter-spacing: -0.01em; }
.block__sub { color: var(--muted); margin-bottom: 18px; max-width: 820px; font-size: 14.5px; }
.note { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: 14px; }

/* ===== GRID & CARDS ===== */
.grid { display: grid; gap: 16px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: 0.25s;
}
.card:hover { border-color: var(--gold); box-shadow: 0 12px 28px rgba(17,24,39,0.06); transform: translateY(-3px); }
.card__tag { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 0.06em; display: block; margin-bottom: 12px; }
.card h3 { font-size: 16.5px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14px; }
.card--shift { background: transparent; border-color: var(--line); }
.card--shift:hover { transform: none; box-shadow: none; }

/* ===== STATS ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 24px 0 30px; }
.stat { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 26px 24px; }
.stat__num { display: block; font-size: clamp(28px, 4.4vw, 44px); font-weight: 800; color: var(--ink); margin-bottom: 8px; letter-spacing: -0.02em; }
.stat__label { color: var(--muted); font-size: 14px; }

/* ===== PAIN ===== */
.pain { display: grid; gap: 13px; }
.pain__item { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.pain__n { font-size: 20px; font-weight: 800; color: var(--gold); min-width: 38px; font-family: var(--serif); }
.pain__item h4 { font-size: 16px; margin-bottom: 4px; }
.pain__item p { color: var(--muted); font-size: 14.5px; }

/* ===== OVERVIEW / PIPELINE ===== */
.overview { margin: 8px 0 6px; }
.overview__pipeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.ov-step { text-align: center; padding: 18px 14px; position: relative; }
.ov-step::after { content: "→"; position: absolute; right: -10px; top: 24px; color: var(--gold); font-size: 18px; z-index: 1; }
.ov-step:last-child::after { display: none; }
.ov-step span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold);
  display: grid; place-items: center; margin: 0 auto 12px; font-weight: 700; color: var(--gold-2);
}
.ov-step h4 { font-size: 14px; margin-bottom: 6px; }
.ov-step p { color: var(--muted); font-size: 12.5px; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0 10px; }
.mv__card { border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 26px; border-radius: var(--radius-sm); }
.mv__card span { font-size: 11px; letter-spacing: 0.26em; color: var(--gold-2); font-weight: 700; }
.mv__card h3 { font-size: 19px; font-weight: 600; margin-top: 12px; line-height: 1.4; font-family: var(--serif); }

/* ===== LAYERS ===== */
.layers { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.layer { padding: 18px 24px; border-bottom: 1px solid var(--line); background: #fff; display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1.3fr); align-items: center; gap: 18px; }
.layer:last-child { border-bottom: none; }
.layer--base { background: var(--gold-soft); }
.layer__head { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "title role"; column-gap: 14px; align-items: baseline; min-width: 0; }
.layer__head h4 { grid-area: title; }
.layer__head .layer__role { grid-area: role; text-align: right; }
.layer .layer__lvl { font-size: 12px; color: var(--gold); font-weight: 700; font-family: var(--serif); }
.layer__lvl { font-size: 12px; color: var(--gold); font-weight: 700; font-family: var(--serif); }
.layer h4 { font-size: 17px; }
.layer__role { color: var(--muted); font-size: 13.5px; }
.layer p { color: var(--muted); font-size: 14px; }

/* ===== FLOW / RESERVE ===== */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.flow__step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.flow__n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 12px; }
.flow__step h4 { font-size: 15px; margin-bottom: 6px; }
.flow__step p { color: var(--muted); font-size: 13.5px; }
.reserve { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
.reserve__item { background: var(--gold-soft); border: 1px solid #eadfc5; border-radius: var(--radius); padding: 22px; }
.reserve__item h4 { font-size: 16px; color: var(--gold-2); margin-bottom: 8px; }
.reserve__item p { color: var(--ink-2); font-size: 14px; }

/* ===== CONTRACTS ===== */
.contracts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contract { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.contract code { font-family: "SF Mono", Consolas, monospace; font-size: 14.5px; color: var(--ink); font-weight: 700; }
.contract__std { display: block; font-size: 11px; color: var(--gold); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 6px 0 10px; }
.contract p { color: var(--muted); font-size: 14px; }

/* ===== INTEROP ===== */
.interop { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.interop__item { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); padding: 22px; }
.interop__item h4 { font-size: 15.5px; margin-bottom: 8px; }
.interop__item p { color: var(--muted); font-size: 14px; }

/* ===== DEFI ===== */
.defi { display: grid; gap: 13px; }
.defi__item { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 22px; }
.defi__item > span { font-size: 18px; color: var(--gold); }
.defi__item h4 { font-size: 16px; margin-bottom: 5px; }
.defi__item p { color: var(--muted); font-size: 14px; }

/* ===== TABLE ===== */
.table-wrap { overflow-x: auto; margin: 8px 0 6px; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 560px; }
.table th { text-align: left; padding: 13px 18px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-2); background: var(--gold-soft); }
.table td { padding: 13px 18px; font-size: 14.5px; color: var(--ink-2); border-top: 1px solid var(--line); }
.table td:first-child { color: var(--ink); font-weight: 600; }

/* ===== TOKEN UTILITIES ===== */
.util-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 8px; }
.util { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.util h4 { font-size: 15px; margin-bottom: 6px; }
.util p { color: var(--muted); font-size: 13px; }

/* ===== ALLOCATION ===== */
.alloc { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: center; }
.alloc__chart { position: relative; max-width: 300px; margin: 0 auto; }
.alloc__chart svg { width: 100%; height: auto; }
.alloc__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.alloc__center strong { font-size: 28px; font-weight: 800; }
.alloc__center span { color: var(--muted); font-size: 13px; }
.alloc__legend { list-style: none; display: grid; gap: 12px; }
.alloc__legend li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.alloc__legend .sw { width: 14px; height: 14px; border-radius: 3px; margin-top: 5px; }
.alloc__legend strong { color: var(--ink); }
.alloc__legend small { display: block; color: var(--muted-2); font-size: 12.5px; margin-top: -4px; }
.slice { transition: opacity 0.4s; opacity: 0.25; }
.slice.on { opacity: 1; }

/* ===== VEST ===== */
.vest { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.vest__item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 18px; }
.vest__item h4 { font-size: 15px; margin-bottom: 6px; }
.vest__item p { color: var(--muted); font-size: 13.5px; }

/* ===== LIFE / PARTNERS ===== */
.life { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.life__step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.life__step span { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 0.05em; }
.life__step h4 { font-size: 16px; margin: 6px 0 6px; }
.life__step p { color: var(--muted); font-size: 13.5px; }
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.partners > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.partners h4 { font-size: 14.5px; color: var(--gold-2); margin-bottom: 6px; }
.partners p { color: var(--muted); font-size: 13px; }

/* ===== ROADMAP ===== */
.roadmap { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rm { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 20px; }
.rm--done { border-top-color: var(--ink); background: var(--gold-soft); }
.rm__tag { font-size: 11px; letter-spacing: 0.16em; color: var(--gold-2); font-weight: 700; display: block; }
.rm--done .rm__tag { color: var(--ink); }
.rm__date { font-size: 12.5px; color: var(--muted-2); display: block; margin: 2px 0 8px; }
.rm h4 { font-size: 16px; margin-bottom: 10px; }
.rm ul { list-style: none; }
.rm li { color: var(--muted); font-size: 13px; padding-left: 14px; position: relative; margin-bottom: 6px; }
.rm li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.rm--done li::before { background: var(--ink); }

/* ===== TEAM ===== */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team__card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.team__role { font-size: 11px; letter-spacing: 0.1em; color: var(--gold); text-transform: uppercase; font-weight: 700; }
.team__card h4 { font-size: 18px; margin: 8px 0 8px; }
.team__card p { color: var(--muted); font-size: 14px; }
.eng { margin-top: 20px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 22px; }
.eng h4 { font-size: 16px; }
.eng h4 span { color: var(--muted); font-weight: 500; }
.eng p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.advisors { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.advisors > div { background: var(--gold-soft); border: 1px solid #eadfc5; border-radius: var(--radius-sm); padding: 18px; }
.advisors h4 { font-size: 15px; color: var(--gold-2); margin-bottom: 6px; }
.advisors p { color: var(--ink-2); font-size: 13.5px; }

/* ===== RISK / DISCLAIMER ===== */
.risk { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.risk__item { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: 20px; }
.risk__item h4 { font-size: 16px; margin-bottom: 8px; }
.risk__item p { color: var(--muted); font-size: 14px; }
.disclaimer { margin-top: 22px; padding: 18px 22px; border-radius: var(--radius-sm); border: 1px solid var(--line); color: var(--muted-2); font-size: 13.5px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--line); padding: 50px 28px; background: var(--bg-2); }
.footer__inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.footer__brand { font-weight: 700; letter-spacing: 0.2em; font-size: 16px; }
.footer__tag { color: var(--muted); margin-top: 10px; font-size: 15px; font-family: var(--serif); font-style: italic; }
.footer__meta { color: var(--muted-2); font-size: 12.5px; margin-top: 8px; }

/* ===== REVEAL ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid--5, .util-grid { grid-template-columns: repeat(2, 1fr); }
  .grid--4, .team { grid-template-columns: repeat(2, 1fr); }
  .flow, .life, .roadmap { grid-template-columns: repeat(2, 1fr); }
  .reserve, .mv, .alloc { grid-template-columns: 1fr; }
  .contracts, .interop, .vest, .partners { grid-template-columns: repeat(2, 1fr); }
  .overview__pipeline { grid-template-columns: repeat(3, 1fr); }
  .ov-step::after { display: none; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .risk { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 60px 20px; }
  .grid--4, .grid--5, .util-grid, .team, .flow, .life, .roadmap,
  .contracts, .interop, .vest, .partners, .stats, .risk, .reserve, .mv,
  .overview__pipeline { grid-template-columns: 1fr; }
  .layer { grid-template-columns: 1fr; gap: 6px; }
  .layer__head { flex-wrap: wrap; }
  .nav__links {
    position: fixed; top: 62px; right: 0; flex-direction: column; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line);
    width: 100%; max-width: 280px; padding: 10px 0; transform: translateX(100%); transition: transform 0.3s;
    box-shadow: -10px 10px 30px rgba(0,0,0,0.08);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__link { padding: 13px 24px; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: block; }
  .hero { padding: 110px 20px 60px; }
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__visual { order: 2; }
  .alloc__chart { max-width: 240px; }
  .advisors { grid-template-columns: 1fr; }
}
