:root {
  /* Palette */
  --meta-blue: #0866FF; /* Meta Blue */
  --deep-navy: #0A0F1C; /* Background */
  --electric-violet: #6A5CFF; /* Accent */
  --white: #FFFFFF; /* Text/Surfaces */
  --soft-gray: #E3E6EA; /* Secondary text */

  /* Derived tokens */
  --bg: var(--deep-navy);
  --panel: #0f1726; /* slightly lighter than bg */
  --elev: #111b2d; /* elevated surfaces */
  --text: var(--white);
  --muted: #b9c1cf; /* softened contrast for body */
  --muted-2: #8f9ab0; /* secondary */
  --brand: var(--meta-blue);
  --brand-2: var(--electric-violet);
  --accent: linear-gradient(135deg, var(--meta-blue) 0%, var(--electric-violet) 100%);
  --ring: rgba(8, 102, 255, 0.35);
  --border: rgba(255,255,255,0.08);
  --shadow: 0 12px 40px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  background:
    radial-gradient(1400px 900px at 80% -10%, rgba(8, 102, 255, 0.08), transparent 60%),
    radial-gradient(1200px 800px at -10% 0%, rgba(106, 92, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #0A0F1C 0%, #0B1222 50%, #0C1428 100%);
  background-attachment: fixed;
  background-size: auto, auto, 100% 100%;
  background-position: 80% -10%, -10% 0%, center;
  color: var(--text);
  /* static background */
}


.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; letter-spacing: -0.01em; }
.brand img { filter: drop-shadow(0 1px 8px rgba(8,102,255,0.45)); }

.nav { display: flex; gap: 18px; align-items: center; justify-content: center; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; transition: color .2s ease; }
.nav a:hover { color: var(--white); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px; text-decoration: none; font-weight: 800; letter-spacing: 0.01em; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary { background: var(--accent); color: #0b1020; box-shadow: 0 8px 30px rgba(8, 102, 255, 0.35); border: 1px solid rgba(8,102,255,0.35); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 34px rgba(8,102,255,0.45); }
.btn-secondary { background: #132036; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); border-radius: 12px; padding: 10px 16px; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,0.04); transform: translateY(-1px); }

.hero { padding: 96px 0 48px; position: relative; }
.hero:before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 280px at 30% -10%, rgba(8,102,255,0.20), transparent), radial-gradient(900px 480px at 90% -10%, rgba(106,92,255,0.22), transparent); pointer-events: none; }
.hero-inner { display: grid; gap: 24px; position: relative; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; margin: 0; letter-spacing: -0.02em; }
.lead { color: var(--muted); font-size: 18px; max-width: 780px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Compact demo directly under hero CTAs */
.demo-compact { margin-top: 12px; display: grid; gap: 6px; }
.demo-compact-rail { position: relative; display: grid; grid-template-columns: repeat(9, auto); gap: 8px; align-items: center; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; overflow: hidden; width: fit-content; }
.demo-compact-node { position: relative; z-index: 1; font-size: 12px; font-weight: 800; color: var(--white); padding: 6px 10px; border-radius: 999px; background: #0f1726; border: 1px solid var(--border); }
.demo-compact-arrow { position: relative; z-index: 1; width: 36px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, rgba(8,102,255,0.0) 0%, rgba(8,102,255,0.7) 30%, rgba(106,92,255,0.8) 70%, rgba(106,92,255,0.0) 100%); overflow: hidden; }
.demo-compact-arrow:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 50%, transparent 100%); transform: translateX(-100%); animation: demo-sheen 1.6s linear infinite; }
.demo-compact-token { position: absolute; z-index: 0; top: 50%; transform: translateY(-50%); left: 12px; width: 8px; height: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--meta-blue), var(--electric-violet)); box-shadow: 0 0 0 3px rgba(8,102,255,0.15), 0 6px 12px rgba(0,0,0,0.35); animation: demo-compact-run 2.8s ease-in-out infinite; pointer-events: none; }
.demo-compact-meta { color: var(--muted); font-size: 12px; font-weight: 600; }

@keyframes demo-compact-run {
  0% { left: 12px; }
  25% { left: 30%; }
  50% { left: 55%; }
  75% { left: 78%; }
  100% { left: calc(100% - 18px); }
}

