:root {
    --bg: #F6F1E4;
    --surface: #FBF8EF;
    --text: #1F2937;
    --text-secondary: #6B6353;
    --text-tertiary: #A69C87;
    --border: #E3DAC5;
    --accent: #1F2937;
    --accent-soft: #E3DAC5;
    --accent-contrast: #F6F1E4;
    --positive: #3D7A4D;
    --negative: #A6483A;
    --meet: #B8860B;
    --token-1: #3D7A4D;
    --token-2: #B8860B;
    --token-3: #A6483A;
    --token-4: #6B6353;
    --token-5: #E3DAC5;
    --deco-gold: #B8860B;
    --deco-blue: #5C7B8A;
    --deco-coral: #A6483A;
    --deco-gray: #A69C87;
    --footer-bg: #1F2937;
    --footer-text: #F6F1E4;
    --footer-text-secondary: #9CA3AF;
  }
  * { box-sizing: border-box; }
  html, body {
    margin: 0; padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
    font-variant-numeric: tabular-nums;
  }
  button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
  input:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  a { text-decoration: none; }

  /* Nav */
  .nav { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--bg); z-index: 10; }
  .nav-inner { max-width: 960px; margin: 0 auto; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; }
  .wordmark { font-size: 16px; font-weight: 700; letter-spacing: 0.04em; display: inline-flex; align-items: center; }
  .wordmark-text-stack { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
  .wordmark-ticker { font-size: 10px; font-weight: 600; letter-spacing: 0.03em; color: var(--accent); }
  .wordmark-icon { width: 22px; height: 22px; margin-right: 8px; flex-shrink: 0; }
  .wordmark-icon circle { fill: none; stroke: var(--accent); stroke-width: 6; }
  .wordmark-icon path { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
  .footer-wordmark-icon { width: 26px; height: 26px; margin-right: 9px; flex-shrink: 0; }
  .footer-wordmark-icon circle { fill: none; stroke: var(--meet); stroke-width: 6; }
  .footer-wordmark-icon path { fill: none; stroke: var(--meet); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
  .nav-links { display: none; gap: 28px; }
  .nav-link { font-size: 14px; color: var(--text-secondary); padding: 4px 0; }
  .nav-link:hover { color: var(--text); }
  .nav-link.active { color: var(--text); }
  .nav-right { display: none; align-items: center; gap: 8px; }
  .chain-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 11px; font-weight: 600; color: var(--text-secondary); background: var(--surface); }
  .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
  .menu-toggle span { width: 18px; height: 1.5px; background: var(--text); display: block; }
  .mobile-menu { border-top: 1px solid var(--border); padding: 16px 24px 24px; display: none; flex-direction: column; gap: 16px; }
  .mobile-menu.open { display: flex; }
  .mobile-cta { margin-top: 8px; width: 100%; }

  @media (min-width: 720px) {
    .nav-links { display: flex; }
    .nav-right { display: flex; }
    .menu-toggle { display: none; }
    .mobile-menu { display: none !important; }
  }

  /* Buttons */
  .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 14px; font-size: 14px; font-weight: 700; padding: 13px 22px; transition: transform 0.15s cubic-bezier(0.34,1.56,0.64,1), background 0.15s ease, opacity 0.15s ease; }
  .btn-primary { background: var(--accent); color: var(--accent-contrast); }
  .btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
  .btn-small { padding: 10px 16px; font-size: 13px; border-radius: 11px; }
  .btn-full { width: 100%; margin-top: 4px; }

  /* Layout */
  .main { max-width: 960px; margin: 0 auto; width: 100%; padding: 0 24px; }
  .page { padding: 56px 0 80px; }
  .page-title { font-size: 15px; color: var(--text-secondary); font-weight: 500; margin: 0 0 28px; }
  .view { display: none; }
  .view.active { display: block; }

  /* Chain status bar */
  .ca-status-bar { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 74px; z-index: 9; }
  .chain-status-inner {
    max-width: 1100px; margin: 0 auto; padding: 8px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    font-size: 11px; color: var(--text-tertiary); flex-wrap: wrap;
  }
  .chain-status-left, .chain-status-right { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
  .chain-status-right { color: var(--text-secondary); }
  .chain-status-block { font-family: 'Sora', monospace; font-variant-numeric: tabular-nums; color: var(--text); }
  .ca-status-label { font-weight: 700; color: var(--text); letter-spacing: 0.04em; }

  /* Social icon */
  .icon-link {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 10px; color: var(--text-secondary);
  }
  .icon-link:hover { color: var(--text); background: var(--accent-soft); }
  .icon-link svg { width: 15px; height: 15px; }

  /* Hero */
  .hero { padding: 120px 0 96px; text-align: center; display: flex; flex-direction: column; align-items: center; position: relative; }
  .hero::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 560px;
    height: 420px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(110, 112, 72, 0.12), transparent 70%);
    pointer-events: none;
    z-index: 0;
  }
  .hero > * { position: relative; z-index: 1; }
  .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
  .main { position: relative; z-index: 1; }
  .footer { position: relative; z-index: 1; }
  .page-bg-fixed { position: absolute; top: 0; left: 0; right: 0; height: 320px; z-index: 0; overflow: hidden; pointer-events: none; }
  .page-bg-fixed svg { width: 100%; height: 100%; }
  .hero-bg-curves {
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 88%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 88%, transparent);
  }
  .hero-bg-curves path {
    stroke-linecap: round;
    stroke-dasharray: 7 11;
    animation: heroFlow linear infinite;
  }
  .hero-bg-curves path:nth-child(1) { animation-duration: 13s; }
  .hero-bg-curves path:nth-child(2) { animation-duration: 10s; }
  .hero-bg-curves path:nth-child(3) { animation-duration: 15s; }
  .hero-bg-curves path:nth-child(4) { animation-duration: 8.5s; }
  .hero-bg-curves path:nth-child(5) { animation-duration: 12s; }
  .hero-bg-curves path:nth-child(6) { animation-duration: 17s; }
  @keyframes heroFlow { to { stroke-dashoffset: -360; } }

  .hero-bg-curves rect, .hero-bg-curves circle, .hero-bg-curves line {
    transform-box: fill-box;
    transform-origin: center;
    animation: heroFloat 4.5s ease-in-out infinite;
  }
  .hero-bg-curves rect:nth-child(3n), .hero-bg-curves circle:nth-child(3n), .hero-bg-curves line:nth-child(3n) { animation-delay: 0s; animation-duration: 4.5s; }
  .hero-bg-curves rect:nth-child(3n+1), .hero-bg-curves circle:nth-child(3n+1), .hero-bg-curves line:nth-child(3n+1) { animation-delay: -1.5s; animation-duration: 5.2s; }
  .hero-bg-curves rect:nth-child(3n+2), .hero-bg-curves circle:nth-child(3n+2), .hero-bg-curves line:nth-child(3n+2) { animation-delay: -3s; animation-duration: 3.8s; }
  @keyframes heroFloat {
    0%, 100% { transform: translateY(0) scaleY(1); }
    50% { transform: translateY(-6px) scaleY(1.1); }
  }
  .hero-word { font-size: 13px; letter-spacing: 0.14em; color: var(--text-secondary); margin: 0 0 28px; display: inline-flex; align-items: center; gap: 8px; }
  .hero-tagline { font-size: clamp(30px, 6vw, 48px); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 18px; line-height: 1.15; }
  .hero-tagline-soft { display: block; color: var(--text-secondary); font-weight: 500; font-size: 0.5em; margin-bottom: 10px; letter-spacing: 0; }
  .hero-tagline-strong { display: block; color: var(--text); }
  .kw { display: inline-block; opacity: 0; animation: kwIn 0.55s cubic-bezier(0.22,1,0.36,1) forwards; }
  .kw-meet { color: var(--meet); animation-delay: 0.05s; }
  .kw-beat { color: var(--positive); animation-delay: 0.25s; }
  .kw-miss { color: var(--negative); animation-delay: 0.45s; }
  @keyframes kwIn {
    from { opacity: 0; transform: translateY(14px) scale(0.94); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  .hero-subtext { font-size: 17px; color: var(--text-secondary); margin: 0 0 40px; max-width: 420px; }

  /* Explainer (homepage) */
  .explainer-section { padding-bottom: 88px; text-align: center; }
  .explainer-headline { font-size: 24px; font-weight: 700; margin: 0 0 14px; }
  .explainer-copy { font-size: 15px; color: var(--text-secondary); max-width: 480px; margin: 0 auto 32px; line-height: 1.6; }
  .explainer-card {
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 32px;
    max-width: 480px;
    margin: 0 auto;
    background: var(--surface);
    text-align: left;
    box-shadow: 0 1px 2px rgba(27, 26, 23, 0.03), 0 10px 30px rgba(27, 26, 23, 0.05);
  }
  .explainer-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
  .explainer-meta { font-size: 13px; color: var(--text-secondary); margin: 0 0 4px; }
  .explainer-big-question { font-size: 18px; font-weight: 800; margin: 0 0 18px; letter-spacing: -0.01em; }
  .explainer-note { font-size: 12px; color: var(--text-tertiary); margin: 16px 0 0; }
  .real-markets-grid { display: flex; justify-content: center; gap: 20px; margin: 24px 0 20px; flex-wrap: wrap; }
  .real-market-card { text-align: left; width: 190px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); cursor: pointer; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
  .real-market-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 20px -12px rgba(31,41,55,0.25); }
  .real-market-card:nth-child(1) { margin-top: 0; }
  .real-market-card:nth-child(2) { margin-top: 26px; }
  .real-market-card:nth-child(3) { margin-top: 52px; }
  @media (max-width: 720px) { .real-market-card:nth-child(2), .real-market-card:nth-child(3) { margin-top: 0; } }
  .real-market-symbol { font-size: 14px; font-weight: 700; margin: 0; }
  .real-market-name { font-size: 11px; color: var(--text-tertiary); margin: 1px 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .real-market-eps { font-size: 11px; color: var(--text-secondary); margin: 0 0 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
  .real-market-outcomes { display: flex; flex-direction: column; gap: 5px; }
  .real-market-outcome-row { display: flex; align-items: center; justify-content: space-between; font-size: 11.5px; }
  .real-market-outcome-price { font-weight: 700; font-variant-numeric: tabular-nums; }
  .explainer-cta { margin-top: 28px; }

  /* Live pulse dot */
  .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; margin-right: 6px; position: relative; }
  .live-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid var(--accent);
    opacity: 0.6;
    animation: pulse 2.2s ease-out infinite;
  }
  @keyframes pulse { 0% { transform: scale(0.6); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }

  /* Outcome rows */
  .outcome-list { display: flex; flex-direction: column; gap: 8px; }
  .outcome-list-detail { max-width: 560px; margin-bottom: 8px; }
  .outcome-row { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border: 1px solid var(--border); border-radius: 10px; text-align: left; transition: border-color 0.15s ease, background 0.15s ease; }
  .outcome-row:hover { border-color: var(--text-tertiary); }
  .outcome-row.selected { border-color: var(--accent); background: var(--accent-soft); }
  .outcome-row-left { display: flex; flex-direction: column; gap: 2px; }
  .outcome-name { font-size: 14px; font-weight: 500; }
  .outcome-detail { font-size: 12px; color: var(--text-secondary); }
  .outcome-pricing { font-size: 11px; color: var(--text-tertiary); }
  .outcome-price { font-size: 17px; font-weight: 800; }

  /* How it works */
  .how-section { padding: 32px 0 96px; border-top: 1px solid var(--border); margin-top: 8px; }
  .how-headline { font-size: 26px; font-weight: 700; margin: 48px 0 16px; }
  .how-copy { font-size: 15px; color: var(--text-secondary); max-width: 520px; line-height: 1.6; margin: 0 0 48px; }
  .how-copy-tight { margin: 0 0 24px; }
  .how-subhead { font-size: 17px; font-weight: 600; margin: 56px 0 16px; }
  .payout-chart-svg { width: 100%; max-width: 640px; height: auto; display: block; }
  .payout-chart-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); margin: 12px 0 0; }
  .payout-chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .worked-example { border-top: 1px solid var(--border); padding-top: 4px; }
  .worked-example-row { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 620px; padding: 16px 0; border-bottom: 1px solid var(--border); }
  .worked-example-row strong { color: var(--text); font-weight: 600; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .step-number { font-size: 12px; color: var(--text-tertiary); display: block; margin-bottom: 8px; }
  .step-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
  .step-copy { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
  @media (max-width: 640px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

  /* Markets page */
  .filter-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
  .filter-chip { font-size: 13px; padding: 7px 14px; border: 1px solid var(--border); border-radius: 20px; color: var(--text-secondary); transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease; }
  .filter-chip:hover { border-color: var(--text-tertiary); }
  .filter-chip.active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

  .markets-toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
  .market-search-wrap { flex: 1; min-width: 180px; }
  .market-search {
    width: 100%; border: 1px solid var(--border); border-radius: 14px; padding: 10px 14px;
    font-size: 14px; font-family: inherit; color: var(--text); background: var(--surface);
  }
  .market-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
  .market-search::placeholder { color: var(--text-tertiary); }
  .market-sort {
    border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px;
    font-size: 13px; font-family: inherit; color: var(--text-secondary); background: var(--surface);
  }
  .market-count { font-size: 12px; color: var(--text-tertiary); margin: 0 0 8px; }

  /* News search page */
  .news-search-bar { display: flex; gap: 10px; margin: 24px 0 16px; flex-wrap: wrap; }
  .news-search-bar .market-search { flex: 1; min-width: 220px; }
  .news-search-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
  .news-search-results { padding-left: 0; list-style: none; max-width: 640px; }
  .news-search-results li { padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 0; }
  .news-search-results li:first-child { border-top: 1px solid var(--border); }

  .market-list { border-top: 1px solid var(--border); }
  .market-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--border); text-align: left; transition: background 0.15s ease, transform 0.15s ease; }
  .market-row:hover { background: var(--accent-soft); transform: translateX(2px); }
  .market-row-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
  .market-row-meta { font-size: 12px; color: var(--text-secondary); margin: 0 0 3px; }
  .market-row-sub { font-size: 11px; color: var(--text-tertiary); margin: 0; }
  .market-row-prices { font-size: 13px; color: var(--text-secondary); white-space: nowrap; }
  .show-more-btn {
    display: block; width: 100%; text-align: center; padding: 16px 4px;
    font-size: 13px; font-weight: 600; color: var(--accent-contrast);
    background: var(--accent-soft); border-radius: 14px; margin-top: 16px;
    transition: background 0.15s ease;
  }
  .show-more-btn:hover { background: var(--accent); color: var(--accent-contrast); }
  @media (max-width: 560px) { .market-row { flex-direction: column; align-items: flex-start; gap: 6px; } }

  /* Market detail */
  .back-link { font-size: 13px; color: var(--text-secondary); margin-bottom: 32px; display: inline-block; }
  .back-link:hover { color: var(--text); }
  .detail-header { margin-bottom: 28px; }
  .detail-title { font-size: 24px; font-weight: 700; margin: 0 0 6px; }
  .detail-meta { font-size: 13px; color: var(--text-secondary); margin: 0; }
  .detail-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-bottom: 40px; }
  .detail-stat-label { font-size: 12px; color: var(--text-secondary); margin: 0 0 6px; }
  .detail-stat-value { font-size: 20px; font-weight: 800; margin: 0; }
  .detail-question { font-size: 15px; margin: 0 0 20px; color: var(--text-secondary); }
  .detail-big-question { font-size: 22px; font-weight: 800; margin: 0 0 10px; letter-spacing: -0.01em; }
  .detail-subhead { font-size: 15px; font-weight: 600; margin: 28px 0 14px; }

  /* Market detail page — condensed so the whole trading view fits with much
     less scrolling. Scoped to .market-detail so tokenomics (which reuses
     .detail-stats) is untouched. */
  .market-detail { padding-top: 28px; }
  .market-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
  .market-detail-side {
    position: sticky; top: 78px;
    border: 1px solid var(--border); border-radius: 14px; padding: 16px;
    background: var(--surface); max-height: calc(100vh - 96px); overflow-y: auto;
  }
  .market-detail-side .detail-subhead { margin-top: 0; }
  @media (max-width: 860px) {
    .market-detail-layout { grid-template-columns: 1fr; }
    .market-detail-side { position: static; max-height: none; order: -1; margin-bottom: 20px; }
  }
  .market-detail .detail-title { font-size: 19px; margin: 0 0 3px; }
  .market-detail .detail-meta { font-size: 12px; }
  .market-detail .detail-stats { gap: 12px 20px; padding: 14px 0; margin-bottom: 18px; }
  .market-detail .detail-stat-label { font-size: 11px; margin: 0 0 3px; }
  .market-detail .detail-stat-value { font-size: 15px; }
  .market-detail .detail-subhead { font-size: 13px; margin: 16px 0 8px; }
  .market-detail .decay-viz { margin-bottom: 4px; }
  .market-detail .decay-labels { margin-bottom: 4px; }
  .market-detail .decay-label-title { font-size: 11px; }
  .market-detail .decay-label-value { font-size: 14px; }
  .market-detail .decay-svg { height: 64px; }
  .market-detail .decay-endpoints { font-size: 10px; padding: 0 20px; }
  .market-detail .decay-zone-labels { font-size: 9px; padding: 0 20px; margin-top: 3px; }
  .market-detail .position-bar { margin-bottom: 6px; }
  .market-detail .position-bar-legend { font-size: 11px; gap: 14px; margin-bottom: 4px; }
  .market-detail .detail-big-question { font-size: 15px; margin: 0 0 4px; }
  .market-detail .detail-question { font-size: 12px; margin: 0 0 10px; }
  .market-detail .outcome-row { padding: 8px 12px; }
  .market-detail .outcome-name { font-size: 13px; }
  .market-detail .outcome-detail { font-size: 11px; }
  .market-detail .outcome-pricing { font-size: 10px; }
  .market-detail .outcome-price { font-size: 15px; }
  .market-detail .order-panel { padding: 16px; margin-top: 16px; }
  .market-detail .order-panel-title { font-size: 13px; margin: 0 0 12px; }
  .market-detail .order-row { padding: 5px 0; font-size: 12px; }
  .market-detail .order-field { margin-bottom: 12px; }

  /* Company profile */
  .company-profile { margin: 20px 0 32px; padding: 20px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .news-company-card { border: 1px solid var(--border); border-radius: 14px; padding: 20px; max-width: 480px; margin-bottom: 24px; background: var(--surface); }
  .news-company-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
  .news-company-card .company-name { margin: 0 0 6px; }
  .news-company-card .company-description { margin: 0 0 14px; }
  .company-profile-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 8px; }
  .company-badge { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-contrast); background: var(--accent-soft); padding: 4px 10px; border-radius: 20px; font-weight: 700; }
  .company-marketcap { font-size: 12px; color: var(--text-tertiary); }
  .company-name { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
  .company-description { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; max-width: 560px; }

  /* Sentiment */
  .sentiment-bar { display: flex; height: 8px; border-radius: 10px; overflow: hidden; margin-bottom: 12px; }
  .sentiment-segment { transform-origin: left; animation: growIn 0.6s cubic-bezier(0.22,1,0.36,1); }
  @keyframes growIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  .sentiment-segment.sentiment-buy { background: var(--accent); }
  .sentiment-segment.sentiment-hold { background: var(--token-4); }
  .sentiment-segment.sentiment-sell { background: var(--negative); }
  .sentiment-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); margin-bottom: 20px; }
  .sentiment-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .sentiment-swatch-buy { background: var(--accent); }
  .sentiment-swatch-hold { background: var(--token-4); }
  .sentiment-swatch-sell { background: var(--negative); }
  .headline-list { margin: 0 0 16px; padding-left: 18px; }
  .headline-list li { font-size: 13px; color: var(--text-secondary); margin-bottom: 10px; line-height: 1.5; }
  .headline-list a { color: var(--text); font-weight: 600; text-decoration: none; }
  .headline-list a:hover { text-decoration: underline; color: var(--accent-contrast); }
  .headline-list .news-snippet { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 3px; line-height: 1.4; font-weight: 400; }
  .headline-list .news-source { display: block; font-size: 11px; color: var(--text-tertiary); font-weight: 400; margin-top: 2px; }
  .headline-list .news-loading { color: var(--text-tertiary); font-style: italic; }
  .headline-list .news-error { color: var(--text-tertiary); }
  .news-hint { display: block; margin-top: 6px; font-size: 11px; color: var(--negative); }
  .headline-list .news-error a { color: var(--accent-contrast); font-weight: 600; }
  .news-source-note { font-size: 11px; color: var(--text-tertiary); margin: -4px 0 14px; }
  .catalyst-line { font-size: 13px; color: var(--text-secondary); margin: 0 0 8px; line-height: 1.5; }
  .catalyst-line strong { color: var(--text); }
  .illustrative-note { font-size: 11px; color: var(--text-tertiary); margin: 16px 0 0; }
  .news-category-label { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); font-weight: 700; margin: 20px 0 10px; }
  .news-category-label:first-of-type { margin-top: 0; }

  /* Positioning bar */
  .position-bar { display: flex; height: 10px; border-radius: 10px; overflow: hidden; margin-bottom: 14px; }
  .position-bar-segment { transform-origin: left; animation: growIn 0.6s cubic-bezier(0.22,1,0.36,1); }
  .segment-slower { background: var(--negative); }
  .segment-expected { background: var(--meet); }
  .segment-faster { background: var(--positive); }
  .position-bar-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 12px; color: var(--text-secondary); margin-bottom: 8px; }
  .position-bar-legend span { display: inline-flex; align-items: center; gap: 6px; }
  .legend-swatch { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
  .swatch-slower { background: var(--negative); }
  .swatch-expected { background: var(--meet); }
  .swatch-faster { background: var(--positive); }

  /* Recent settlements */
  .settlement-table { border-top: 1px solid var(--border); }
  .settlement-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 12px;
    padding: 12px 4px; border-bottom: 1px solid var(--border);
    font-size: 13px; color: var(--text-secondary);
  }
  .settlement-head { font-size: 11px; color: var(--text-tertiary); }
  .settlement-result { font-weight: 600; text-transform: none; }
  .result-faster { color: var(--positive); }
  .result-slower { color: var(--negative); }
  .result-expected { color: var(--meet); }
  @media (max-width: 560px) { .settlement-row { grid-template-columns: 1fr 1fr; row-gap: 4px; } }

  /* Decay visualization */
  .decay-viz { margin-bottom: 8px; }
  .decay-labels { display: flex; justify-content: space-between; margin-bottom: 12px; }
  .decay-label-right { text-align: right; }
  .decay-label-title { font-size: 12px; color: var(--text-secondary); margin: 0 0 4px; }
  .decay-label-value { font-size: 18px; font-weight: 600; margin: 0; }
  .decay-svg { width: 100%; height: auto; touch-action: none; cursor: ew-resize; display: block; }
  .decay-axis { stroke: var(--border); stroke-width: 1; }
  .decay-curve { stroke: var(--accent); stroke-width: 1.6; }
  .decay-guide { stroke: var(--text-tertiary); stroke-width: 1; stroke-dasharray: 2 3; }
  .decay-handle { fill: var(--accent); stroke: var(--bg); stroke-width: 3; }
  .decay-svg circle.handle-release { transform-box: fill-box; transform-origin: center; animation: handleBounce 0.35s ease-out; }
  @keyframes handleBounce { 0% { transform: scale(1); } 45% { transform: scale(1.5); } 100% { transform: scale(1); } }
  .decay-endpoints { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-tertiary); padding: 0 24px; margin-top: 2px; }
  .decay-zone-labels { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; padding: 0 24px; margin-top: 6px; }
  .zone-label-miss { color: var(--negative); }
  .zone-label-meet { color: var(--meet); }
  .zone-label-beat { color: var(--positive); text-align: right; }

  /* Order panel */
  .order-panel { border: 1px solid var(--border); border-radius: 14px; padding: 24px; max-width: 360px; margin-top: 24px; display: none; }
  .order-feedback { font-size: 12px; margin: 12px 0 0; line-height: 1.5; }
  .order-feedback:empty { display: none; }
  .order-feedback-error { color: var(--negative); }
  .order-feedback-pending { color: var(--text-secondary); }
  .order-feedback-success { color: var(--accent-contrast); font-weight: 600; animation: successPulse 0.4s ease-out; }
  @keyframes successPulse { 0% { transform: scale(1); } 40% { transform: scale(1.05); } 100% { transform: scale(1); } }
  .order-feedback-link { color: inherit; font-weight: 700; text-decoration: underline; padding: 0; }
  .order-eth-btn { margin-top: 8px; }
  .order-eth-note { font-size: 11px; color: var(--text-tertiary); line-height: 1.5; margin: 6px 0 0; }
  .order-panel.open { display: block; }
  .order-panel-title { font-size: 14px; font-weight: 600; margin: 0 0 20px; }
  .order-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
  .order-field span { font-size: 12px; color: var(--text-secondary); }
  .order-input-wrap { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; }
  .order-input-prefix { color: var(--text-secondary); font-size: 15px; margin-right: 2px; }
  .order-input { border: none; background: none; font-size: 15px; padding: 10px 0; width: 100%; color: var(--text); font-family: inherit; }
  .order-input:focus { outline: none; }
  .order-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); padding: 8px 0; }
  .order-row:not(:last-of-type) { border-bottom: 1px solid var(--border); }
  .order-disclaimer { font-size: 11px; color: var(--text-tertiary); text-align: center; margin: 12px 0 0; }

  /* Positions */
  .metrics-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
  .metric-label { font-size: 12px; color: var(--text-secondary); margin: 0 0 8px; }
  .metric-value { font-size: 24px; font-weight: 800; margin: 0; }
  .position-list { margin-top: 16px; }
  .position-row { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--border); text-align: left; font-size: 14px; transition: background 0.15s ease; }
  .position-row:hover { background: var(--accent-soft); }

  .positions-empty {
    text-align: center; padding: 56px 24px; border: 1px dashed var(--border); border-radius: 18px; margin-top: 8px;
  }
  .positions-empty-title { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
  .positions-empty-copy { font-size: 13px; color: var(--text-secondary); margin: 0 0 20px; }
  .positions-info-head { margin-top: 64px; text-align: center; }
  .positions-info-steps { margin-top: 4px; }

  .wallet-connect {
    max-width: 380px; margin: 60px auto; text-align: center;
    border: 1px solid var(--border); border-radius: 18px; padding: 40px 32px;
  }
  .wallet-connect-title { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
  .wallet-connect-copy { font-size: 14px; color: var(--text-secondary); margin: 0 0 24px; line-height: 1.5; }
  .wallet-options { display: flex; flex-direction: column; gap: 10px; }
  .btn-wallet {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px;
    font-size: 14px; font-weight: 500; color: var(--text); background: var(--surface);
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  .btn-wallet:hover { border-color: var(--accent); background: var(--accent-soft); }
  .wallet-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .wallet-dot-phantom { background: #AB9FF2; }
  .wallet-dot-metamask { background: #F6851B; }
  .wallet-dot-rabby { background: #7084FF; }
  .wallet-dot-rainbow { background: linear-gradient(135deg, #FF9900, #FF5C00, #D33898, #7E5CEF); }
  .wallet-dot-coinbase { background: #0052FF; }
  .wallet-fineprint { font-size: 11px; color: var(--text-tertiary); margin: 18px 0 0; line-height: 1.5; }
  .deposit-card { max-width: 420px; }
  .onchain-balance {
    display: flex; align-items: center; gap: 14px;
    border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
    margin: 16px 0; background: var(--bg); text-align: left;
  }
  .onchain-balance-icon { flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 10px; }
  .onchain-balance-label { font-size: 11px; color: var(--text-tertiary); margin: 0 0 4px; text-transform: uppercase; letter-spacing: 0.04em; }
  .onchain-balance-value { font-size: 20px; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
  .balance-spinner {
    display: inline-block; width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--border); border-top-color: var(--accent);
    animation: spin 0.7s linear infinite; margin-right: 6px; vertical-align: -1px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  /* Deposit modal */
  .modal-overlay {
    position: fixed; inset: 0; background: rgba(22,21,15,0.4);
    display: none; align-items: center; justify-content: center; padding: 24px; z-index: 100;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    padding: 28px; max-width: 400px; width: 100%; box-shadow: 0 20px 60px rgba(22,21,15,0.2);
    animation: viewIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
  }
  .modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .modal-title { font-size: 15px; font-weight: 700; margin: 0; }
  .modal-close { font-size: 22px; color: var(--text-secondary); line-height: 1; padding: 4px; }
  .modal-close:hover { color: var(--text); }
  .modal-copy { font-size: 13px; color: var(--text-secondary); margin: 0 0 18px; line-height: 1.55; }
  .modal-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; font-size: 12px; color: var(--text-secondary); }
  .modal-field input {
    border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
    font-size: 14px; font-family: inherit; color: var(--text); background: var(--bg);
  }
  .modal-field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
  .modal-feedback { font-size: 12px; margin: 12px 0 0; line-height: 1.5; }

  /* Wallet connection modal — two panels, wallet list on the left, a short
     explainer on the right, matching a common wallet-connect pattern. */
  .wallet-modal {
    background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
    max-width: 620px; width: 100%; box-shadow: 0 20px 60px rgba(22,21,15,0.2);
    display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
    animation: viewIn 0.25s cubic-bezier(0.34,1.56,0.64,1);
  }
  @media (max-width: 600px) { .wallet-modal { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; } }
  .wallet-modal-left { padding: 24px; border-right: 1px solid var(--border); }
  @media (max-width: 600px) { .wallet-modal-left { border-right: none; border-bottom: 1px solid var(--border); } }
  .wallet-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
  .wallet-modal-title { font-size: 16px; font-weight: 700; margin: 0; }
  .wallet-modal-section-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-tertiary); margin: 16px 0 8px; }
  .wallet-modal-section-label:first-child { margin-top: 0; }
  .wallet-modal-row {
    width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
    padding: 10px 10px; border-radius: 10px; font-size: 14px; font-weight: 600;
    transition: background 0.15s ease;
  }
  .wallet-modal-row:hover { background: var(--bg); }
  .wallet-modal-row-hint { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--text-tertiary); }
  .wallet-modal-right { padding: 24px; background: var(--bg); }
  .wallet-modal-info-title { font-size: 14px; font-weight: 700; margin: 0 0 18px; text-align: center; }
  .wallet-info-item { display: flex; gap: 12px; margin-bottom: 18px; }
  .wallet-info-icon { font-size: 16px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
  .wallet-info-heading { font-size: 13px; font-weight: 700; margin: 0 0 4px; }
  .wallet-info-copy { font-size: 12px; color: var(--text-secondary); line-height: 1.5; margin: 0; }
  .wallet-get-btn {
    display: block; text-align: center; margin-top: 8px; padding: 10px; border-radius: 10px;
    background: var(--accent); color: var(--accent-contrast); font-size: 13px; font-weight: 700;
  }
  .modal-feedback:empty { display: none; }
  .modal-feedback.is-error { color: var(--negative); }
  .modal-feedback.is-success { color: var(--accent-contrast); font-weight: 600; animation: successPulse 0.4s ease-out; }
  .modal-feedback.is-pending { color: var(--text-tertiary); }
  .deposit-trigger-row { display: flex; justify-content: center; margin-top: 16px; }

  .wallet-status {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    font-size: 13px; color: var(--text-secondary); margin-bottom: 24px;
  }
  .wallet-address { font-family: 'Sora', monospace; color: var(--text); }
  .wallet-disconnect { font-size: 12px; color: var(--text-tertiary); margin-left: 4px; }
  .wallet-disconnect:hover { color: var(--text); text-decoration: underline; }

  .value-positive { color: var(--positive); }
  .value-negative { color: var(--negative); }

  /* Tokenomics */
  .tokenomics-hero { position: relative; padding: 48px 0 40px; margin-bottom: 8px; }
  .tokenomics-hero > * { position: relative; z-index: 1; }
  .tokenomics-hero .hero-bg { position: absolute; z-index: 0; }

  .page-hero { position: relative; }
  .page-hero > * { position: relative; z-index: 1; }
  .page-hero .hero-bg { position: absolute; inset: -10px -24px auto -24px; height: 70px; width: auto; z-index: 0; }
  .tokenomics-intro { font-size: 14px; color: var(--text-secondary); max-width: 560px; line-height: 1.6; margin: 0 0 40px; }
  .tokenomics-stats { margin-bottom: 48px; }
  .tokenomics-subhead { font-size: 15px; font-weight: 600; margin: 0; }
  .tokenomics-section-head { display: flex; align-items: baseline; gap: 12px; margin: 48px 0 20px; }
  .tokenomics-section-head:first-of-type { margin-top: 0; }
  .tokenomics-section-head .step-number { font-size: 12px; color: var(--text-tertiary); margin-bottom: 0; }
  .fee-loop-stats { margin-top: 24px; margin-bottom: 0; }

  .roadmap-list { border-top: 1px solid var(--border); }
  .supply-curve-wrap { max-width: 640px; border: 1px solid var(--border); border-radius: 16px; padding: 20px 20px 12px; background: var(--surface); margin: 16px 0 8px; }
  .supply-curve-svg { width: 100%; height: 160px; display: block; }
  .supply-curve-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-tertiary); margin-top: 8px; }
  .roadmap-item { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
  .roadmap-status {
    flex-shrink: 0; width: 64px; text-align: center; font-size: 11px; letter-spacing: 0.03em;
    padding: 3px 0; border-radius: 20px; border: 1px solid var(--border); color: var(--text-tertiary);
  }
  .status-live { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
  .status-next { border-color: var(--accent); color: var(--accent); }
  .roadmap-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
  .roadmap-copy { font-size: 13px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

  /* Legal pages (terms, risk, privacy) */
  .legal-page { max-width: 640px; }
  .legal-updated { font-size: 12px; color: var(--text-tertiary); margin: -16px 0 40px; }
  .legal-heading { font-size: 15px; font-weight: 600; margin: 36px 0 10px; }
  .legal-page .legal-heading:first-of-type { margin-top: 0; }
  .legal-copy { font-size: 14px; color: var(--text-secondary); line-height: 1.65; margin: 0; }
  .legal-link { color: var(--accent); }
  .legal-link:hover { text-decoration: underline; }

  /* About page (personal story) */
  .about-page .legal-copy { margin-bottom: 14px; }
  .about-page .legal-heading { margin-top: 44px; }
  .about-pullquote { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.4; margin: 22px 0; letter-spacing: -0.01em; }
  .about-flow {
    font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: var(--text-secondary);
    border-left: 2px solid var(--accent); padding: 10px 0 10px 16px; margin: 16px 0 20px;
  }
  .about-triad { font-size: 22px; font-weight: 800; letter-spacing: 0.06em; margin: 20px 0; }
  .about-triad-final { font-size: 26px; font-weight: 800; margin: 32px 0 8px; letter-spacing: -0.01em; }
  .about-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
  .about-link { font-size: 13px; font-weight: 600; color: var(--accent-contrast); background: var(--accent-soft); padding: 8px 14px; border-radius: 20px; }
  .about-link:hover { background: var(--accent); }

  .donut-row { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
  .donut {
    width: 160px; height: 160px; border-radius: 50%; flex-shrink: 0;
    background: conic-gradient(
      var(--token-1) 0% 45%,
      var(--token-2) 45% 75%,
      var(--token-3) 75% 90%,
      var(--token-4) 90% 100%
    );
    position: relative;
  }
  .donut::after { content: ""; position: absolute; inset: 28px; border-radius: 50%; background: var(--bg); }
  .donut-legend { display: flex; flex-direction: column; gap: 12px; min-width: 220px; }
  .legend-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
  .legend-swatch { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }
  .swatch-1 { background: var(--token-1); }
  .swatch-2 { background: var(--token-2); }
  .swatch-3 { background: var(--token-3); }
  .swatch-4 { background: var(--token-4); }
  .swatch-5 { background: var(--token-5); }
  .legend-label { color: var(--text-secondary); flex: 1; }
  .legend-value { font-weight: 600; }

  .vesting-table { border-top: 1px solid var(--border); }
  .vesting-row {
    display: grid; grid-template-columns: 1.4fr 0.6fr 1.4fr; gap: 12px;
    padding: 14px 4px; border-bottom: 1px solid var(--border);
    font-size: 13px; color: var(--text-secondary); align-items: center;
  }
  .vesting-row > span:not(:last-child) { border-right: 1px solid var(--border); padding-right: 12px; }
  .vesting-head { font-size: 12px; color: var(--text-tertiary); }
  .vesting-row:not(.vesting-head) span:first-child { color: var(--text); font-weight: 500; }
  @media (max-width: 640px) {
    .vesting-row { grid-template-columns: 1fr; gap: 2px; padding: 14px 4px; }
    .vesting-row > span:not(:last-child) { border-right: none; padding-right: 0; }
    .vesting-head { display: none; }
    .vesting-row:not(.vesting-head) span:nth-child(2)::before { content: "at launch: "; color: var(--text-tertiary); }
    .vesting-row:not(.vesting-head) span:nth-child(3)::before { content: "schedule: "; color: var(--text-tertiary); }
  }

  .tokenomics-utility { margin-top: 4px; }
  .tokenomics-disclaimer { font-size: 12px; color: var(--text-tertiary); margin-top: 48px; max-width: 560px; }

  /* Page transitions */
  .view.active { animation: viewIn 0.32s cubic-bezier(0.34,1.56,0.64,1); }
  @keyframes viewIn { from { opacity: 0; transform: translateY(10px) scale(0.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .btn:active { transform: scale(0.94); }

  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
  }

  /* Footer */
  .footer { background: var(--footer-bg); margin-top: 40px; }
  .footer-inner {
    max-width: 960px; margin: 0 auto; padding: 48px 24px 40px;
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
  }
  .footer-col { display: flex; flex-direction: column; gap: 12px; }
  .footer-col-title { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--meet); margin: 0 0 4px; }
  .footer-link { font-size: 13px; color: var(--footer-text-secondary); text-align: left; }
  .footer-link:hover { color: var(--footer-text); }
  .footer-email { color: var(--meet); }
  .footer-email:hover { text-decoration: underline; }
  .footer-brand .wordmark-ticker { color: var(--meet); }

  .footer-brand-col { gap: 14px; }
  .footer-brand { display: flex; align-items: center; gap: 0; color: var(--footer-text); }
  .footer-wordmark { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; color: var(--footer-text); }
  .footer-tagline { font-size: 13px; color: var(--footer-text-secondary); line-height: 1.5; max-width: 260px; }
  .footer-social-row { display: flex; gap: 4px; margin-top: 6px; margin-left: -6px; }
  .footer-social-row .icon-link { color: var(--footer-text-secondary); }
  .footer-social-row .icon-link:hover { color: var(--footer-text); background: rgba(220,229,211,0.08); }

  .footer-bottom { border-top: 1px solid rgba(220,229,211,0.14); padding: 20px 24px; background: var(--footer-bg); }
  .footer-disclaimer { max-width: 960px; margin: 0 auto; font-size: 12px; color: var(--footer-text-secondary); opacity: 0.75; }

  @media (max-width: 720px) {
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; margin-bottom: 12px; }
  }
