@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Animation keyframes ---------- */
@keyframes float{
  0%,100%{transform:translateY(0);}
  50%{transform:translateY(-10px);}
}
@keyframes pulseGlow{
  0%,100%{box-shadow:0 30px 70px rgba(0,0,0,0.45), 0 0 0 rgba(74,159,219,0);}
  50%{box-shadow:0 30px 70px rgba(0,0,0,0.45), 0 0 46px rgba(74,159,219,0.28);}
}
@keyframes shimmer{
  0%{background-position:0% 50%;}
  100%{background-position:200% 50%;}
}
@keyframes fadeUp{
  from{opacity:0;transform:translateY(26px);}
  to{opacity:1;transform:translateY(0);}
}
@keyframes drift{
  0%{transform:translate(0,0) scale(1);}
  50%{transform:translate(-24px,18px) scale(1.06);}
  100%{transform:translate(0,0) scale(1);}
}
@keyframes spinSlow{
  from{transform:rotate(0deg);}
  to{transform:rotate(360deg);}
}

.reveal{
  opacity:0;
  transform:translateY(26px);
  transition:opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
}
.reveal.in-view{
  opacity:1;
  transform:translateY(0);
}
.reveal-stagger.in-view .feature-item{
  animation:fadeUp 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.reveal-stagger.in-view .feature-item:nth-child(1){animation-delay:0.02s;}
.reveal-stagger.in-view .feature-item:nth-child(2){animation-delay:0.1s;}
.reveal-stagger.in-view .feature-item:nth-child(3){animation-delay:0.18s;}

:root{
  --bg:#0B1330;
  --bg-elevated:#101A3E;
  --surface:#16224E;
  --surface-2:#1C2A5E;
  --border:#2A3A72;
  --border-soft:#1F2C5C;
  --accent:#1A5C95;
  --accent-bright:#5B8FF0;
  --accent-dim:#16255C;
  --accent-soft:rgba(91,143,240,0.16);
  --text:#FFFFFF;
  --text-muted:#B7C1E8;
  --text-dim:#7885B8;
  --font-display:'Space Grotesk',sans-serif;
  --font-body:'Inter',sans-serif;
  --font-mono:'JetBrains Mono',monospace;
  --radius:14px;
}

*{box-sizing:border-box;margin:0;padding:0;}

html{scroll-behavior:smooth;}

body{
  background:var(--bg);
  color:var(--text);
  font-family:var(--font-body);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:linear-gradient(180deg, var(--bg) 0%, var(--bg-elevated) 100%);
}

.bg-grid{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background-image:
    linear-gradient(rgba(91,143,240,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,143,240,0.07) 1px, transparent 1px);
  background-size:44px 44px;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  -webkit-mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
@media (min-width:900px){
  .bg-grid{animation:gridDrift 40s linear infinite;}
}
@keyframes gridDrift{
  from{background-position:0 0, 0 0;}
  to{background-position:44px 44px, 44px 44px;}
}

.bg-blobs{
  position:fixed;
  inset:0;
  z-index:-1;
  overflow:hidden;
  pointer-events:none;
  transform:translateZ(0);
}
.bg-blobs span{
  position:absolute;
  border-radius:50%;
  filter:blur(55px);
  opacity:0.4;
  will-change:transform;
  transform:translateZ(0);
}
.bg-blobs span:nth-child(1){
  width:440px;height:440px;
  top:-140px;left:-100px;
  background:rgba(91,143,240,0.4);
  animation:blobFloat1 28s ease-in-out infinite;
}
.bg-blobs span:nth-child(2){
  width:380px;height:380px;
  top:15%;right:-120px;
  background:rgba(26,92,149,0.45);
  animation:blobFloat2 34s ease-in-out infinite;
}
.bg-blobs span:nth-child(3){
  width:340px;height:340px;
  bottom:-80px;left:15%;
  background:rgba(91,143,240,0.25);
  animation:blobFloat3 30s ease-in-out infinite;
}
.bg-blobs span:nth-child(4){
  display:none;
}
@keyframes blobFloat1{
  0%,100%{transform:translate(0,0) translateZ(0) scale(1);}
  50%{transform:translate(60px,50px) translateZ(0) scale(1.15);}
}
@keyframes blobFloat2{
  0%,100%{transform:translate(0,0) translateZ(0) scale(1);}
  50%{transform:translate(-70px,40px) translateZ(0) scale(1.1);}
}
@keyframes blobFloat3{
  0%,100%{transform:translate(0,0) scale(1);}
  50%{transform:translate(40px,-60px) scale(1.2);}
}
@media (prefers-reduced-motion:reduce){
  .bg-blobs span{animation:none;}
  .bg-grid{animation:none;}
}

a{color:inherit;text-decoration:none;}
ul{list-style:none;}
img{max-width:100%;display:block;}

.wrap{
  max-width:1180px;
  margin:0 auto;
  padding:0 28px;
}

/* ---------- Nav ---------- */
.nav{
  position:sticky;
  top:0;
  z-index:100;
  background:rgba(11,19,48,0.92);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  border-bottom:1px solid var(--border-soft);
  transition:box-shadow 0.3s ease, background 0.3s ease;
}
.nav.scrolled{
  background:rgba(11,19,48,0.97);
  box-shadow:0 8px 30px rgba(0,0,0,0.35);
}
@media (max-width:900px){
  .nav{
    background:rgba(11,19,48,0.97);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .nav.scrolled{background:rgba(11,19,48,0.99);}
}
.nav .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.15rem;
  letter-spacing:0.01em;
}
.brand-mark{
  width:38px;
  height:38px;
  border-radius:11px;
  background:linear-gradient(145deg,var(--accent-bright),var(--accent-dim));
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  color:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,0.08) inset, 0 6px 18px rgba(26,92,149,0.35);
  flex-shrink:0;
}
.nav-links{
  display:flex;
  align-items:center;
  gap:34px;
}
.nav-links a{
  font-size:0.92rem;
  color:var(--text-muted);
  font-weight:500;
  transition:color 0.2s ease;
}
.nav-links a:hover{color:var(--text);}
.nav-cta{
  display:flex;
  align-items:center;
  gap:12px;
}
.nav-toggle{
  display:none;
  background:none;
  border:1px solid var(--border);
  border-radius:8px;
  width:40px;
  height:40px;
  color:var(--text);
  font-size:1.1rem;
  cursor:pointer;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.92rem;
  padding:12px 22px;
  border-radius:10px;
  border:1px solid transparent;
  cursor:pointer;
  transition:transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space:nowrap;
  position:relative;
  overflow:hidden;
}
.btn::after{
  content:"";
  position:absolute;
  top:0;
  left:-120%;
  width:60%;
  height:100%;
  background:linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform:skewX(-20deg);
  transition:left 0.6s ease;
}
.btn:hover::after{left:140%;}
.btn:active{transform:translateY(1px);}
.btn-primary{
  background:#fff;
  color:var(--bg);
  box-shadow:0 8px 22px rgba(0,0,0,0.25);
}
.btn-primary:hover{box-shadow:0 10px 28px rgba(0,0,0,0.3);transform:translateY(-1px);background:#F2F5F8;}
.btn-secondary{
  background:var(--accent-bright);
  color:#fff;
  box-shadow:0 8px 22px rgba(26,92,149,0.4);
}
.btn-secondary:hover{box-shadow:0 10px 28px rgba(26,92,149,0.55);transform:translateY(-1px);}
.btn-ghost{
  background:transparent;
  color:var(--text);
  border-color:var(--border);
}
.btn-ghost:hover{border-color:var(--accent-bright);background:var(--surface);}
.btn-sm{padding:9px 16px;font-size:0.84rem;}
.btn-block{width:100%;}

/* ---------- Hero ---------- */
.hero{
  padding:96px 0 56px;
}
.hero-centered{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  max-width:680px;
  margin:0 auto;
}
.hero-icon{
  width:88px;
  height:88px;
  border-radius:24px;
  overflow:hidden;
  margin-bottom:28px;
  box-shadow:0 16px 40px rgba(26,92,149,0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.hero-icon img{width:100%;height:100%;object-fit:cover;}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-family:var(--font-mono);
  font-size:0.78rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent-bright);
  background:var(--accent-soft);
  border:1px solid rgba(74,159,219,0.35);
  padding:6px 12px;
  border-radius:20px;
  margin-bottom:22px;
}
.eyebrow .dot{
  width:6px;height:6px;border-radius:50%;
  background:var(--accent-bright);
  box-shadow:0 0 8px var(--accent-bright);
  animation:pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot{
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:0.55;transform:scale(0.75);}
}
.hero h1{
  font-family:var(--font-display);
  font-size:3.1rem;
  line-height:1.12;
  font-weight:700;
  letter-spacing:-0.01em;
  margin-bottom:20px;
}
.hero h1 .accent-text{
  background:linear-gradient(90deg, var(--accent-bright), #7FC4F0, var(--accent-bright));
  background-size:200% auto;
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  animation:shimmer 4s linear infinite;
  display:inline-block;
}
.hero p.lead{
  font-size:1.08rem;
  color:var(--text-muted);
  max-width:520px;
  margin:0 auto 34px;
}
.hero-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:14px;
  margin-bottom:40px;
}
.hero-stats{
  display:flex;
  justify-content:center;
  gap:36px;
}
.hero-stats .stat-num{
  font-family:var(--font-display);
  font-size:1.7rem;
  font-weight:700;
  color:var(--text);
}
.hero-stats .stat-label{
  font-size:0.78rem;
  color:var(--text-dim);
  text-transform:uppercase;
  letter-spacing:0.05em;
  margin-top:2px;
}
.hero-centered > *{
  opacity:0;
  animation:fadeUp 0.7s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-centered > .hero-icon{animation-delay:0.05s;}
.hero-centered > .eyebrow{animation-delay:0.12s;}
.hero-centered > h1{animation-delay:0.2s;}
.hero-centered > .lead{animation-delay:0.28s;}
.hero-centered > .hero-actions{animation-delay:0.36s;}
.hero-centered > .hero-stats{animation-delay:0.44s;}
@media (prefers-reduced-motion:reduce){
  .hero-centered > *{animation:none;opacity:1;}
  .mockup{animation:none;opacity:1;}
}

/* ---------- Preview section (embed mockup showcase) ---------- */
.preview-section{
  padding:0 0 64px;
  display:flex;
  justify-content:center;
}
.preview-section .wrap{
  max-width:460px;
}

/* ---------- Embed mockup (signature element) ---------- */
.mockup{
  background:var(--bg-elevated);
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px;
  box-shadow:0 30px 70px rgba(0,0,0,0.45);
  opacity:0;
  animation:fadeUp 0.8s cubic-bezier(0.16,1,0.3,1) 0.15s both, float 6s ease-in-out 0.9s infinite, pulseGlow 6s ease-in-out 0.9s infinite;
}
.mockup-bar{
  display:flex;
  gap:7px;
  margin-bottom:18px;
}
.mockup-bar span{
  width:11px;height:11px;border-radius:50%;
  background:var(--surface-2);
  border:1px solid var(--border);
}
.mockup-msg{
  display:flex;
  gap:14px;
}
.mockup-avatar{
  width:42px;
  height:42px;
  border-radius:50%;  /* Keep this for circle */
  background:linear-gradient(145deg,var(--accent-bright),var(--accent-dim));
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;  /* Keep this to clip the image to circle */
  padding:0;
}
.mockup-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;  /* ← THIS is the key change */
  display:block;
}
.mockup-body{flex:1;min-width:0;}
.mockup-name{
  font-weight:600;
  font-size:0.92rem;
  margin-bottom:2px;
  display:flex;
  align-items:center;
  gap:5px;
}
.mockup-name .bot-tag{
  display:inline-flex;
  align-items:center;
  gap:3px;
  font-size:0.62rem;
  background:#5865F2;
  color:#fff;
  padding:1px 6px 1px 5px;
  border-radius:4px;
  margin-left:6px;
  vertical-align:middle;
  font-weight:600;
  letter-spacing:0.02em;
}
.mockup-name .bot-tag svg{flex-shrink:0;}
.mockup-cmd{
  font-family:var(--font-mono);
  font-size:0.82rem;
  color:var(--text-dim);
  margin-bottom:10px;
}
.embed-card{
  background:var(--surface);
  border-left:4px solid var(--accent);
  border-radius:5px;
  padding:14px 16px;
  min-height:150px;
  transition:opacity 0.25s ease;
}
.embed-title{
  font-weight:700;
  font-size:0.98rem;
  margin-bottom:8px;
}
.embed-desc{
  font-size:0.85rem;
  color:var(--text-muted);
  margin-bottom:10px;
}
.embed-desc code, .embed-code{
  display:block;
  font-family:var(--font-mono);
  font-size:0.76rem;
  color:var(--accent-bright);
  background:rgba(26,92,149,0.12);
  padding:8px 10px;
  border-radius:6px;
  line-height:1.7;
  word-break:break-word;
}
.embed-footer{
  font-size:0.7rem;
  color:var(--text-dim);
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid var(--border-soft);
}
.mockup-select{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:8px;
  padding:10px 14px;
  margin-top:12px;
  cursor:default;
  transition:border-color 0.2s ease;
}
.mockup-select .select-icon{font-size:0.95rem;}
.mockup-select .select-text{
  flex:1;
  font-size:0.84rem;
  font-weight:500;
  color:var(--text);
}
.mockup-select .select-chevron{
  color:var(--text-dim);
  font-size:0.8rem;
}
.mockup-dots{
  display:flex;
  gap:7px;
  justify-content:center;
  margin-top:18px;
}
.mockup-dots button{
  width:7px;height:7px;border-radius:50%;
  background:var(--border);
  border:none;
  cursor:pointer;
  padding:0;
  transition:background 0.2s ease, width 0.2s ease;
}
.mockup-dots button.active{
  background:var(--accent-bright);
  width:20px;
  border-radius:4px;
}

/* ---------- Section shared ---------- */
section{padding:70px 0;}
.section-head{
  text-align:center;
  max-width:640px;
  margin:0 auto 48px;
}
.section-tag{
  font-family:var(--font-mono);
  font-size:0.78rem;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:var(--accent-bright);
  margin-bottom:12px;
  display:block;
}
.section-head h2{
  font-family:var(--font-display);
  font-size:2.1rem;
  font-weight:700;
  margin-bottom:12px;
}
.section-head p{color:var(--text-muted);}

/* ---------- Category grid ---------- */
.cmd-search{
  display:flex;
  align-items:center;
  gap:10px;
  max-width:480px;
  margin:0 auto 32px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:12px;
  padding:12px 16px;
  transition:border-color 0.2s ease, box-shadow 0.2s ease;
}
.cmd-search:focus-within{
  border-color:var(--accent-bright);
  box-shadow:0 0 0 3px rgba(74,159,219,0.15);
}
.cmd-search svg{color:var(--text-dim);flex-shrink:0;}
.cmd-search input{
  flex:1;
  background:none;
  border:none;
  outline:none;
  color:var(--text);
  font-family:var(--font-body);
  font-size:0.92rem;
}
.cmd-search input::placeholder{color:var(--text-dim);}
.cmd-search-count{
  font-family:var(--font-mono);
  font-size:0.74rem;
  color:var(--text-dim);
  flex-shrink:0;
}
.cmd-search-empty{
  display:none;
  text-align:center;
  color:var(--text-dim);
  font-size:0.88rem;
  margin:-16px 0 32px;
}
.cmd-search-empty.visible{display:block;}
.cmd-name mark, .cmd-desc mark{
  background:rgba(74,159,219,0.28);
  color:var(--text);
  border-radius:3px;
  padding:0 1px;
}
/* ---------- Pitch grid (homepage category teasers) ---------- */
.pitch-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
  gap:16px;
}
.pitch-card{
  display:flex;
  flex-direction:column;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  padding:22px 22px 20px;
  transition:border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.pitch-card:hover{
  border-color:rgba(91,143,240,0.45);
  transform:translateY(-4px);
  box-shadow:0 16px 34px rgba(0,0,0,0.35);
}
.pitch-icon{font-size:1.7rem;margin-bottom:12px;}
.pitch-title{
  font-family:var(--font-display);
  font-weight:700;
  font-size:1.05rem;
  margin-bottom:2px;
}
.pitch-count{
  font-family:var(--font-mono);
  font-size:0.72rem;
  color:var(--accent-bright);
  margin-bottom:10px;
}
.pitch-desc{
  font-size:0.85rem;
  color:var(--text-muted);
  line-height:1.5;
}
.pitch-card-all{
  background:linear-gradient(145deg, var(--accent-dim), var(--surface));
  border-color:rgba(91,143,240,0.35);
}
.pitch-card-all .pitch-count{color:var(--text);}

/* ---------- Dev chip (compact, homepage) ---------- */
.dev-chip{
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:100px;
  padding:8px 20px 8px 8px;
  max-width:360px;
  margin:0 auto;
  transition:border-color 0.2s ease, transform 0.2s ease;
}
.dev-chip:hover{border-color:rgba(91,143,240,0.4);transform:translateY(-1px);}
.dev-chip-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  object-fit:cover;
  border:2px solid var(--border-soft);
  flex-shrink:0;
}
.dev-chip-text{
  display:flex;
  flex-direction:column;
  flex:1;
  min-width:0;
}
.dev-chip-label{
  font-family:var(--font-mono);
  font-size:0.64rem;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--accent-bright);
}
.dev-chip-name{
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.88rem;
}
.dev-chip-handle{
  font-family:var(--font-body);
  font-weight:500;
  color:var(--text-dim);
  font-size:0.8rem;
}
.dev-chip-arrow{
  color:var(--text-dim);
  transition:transform 0.2s ease, color 0.2s ease;
}
.dev-chip:hover .dev-chip-arrow{transform:translateX(3px);color:var(--accent-bright);}

