:root {
  color-scheme: dark;
  --bg: #030813;
  --panel: rgba(3, 12, 26, .82);
  --panel-strong: rgba(2, 10, 23, .92);
  --border: rgba(46, 145, 240, .42);
  --border-faint: rgba(52, 131, 215, .21);
  --text: #f6f9ff;
  --muted: #9db4d1;
  --cyan: #04e5f5;
  --blue: #2478ff;
  --glow: rgba(4, 229, 245, .18);
  --mono: 'Space Mono', ui-monospace, Consolas, monospace;
  --sans: 'DM Sans', Inter, system-ui, -apple-system, sans-serif;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); overflow-x: hidden; }
a,button { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #52edff; outline-offset: 4px; }
.ambient-scene {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle at 73% 12%, rgba(31, 93, 255, .20), transparent 27%),
    radial-gradient(circle at 20% 40%, rgba(0, 237, 255, .06), transparent 26%),
    linear-gradient(125deg, #020812 8%, #041023 55%, #020813 100%);
}
.ambient-scene::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image:
    linear-gradient(rgba(31,108,194,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,108,194,.08) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to right, transparent, black 22%, black 80%, transparent);
}
.ambient-scene::after {
  content: ""; position: absolute; right: -12vw; top: 10vh; width: min(66vw, 860px); aspect-ratio: 1/1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 46% 40%, rgba(255,255,255,.2), transparent 2%),
    radial-gradient(circle at 60% 52%, rgba(255,255,255,.26), transparent 1.8%),
    radial-gradient(circle at 53% 28%, rgba(255,255,255,.18), transparent 1.5%),
    radial-gradient(circle at center, rgba(27, 86, 165, .26), rgba(4,14,30,.12) 56%, transparent 68%),
    repeating-radial-gradient(circle at center, rgba(77,155,255,.18) 0 1px, transparent 1px 28px),
    linear-gradient(160deg, rgba(13,39,79,.06), rgba(0,0,0,0));
  box-shadow: inset 0 0 80px rgba(38,103,255,.25), 0 0 90px rgba(13,75,210,.14);
  filter: drop-shadow(0 0 25px rgba(36,120,255,.22));
  opacity: .92;
}
.page-shell { max-width: 1740px; min-height: 100vh; padding: 20px clamp(20px,2.2vw,42px) 14px; margin: 0 auto; }
.site-header {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 82px; backdrop-filter: blur(10px); background: linear-gradient(180deg, rgba(3,8,19,.82), rgba(3,8,19,.58));
  border: 1px solid rgba(35, 93, 160, .15); border-radius: 16px; padding: 10px 16px; margin-bottom: 16px;
}
.brand { display:inline-flex; gap:8px; align-items:center; flex-shrink:0; }
.brand img { width:58px; height:58px; filter: drop-shadow(0 0 12px rgba(32, 185, 255, .16)); }
.brand span { font-size: clamp(34px, 2.15vw, 44px); font-weight: 800; letter-spacing: -2px; color: #fff; }
.top-nav { display:flex; gap:13px; align-items:center; justify-content:center; font: 12px/1 var(--mono); letter-spacing: 2px; color: #b7d3ef; flex-wrap: wrap; }
.top-nav a { opacity: .86; }
.top-nav a:hover { color: var(--cyan); opacity: 1; }
.top-nav i { color: rgba(112, 154, 204, .44); font-style: normal; }
.header-actions { display:flex; align-items:center; gap:12px; }
.command-button, .discord-link {
  min-height: 46px; border-radius: 14px; border:1px solid rgba(39, 122, 221, .38); background: rgba(4, 16, 33, .76);
  color:#e9f4ff; display:inline-flex; align-items:center; gap:10px; padding: 0 15px; font-weight: 600;
}
.command-button:hover, .discord-link:hover { border-color: rgba(74, 191, 255, .52); box-shadow: 0 0 0 1px rgba(74,191,255,.12), 0 0 20px rgba(34, 132, 255, .1); }
.command-button kbd {
  border:1px solid rgba(112, 149, 205, .32); border-bottom-width:2px; border-radius:8px; background:#071322;
  padding: 5px 8px; font: 11px/1 var(--mono); color:#9ecbff;
}
.discord-link {
  background: linear-gradient(135deg, rgba(13,90,255,.16), rgba(3,228,246,.12));
}
.hero {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr);
  gap: clamp(24px, 3vw, 48px); min-height: 760px; padding: 92px clamp(18px, 3vw, 38px) 42px;
  border: 1px solid rgba(48, 137, 230, .36); border-radius: 28px;
  background: linear-gradient(180deg, rgba(2,11,25,.84), rgba(2,10,22,.93));
}
.hero::before {
  content:""; position:absolute; inset:0;
  background:
    radial-gradient(circle at 70% 18%, rgba(11,113,255,.18), transparent 25%),
    radial-gradient(circle at 19% 82%, rgba(0,237,255,.08), transparent 24%),
    linear-gradient(90deg, rgba(0,0,0,.0), rgba(0,0,0,.12));
}
.hero::after {
  content:""; position:absolute; inset:0; pointer-events:none;
  background: linear-gradient(90deg, rgba(2,8,19,.72) 0%, rgba(2,8,19,.16) 58%, rgba(2,8,19,.5) 100%);
}
.hero-grid {
  position:absolute; inset:0; opacity:.55; pointer-events:none;
  background:
    radial-gradient(circle at 72% 18%, rgba(66,140,255,.13), transparent 12%),
    linear-gradient(rgba(31,108,194,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,108,194,.06) 1px, transparent 1px);
  background-size: auto, 70px 70px, 70px 70px; mask-image: linear-gradient(to right, black 12%, black 68%, transparent 90%);
}
.hero-content, .hero-panel { position: relative; z-index: 1; }
.hero-content { max-width: 760px; }
.eyebrow { display:flex; gap:13px; align-items:center; flex-wrap:wrap; font: 11px/1.7 var(--mono); letter-spacing: 2.35px; color:#9fc5f1; margin-bottom: 38px; }
.eyebrow strong { font-weight:700; color:#eaf7ff; }
h1 { margin:0 0 18px; font-size: clamp(64px, 7.3vw, 110px); line-height:.93; letter-spacing:-5.4px; font-weight:800; color:#fff; }
h1 span { display:inline-block; background: linear-gradient(135deg, #12f0ff, #2b78ff 75%); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lead { max-width: 720px; margin:0 0 28px; font-size: clamp(17px, 1.24vw, 22px); line-height:1.65; color:#c1d5ee; }
.hero-actions { display:flex; flex-wrap: wrap; gap:14px; margin-bottom: 20px; }
.button {
  min-height: 60px; border-radius: 16px; padding: 0 20px; display:inline-flex; align-items:center; justify-content:center; gap:12px;
  font-size: 17px; font-weight: 700; border:1px solid rgba(57, 149, 242, .34);
}
.button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; }
.button-primary {
  color:#effdff; background: linear-gradient(135deg, #1796ff, #0fe3f6); box-shadow: 0 14px 38px rgba(8, 106, 226, .22), inset 0 1px 0 rgba(255,255,255,.22);
}
.button-primary:hover { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(8, 106, 226, .28), inset 0 1px 0 rgba(255,255,255,.28); }
.button-secondary { color:#f2f8ff; background: rgba(6, 20, 39, .82); }
.button-secondary:hover { border-color: rgba(82, 192, 255, .55); background: rgba(7, 24, 48, .92); }
.micro-copy { font: 11px/1.8 var(--mono); letter-spacing: 1.7px; color:#7da0c4; }
.hero-panel {
  align-self: end; position: relative; margin-bottom: 24px; border: 1px solid rgba(44, 133, 232, .36); border-radius: 22px; padding: 18px 18px 20px;
  background: linear-gradient(180deg, rgba(4,14,30,.82), rgba(3,12,27,.93)); backdrop-filter: blur(10px); box-shadow: 0 16px 40px rgba(0,0,0,.26);
}
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom: 14px; }
.panel-heading h2, .card-heading h2 { margin:0; font: 12px/1.4 var(--mono); letter-spacing: 1.7px; font-weight:700; color:#eff6ff; }
.panel-heading span, .card-heading span { display:block; height:2px; width:48px; border-radius: 999px; background: linear-gradient(90deg, transparent, var(--cyan), var(--blue)); }
.hero-panel-inner {
  min-height: 420px; border: 1px solid rgba(32, 104, 188, .3); border-radius: 18px; padding: 22px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, rgba(54, 139, 255, .15), transparent 18%),
    radial-gradient(circle at 26% 76%, rgba(5, 228, 244, .10), transparent 18%),
    linear-gradient(180deg, rgba(6,19,40,.78), rgba(3,11,24,.92));
}
.hero-panel-inner::before {
  content:""; position:absolute; right:-8%; top:-5%; width:min(78%, 430px); aspect-ratio:1/1; border-radius:50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.2), transparent 2%),
    repeating-radial-gradient(circle at center, rgba(86,162,255,.13) 0 1px, transparent 1px 20px),
    linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,0));
  opacity:.92;
  box-shadow: inset 0 0 65px rgba(38,103,255,.16);
}
.hero-kicker { position:relative; z-index:1; font: 12px/1.6 var(--mono); letter-spacing: 2px; color:#a1caf8; margin-bottom: 12px; }
.hero-panel p { position:relative; z-index:1; margin:0 0 18px; color:#c3d8ef; line-height:1.7; }
.hero-points { position:relative; z-index:1; display:grid; gap:14px; }
.point {
  border:1px solid rgba(42,126,214,.26); border-radius:16px; padding: 14px 15px;
  background: rgba(4, 17, 36, .58); box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.point strong { display:block; font-size:16px; margin-bottom:4px; color:#fff; }
.point span { display:block; color:#9db5d1; font-size:14px; line-height:1.55; }
.section { padding: 34px 0 0; }
.section-heading {
  display:grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 520px); gap: 20px; align-items:end; margin-bottom: 20px;
}
.section-heading.compact { grid-template-columns: minmax(0, 1fr) minmax(280px, 480px); }
.section-label { display:inline-block; font: 11px/1.6 var(--mono); letter-spacing: 1.9px; color:#89b7e6; margin-bottom: 10px; }
.section-heading h2 { margin:0; font-size: clamp(28px, 2.8vw, 42px); letter-spacing:-1.4px; }
.section-heading p { margin:0; color:#9db4d1; line-height:1.75; font-size:15px; }
.card-grid { display:grid; gap:18px; }
.ecosystem-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-card, .project-card, .activity-card, .about-card, .values-card, .cta-panel {
  border:1px solid rgba(48,137,230,.36); border-radius: 20px; background: linear-gradient(180deg, rgba(4,14,30,.84), rgba(3,11,24,.93));
  box-shadow: 0 10px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.02);
}
.info-card {
  display:flex; flex-direction:column; min-height: 260px; padding: 22px; position:relative; overflow:hidden;
}
.info-card::after {
  content:""; position:absolute; right:-40px; bottom:-44px; width:180px; height:180px; border-radius:50%;
  background: radial-gradient(circle at center, rgba(30, 122, 255, .18), transparent 68%);
}
.card-icon {
  width:54px; height:54px; border-radius: 16px; display:grid; place-items:center; margin-bottom: 22px;
  border:1px solid rgba(34, 135, 238, .42); background: rgba(6, 25, 50, .75); color:#1bbfff;
}
.card-icon svg { width:26px; height:26px; stroke:currentColor; stroke-width:1.75; stroke-linecap:round; stroke-linejoin:round; fill:none; }
.info-card h3, .project-content h3, .activity-card h3 { margin:0 0 8px; font-size: 24px; letter-spacing: -.6px; }
.info-card p { margin:0 0 auto; color:#a9c1dd; line-height:1.7; }
.card-link, .text-link { margin-top: 18px; display:inline-flex; color:#8fd7ff; font-weight:700; }
.info-card:hover, .project-card:hover, .activity-card:hover { transform: translateY(-2px); border-color: rgba(82, 192, 255, .55); }
.project-grid { grid-template-columns: 1.3fr 1fr 1fr; align-items:stretch; }
.project-card { overflow:hidden; display:flex; flex-direction:column; }
.feature-large { grid-row: span 2; }
.project-visual {
  min-height: 210px; position:relative;
  background:
    radial-gradient(circle at 72% 18%, rgba(48,132,255,.34), transparent 20%),
    linear-gradient(160deg, rgba(5, 14, 30, 0.1), rgba(5, 14, 30, 0.85));
}
.project-visual::before {
  content:""; position:absolute; inset: 0;
  background: linear-gradient(rgba(31,108,194,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(31,108,194,.06) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: .45;
}
.visual-discord {
  min-height: 320px;
  background:
    radial-gradient(circle at 78% 18%, rgba(47,132,255,.30), transparent 18%),
    radial-gradient(circle at 26% 82%, rgba(0,237,255,.12), transparent 18%),
    linear-gradient(180deg, rgba(4,13,28,.14), rgba(4,13,28,.8)),
    linear-gradient(145deg, #0d1730, #071120 68%);
}
.visual-discord::after {
  content:""; position:absolute; inset:auto 0 0 0; height:56%;
  background:
    radial-gradient(circle at 50% 88%, rgba(210, 236, 255, .16), transparent 40%),
    linear-gradient(180deg, transparent, rgba(1, 8, 17, .75));
}
.visual-tools {
  background:
    radial-gradient(circle at 20% 24%, rgba(0,237,255,.12), transparent 18%),
    linear-gradient(160deg, #091427, #050b16 72%);
}
.visual-tools::after {
  content:"</>"; position:absolute; inset:auto 18px 16px auto; font: 700 52px/1 var(--mono); color: rgba(37, 120, 255, .44);
}
.visual-lab {
  background:
    radial-gradient(circle at 62% 24%, rgba(37,120,255,.18), transparent 18%),
    linear-gradient(160deg, #081323, #040915 72%);
}
.visual-lab::after {
  content:""; position:absolute; inset:auto 18px 20px auto; width: 115px; height: 115px; border-radius:50%;
  border:1px solid rgba(86, 162, 255, .16); box-shadow: inset 0 0 0 24px rgba(12, 57, 130, .10), 0 0 45px rgba(36,120,255,.06);
}
.project-content { padding: 22px; display:flex; flex-direction:column; flex:1; }
.project-tag, .activity-date {
  display:inline-flex; align-self:flex-start; border-radius:999px; padding: 6px 10px; margin-bottom: 12px;
  font: 10px/1.3 var(--mono); letter-spacing: 1.3px; color:#99c7ef; border:1px solid rgba(42, 126, 214, .28); background: rgba(7, 24, 48, .72);
}
.project-content p, .activity-card p, .about-card p, .cta-panel p { margin:0; color:#a8c0dd; line-height:1.75; }
.project-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top: 18px; }
.project-meta span {
  display:inline-flex; padding: 6px 10px; border-radius:999px; background: rgba(7, 24, 48, .7); border:1px solid rgba(42,126,214,.24); color:#9cc1e5; font-size:12px;
}
.activity-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:18px; }
.activity-card { min-height: 220px; padding: 22px; }
.activity-card p { margin-top: 10px; }
.activity-callout { background: linear-gradient(180deg, rgba(7, 24, 48, .82), rgba(4, 14, 30, .95)); }
.inline-button {
  margin-top: 18px; min-height: 44px; border-radius: 12px; padding: 0 14px; border:1px solid rgba(42,126,214,.34); background: rgba(8, 29, 57, .84); color:#eff7ff; font-weight:700;
}
.inline-button:hover { border-color: rgba(82, 192, 255, .55); }
.split-section { display:grid; grid-template-columns: 1.1fr .9fr; gap:18px; }
.about-card, .values-card { padding: 24px; }
.about-card h2 { margin: 0 0 12px; font-size: clamp(28px, 2.5vw, 40px); letter-spacing:-1px; }
.about-card p + p { margin-top: 14px; }
.values-card { display:grid; gap:12px; }
.value-row {
  display:grid; grid-template-columns: 110px 1fr; gap:14px; align-items:start; padding: 16px 0; border-bottom:1px solid rgba(42,126,214,.18);
}
.value-row:last-child { border-bottom:none; }
.value-row strong { font-size: 18px; color:#fff; }
.value-row span { color:#a6bfd9; line-height:1.7; }
.community-cta { padding-bottom: 18px; }
.cta-panel {
  display:grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items:center; padding: 24px;
  background:
    radial-gradient(circle at 84% 16%, rgba(48,132,255,.18), transparent 18%),
    linear-gradient(180deg, rgba(4,14,30,.84), rgba(3,11,24,.95));
}
.cta-panel h3 { margin: 8px 0 10px; font-size: clamp(28px, 2vw, 38px); letter-spacing:-1px; }
.cta-actions { display:flex; gap:12px; flex-wrap:wrap; }
.site-footer {
  display:flex; justify-content:space-between; align-items:center; gap:20px; flex-wrap:wrap; font:10px/1.8 var(--mono); letter-spacing:1.2px; color:#6381a8; padding: 18px 5px 0;
}
.site-footer a { color:#8ebadc; }
.site-footer a:hover { color: var(--cyan); }
.palette-backdrop {
  position: fixed; inset:0; z-index: 30; background: rgba(2, 8, 19, .66); backdrop-filter: blur(10px);
}
.command-palette {
  position: fixed; z-index: 31; top: 10vh; left: 50%; transform: translateX(-50%); width: min(760px, calc(100vw - 28px));
  border:1px solid rgba(48,137,230,.4); border-radius: 22px; overflow:hidden;
  background: linear-gradient(180deg, rgba(5, 16, 34, .96), rgba(3, 11, 24, .98)); box-shadow: 0 30px 80px rgba(0,0,0,.38);
}
.palette-header, .palette-footer { padding: 16px 18px; }
.palette-header { display:flex; align-items:center; justify-content:space-between; gap:12px; border-bottom:1px solid rgba(42,126,214,.18); }
.palette-header h2 { margin:0; font-size: 18px; }
.palette-close {
  width: 38px; height: 38px; border-radius: 12px; border:1px solid rgba(42,126,214,.26); background: rgba(8, 29, 57, .84); color:#f2f8ff;
}
.palette-search { display:block; padding: 14px 18px; border-bottom:1px solid rgba(42,126,214,.18); }
.palette-search input {
  width:100%; min-height: 56px; border-radius: 14px; border:1px solid rgba(42,126,214,.28); background: rgba(4, 14, 30, .92); color:#f7fbff; font-size:16px; padding: 0 16px;
}
.palette-list { max-height: 46vh; overflow:auto; padding: 8px; }
.palette-item {
  display:flex; align-items:center; justify-content:space-between; gap:12px; border-radius: 14px; padding: 14px 12px; border:1px solid transparent;
}
.palette-item:hover, .palette-item.active { border-color: rgba(82, 192, 255, .45); background: rgba(6, 23, 46, .78); }
.palette-item span { display:block; }
.palette-item strong { font-size: 15px; color:#f4f9ff; }
.palette-item small { color:#90b0d2; }
.palette-item em { font: 11px/1 var(--mono); letter-spacing: 1.2px; color:#80cbff; font-style:normal; }
.palette-footer { border-top:1px solid rgba(42,126,214,.18); color:#8fb2d8; font-size: 13px; }
.palette-footer kbd { font: 12px/1 var(--mono); color:#d8ecff; border:1px solid rgba(42,126,214,.32); border-bottom-width:2px; border-radius:8px; padding: 4px 7px; background:#071322; }
.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; }
[hidden] { display: none !important; }

@media (max-width: 1310px) {
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-panel { max-width: 760px; margin-bottom: 0; }
  .ecosystem-grid, .activity-grid, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-large { grid-row: auto; }
  .section-heading { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .cta-panel { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; position: relative; }
  .top-nav { order:3; width:100%; justify-content:flex-start; }
  .hero { padding-top: 70px; }
  h1 { font-size: clamp(56px, 10vw, 84px); letter-spacing: -4px; }
  .ambient-scene::after { right: -24vw; width: min(88vw, 780px); opacity: .85; }
}
@media (max-width: 700px) {
  .page-shell { padding: 14px 16px 10px; }
  .site-header { min-height: 62px; gap: 12px; padding: 10px 12px; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 28px; letter-spacing: -1.8px; }
  .top-nav { gap: 8px; font-size: 9px; letter-spacing: .8px; }
  .header-actions { width: 100%; justify-content: space-between; }
  .command-button, .discord-link { min-height: 44px; padding: 0 12px; font-size: 14px; }
  .command-button span { display: none; }
  .hero { padding: 52px 14px 22px; border-radius: 20px; }
  .eyebrow { gap:8px; margin-bottom: 24px; font-size:9px; letter-spacing:1.5px; }
  h1 { font-size: clamp(40px, 14vw, 62px); letter-spacing: -2.8px; }
  .lead { font-size: 15px; }
  .button { width: 100%; min-height: 56px; font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-panel { padding: 14px; border-radius: 18px; }
  .hero-panel-inner { min-height: 0; padding: 16px; }
  .ecosystem-grid, .activity-grid, .project-grid { grid-template-columns: 1fr; }
  .info-card, .project-content, .activity-card, .about-card, .values-card, .cta-panel { padding: 18px; }
  .value-row { grid-template-columns: 1fr; gap: 4px; }
  .cta-actions { flex-direction: column; }
  .site-footer { font-size: 9px; gap: 8px; }
  .site-footer > span:nth-child(2) { display: none; }
  .ambient-scene::after { right: -42vw; top: 14vh; width: 108vw; opacity: .75; }
  .command-palette { top: 5vh; width: calc(100vw - 18px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