.hero-code { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: auto; }
.hero-code pre { margin: 0; padding: 18px; font-size: 13px; line-height: 1.5; color: #e9f2ff; }
.code-bar { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.02); }
.code-lang { color: var(--muted); font-size: 12px; font-weight: 700; }
.btn-copy { height: 30px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--border); background: #132036; color: var(--white); font-weight: 700; cursor: pointer; }
.btn-copy:hover { background: #172843; }

.features { padding: 28px 0; }
.features .prose { margin-bottom: 22px; }
.features .flow { list-style: none; padding-left: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; row-gap: 8px; }
.features .flow li { position: relative; padding: 10px 12px 10px 28px; border-bottom: 1px solid var(--border); border-radius: 10px; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.features .flow li:last-child { border-bottom: none; }
.features .flow li strong { color: var(--white); }
.features .flow li:before { content: ""; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 999px; background: linear-gradient(135deg, var(--meta-blue), var(--electric-violet)); box-shadow: 0 0 0 3px rgba(8,102,255,0.12); }
.features .flow li:hover { transform: translateY(-1px); background: rgba(255,255,255,0.02); border-color: rgba(8,102,255,0.25); }
.features .flow li:hover:after { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--meta-blue), var(--electric-violet)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { position: relative; background: rgba(17, 27, 45, 0.65); border-radius: 16px; padding: 18px; transition: transform .15s ease, box-shadow .15s ease; overflow: hidden; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.card:before { content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 1px; background: linear-gradient(135deg, rgba(8,102,255,0.35), rgba(106,92,255,0.35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.card h3 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }

.how-it-works { padding: 36px 0 14px; }
.how-it-works h2 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.01em; }
.flow { margin: 0; padding-left: 18px; color: var(--muted); }
.flow li { margin: 6px 0; }

.demo { padding: 18px 0 28px; }
.demo h2 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.01em; }
.demo-rail { position: relative; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 8px; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); border: 1px solid var(--border); border-radius: 16px; padding: 14px; overflow: hidden; }
.demo-node { display: grid; justify-items: center; gap: 6px; }
.demo-node-inner { width: 48px; height: 48px; border-radius: 999px; background: radial-gradient(60% 60% at 30% 20%, rgba(255,255,255,0.15), rgba(255,255,255,0.02)), #0f1726; border: 1px solid var(--border); display: grid; place-items: center; font-weight: 800; color: var(--white); box-shadow: 0 6px 16px rgba(0,0,0,0.35); animation: demo-pulse 2.4s ease-in-out infinite; }
.demo-node span { color: var(--muted); font-size: 12px; font-weight: 600; }
.demo-arrow { width: 56px; height: 4px; border-radius: 999px; background: linear-gradient(90deg, rgba(8,102,255,0.0) 0%, rgba(8,102,255,0.6) 30%, rgba(106,92,255,0.7) 70%, rgba(106,92,255,0.0) 100%); position: relative; overflow: hidden; }
.demo-arrow:after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.9) 50%, transparent 100%); transform: translateX(-100%); animation: demo-sheen 2.2s linear infinite; }

@keyframes demo-pulse { 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } }
@keyframes demo-sheen { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }

.demo-token { position: absolute; top: 50%; transform: translateY(-50%); left: 20px; width: 12px; height: 12px; border-radius: 999px; background: linear-gradient(135deg, var(--meta-blue), var(--electric-violet)); box-shadow: 0 0 0 4px rgba(8,102,255,0.15), 0 8px 16px rgba(0,0,0,0.35); animation: demo-run 3.6s ease-in-out infinite; }
@keyframes demo-run {
  0% { left: 22px; }
  20% { left: 20%; }
  40% { left: 40%; }
  60% { left: 60%; }
  80% { left: 80%; }
  100% { left: calc(100% - 22px); }
}

.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.demo-badge { border: 1px solid var(--border); padding: 6px 10px; border-radius: 999px; background: #111b2d; color: var(--white); font-weight: 700; font-size: 12px; }
.demo-legend { color: var(--muted); font-size: 12px; display: flex; gap: 14px; align-items: center; }
.dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; margin-right: 6px; }
.dot-blue { background: var(--meta-blue); box-shadow: 0 0 0 3px rgba(8,102,255,0.15); }
.dot-violet { background: var(--electric-violet); box-shadow: 0 0 0 3px rgba(106,92,255,0.15); }
.cta-wide { padding: 36px 0 72px; }
.cta-wide-inner { background: linear-gradient(180deg, rgba(8,102,255,0.12), rgba(106,92,255,0.10)); border: 1px solid var(--border); border-radius: 18px; padding: 18px; display: grid; gap: 10px; align-items: center; grid-template-columns: 1fr auto; }
.cta-buttons { display: flex; gap: 10px; }

.site-footer { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-inner { display: grid; gap: 10px; grid-template-columns: 1fr auto auto; align-items: center; }
.brand-foot { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); }
.foot-links { display: inline-flex; gap: 12px; }
.foot-links a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--white); }
.foot-links .icon { width: 16px; height: 16px; display: inline-block; vertical-align: middle; position: relative; top: -1px; }
.legal { color: var(--muted); font-size: 13px; }

/* Content page base */
.page-header { padding: 32px 0 12px; border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.page h1 { margin: 0; letter-spacing: -0.01em; }
.page .sub { color: var(--muted); margin-top: 6px; }
.prose { color: var(--text); }
.prose h2 { margin: 24px 0 8px; }
.prose p { color: var(--muted); }
.code { background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)), var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px; overflow: auto; box-shadow: var(--shadow); }
.kbd { border: 1px solid rgba(255,255,255,0.18); padding: 2px 6px; border-radius: 6px; background: #1a2133; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-size: 12px; }

@media (max-width: 720px) {
  .footer-inner { grid-template-columns: 1fr; justify-items: start; }
  .cta-wide-inner { grid-template-columns: 1fr; }
  .features .flow { grid-template-columns: 1fr; }
  .demo-rail { grid-template-columns: 1fr; gap: 10px; }
  .demo-arrow { display: none; }
  .demo-token { display: none; }
}


