:root {
  --bg: #ffffff;
  --ink: #0f172a;
  --muted: #6b7280;
  --primary: #0ea5e9;
  --accent: #f97316;
  --ring: #111827;
  --container: 1040px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;
}
html { scroll-behavior: smooth; }

.page-doodles {
  position: fixed; inset: auto 0 0 auto; right: 0; bottom: 0;
  width: 480px; max-width: 40vw; opacity: .25; pointer-events: none; z-index: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: static; width: auto; height: auto; padding: 8px 12px; background: #fff; border: 2px solid var(--ink); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 2px solid #111827;
  box-shadow: 3px 3px 0 #111827;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; border: 2px solid #111827; box-shadow: 2px 2px 0 #111827; background: #fff; }
.logo-text { font-family: "Patrick Hand", cursive; font-size: 26px; letter-spacing: 0.5px; }

.nav { display: flex; align-items: center; gap: 16px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 10px 14px; border: 2px solid #111827; border-radius: 10px; background: #fff; box-shadow: 3px 3px 0 #111827; transition: transform .06s ease; }
.nav a:hover { transform: translate(-1px, -1px); }
.nav .btn.primary { background: var(--primary); color: #fff; border-color: #0c4a6e; box-shadow: 3px 3px 0 #0c4a6e; }

.section { padding: 72px 0; text-align: center; }
main, .site-header, .site-footer { position: relative; z-index: 1; }

/* Dashed boundaries for centered container and section separators */
.section .container {
  position: relative;
  border-left: 2px dashed #111827;
  border-right: 2px dashed #111827;
  padding: 28px 24px 0;
}
.section:not(:first-of-type) .container { border-top: 2px dashed #111827; }
.section .section-title { margin-top: 18px; }

.hero-title { font-size: 48px; line-height: 1.1; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.02em; }
.hero-subtitle { color: var(--muted); font-size: 18px; margin: 0 auto 24px; max-width: 720px; }
.hero-cta { display: inline-flex; gap: 12px; }

.btn { display: inline-block; padding: 12px 18px; border: 2px solid #111827; border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; font-weight: 700; box-shadow: 3px 3px 0 #111827; transition: transform .06s ease; }
.btn:hover { transform: translate(-1px, -1px); }
.btn.primary { background: var(--primary); color: #fff; border-color: #0c4a6e; box-shadow: 3px 3px 0 #0c4a6e; }
.btn.ghost { background: #fff; }

.divider { display: block; margin: 28px auto 0; width: 240px; opacity: 0.7; }

.hero-3d-wrap { perspective: 1200px; margin-top: 24px; }
.hero-3d { position: relative; width: 420px; height: 260px; margin: 0 auto; transform-style: preserve-3d; transition: transform .3s ease; }
.hero-3d .layer { position: absolute; inset: 0; transform-style: preserve-3d; }
.hero-3d .frame { border: 2px dashed #111827; border-radius: 18px; background: #fff; box-shadow: 8px 10px 0 #111827; }
.hero-3d .card { width: 78%; height: 64%; left: 11%; top: 12%; display: grid; place-items: center; text-align: center; border: 2px solid #111827; border-radius: 14px; background: #fff; box-shadow: 6px 6px 0 #111827; }
.hero-3d .hero-badge { position: absolute; top: 10px; left: 12px; font-family: "Patrick Hand", cursive; font-weight: 700; background: #fff; border: 2px solid #111827; border-radius: 999px; padding: 6px 10px; box-shadow: 3px 3px 0 #111827; }
.hero-3d .hero-card-text { font-weight: 700; }
.hero-3d .cube { width: 120px; height: 120px; position: absolute; right: -6%; bottom: -10%; display: grid; place-items: center; filter: drop-shadow(3px 3px 0 #111827); }

/* floating animation */
@keyframes floaty { 0% { transform: translateZ(40px) translateY(0); } 50% { transform: translateZ(40px) translateY(-8px); } 100% { transform: translateZ(40px) translateY(0); } }
.hero-3d .layer-2 { animation: floaty 4s ease-in-out infinite; }
.hero-3d .layer-3 { animation: floaty 5.5s ease-in-out infinite; }

/* planet spin */
.hero-3d .planet { width: 160px; height: 160px; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.hero-3d .planet-spin { transform-origin: 90px 90px; animation: spin-slow 20s linear infinite; }

/* floating asteroids */
.hero-3d-wrap { position: relative; }
.hero-3d-wrap .asteroid { position: absolute; pointer-events: none; opacity: .9; filter: drop-shadow(3px 3px 0 #111827); }
.hero-3d-wrap .asteroid.a1 { width: 88px; left: -80px; top: 10%; animation: orbit1 7s ease-in-out infinite; }
.hero-3d-wrap .asteroid.a2 { width: 70px; right: -90px; top: 30%; animation: orbit2 8.5s ease-in-out infinite; }
.hero-3d-wrap .asteroid.a3 { width: 62px; left: 60%; top: -40px; animation: orbit3 6.5s ease-in-out infinite; }

@keyframes orbit1 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -10px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes orbit2 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-12px, -6px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes orbit3 {
  0% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(8px, 10px) rotate(8deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

@media (max-width: 720px) {
  .hero-3d-wrap .asteroid { display: none; }
}

.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch;
}
.stat .stat-number { font-size: 36px; font-weight: 800; }
.stat .stat-label { color: var(--muted); font-size: 14px; }

.section-title { font-size: 32px; margin: 0 0 8px; font-weight: 800; }
.section-lead { color: var(--muted); margin: 0 auto 28px; max-width: 720px; }

.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature h3 { margin: 0 0 6px; }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; counter-reset: step; }
.timeline > li { position: relative; padding-top: 8px; }
.timeline > li::before { counter-increment: step; content: counter(step); position: absolute; top: -14px; left: 12px; background: var(--accent); color: #fff; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #7c2d12; box-shadow: 3px 3px 0 #7c2d12; }
.bullets { margin: 0; padding-left: 18px; text-align: left; }

.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.roadmap-item h3 { margin: 0 0 6px; }

.logo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: center; }
.logo { font-weight: 700; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.news-item h3 { margin: 0 0 6px; }
.news-item .meta { color: var(--muted); font-size: 12px; }

/* New sections */
.identities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.usecases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; text-align: left; }
.testimonial blockquote { margin: 0 0 8px; font-weight: 600; }
.faq-list { display: grid; grid-template-columns: 1fr; gap: 12px; text-align: left; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item[open] summary { color: var(--primary); }
.newsletter-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.newsletter-form input { height: 44px; border: 2px solid #111827; border-radius: 10px; padding: 0 12px; font: inherit; }
.newsletter-form button { height: 44px; }

/* AI chat */
.ai-wrap { display: grid; gap: 12px; }
.chat { max-height: 340px; overflow: auto; background: #fff; }
.msg { display: grid; margin: 8px 0; }
.msg .bubble { display: inline-block; padding: 10px 12px; border: 2px solid #111827; border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 #111827; max-width: 80%; text-align: left; white-space: pre-wrap; }
.msg.bot { justify-content: start; }
.msg.user { justify-content: end; }
.msg.user .bubble { background: var(--primary); color: #fff; border-color: #0c4a6e; box-shadow: 3px 3px 0 #0c4a6e; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.chat-form input { height: 44px; border: 2px solid #111827; border-radius: 10px; padding: 0 12px; font: inherit; }
.suggest-row { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest { padding: 8px 12px; border: 2px dashed #111827; background: #fff; border-radius: 999px; box-shadow: 3px 3px 0 #111827; cursor: pointer; font-weight: 700; }
.msg.bot .bubble:after { content: ''; display: inline-block; width: 12px; animation: dots 1s steps(3,end) infinite; vertical-align: baseline; }
@keyframes dots { 0% { content: ''; } 33% { content: '.'; } 66% { content: '..'; } 100% { content: '...'; } }

.voting-wrap { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.vote-header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.vote-title { margin: 0; font-size: 18px; }
.vote-meta { color: var(--muted); font-size: 12px; }
.bars { display: grid; gap: 10px; margin-top: 8px; }
.bar { display: grid; grid-template-columns: 60px 1fr 44px; gap: 10px; align-items: center; }
.bar-track { height: 14px; border: 2px solid #111827; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 2px rgba(17,24,39,.03); }
.bar-fill { height: 100%; border-radius: 999px; box-shadow: 3px 3px 0 #111827; }
.bar-fill.for { background: #22c55e; border: 2px solid #14532d; }
.bar-fill.against { background: #ef4444; border: 2px solid #7f1d1d; }
.bar-fill.abstain { background: #f59e0b; border: 2px solid #7c2d12; }
.bar-val { font-weight: 700; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 8px; }
.cd-item { border: 2px solid #111827; border-radius: 14px; background: #fff; box-shadow: 3px 3px 0 #111827; padding: 8px; }
.cd-item span { display: block; font-size: 22px; font-weight: 800; }
.cd-item small { color: var(--muted); }

@media (max-width: 1024px) {
  .voting-wrap { grid-template-columns: 1fr; }
}
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 60; }
.modal[aria-hidden="false"] { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,.5); backdrop-filter: blur(2px); }
.modal-card { position: relative; max-width: 520px; background: #fff; }
.modal-title { margin: 0 0 6px; font-size: 22px; font-weight: 800; text-align: center; }
.modal-body { margin: 0 0 16px; color: var(--muted); text-align: center; }
.modal-actions { display: grid; place-items: center; }

/* Whitepaper modal layout */
.wp-content { display: grid; grid-template-columns: 220px 1fr; gap: 16px; }
.wp-toc { display: grid; gap: 8px; align-content: start; }
.wp-toc { margin-top: 8px; }
.wp-toc a { color: var(--ink); text-decoration: none; font-weight: 700; padding: 6px 8px; font-size: 14px; border: 2px dashed #111827; border-radius: 10px; background: #fff; box-shadow: 3px 3px 0 #111827; }
.wp-body { max-height: 72vh; overflow: auto; line-height: 1.75; }
.wp-body h4 { margin: 0 0 8px; font-size: 20px; }
.wp-body h5 { margin: 12px 0 6px; font-size: 16px; }
.wp-body h6 { margin: 8px 0 4px; font-size: 14px; text-transform: uppercase; letter-spacing: .02em; color: #111827; }
.wp-body p { margin: 0 0 16px; color: var(--muted); }
.wp-body ul { margin: 0 0 12px 18px; text-align: left; }
.wp-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 10px 0 18px; text-align: left; }
.wp-table th, .wp-table td { padding: 10px 12px; border: 2px solid #111827; }
.wp-table thead th { background: #fff; box-shadow: 3px 3px 0 #111827; }
.wp-table tr:first-child th:first-child { border-top-left-radius: 12px; }
.wp-table tr:first-child th:last-child { border-top-right-radius: 12px; }
.wp-table tr:last-child td:first-child { border-bottom-left-radius: 12px; }
.wp-table tr:last-child td:last-child { border-bottom-right-radius: 12px; }
/* enlarge only for whitepaper modal */
#wpModal .modal-card { max-width: 960px; width: min(92vw, 960px); max-height: 90vh; padding: 20px; }
#wpModal .modal-title { font-size: 24px; }
@media (max-width: 720px) {
  .wp-content { grid-template-columns: 1fr; }
}

.footer-inner { display: grid; gap: 12px; padding: 28px 0; border-top: 2px solid #111827; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.footer-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 8px 12px; border: 2px solid #111827; border-radius: 10px; background: #fff; box-shadow: 3px 3px 0 #111827; }
.copyright { text-align: center; color: var(--muted); margin: 0; }

/* Social icons row */
.socials { display: flex; gap: 10px; justify-content: center; }
.socials a { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 2px solid #111827; border-radius: 10px; background: #fff; box-shadow: 3px 3px 0 #111827; }
.socials svg { width: 18px; height: 18px; }

/* Hand‑drawn look */
.sketch-card {
  border: 2px solid #111827;
  border-radius: 14px;
  background: #fff;
  text-align: left;
  padding: 16px;
  box-shadow: 3px 3px 0 #111827;
}
.sketch-chip {
  border: 2px dashed #111827;
  border-radius: 999px;
  padding: 10px 12px;
  background: #fff;
  text-align: center;
  box-shadow: 3px 3px 0 #111827;
}
.sketch-underline {
  display: inline-block;
  position: relative;
}
.sketch-underline::after {
  content: ""; position: absolute; left: -4px; right: -4px; bottom: -6px; height: 12px;
  background: radial-gradient(100% 80% at 50% 100%, rgba(14,165,233,.25), rgba(14,165,233,0));
}

/* Responsive */
@media (max-width: 1024px) {
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid { grid-template-columns: repeat(4, 1fr); }
  .usecases-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero-title { font-size: 36px; }
  .grid-3, .features-grid, .timeline, .roadmap-grid, .logo-grid, .news-grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .identities-grid, .usecases-grid, .testimonials-grid { grid-template-columns: 1fr; }
}


