/* =========================================================
   Agentic-J — Landing page
   Modern scientific dark theme
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg:            #0a0e1a;
  --bg-2:          #0c1220;
  --surface:       #111a2c;
  --surface-2:     #16223a;
  --surface-3:     #1c2a47;
  --border:        #1f2c4a;
  --border-2:      #2a3a5e;
  --text:          #e7ecf5;
  --text-muted:    #97a3bd;
  --text-faint:    #6b7796;
  --accent:        #2dd4bf;
  --accent-2:      #38bdf8;
  --accent-3:      #a78bfa;
  --accent-4:      #f472b6;
  --warn:          #fbbf24;

  --gradient: linear-gradient(135deg, #2dd4bf 0%, #38bdf8 50%, #a78bfa 100%);
  --gradient-soft: linear-gradient(135deg, rgba(45,212,191,.16), rgba(56,189,248,.16) 50%, rgba(167,139,250,.16));
  --gradient-text: linear-gradient(120deg, #2dd4bf, #38bdf8 45%, #a78bfa);

  --radius:    14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow:    0 8px 30px rgba(2, 6, 23, .55);
  --shadow-2:  0 30px 80px -20px rgba(56, 189, 248, .25);

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

  --max-w: 1180px;
  --pad: clamp(20px, 4vw, 40px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
p { margin: 0; }

/* ---------- Background mesh ---------- */
.bg-mesh {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(800px 500px at 12% -8%, rgba(45,212,191,.16), transparent 60%),
    radial-gradient(900px 600px at 110% 0%, rgba(167,139,250,.18), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(56,189,248,.14), transparent 60%);
}
.bg-grid {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at top, black 30%, transparent 75%);
}

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

/* ---------- Container ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, .65);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: -.01em;
}
.brand-logo { width: 32px; height: 32px; border-radius: 8px; }
.brand-name { font-size: 16px; }
.brand-name span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 14.5px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav-cta {
  padding: 8px 14px !important;
  border: 1px solid var(--border-2) !important;
  background: rgba(255,255,255,.02) !important;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--accent-2) !important; }

@media (max-width: 720px) {
  .nav-links a:not(.nav-cta) { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: #07111f;
  box-shadow: 0 6px 22px -8px rgba(45,212,191,.7), 0 0 0 1px rgba(255,255,255,.08) inset;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -10px rgba(56,189,248,.7); }
.btn-ghost {
  background: rgba(255,255,255,.03);
  color: var(--text);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent-2); background: rgba(56,189,248,.06); }

.kbd {
  font-family: var(--font-mono); font-size: 11.5px;
  padding: 2px 6px; border-radius: 5px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border-2);
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(60px, 10vh, 110px) 0 80px;
  text-align: left;
  position: relative;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12.5px; letter-spacing: .04em;
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.25);
  color: #b6e6fb;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--accent); box-shadow: 0 0 12px var(--accent);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.02;
}
.hero h1 .grad {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  margin-top: 22px;
  max-width: 640px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-muted);
}
.hero-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

.trust {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 18px 22px;
  font-size: 13.5px; color: var(--text-faint);
}
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--accent); flex-shrink: 0; }

.hero-stats {
  margin-top: 56px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  max-width: 760px;
}
.hero-stats .stat .num {
  font-family: var(--font-mono); font-size: 28px;
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-stats .stat .lbl { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }

@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Mockup window (chat panel + Fiji) ---------- */
.hero-visual { margin-top: 64px; }
.window {
  border: 1px solid var(--border-2);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2), var(--shadow);
  position: relative;
}
.window::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-soft);
  opacity: .15; pointer-events: none;
}
.win-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0,0,0,.25);
}
.win-bar .dots { display: inline-flex; gap: 6px; }
.win-bar .dots i {
  width: 11px; height: 11px; border-radius: 999px;
  background: #2a334a;
}
.win-bar .dots i:nth-child(1) { background: #ff5f57; }
.win-bar .dots i:nth-child(2) { background: #febc2e; }
.win-bar .dots i:nth-child(3) { background: #28c840; }
.win-bar .url {
  flex: 1; text-align: center; font-family: var(--font-mono); font-size: 12.5px;
  color: var(--text-muted);
}
.win-body { display: grid; grid-template-columns: 360px 1fr; min-height: 460px; }
@media (max-width: 820px) { .win-body { grid-template-columns: 1fr; } }

/* Hero variant — single screenshot fills the window chrome */
.window-shot { margin: 0; }
.window-shot img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-2);
}

/* Chat panel */
.chat {
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  background: rgba(0,0,0,.18);
}
.chat-head {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.chat-head .badge {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 8px; border-radius: 999px;
  background: rgba(45,212,191,.12); color: #7eecd8;
  border: 1px solid rgba(45,212,191,.25);
}
.chat-head .ttl { font-weight: 600; font-size: 14px; }
.chat-msgs { flex: 1; padding: 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.msg { font-size: 14px; line-height: 1.55; }
.msg .who { font-size: 11.5px; color: var(--text-faint); margin-bottom: 6px; letter-spacing: .04em; text-transform: uppercase; }
.msg.user .bubble {
  background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.2);
  padding: 10px 12px; border-radius: 10px;
}
.msg.agent .bubble {
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 10px 12px; border-radius: 10px;
}
.msg .tool {
  margin-top: 8px;
  font-family: var(--font-mono); font-size: 12px;
  background: rgba(0,0,0,.4); border: 1px solid var(--border);
  padding: 8px 10px; border-radius: 8px;
  color: #b6e6fb;
}
.chat-input {
  border-top: 1px solid var(--border);
  padding: 12px 14px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(0,0,0,.25);
}
.chat-input input {
  flex: 1;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  padding: 9px 12px; font-size: 13.5px;
  outline: none;
}
.chat-input .send {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gradient); color: #07111f;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* Fiji preview */
.fiji {
  background:
    radial-gradient(400px 300px at 30% 30%, rgba(56,189,248,.12), transparent 70%),
    radial-gradient(500px 400px at 80% 80%, rgba(167,139,250,.12), transparent 70%),
    var(--bg);
  position: relative; padding: 22px;
  display: grid; grid-template-rows: auto 1fr; gap: 14px;
}
.fiji-toolbar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-muted);
  font-family: var(--font-mono);
}
.fiji-toolbar .pill {
  padding: 3px 8px; border-radius: 6px; background: rgba(45,212,191,.1); color: #7eecd8;
  border: 1px solid rgba(45,212,191,.25);
}
.fiji-canvas {
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(circle at 30% 35%, rgba(167,139,250,.6) 0 5px, transparent 7px),
    radial-gradient(circle at 55% 50%, rgba(56,189,248,.6) 0 7px, transparent 9px),
    radial-gradient(circle at 70% 30%, rgba(45,212,191,.6) 0 4px, transparent 6px),
    radial-gradient(circle at 40% 70%, rgba(56,189,248,.5) 0 6px, transparent 8px),
    radial-gradient(circle at 75% 75%, rgba(167,139,250,.5) 0 5px, transparent 7px),
    radial-gradient(circle at 20% 80%, rgba(45,212,191,.45) 0 5px, transparent 7px),
    radial-gradient(circle at 85% 50%, rgba(56,189,248,.5) 0 4px, transparent 6px),
    radial-gradient(circle at 50% 20%, rgba(167,139,250,.5) 0 5px, transparent 7px),
    #07111f;
  display: grid; place-items: center;
  position: relative;
  overflow: hidden;
  min-height: 240px;
}
.fiji-canvas::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.fiji-canvas .label {
  position: absolute; bottom: 12px; left: 14px;
  font-family: var(--font-mono); font-size: 11px;
  background: rgba(0,0,0,.55); border: 1px solid var(--border);
  padding: 4px 8px; border-radius: 6px; color: var(--text-muted);
}

