:root {
  --ink: #17132f;
  --deep: #292259;
  --violet: #8f75ff;
  --pale: #f6f4ff;
  --yellow: #f7e57d;
  --line: #ddd8f2;
  --muted: #68647b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: "Plus Jakarta Sans", system-ui, sans-serif; background: #fff; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 48px)); margin: auto; }
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; flex-wrap: nowrap; gap: 9px; white-space: nowrap; }
.brand img { display: block; width: 225px; flex: 0 0 auto; color: var(--ink); }
.brand span { margin-left: -65px; color: var(--muted); font-family: SFMono-Regular,Consolas,"Liberation Mono",monospace; font-size: 14px; font-weight: 600; }
nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 600; }
.button { display: inline-flex; gap: 12px; align-items: center; background: var(--violet); color: #fff; padding: 15px 22px; border-radius: 12px; font-weight: 700; box-shadow: 0 12px 30px rgba(118,88,255,.22); transition: .2s transform, .2s box-shadow; }
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(118,88,255,.3); }
.button.compact { padding: 11px 16px; }
.hero { min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; padding-block: 64px 92px; }
.hero-copy, .hero > .network { position: relative; top: -28px; }
.eyebrow, .section-label { text-transform: uppercase; letter-spacing: .16em; font-size: 12px; font-weight: 800; color: var(--violet); }
.eyebrow { display: flex; align-items: center; gap: 10px; }
.eyebrow span { width: 26px; height: 2px; background: var(--violet); }
h1 { font-size: clamp(52px,6vw,86px); line-height: .99; letter-spacing: -.055em; margin: 24px 0 28px; max-width: 760px; }
h2 { font-size: clamp(38px,4vw,60px); line-height: 1.07; letter-spacing: -.045em; margin: 14px 0 24px; }
h3 { font-size: 25px; margin: 22px 0 12px; }
.lede { font-size: 20px; line-height: 1.7; color: var(--muted); max-width: 620px; }
.actions { display: flex; align-items: center; gap: 30px; margin-top: 38px; }
.text-link { font-weight: 700; }

