@font-face {
  font-family: "Sora";
  src: url("/sora-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  --black: #000000;
  --charcoal: #0c0c0c;
  --card: #141414;
  --muted: #1a1a1a;
  --border: #262626;
  --grey: #868686;
  --white: #ffffff;
  --off-white: #f8f8f8;
  --accent: #ff3423;
  --green: #34c759;
  --orange: #ff9500;
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; background: var(--black); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: var(--black);
  font-family: "Sora", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; padding: 10px 14px; color: var(--black); background: var(--white); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header { position: relative; z-index: 10; border-bottom: 1px solid var(--border); background: rgba(0,0,0,.92); }
.header-inner { width: min(1152px, calc(100% - 48px)); min-height: 80px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; }
.brand { display: inline-flex; width: fit-content; }
.brand img, .footer-brand img { display: block; width: 124px; height: 40px; }
nav { display: flex; align-items: center; gap: 34px; }
nav a { position: relative; padding: 28px 0; font-size: 13px; font-weight: 600; }
nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 20px; height: 1px; background: var(--accent); transition: right .2s ease; }
nav a:hover::after, nav a:focus-visible::after { right: 0; }
.site-link { justify-self: end; display: inline-flex; align-items: center; gap: 9px; padding: 12px 16px; border: 1px solid var(--border); font-size: 11px; font-weight: 700; letter-spacing: .14em; transition: border-color .2s ease; }
.site-link span { color: var(--accent); font-size: 16px; }
.site-link:hover, .site-link:focus-visible { border-color: var(--accent); }

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); background: radial-gradient(circle at 78% 42%, rgba(255,52,35,.13), transparent 35%), var(--black); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent 0 72%, rgba(255,52,35,.025) 72% 72.15%, transparent 72.15%); }
.hero-inner { width: min(1152px, calc(100% - 48px)); min-height: 590px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); align-items: center; gap: 80px; }
.eyebrow { margin: 0 0 26px; color: var(--grey); font-size: 12px; font-weight: 700; letter-spacing: .16em; }
.hero h1 { max-width: 810px; margin: 0; font-size: clamp(45px, 5.2vw, 72px); line-height: .99; letter-spacing: -.055em; font-weight: 750; }
.hero h1 span, .section-intro h2 span { color: var(--accent); }
.hero-intro { max-width: 720px; margin: 34px 0 0; color: var(--grey); font-size: clamp(15px, 1.5vw, 18px); font-weight: 300; line-height: 1.7; }
.live-status { display: flex; align-items: center; gap: 10px; margin-top: 36px; color: var(--white); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.live-status i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(52,199,89,.7); }
.live-status small { padding-left: 10px; border-left: 1px solid var(--border); color: var(--grey); font-size: 10px; font-weight: 400; letter-spacing: .03em; text-transform: none; }
.signal-mark { display: grid; place-items: center; }
.signal-ring { display: grid; place-items: center; border: 42px solid var(--white); border-radius: 50%; }
.ring-one { width: 320px; aspect-ratio: 1; outline: 10px solid var(--black); background: var(--black); box-shadow: 0 0 0 1px var(--border), 50px 50px 0 rgba(255,52,35,.08); }
.ring-two { width: 190px; aspect-ratio: 1; border-width: 34px; background: var(--black); }
.signal-core { width: 48px; aspect-ratio: 1; border-radius: 50%; background: var(--accent); box-shadow: 0 0 34px rgba(255,52,35,.25); }