/* ---------- Commands page (dedicated /commands) ---------- */
.cmd-page-section{padding:50px 0 90px;}
.cmd-filters{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:28px;
}
.cmd-filter{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:100px;
  padding:9px 16px;
  font-family:var(--font-body);
  font-weight:600;
  font-size:0.84rem;
  color:var(--text-muted);
  cursor:pointer;
  transition:border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.cmd-filter:hover{border-color:rgba(91,143,240,0.4);color:var(--text);}
.cmd-filter.active{
  background:var(--accent-bright);
  border-color:var(--accent-bright);
  color:#fff;
}
.cmd-filter-count{
  font-family:var(--font-mono);
  font-size:0.74rem;
  opacity:0.75;
}
.cmd-list{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(300px,1fr));
  gap:14px;
}
.cmd-row-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-left:3px solid var(--accent-bright);
  border-radius:10px;
  padding:16px 18px;
}
.cmd-row-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.cmd-row-name{
  font-family:var(--font-mono);
  font-weight:700;
  font-size:0.92rem;
  color:var(--accent-bright);
}
.cmd-row-cat{
  font-size:0.68rem;
  color:var(--text-dim);
  white-space:nowrap;
  flex-shrink:0;
}
.cmd-row-desc{
  font-size:0.85rem;
  color:var(--text-muted);
  line-height:1.4;
  margin-bottom:12px;
}
.cmd-row-chips{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}
.cmd-chip{
  font-family:var(--font-mono);
  font-size:0.7rem;
  color:var(--text-dim);
  background:var(--surface-2);
  padding:3px 9px;
  border-radius:6px;
}
.cmd-chip-prefix{
  color:var(--accent-bright);
  background:rgba(91,143,240,0.12);
  font-weight:600;
}
@media (max-width:640px){
  .cmd-list{grid-template-columns:1fr;}
}

