/* ============================================================
   bdfdapi.com — landing
   pure HTML + CSS + vanilla JS
   ============================================================ */

:root {
  --bg: #07070c;
  --bg-2: #0b0b14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ecedf3;
  --text-dim: #9aa0b4;
  --text-mute: #6b7088;

  --accent-1: #7c5cff;   /* violet */
  --accent-2: #00e0ff;   /* cyan   */
  --accent-3: #ff4ddc;   /* magenta*/
  --accent-4: #5eead4;   /* mint   */

  --grad-primary: linear-gradient(135deg, #7c5cff 0%, #00e0ff 100%);
  --grad-text: linear-gradient(120deg, #c8b6ff 0%, #7c5cff 35%, #00e0ff 70%, #5eead4 100%);
  --grad-soft: linear-gradient(135deg, rgba(124,92,255,0.18), rgba(0,224,255,0.14));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-1: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(124,92,255,0.35), 0 20px 60px -20px rgba(124,92,255,0.55);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background:
    radial-gradient(1200px 800px at 12% -10%, rgba(124,92,255,0.18), transparent 60%),
    radial-gradient(900px 700px at 100% 10%, rgba(0,224,255,0.14), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(255,77,220,0.10), transparent 60%),
    var(--bg);
}

::selection { background: rgba(124,92,255,0.35); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; max-width: 100%; }
.mono { font-family: var(--font-mono); letter-spacing: .01em; }
.dim  { opacity: .6; }

/* ============== background fx ============== */
#bg-particles {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.grid-overlay {
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0) 75%);
  z-index: 0; pointer-events: none;
}
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .55;
  z-index: 0;
  pointer-events: none;
  will-change: transform;
}
.orb-1 { width: 520px; height: 520px; top: -160px; left: -120px;
  background: radial-gradient(circle, rgba(124,92,255,0.55), transparent 60%); animation: float1 18s ease-in-out infinite; }
.orb-2 { width: 480px; height: 480px; top: 20%; right: -180px;
  background: radial-gradient(circle, rgba(0,224,255,0.45), transparent 60%); animation: float2 22s ease-in-out infinite; }
.orb-3 { width: 600px; height: 600px; bottom: -260px; left: 30%;
  background: radial-gradient(circle, rgba(255,77,220,0.35), transparent 60%); animation: float3 26s ease-in-out infinite; }

@keyframes float1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(60px,80px)} }
@keyframes float2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-80px,60px)} }
@keyframes float3 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(40px,-60px)} }

/* ============== layout ============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

main, header, footer { position: relative; z-index: 2; }

/* ============== nav ============== */
.nav {
  position: sticky; top: 0;
  z-index: 50;
  padding: 14px 0;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7,7,12,0.55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7,7,12,0.78);
}
.nav-inner {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.02em;
  font-size: 18px;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 9px;
  background: var(--grad-primary);
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -10px rgba(124,92,255,0.8);
  position: relative;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.brand-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px #fff;
}
.brand-text { color: var(--text); }
.brand-accent {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px;
  color: var(--text-dim);
  transition: color .2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--grad-primary);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: all .25s var(--ease);
}
.nav-cta:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -16px rgba(124,92,255,0.6);
}

/* ============== buttons ============== */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 14px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 16px 26px; font-size: 16px; border-radius: 16px; }
.btn-primary {
  background: var(--grad-primary);
  color: #0a0a14;
  box-shadow: 0 14px 40px -14px rgba(124,92,255,0.7), inset 0 0 0 1px rgba(255,255,255,0.18);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -12px rgba(124,92,255,0.9), 0 0 0 1px rgba(0,224,255,0.4), inset 0 0 0 1px rgba(255,255,255,0.25);
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -16px rgba(0,224,255,0.5);
}

/* ============== hero ============== */
.hero {
  position: relative;
  padding: 80px 0 60px;
  min-height: calc(100vh - 60px);
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-inner {
  width: 100%; max-width: var(--container);
  margin: 0 auto; padding: 0 24px;
  text-align: center;
  position: relative; z-index: 2;
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  font-size: 12.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  backdrop-filter: blur(8px);
  margin-bottom: 28px;
}
.badge-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 0 rgba(94,234,212,0.7);
  animation: pulse 2s infinite;
}
.badge-divider {
  width: 1px; height: 14px; background: var(--border-strong);
}
.badge-mono {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-mute);
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(94,234,212,0.7); }
  70% { box-shadow: 0 0 0 12px rgba(94,234,212,0); }
  100% { box-shadow: 0 0 0 0 rgba(94,234,212,0); }
}

