:root {
  --violet: #7c3aed;
  --violet-2: #a855f7;
  --violet-deep: #4c1d95;
  --pink: #d946ef;
  --ink: #1a0f33;
  --muted: #6b6385;
  --bg: #f4f0ff;
  --card: #ffffff;
  --line: #ece6fb;
  --glass: rgba(255, 255, 255, 0.7);
  --shadow: 0 24px 70px rgba(76, 29, 149, 0.18);
  --shadow-sm: 0 10px 30px rgba(76, 29, 149, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, .brand-name { font-family: "Space Grotesk", "Inter", sans-serif; }

.grad {
  background: linear-gradient(100deg, var(--violet) 0%, var(--pink) 60%, var(--violet-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Animated aurora background ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% -10%, #efe7ff 0%, #f7f4ff 45%, #fdfbff 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; mix-blend-mode: multiply; }
.b1 { width: 540px; height: 540px; background: radial-gradient(circle, #c4b5fd, transparent 70%); top: -120px; left: -100px; animation: drift1 18s ease-in-out infinite; }
.b2 { width: 460px; height: 460px; background: radial-gradient(circle, #f0abfc, transparent 70%); top: 5%; right: -120px; animation: drift2 22s ease-in-out infinite; }
.b3 { width: 520px; height: 520px; background: radial-gradient(circle, #a78bfa, transparent 70%); bottom: -160px; left: 30%; animation: drift3 20s ease-in-out infinite; }
.grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(124,58,237,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(100% 60% at 50% 0%, #000 0%, transparent 75%);
}
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-50px,50px) scale(1.08); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(40px,-50px) scale(1.12); } }

/* ---------- Layout ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
section { padding: 86px 0; }

/* ---------- Nav ---------- */
.nav {
  max-width: 1180px; margin: 0 auto; padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 20px; text-decoration: none; }
.brand-logo { height: 34px; width: auto; display: block; }
.footer-logo { height: 30px; opacity: 0.95; }
.logo {
  width: 38px; height: 38px; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--pink));
  display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4);
}
.logo.small { width: 28px; height: 28px; border-radius: 8px; }
.brand-name .dot, .dot { color: var(--violet-2); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; opacity: 0.8; transition: opacity 0.15s; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  background: linear-gradient(135deg, var(--violet), var(--pink));
  color: #fff !important; padding: 10px 18px; border-radius: 999px;
  opacity: 1 !important; box-shadow: 0 8px 22px rgba(124, 58, 237, 0.35);
}

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 40px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--violet-deep);
  box-shadow: var(--shadow-sm);
}
.ai-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet-2); box-shadow: 0 0 0 0 rgba(168,85,247,0.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(168,85,247,0.5); } 70% { box-shadow: 0 0 0 10px rgba(168,85,247,0); } 100% { box-shadow: 0 0 0 0 rgba(168,85,247,0); } }
.hero h1 { font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -0.03em; margin: 20px 0 18px; font-weight: 700; }
.lede { font-size: 18.5px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px; text-decoration: none; cursor: pointer; transition: transform 0.12s, box-shadow 0.2s; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; box-shadow: 0 14px 34px rgba(124, 58, 237, 0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(124, 58, 237, 0.5); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line); color: var(--ink); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); }
.stats { display: flex; gap: 34px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 22px; font-family: "Space Grotesk", sans-serif; }
.stats span { font-size: 13px; color: var(--muted); }

/* ---------- Hero orb ---------- */
.hero-visual { position: relative; height: 460px; display: grid; place-items: center; }
.orb { position: relative; width: 300px; height: 300px; display: grid; place-items: center; }
.orb-core {
  width: 150px; height: 150px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #d8b4fe 30%, var(--violet) 70%, var(--violet-deep) 100%);
  box-shadow: 0 0 60px rgba(168, 85, 247, 0.7), inset 0 0 40px rgba(255,255,255,0.4);
  animation: breathe 4s ease-in-out infinite;
}
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.orb-ring { position: absolute; border-radius: 50%; border: 1.5px solid rgba(124,58,237,0.35); }
.orb-ring.r1 { width: 210px; height: 210px; border-style: dashed; animation: spin 14s linear infinite; }
.orb-ring.r2 { width: 268px; height: 268px; border-color: rgba(217,70,239,0.3); animation: spin 22s linear infinite reverse; }
.orb-ring.r3 { width: 300px; height: 300px; border-style: dotted; border-color: rgba(168,85,247,0.25); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb-glow { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(168,85,247,0.25), transparent 60%); filter: blur(20px); }
/* Rotating orbit of fundable-category chips around the ball */
.orbit-ring {
  position: absolute; top: 50%; left: 50%; width: 420px; height: 420px;
  transform: translate(-50%, -50%);
  animation: orbit 60s linear infinite;
}
.orbit-chip {
  position: absolute; top: var(--y); left: var(--x);
  transform: translate(-50%, -50%);
}
.chip-inner {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line);
  padding: 8px 12px; border-radius: 12px; font-weight: 600; font-size: 12.5px;
  box-shadow: var(--shadow-sm);
  animation: orbit-rev 60s linear infinite; /* counter-rotate so text stays upright */
}
.chip-inner svg { width: 15px; height: 15px; color: var(--violet); flex-shrink: 0; }
@keyframes orbit { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes orbit-rev { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .chip-inner { animation: none; }
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.eyebrow { display: inline-block; color: var(--violet); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 10px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.02em; margin: 0 0 12px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Use cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.use-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s;
  position: relative; overflow: hidden; min-width: 0;
}
.use-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d8c9fb; }
.use-card .card-img {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover;
  background: linear-gradient(160deg, #f6f1fe 0%, #fbf1fb 100%);
  border-bottom: 1px solid var(--line);
}
/* Placeholder banner for cards whose final illustration hasn't landed yet */
.use-card .card-img--ph {
  display: grid; place-items: center; aspect-ratio: 3 / 2;
  background:
    radial-gradient(60% 70% at 50% 44%, rgba(217,70,239,0.16), transparent 70%),
    linear-gradient(160deg, #f1e9ff 0%, #f6edff 55%, #fbeafc 100%);
  border-bottom: 1px solid var(--line);
}
.use-card .card-img--ph svg { width: 74px; height: 74px; color: var(--violet-2); opacity: 0.9; }
.use-card .card-body { padding: 20px 24px 24px; }
.use-card h3 { margin: 0 0 6px; font-size: 20px; }
.use-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { text-align: center; padding: 28px 20px; }
.step-no {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px;
  border-radius: 50%; font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 22px;
  color: #fff; background: linear-gradient(135deg, var(--violet), var(--pink));
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.35);
}
.step h3 { margin: 0 0 6px; font-size: 19px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Chat ---------- */
.chat-section { padding-bottom: 100px; }
.chat-card {
  max-width: 660px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  height: 600px; overflow: hidden; position: relative;
}
.chat-card::before { content: ""; position: absolute; inset: 0; border-radius: 26px; padding: 1.5px; background: linear-gradient(135deg, rgba(124,58,237,0.5), rgba(217,70,239,0.3), transparent); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.chat-header { display: flex; align-items: center; gap: 13px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #faf7ff, #fff); }
.avatar { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.avatar-face { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: "Space Grotesk", sans-serif; background: linear-gradient(135deg, var(--violet), var(--pink)); }
.avatar-pulse { position: absolute; inset: -4px; border-radius: 50%; background: linear-gradient(135deg, var(--violet), var(--pink)); opacity: 0.35; animation: avatarPulse 2s ease-in-out infinite; }
@keyframes avatarPulse { 0%,100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.25); opacity: 0; } }
.agent-name { font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.ai-tag { font-size: 10.5px; font-weight: 600; color: var(--violet); background: #f1e8ff; padding: 2px 8px; border-radius: 999px; letter-spacing: 0.03em; }
.agent-status { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }

.messages { flex: 1; overflow-y: auto; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(180deg, #fdfcff, #fff); }
.msg { display: flex; max-width: 84%; animation: rise 0.3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.msg .bubble { padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { align-self: flex-start; }
.msg.bot .bubble { background: #f3eeff; color: var(--ink); border-bottom-left-radius: 5px; }
.msg.user { align-self: flex-end; }
.msg.user .bubble { background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; border-bottom-right-radius: 5px; box-shadow: 0 8px 20px rgba(124,58,237,0.28); }

/* AI thinking animation */
.thinking { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #f3eeff; border-radius: 18px; border-bottom-left-radius: 5px; }
.think-orb { width: 20px; height: 20px; border-radius: 50%; background: conic-gradient(from 0deg, var(--violet), var(--pink), var(--violet-2), var(--violet)); animation: spin 1.4s linear infinite; position: relative; }
.think-orb::after { content: ""; position: absolute; inset: 3.5px; border-radius: 50%; background: #f3eeff; }
.think-text { font-size: 13.5px; font-weight: 600; background: linear-gradient(90deg, var(--violet) 0%, #c4b5fd 40%, var(--violet) 80%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 1.6s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }

.lead-banner { align-self: center; text-align: center; background: linear-gradient(135deg, #ecfdf5, #f0fdf4); color: #047857; border: 1px solid #a7f3d0; border-radius: 14px; padding: 11px 16px; font-size: 13px; font-weight: 600; }

.composer { display: flex; gap: 10px; padding: 16px 18px; border-top: 1px solid var(--line); background: #fff; }
.composer input { flex: 1; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 15px; font-family: inherit; outline: none; transition: border-color 0.15s, box-shadow 0.15s; background: #faf8ff; }
.composer input:focus { border-color: var(--violet-2); box-shadow: 0 0 0 4px rgba(168,85,247,0.12); }
.composer button { width: 50px; border: none; border-radius: 14px; cursor: pointer; background: linear-gradient(135deg, var(--violet), var(--pink)); color: #fff; display: grid; place-items: center; transition: transform 0.1s, opacity 0.15s; box-shadow: 0 8px 20px rgba(124,58,237,0.32); }
.composer button:hover { transform: translateY(-1px); }
.composer button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ---------- Footer ---------- */
.footer { max-width: 1180px; margin: 0 auto; padding: 48px 24px 56px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.footer-brand .footer-logo { margin-bottom: 14px; }
.footer-brand p { max-width: 420px; font-size: 13.5px; margin: 0; }
.footer-address { font-style: normal; }
.footer-address h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--violet); font-family: "Space Grotesk", sans-serif; }
.address-line { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.6; color: var(--ink); }
.address-line svg { color: var(--violet); flex-shrink: 0; margin-top: 2px; }
.copyright { text-align: center; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { height: 380px; margin-top: 10px; }
  .orbit-ring { width: 360px; height: 360px; }
  .orb { transform: scale(0.82); }
  .chip-inner { font-size: 12px; padding: 7px 10px; }
  .steps { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
  section { padding: 60px 0; }
  .stats { gap: 22px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .chat-card { height: 70vh; min-height: 460px; }
  .hero-visual { height: 340px; }
  .orbit-ring { width: 300px; height: 300px; }
  .orb { transform: scale(0.7); }
  .chip-inner { font-size: 11px; padding: 6px 9px; gap: 5px; }
  .chip-inner svg { width: 13px; height: 13px; }
}