.feature-strip{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
  width:100%;
  max-width:900px;
}
.feature-item{
  display:flex;
  align-items:flex-start;
  gap:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:14px;
  padding:18px 20px;
}
.feature-icon{
  font-size:1.4rem;
  line-height:1;
  flex-shrink:0;
}
.feature-title{
  font-family:var(--font-display);
  font-weight:600;
  font-size:0.9rem;
  margin-bottom:3px;
}
.feature-desc{
  font-size:0.8rem;
  color:var(--text-dim);
  line-height:1.4;
}
@media (max-width:900px){
  .feature-strip{grid-template-columns:1fr;}
}

/* ---------- Footer ---------- */
footer{
  border-top:1px solid var(--border-soft);
  padding:48px 0 32px;
  margin-top:40px;
}
.footer-top{
  display:flex;
  justify-content:space-between;
  gap:40px;
  flex-wrap:wrap;
  margin-bottom:36px;
}
.footer-brand p{
  color:var(--text-dim);
  font-size:0.86rem;
  max-width:280px;
  margin-top:12px;
}
.footer-cols{
  display:flex;
  gap:56px;
  flex-wrap:wrap;
}
.footer-col h4{
  font-family:var(--font-display);
  font-size:0.85rem;
  margin-bottom:14px;
  color:var(--text);
}
.footer-col a{
  display:block;
  color:var(--text-dim);
  font-size:0.86rem;
  margin-bottom:10px;
  transition:color 0.2s ease;
}
.footer-col a:hover{color:var(--accent-bright);}
.footer-bottom{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  padding-top:24px;
  border-top:1px solid var(--border-soft);
  font-size:0.8rem;
  color:var(--text-dim);
}