.network { position: relative; height: 510px; border-radius: 44px; background: linear-gradient(145deg,var(--deep),#5544a4); overflow: hidden; box-shadow: 0 35px 80px rgba(37,31,86,.28); }
.network::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom,#000,transparent); }
.network p { position: absolute; left: 38px; bottom: 20px; color: #dcd7ff; line-height: 1.5; }
.network strong { color: #fff; }
.vortex-lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.vortex-lines path { fill: none; stroke: url(#vortex); stroke-width: 3.5; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(179,164,255,.42)); }
.vortex-lines use { fill: none; stroke: url(#vortex); stroke-width: 3.5; stroke-linecap: round; }
.vortex-static path { stroke-width: 3.5; opacity: .82; }
.vortex-lines .connector-glow { stroke: url(#inner-glow); stroke-width: 7; stroke-linecap: butt; opacity: 1; filter: drop-shadow(0 0 7px rgba(190,177,255,.42)); }
.orb { position: absolute; width: 58px; height: 58px; border: 2px solid rgba(207,198,255,.72); background: rgba(42,34,89,.72); backdrop-filter: blur(12px); border-radius: 50%; display: grid; place-items: center; color: #ded8ff; z-index: 2; box-shadow: 0 12px 28px rgba(22,16,70,.22); transform: translateX(-50%); }
.orb svg { width: 38px; height: 38px; fill: none; stroke: currentColor; stroke-width: 2.35; stroke-linecap: round; stroke-linejoin: round; }
.code-icon { font-family: SFMono-Regular,Consolas,"Liberation Mono",monospace; font-size: 24px; font-weight: 800; letter-spacing: -.16em; transform: translateX(-2px); }
.orb.core { width: 132px; height: 132px; left: 50%; top: 44%; transform: translate(-50%,-50%); border: 3px solid #b7a7ff; border-radius: 50%; background: #272052; box-shadow: 0 20px 38px rgba(19,13,62,.42), inset 0 0 0 7px rgba(143,117,255,.12); }
.orb.core img { width: 82px; height: auto; filter: drop-shadow(0 8px 15px rgba(15,9,50,.3)); }
.o1 { top: 144px; left: 18.6%; }
.o2 { top: 144px; left: 81.4%; }
.o3 { top: 329px; left: 30.6%; }
.o4 { top: 329px; left: 69.4%; }
.o5 { top: 26px; left: 50%; }

.mission { background: var(--pale); padding: 120px 0; }
.split { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; }
.mission-split { grid-template-columns: 1.05fr .95fr; align-items: start; }
.split h2 { margin-top: 0; }
.mission-visual .section-label { margin: 0 0 18px; }
.mission-content { padding-top: 36px; }
.split div p, .section-heading > p { color: var(--muted); font-size: 18px; line-height: 1.8; }
.mission-visual .section-label { color: var(--violet); font-size: 12px; line-height: 1.5; }
.mission-image { margin: 0; overflow: hidden; border-radius: 24px; box-shadow: 0 24px 55px rgba(47,36,103,.16); }
.mission-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.infrastructure { padding-block: 120px; }
.section-heading { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 80px; margin-bottom: 54px; }
.section-heading h2 { max-width: 680px; }
.contract-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
.contract-grid article { padding: 34px; min-height: 430px; position: relative; }
.contract-grid article + article { border-left: 1px solid var(--line); }
.glyph { position: relative; width: 92px; height: 92px; border-radius: 24px; background: linear-gradient(145deg,#f7f5ff,#eeeaff); color: var(--violet); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(143,117,255,.08); }
.glyph svg { width: 52px; height: 52px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.number { position: absolute; top: 8px; right: 9px; min-width: 25px; height: 20px; padding: 0 5px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--violet); font-size: 9px; letter-spacing: .04em; font-weight: 800; box-shadow: 0 4px 10px rgba(118,88,255,.22); }
.contract-grid p { color: var(--muted); line-height: 1.65; font-size: 15px; }
.contract-grid code { position: absolute; bottom: 34px; color: var(--deep); font-weight: 700; }
.repo-link { display: flex; justify-content: space-between; border-bottom: 1px solid var(--ink); padding: 25px 4px; font-weight: 700; }

.grants { padding: 110px 0; background: linear-gradient(135deg,#f6f4ff 0%,#eee9ff 100%); }
.grants-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: center; }
.grants h2 { max-width: 480px; }
.grant-card { display: grid; grid-template-columns: 104px 1fr; gap: 30px; padding: 38px; border: 1px solid rgba(143,117,255,.24); border-radius: 24px; background: rgba(255,255,255,.72); box-shadow: 0 22px 55px rgba(76,58,164,.1); }
.grant-card h3 { margin: 0 0 12px; }
.grant-card p { margin: 0 0 22px; color: var(--muted); line-height: 1.7; }
.grant-card .text-link { color: var(--deep); }
.grant-icon { width: 104px; height: 104px; display: grid; place-items: center; border-radius: 28px; background: var(--deep); color: #b5a5ff; }
.grant-icon svg { width: 60px; height: 60px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.community { background: var(--deep); color: white; padding: 120px 0; }
.community-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 120px; align-items: center; }
.section-label.light { color: #b9adff; }
.community p:not(.section-label) { color: #d1cdeb; font-size: 18px; line-height: 1.75; }
.button.yellow { background: var(--yellow); color: var(--deep); box-shadow: none; margin-top: 24px; }
.ways { border-top: 1px solid rgba(255,255,255,.2); }
.ways div { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 26px 0; border-bottom: 1px solid rgba(255,255,255,.2); }
.ways span { color: #d1cdeb; }
footer { min-height: 180px; display: grid; grid-template-columns: 180px 1fr auto; align-items: center; gap: 30px; color: var(--muted); font-size: 13px; }
footer img { width: 178px; color: var(--ink); }
footer .footer-copy { display: grid; gap: 6px; }
footer .footer-copy p { margin: 0; }
footer .footer-copy a { color: var(--ink); font-weight: 700; }
footer .footer-links { display: flex; gap: 24px; color: var(--ink); font-weight: 700; }

@media (max-width: 800px) {
  .shell { width: min(100% - 32px,1180px); }
  nav > a:not(.button) { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-copy, .hero > .network { top: -14px; }
  .network { height: 430px; }
  .split, .section-heading, .grants-grid, .community-grid { grid-template-columns: 1fr; gap: 24px; }
  .contract-grid { grid-template-columns: 1fr; }
  .mission-content { padding-top: 0; }
  .contract-grid article + article { border-left: 0; border-top: 1px solid var(--line); }
  footer { grid-template-columns: 1fr; padding-block: 44px; gap: 16px; }
}

@media (max-width: 480px) {
  .nav { height: 76px; }
  .brand img { width: 172px; }
  .brand { gap: 6px; }
  .brand span { margin-left: -49px; font-size: 11px; }
  .button.compact { font-size: 0; }
  .button.compact span { font-size: 16px; }
  .hero { min-height: auto; }
  .network { height: 400px; }
  .orb { width: 52px; height: 52px; border-radius: 50%; }
  .orb svg { width: 32px; height: 32px; }
  .orb.core { width: 116px; height: 116px; }
  .orb.core img { width: 72px; }
  .o1, .o2 { top: 109px; }
  .o3, .o4 { top: 257px; }
  .o1 { left: 18%; }
  .o2 { left: 82%; }
  .o3 { left: 30%; }
  .o4 { left: 70%; }
  .o5 { top: 20px; left: 50%; }
  .actions { align-items: flex-start; flex-direction: column; }
  .contract-grid article { min-height: 390px; }
  .grant-card { grid-template-columns: 1fr; padding: 28px; }
  .ways div { grid-template-columns: 1fr; gap: 8px; }
}