/* ---------- Section base ---------- */
section { padding: clamp(72px, 11vh, 110px) 0; position: relative; }
.section-head { max-width: 740px; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11.5px;
  background: rgba(56,189,248,.08);
  color: #9bcfee;
  border: 1px solid rgba(56,189,248,.18);
  margin-bottom: 16px;
}
h2.section-title {
  font-size: clamp(28px, 3.6vw, 44px);
  letter-spacing: -.02em;
}
.section-sub { color: var(--text-muted); margin-top: 14px; font-size: 17px; }

/* ---------- Features grid ---------- */
.features {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .features { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px)  { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .features { grid-template-columns: 1fr; } }

.feature {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  overflow: hidden;
}
.feature:hover { transform: translateY(-3px); border-color: var(--border-2); box-shadow: var(--shadow); }
.feature::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--gradient-soft);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}
.feature:hover::before { opacity: .35; }
.feature .ico {
  width: 42px; height: 42px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(56,189,248,.08);
  border: 1px solid rgba(56,189,248,.18);
  color: var(--accent-2);
  margin-bottom: 16px;
  position: relative;
}
.feature h3 { font-size: 17.5px; }
.feature p { color: var(--text-muted); font-size: 14.5px; margin-top: 8px; }

/* ---------- Architecture ---------- */
.arch {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 880px) { .arch { grid-template-columns: 1fr; } }

.arch-diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  position: relative;
}
.arch-supervisor {
  margin: 0 auto 22px;
  max-width: 280px;
  text-align: center;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--gradient);
  color: #07111f;
  font-weight: 700;
  position: relative;
}
.arch-supervisor small { display: block; font-weight: 500; opacity: .75; margin-top: 4px; }
.arch-specialists {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.spec {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  font-size: 13.5px;
  display: flex; flex-direction: column; gap: 2px;
}
.spec .name { font-weight: 600; }
.spec .role { color: var(--text-muted); font-size: 12.5px; }
.spec .model {
  margin-top: 6px;
  font-family: var(--font-mono); font-size: 11px;
  color: #9bcfee;
}
.arch-text h3 { font-size: 22px; }
.arch-text p { color: var(--text-muted); margin-top: 12px; }
.arch-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.arch-list li {
  padding-left: 22px; position: relative; color: var(--text-muted); font-size: 14.5px;
}
.arch-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px; border-radius: 999px;
  background: var(--gradient);
}