/* ---------- Legal pages ---------- */
.legal-hero{
  padding:64px 0 32px;
  border-bottom:1px solid var(--border-soft);
}
.legal-hero .section-tag{margin-bottom:14px;}
.legal-hero h1{
  font-family:var(--font-display);
  font-size:2.4rem;
  font-weight:700;
  margin-bottom:10px;
}
.legal-updated{
  font-family:var(--font-mono);
  font-size:0.82rem;
  color:var(--text-dim);
}
.legal-body{
  padding:56px 0 90px;
  display:grid;
  grid-template-columns:220px 1fr;
  gap:56px;
}
.legal-toc{
  position:sticky;
  top:96px;
  align-self:start;
}
.legal-toc a{
  display:block;
  font-size:0.84rem;
  color:var(--text-dim);
  padding:7px 0 7px 14px;
  border-left:2px solid var(--border);
  transition:color 0.2s ease, border-color 0.2s ease;
}
.legal-toc a:hover{color:var(--accent-bright);border-color:var(--accent-bright);}
.legal-content h2{
  font-family:var(--font-display);
  font-size:1.3rem;
  margin:38px 0 14px;
  padding-top:6px;
  scroll-margin-top:96px;
}
.legal-content h2:first-child{margin-top:0;}
.legal-content p{
  color:var(--text-muted);
  margin-bottom:14px;
  font-size:0.95rem;
}
.legal-content ul{
  margin:0 0 14px 0;
}
.legal-content li{
  color:var(--text-muted);
  font-size:0.95rem;
  padding-left:20px;
  position:relative;
  margin-bottom:9px;
}
.legal-content li::before{
  content:"—";
  position:absolute;
  left:0;
  color:var(--accent-bright);
}
.legal-content strong{color:var(--text);font-weight:600;}
.legal-content a.inline-link{color:var(--accent-bright);border-bottom:1px solid rgba(74,159,219,0.4);}
.legal-note{
  background:var(--surface);
  border:1px solid var(--border);
  border-left:3px solid var(--accent);
  border-radius:8px;
  padding:16px 18px;
  font-size:0.88rem;
  color:var(--text-muted);
  margin:20px 0;
}

/* ---------- Responsive ---------- */
@media (max-width:900px){
  .hero h1{font-size:2.5rem;}
  .nav-links{
    position:absolute;
    top:72px;left:0;right:0;
    background:var(--bg-elevated);
    border-bottom:1px solid var(--border-soft);
    flex-direction:column;
    align-items:flex-start;
    padding:20px 28px;
    gap:18px;
    display:none;
  }
  .nav-links.open{display:flex;}
  .nav-toggle{display:block;}
  .legal-body{grid-template-columns:1fr;}
  .legal-toc{position:static;display:flex;flex-wrap:wrap;gap:10px 18px;margin-bottom:20px;}
  .legal-toc a{border-left:none;border-bottom:2px solid var(--border);padding:0 0 6px;}
}
@media (max-width:560px){
  .hero h1{font-size:2.1rem;}
  .hero-stats{gap:24px;}
  .footer-top{flex-direction:column;}
}

@media (prefers-reduced-motion:reduce){
  *{animation-duration:0.01ms !important;transition-duration:0.01ms !important;}
}