.metric-strip { width: min(1152px, calc(100% - 48px)); min-height: 150px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); color: var(--charcoal); background: var(--off-white); box-shadow: 0 0 0 100vmax var(--off-white); clip-path: inset(0 -100vmax); }
.metric { display: flex; flex-direction: column; justify-content: center; padding: 26px 40px; border-right: 1px solid #d7d7d7; }
.metric:first-child { padding-left: 0; }
.metric:last-child { border-right: 0; }
.metric span, .metric small { font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.metric span { color: #4b4b4b; }
.metric small { color: var(--grey); font-weight: 450; letter-spacing: .05em; }
.metric strong { display: block; margin: 2px 0 1px; font-size: 45px; line-height: 1.2; letter-spacing: -.05em; }
.metric:first-child strong { color: var(--accent); }
.metric strong.metric-time { font-size: 28px; line-height: 1.5; }

.governance { padding: 92px 0 112px; background: linear-gradient(112deg, #000 52%, #100100 100%); }
.governance-inner { width: min(1152px, calc(100% - 48px)); margin: 0 auto; }
.section-intro { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 80px; padding-bottom: 38px; border-bottom: 1px solid var(--border); }
.section-intro .eyebrow { margin-bottom: 12px; }
.section-intro h2 { margin: 0; font-size: clamp(35px, 4vw, 51px); line-height: 1; letter-spacing: -.045em; }
.section-intro > p { max-width: 520px; margin: 0; color: var(--grey); font-size: 15px; font-weight: 300; line-height: 1.7; }

.toolbar { display: grid; grid-template-columns: 1fr 240px auto; align-items: center; min-height: 66px; margin: 36px 0 26px; border: 1px solid var(--border); background: var(--charcoal); }
.search-wrap { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 0 20px; }
.search-wrap input, .select-wrap select { width: 100%; color: var(--white); border: 0; outline: 0; background: transparent; font-size: 13px; }
.search-wrap input::placeholder { color: var(--grey); }
.search-icon { flex: 0 0 auto; width: 15px; height: 15px; border: 1.5px solid var(--grey); border-radius: 50%; position: relative; }
.search-icon::after { content: ""; position: absolute; width: 6px; height: 1px; right: -5px; bottom: -2px; background: var(--grey); transform: rotate(45deg); }
.select-wrap { padding: 10px 18px; border-left: 1px solid var(--border); border-right: 1px solid var(--border); }
.select-wrap select { cursor: pointer; }
.select-wrap option { background: var(--charcoal); }
.result-count { min-width: 120px; padding: 0 20px; color: var(--grey); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-align: center; text-transform: uppercase; }

.proposal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.proposal-card { --chain: var(--accent); min-width: 0; position: relative; display: flex; flex-direction: column; min-height: 500px; padding: 30px; border: 1px solid var(--border); background: var(--card); transition: border-color .2s ease, transform .2s ease; }
.proposal-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 84px; height: 2px; background: var(--accent); }
.proposal-card:hover { border-color: #404040; transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.chain-badge { display: inline-flex; align-items: center; gap: 9px; min-width: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.chain-dot { flex: 0 0 auto; width: 7px; height: 7px; background: var(--chain); }
.proposal-number { color: var(--grey); font-size: 11px; font-weight: 600; }
.proposal-card h3 { margin: 0 0 14px; font-size: clamp(19px, 2vw, 24px); line-height: 1.3; letter-spacing: -.025em; }
.summary { display: -webkit-box; overflow: hidden; margin: 0 0 23px; color: var(--grey); font-size: 12px; font-weight: 300; line-height: 1.65; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.deadline { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: end; padding: 18px 0; margin-top: auto; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.deadline span, .meta-label { display: block; color: var(--grey); font-size: 9px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.deadline strong { display: block; margin-top: 3px; color: var(--white); font-size: 22px; line-height: 1.3; letter-spacing: -.03em; }
.deadline time { color: var(--grey); font-size: 10px; text-align: right; }
.tally { margin-top: 18px; }
.tally-bar { display: flex; height: 5px; overflow: hidden; margin: 9px 0 10px; background: var(--border); }
.tally-bar span { min-width: 0; height: 100%; }
.vote-yes { background: var(--green); }.vote-no { background: #ff3b30; }.vote-veto { background: var(--orange); }.vote-abstain { background: var(--grey); }
.tally-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--grey); font-size: 9px; }
.tally-legend b { color: var(--white); font-weight: 650; }
.card-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 24px; margin-top: 20px; }
.card-meta > div { min-width: 0; }
.meta-value { display: block; overflow: hidden; margin-top: 4px; color: #c8c8c8; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.details { margin-top: 18px; }
.details summary { width: fit-content; color: var(--white); cursor: pointer; font-size: 10px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.details summary::marker { color: var(--accent); }
.details p { max-height: 300px; overflow: auto; margin-bottom: 0; padding: 15px 0 0; border-top: 1px solid var(--border); white-space: pre-wrap; color: #a8a8a8; font-size: 11px; line-height: 1.7; }

.notice { padding: 15px 18px; margin-bottom: 18px; border: 1px solid rgba(255,52,35,.45); color: #ff9d94; background: rgba(255,52,35,.08); font-size: 12px; }
.empty { grid-column: 1 / -1; padding: 72px 24px; border: 1px solid var(--border); text-align: center; color: var(--grey); }
.empty strong { display: block; margin-bottom: 6px; color: var(--white); font-size: 18px; }
.skeleton-card { height: 500px; border: 1px solid var(--border); background: linear-gradient(100deg, var(--charcoal) 30%, #191919 50%, var(--charcoal) 70%); background-size: 300% 100%; animation: shimmer 1.8s infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

footer { border-top: 1px solid var(--border); background: var(--charcoal); }
.footer-inner { width: min(1152px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 70px; padding: 68px 0; }
.footer-brand p, .footer-note p { margin: 18px 0 0; color: var(--grey); font-size: 11px; font-weight: 300; line-height: 1.7; }
.footer-note p + p { margin-top: 8px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 11px; font-weight: 650; transition: color .2s ease; }
.footer-links a:hover { color: var(--accent); }
.copyright { width: min(1152px, calc(100% - 48px)); margin: 0 auto; padding: 24px 0 32px; border-top: 1px solid var(--border); color: #5e5e5e; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .hero-inner { min-height: 620px; grid-template-columns: 1fr; gap: 40px; padding: 70px 0; }
  .signal-mark { position: absolute; right: -80px; bottom: -100px; opacity: .28; }
  .metric { padding: 24px; }
  .proposal-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; flex-direction: row; }
}

@media (max-width: 640px) {
  .header-inner, .hero-inner, .metric-strip, .governance-inner, .footer-inner, .copyright { width: min(100% - 30px, 1152px); }
  .site-link { padding: 10px 11px; font-size: 9px; }
  .brand img { width: 108px; height: auto; }
  .hero-inner { min-height: 560px; }
  .hero h1 { font-size: clamp(40px, 12.5vw, 58px); }
  .hero-intro { font-size: 14px; }
  .signal-mark { display: none; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric { min-height: 114px; padding: 18px 0; border-right: 0; border-bottom: 1px solid #d7d7d7; }
  .metric:last-child { border-bottom: 0; }
  .metric strong { font-size: 36px; }
  .governance { padding: 72px 0 84px; }
  .section-intro { grid-template-columns: 1fr; gap: 22px; }
  .toolbar { grid-template-columns: 1fr; }
  .search-wrap, .select-wrap, .result-count { min-height: 58px; display: flex; align-items: center; }
  .select-wrap { border: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
  .result-count { justify-content: flex-start; text-align: left; }
  .proposal-card { min-height: 480px; padding: 23px; }
  .deadline { grid-template-columns: 1fr; }
  .deadline time { text-align: left; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-links { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