/* ---------- Pipeline ---------- */
.pipeline {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px; align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow-x: auto;
}
.pipeline .step {
  padding: 12px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,.25);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 12.8px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-width: 112px;
}
.pipeline .step .n {
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--gradient); color: #07111f;
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  display: grid; place-items: center;
}
@media (max-width: 880px) { .pipeline { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 540px) { .pipeline { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Quick start ---------- */
.qs-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) { .qs-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .qs-grid { grid-template-columns: 1fr; } }
.qs-step {
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.qs-step .num {
  font-family: var(--font-mono); font-size: 13px;
  color: var(--accent);
  margin-bottom: 8px; display: block;
}
.qs-step h4 { font-size: 17px; margin-bottom: 10px; }
.qs-step p { color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }

.code {
  position: relative;
  background: #07111f;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 14px;
  font-family: var(--font-mono); font-size: 12.8px; line-height: 1.6;
  color: #d8e1f1;
  overflow: auto;
}
.code .copy {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 8px; border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-2);
  font-family: var(--font-mono); font-size: 11px; color: var(--text-muted);
  transition: background .15s ease, color .15s ease;
}
.code .copy:hover { background: rgba(56,189,248,.1); color: var(--text); }
.code .copy.copied { background: rgba(45,212,191,.18); color: #7eecd8; }
.code .tok-c { color: #6b7796; }
.code .tok-k { color: #a78bfa; }
.code .tok-s { color: #2dd4bf; }
.code .tok-v { color: #38bdf8; }

/* ---------- Plugins ---------- */
.plugins {
  display: grid; gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.plugin {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
  display: flex; align-items: center; gap: 8px;
}
.plugin:hover { color: var(--text); border-color: var(--accent-2); background: rgba(56,189,248,.05); }
.plugin .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--gradient); flex: 0 0 6px; }

/* ---------- Screenshots ---------- */
.shots {
  display: grid; gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 880px) { .shots { grid-template-columns: 1fr; } }
.shot {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.shot img {
  width: 100%; height: auto; display: block;
}
.shot .placeholder {
  aspect-ratio: 16/10;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 12px, transparent 12px 24px),
    radial-gradient(400px 300px at 50% 50%, rgba(56,189,248,.18), transparent 70%),
    var(--bg-2);
  color: var(--text-muted);
  text-align: center;
  padding: 20px;
}
.shot .placeholder .ico { width: 44px; height: 44px; margin: 0 auto 10px; opacity: .8; }
.shot .placeholder code {
  display: inline-block; margin-top: 10px;
  font-family: var(--font-mono); font-size: 12px;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border);
  padding: 4px 8px; border-radius: 6px;
  color: var(--accent);
}
.shot .caption {
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 4px;
}
.shot .caption .ttl { font-weight: 600; font-size: 14.5px; }
.shot .caption .sub { color: var(--text-muted); font-size: 13px; }

/* ---------- Docs ---------- */
.doc-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (max-width: 880px) { .doc-grid { grid-template-columns: 1fr; } }
.doc-card {
  display: block;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  transition: transform .15s ease, border-color .2s ease;
}
.doc-card:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.doc-card .num {
  font-family: var(--font-mono); font-size: 12px; color: var(--accent);
  margin-bottom: 6px; display: block;
}
.doc-card h4 { font-size: 17px; }
.doc-card p { color: var(--text-muted); margin-top: 8px; font-size: 14px; }
.doc-card .arrow {
  margin-top: 14px; color: var(--accent-2); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}

/* ---------- CTA ---------- */
.cta-band {
  margin-top: 40px;
  padding: 48px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(45,212,191,.12), rgba(167,139,250,.12));
  border: 1px solid var(--border-2);
  text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; inset: -2px;
  background: var(--gradient); opacity: .14;
  filter: blur(40px); z-index: 0;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h3 { font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: var(--text-muted); margin: 12px auto 0; max-width: 520px; }
.cta-band .actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  margin-top: 60px; padding: 40px 0 56px;
  color: var(--text-faint);
}
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h5 {
  font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); font-weight: 600;
  margin-bottom: 12px;
}
.foot-grid a { display: block; padding: 4px 0; color: var(--text-muted); font-size: 14px; }
.foot-grid a:hover { color: var(--text); }

/* Footer brand row — logo size fix */
.foot-brand .brand-row {
  display: inline-flex; align-items: center; gap: 10px;
}
.foot-brand .brand-row img {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
}
.foot-brand .brand-row strong { font-size: 16px; letter-spacing: -.01em; }

/* Affiliations block */
.affiliations { margin-top: 18px; }
.affiliations h5 {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-faint); font-weight: 600;
  margin: 0 0 6px;
}
.affiliations a {
  padding: 0; color: var(--text-muted); font-size: 13.5px;
  border-bottom: 1px dotted transparent;
}
.affiliations a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }
.foot-bottom {
  margin-top: 36px; padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; gap: 14px; flex-wrap: wrap;
}
.foot-bottom .brand-row { display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom .brand-row img { width: 22px; height: 22px; border-radius: 6px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