.hero-title {
  font-size: clamp(44px, 8.4vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: 0 0 24px;
}
.hero-title .line { display: block; }
.gradient-text {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  background-size: 200% 200%;
  animation: shimmer 8s ease-in-out infinite;
}
@keyframes shimmer {
  0%,100% { background-position: 0% 50%; }
  50%     { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--text-dim);
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.cenzo {
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.cta-row {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px; margin-bottom: 32px;
}

.hero-meta {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 18px 28px; margin-bottom: 56px;
  font-size: 13px; color: var(--text-mute);
}
.meta-item { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-green  { background: #5eead4; box-shadow: 0 0 10px #5eead4; }
.dot-blue   { background: #00e0ff; box-shadow: 0 0 10px #00e0ff; }
.dot-purple { background: #7c5cff; box-shadow: 0 0 10px #7c5cff; }

/* hero glass code card */
.hero-card {
  position: relative;
  max-width: 820px; margin: 0 auto;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  text-align: left;
  transition: transform .4s var(--ease);
  will-change: transform;
}
.hero-card-glow {
  position: absolute; inset: -2px;
  background: conic-gradient(from var(--ang,0deg), rgba(124,92,255,0.5), rgba(0,224,255,0.5), rgba(255,77,220,0.4), rgba(124,92,255,0.5));
  filter: blur(28px); opacity: .35; z-index: -1;
  animation: spin 14s linear infinite;
}
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --ang: 360deg; } }

.card-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  font-size: 13px;
}
.dots { display: flex; gap: 6px; }
.dots span { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.dots span:nth-child(1) { background: #ff5f57; }
.dots span:nth-child(2) { background: #febc2e; }
.dots span:nth-child(3) { background: #28c840; }
.card-title { color: var(--text-dim); font-family: var(--font-mono); }
.card-title .mono { color: var(--accent-2); margin-right: 6px; }
.card-status { display: inline-flex; align-items: center; gap: 8px; color: var(--text-mute); }

.code {
  margin: 0; padding: 22px 22px 26px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #cfd3e6;
  overflow-x: auto;
}
.c-key  { color: #c792ea; }
.c-fn   { color: #82aaff; }
.c-str  { color: #c3e88d; }
.c-num  { color: #f78c6c; }
.c-prop { color: #f07178; }
.c-var  { color: #ffcb6b; }
.c-com  { color: #6b7088; font-style: italic; }

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-mute); font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  opacity: .8;
}
.mouse {
  width: 22px; height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.mouse span {
  width: 3px; height: 7px; border-radius: 2px;
  background: var(--grad-primary);
  animation: scroll 1.6s var(--ease) infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* ============== sections ============== */
.section {
  padding: 110px 0;
  position: relative;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--accent-2);
  margin-bottom: 16px;
  letter-spacing: .04em;
  text-transform: lowercase;
}
.section-title {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 22px;
  max-width: 880px;
}
.section-lead {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 0 56px;
}
.section-lead strong { color: var(--text); }

/* ============== about pillars ============== */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
  margin-bottom: 18px;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 {
  margin: 0 0 8px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
}
.pillar p { margin: 0; color: var(--text-dim); font-size: 14.5px; }

/* ============== features ============== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  overflow: hidden;
  isolation: isolate;
  transition: transform .4s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
  cursor: pointer;
  outline: none;
}
.feature:hover, .feature:focus-visible {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.feature-glow {
  pointer-events: none;
  position: absolute; inset: -1px;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(124,92,255,0.25), transparent 45%);
  opacity: 0; transition: opacity .35s var(--ease);
  z-index: -1;
}
.feature:hover .feature-glow,
.feature:focus-visible .feature-glow { opacity: 1; }

.feature-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border-strong);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em;
}
.feature p { margin: 0 0 18px; color: var(--text-dim); font-size: 14.5px; }
.feature-foot {
  font-size: 12.5px;
  color: var(--text-mute);
  padding: 8px 12px;
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  display: inline-block;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
}
.tag-live { color: #5eead4; border-color: rgba(94,234,212,0.4); background: rgba(94,234,212,0.08); }
.tag-soon { color: #c8b6ff; border-color: rgba(200,182,255,0.4); background: rgba(124,92,255,0.10); }

/* "more" feature card */
.feature-more { position: relative; }
.more-grid {
  position: absolute; inset: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr;
  gap: 1px; opacity: .25; pointer-events: none;
  mask-image: radial-gradient(ellipse at 50% 100%, #000 20%, transparent 80%);
}
.more-grid span { background: rgba(255,255,255,0.06); border-radius: 4px; }

/* ============== why grid ============== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.why-card {
  position: relative;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
  transition: transform .4s var(--ease), border-color .3s var(--ease);
  overflow: hidden;
}
.why-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(124,92,255,0.0), rgba(0,224,255,0.0));
  transition: background .4s var(--ease);
}
.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.why-card:hover::before {
  background: linear-gradient(135deg, rgba(124,92,255,0.08), rgba(0,224,255,0.05));
}
.why-num {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.why-card h3 {
  margin: 0 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  position: relative;
}
.why-card p { margin: 0; color: var(--text-dim); font-size: 14.5px; position: relative; }
.why-card .mono { color: var(--accent-2); }

/* ============== status ============== */
.section-status { padding-top: 60px; }
.status-card {
  position: relative;
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.status-glow {
  position: absolute; inset: -2px;
  background: conic-gradient(from var(--ang,0deg), rgba(124,92,255,0.4), rgba(0,224,255,0.4), rgba(255,77,220,0.3), rgba(124,92,255,0.4));
  filter: blur(40px); opacity: .35; z-index: -1;
  animation: spin 18s linear infinite;
}
.status-top {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  margin-bottom: 24px;
}
.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-strong);
  font-size: 12px; letter-spacing: .12em;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ff4ddc;
  box-shadow: 0 0 0 0 rgba(255,77,220,0.7);
  animation: pulse2 1.6s infinite;
}
@keyframes pulse2 {
  0% { box-shadow: 0 0 0 0 rgba(255,77,220,0.7); }
  70% { box-shadow: 0 0 0 14px rgba(255,77,220,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,220,0); }
}
.status-eta { font-size: 12px; color: var(--text-mute); }
.status-title {
  margin: 0 0 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
  display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center;
}
.cooker {
  display: inline-block;
  animation: cook 2.6s ease-in-out infinite;
  transform-origin: center;
}
@keyframes cook {
  0%,100% { transform: translateY(0) rotate(-2deg); }
  50%     { transform: translateY(-6px) rotate(4deg); }
}
.status-sub {
  max-width: 620px; margin: 0 auto 34px;
  color: var(--text-dim);
  font-size: clamp(14.5px, 1.4vw, 16px);
}

.early-form {
  display: flex; gap: 10px;
  max-width: 520px; margin: 0 auto;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 6px;
  backdrop-filter: blur(8px);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.early-form:focus-within {
  border-color: rgba(124,92,255,0.55);
  box-shadow: 0 0 0 4px rgba(124,92,255,0.18);
}
.input-wrap {
  flex: 1;
  display: flex; align-items: center; gap: 10px;
  padding: 0 14px;
  color: var(--text-mute);
}
.input-wrap svg { width: 16px; height: 16px; flex-shrink: 0; }
.early-form input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  padding: 12px 0;
  min-width: 0;
}
.early-form input::placeholder { color: var(--text-mute); }
.early-form .btn { padding: 12px 18px; }

.form-msg {
  margin-top: 14px;
  font-size: 13px;
  color: var(--accent-4);
  min-height: 18px;
}
.form-msg.error { color: #ff7a90; }

.progress {
  margin-top: 44px;
  text-align: left;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.progress-row {
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: var(--text-dim);
  margin: 14px 0 6px;
}
.progress-row .mono { color: var(--text); }
.bar {
  height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
  position: relative;
}
.bar-fill {
  height: 100%; width: 0;
  background: var(--grad-primary);
  border-radius: inherit;
  transition: width 1.4s var(--ease);
  box-shadow: 0 0 12px rgba(124,92,255,0.6);
}
.bar.in-view .bar-fill { width: var(--w); }
.bar-pulse {
  background-image: linear-gradient(90deg, #7c5cff, #00e0ff, #ff4ddc, #7c5cff);
  background-size: 200% 100%;
  animation: pulseBar 2.8s linear infinite;
}
@keyframes pulseBar { to { background-position: -200% 0; } }

/* ============== community ============== */
.section-community { padding-top: 60px; padding-bottom: 110px; }
.community-card {
  position: relative;
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  overflow: hidden;
  isolation: isolate;
}
.community-glow {
  position: absolute; inset: -2px;
  background: conic-gradient(from var(--ang,0deg), rgba(88,101,242,0.45), rgba(0,224,255,0.4), rgba(124,92,255,0.45), rgba(88,101,242,0.45));
  filter: blur(50px); opacity: .35; z-index: -1;
  animation: spin 22s linear infinite;
}
.community-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
}
.community-grid .section-title { margin-bottom: 16px; font-size: clamp(28px, 3.6vw, 44px); }
.community-grid .section-lead  { margin-bottom: 28px; }
.community-grid .cta-row { justify-content: flex-start; margin-bottom: 0; }

.community-visual {
  position: relative;
  height: 320px;
  display: flex; align-items: center; justify-content: center;
}
.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}
.ring-1 { width: 220px; height: 220px; animation: ringSpin 22s linear infinite; }
.ring-2 { width: 280px; height: 280px; border-style: dashed; opacity: .5; animation: ringSpin 30s linear infinite reverse; }
.ring-3 { width: 340px; height: 340px; opacity: .25; }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.discord-mark {
  width: 110px; height: 110px;
  border-radius: 28px;
  background: linear-gradient(140deg, #5865f2, #7c5cff);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 30px 70px -20px rgba(88,101,242,0.7), inset 0 0 0 1px rgba(255,255,255,0.2);
  position: relative;
  z-index: 2;
  animation: bob 4s ease-in-out infinite;
}
.discord-mark svg { width: 56px; height: 56px; }
@keyframes bob {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-8px); }
}

.float-chip {
  position: absolute;
  font-size: 11.5px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  backdrop-filter: blur(8px);
  white-space: nowrap;
  z-index: 3;
}
.chip-1 { top: 20%; left: 8%;  animation: chipFloat 6s ease-in-out infinite; }
.chip-2 { bottom: 22%; right: 6%; animation: chipFloat 7s ease-in-out infinite reverse; }
.chip-3 { top: 50%; right: -10px; animation: chipFloat 8s ease-in-out infinite; }
@keyframes chipFloat {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}

/* ============== footer ============== */
.footer {
  padding: 50px 0 40px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.0), rgba(255,255,255,0.02));
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 24px;
  align-items: center;
}
.footer-brand .brand { margin-bottom: 8px; }
.footer-tag { margin: 0; color: var(--text-mute); font-size: 13.5px; }
.footer-links {
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
}
.footer-links a {
  font-size: 13.5px; color: var(--text-dim);
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--text); }
.footer-meta {
  display: flex; flex-direction: column; align-items: flex-end;
  gap: 4px; font-size: 12px; color: var(--text-mute);
}

/* ============== reveal animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: 0ms;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ============== responsive ============== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .pillars, .features { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .community-visual { height: 280px; margin-top: 8px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-links, .footer-meta { justify-content: center; align-items: center; }
}
@media (max-width: 640px) {
  .section { padding: 80px 0; }
  .hero { padding-top: 60px; min-height: auto; }
  .hero-meta { gap: 12px 18px; margin-bottom: 40px; }
  .pillars, .features { grid-template-columns: 1fr; }
  .status-card, .community-card { padding: 36px 22px; border-radius: 22px; }
  .early-form { flex-direction: column; padding: 10px; }
  .input-wrap { padding: 4px 10px; }
  .early-form .btn { width: 100%; justify-content: center; }
  .community-visual { height: 260px; }
  .ring-3 { width: 280px; height: 280px; }
  .ring-2 { width: 230px; height: 230px; }
  .ring-1 { width: 180px; height: 180px; }
  .scroll-hint { display: none; }
  .nav-cta span { display: none; }
  .nav-cta { padding: 9px; }
}

/* prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
