/* ============================================================
   BRUV landing page — neon / AI gradient aesthetic
   Self-contained, no build step. Palette is drawn from the
   product logo (purple #8b5cf6 + teal #2dd4bf) plus the app
   accent indigo (#6366f1).
   ============================================================ */

:root {
  --bg: #07070d;
  --bg-2: #0c0c16;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-bright: rgba(167, 139, 250, 0.45);
  --text: #ecebf5;
  --text-muted: #a6a3c2;
  --text-faint: #6f6d8c;

  --purple: #8b5cf6;
  --violet: #a78bfa;
  --indigo: #6366f1;
  --teal: #2dd4bf;
  --teal-deep: #0d9488;

  --grad: linear-gradient(110deg, #a78bfa 0%, #6366f1 48%, #2dd4bf 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(45, 212, 191, 0.14));
  --glow: 0 0 0 1px rgba(167, 139, 250, 0.35), 0 18px 60px -18px rgba(99, 102, 241, 0.55);

  --maxw: 1140px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 700px at 12% -8%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(1000px 720px at 92% 4%, rgba(45, 212, 191, 0.16), transparent 60%),
    radial-gradient(900px 600px at 50% 120%, rgba(99, 102, 241, 0.18), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- drifting neon orbs ---------- */
.orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5;
  animation: drift 22s ease-in-out infinite;
}
.orb-a { width: 460px; height: 460px; top: -120px; left: -80px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.9), transparent 70%); }
.orb-b { width: 520px; height: 520px; top: 8%; right: -160px;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.7), transparent 70%); animation-delay: -7s; }
.orb-c { width: 560px; height: 560px; bottom: -220px; left: 30%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.7), transparent 70%); animation-delay: -13s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}

/* ---------- layout primitives ---------- */
main { position: relative; z-index: 1; }
.section {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: 96px 24px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--violet); margin-bottom: 14px;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; }
.section-head p { color: var(--text-muted); margin: 16px 0 0; font-size: 1.08rem; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--maxw); margin: 0 auto; padding: 16px 24px;
  backdrop-filter: blur(10px);
}
/* Scroll-scaled brand: renders large at page top and settles into its nav
   slot as you scroll. Scale is driven by JS (see index.html); origin is
   top-left so it grows into the hero's breathing room below, never under
   the viewport edge. */
.brand {
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em;
  transform-origin: left top;
  will-change: transform;
}
.brand img { filter: drop-shadow(0 4px 14px rgba(139, 92, 246, 0.5)); }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 0.95rem; color: var(--text-muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 999px; color: var(--text) !important;
  background: var(--surface-2); border: 1px solid var(--border);
}
.nav-cta:hover { border-color: var(--border-bright); }
/* GitHub mark (filled) — sits inside nav/footer links */
.gh-ico { width: 16px; height: 16px; fill: currentColor; }
.footer-links a { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 1;
  /* Extra top padding is the scroll-scaled brand's landing zone. */
  max-width: var(--maxw); margin: 0 auto; padding: 112px 24px 40px;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 0.82rem; font-weight: 600;
  color: var(--text); background: var(--grad-soft); border: 1px solid var(--border-bright);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); font-weight: 900; margin: 20px 0 0; }
.lede { color: var(--text-muted); font-size: 1.18rem; margin: 22px 0 0; max-width: 540px; }
.fineprint { color: var(--text-faint); font-size: 0.9rem; margin-top: 18px; }

.cta-row { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary { color: #0a0a12; background: var(--grad); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(167,139,250,0.5), 0 24px 70px -16px rgba(45,212,191,0.6); }
.btn-ghost { color: var(--text); background: var(--surface-2); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-bright); transform: translateY(-2px); }

/* hero art */
.hero-art { position: relative; }
.board-glow {
  position: absolute; inset: -10% -6% -10% -6%; z-index: 0; border-radius: 40px;
  background: var(--grad); opacity: 0.22; filter: blur(60px);
}
/* ---------- product screenshots ---------- */
.shot {
  position: relative; z-index: 1; margin: 0;
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border-bright);
  background: #0c0c16;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
}
.shot img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.shot figcaption {
  padding: 12px 16px; font-size: 0.88rem; color: var(--text-muted);
  border-top: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.shot-hero { transform: perspective(1600px) rotateY(-4deg); transition: transform 0.4s ease; }
.shot-hero:hover { transform: perspective(1600px) rotateY(0deg); }

/* ---------- screenshot gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.gallery .shot { transition: transform 0.2s ease, box-shadow 0.25s ease; }
.gallery .shot:hover { transform: translateY(-4px); box-shadow: 0 30px 70px -28px rgba(99, 102, 241, 0.6); }

/* ---------- pillars ---------- */
.pillars {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 30px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.pillar {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; backdrop-filter: blur(6px);
}
.pillar h3 { font-size: 1.1rem; font-weight: 700; margin: 14px 0 8px; }
.pillar p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ---------- icons ---------- */
.ico {
  width: 30px; height: 30px; fill: none; stroke: url(#ng);
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 20px; height: 20px; }

/* ---------- feature grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px; backdrop-filter: blur(6px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease, background 0.2s ease;
  overflow: hidden;
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius);
  background: var(--grad-soft); opacity: 0; transition: opacity 0.25s ease; pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-bright); box-shadow: 0 24px 60px -28px rgba(99, 102, 241, 0.6); }
.card:hover::before { opacity: 1; }
.card h3 { position: relative; font-size: 1.18rem; font-weight: 700; margin: 16px 0 9px; }
.card p { position: relative; color: var(--text-muted); font-size: 0.96rem; margin: 0; }

/* platform cards */
.plat .tag {
  display: inline-block; margin-top: 16px; padding: 4px 12px; border-radius: 999px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--violet); background: rgba(139, 92, 246, 0.12); border: 1px solid var(--border-bright);
}
.platform-note { text-align: center; color: var(--text-faint); margin-top: 28px; font-size: 0.95rem; }

/* ---------- agents spotlight ---------- */
.spotlight {
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(45, 212, 191, 0.1), transparent 60%),
    linear-gradient(180deg, rgba(139, 92, 246, 0.05), transparent);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  max-width: none; padding-left: 24px; padding-right: 24px;
}
.spotlight-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
}
.spotlight-copy h2 { margin-top: 10px; }
.spotlight-copy > p { color: var(--text-muted); font-size: 1.08rem; margin: 16px 0 24px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--text); }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--grad-soft); border: 1px solid var(--border-bright);
}
.ticks li::after {
  content: ''; position: absolute; left: 6px; top: 8px; width: 6px; height: 9px;
  border: solid var(--teal); border-width: 0 2px 2px 0; transform: rotate(40deg);
}

.spotlight-art { display: flex; justify-content: center; }

/* ---------- final cta ---------- */
.cta-final {
  position: relative; z-index: 1; text-align: center;
  max-width: 760px; margin: 30px auto 0; padding: 90px 24px;
}
.cta-final img { margin: 0 auto 22px; filter: drop-shadow(0 8px 30px rgba(139, 92, 246, 0.6)); }
.cta-final h2 { font-size: clamp(2rem, 5vw, 3rem); }
.cta-final p { color: var(--text-muted); margin: 16px 0 30px; }

/* ---------- footer ---------- */
.footer {
  position: relative; z-index: 1; border-top: 1px solid var(--border);
  max-width: var(--maxw); margin: 60px auto 0; padding: 36px 24px 56px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 9px; font-weight: 800; }
.footer-links { display: flex; gap: 24px; color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--text); }
.footer-fine { color: var(--text-faint); font-size: 0.85rem; width: 100%; margin: 6px 0 0; }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 3000;
  display: flex; align-items: center; justify-content: center; padding: 4vmin;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: lb-in 0.18s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.lb-img {
  max-width: 92vw; max-height: 82vh; width: auto; height: auto; border-radius: 12px;
  border: 1px solid var(--border-bright); box-shadow: 0 50px 140px -20px rgba(0, 0, 0, 0.9); cursor: zoom-out;
}
.lb-cap { color: var(--text-muted); font-size: 0.92rem; text-align: center; }
.lb-btn {
  position: absolute; display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 999px; cursor: pointer; line-height: 1;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  font-size: 1.5rem; transition: border-color 0.2s ease, background 0.2s ease;
}
.lb-btn:hover { border-color: var(--border-bright); background: var(--grad-soft); }
.lb-close { top: 20px; right: 22px; }
.lb-nav { top: 50%; transform: translateY(-50%); font-size: 2rem; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 40px; }
  .hero-art { order: -1; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .spotlight-grid { grid-template-columns: 1fr; gap: 36px; }
  .gallery { grid-template-columns: 1fr; }
  .shot-hero { transform: none; }
  .nav-links a:not(.nav-cta) { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 64px 20px; }
  .pillars, .grid, .grid-3 { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; }
  .btn { justify-content: center; }
  .footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
