:root {
  --purple: #3b1c5a;
  --purple-dark: #26113d;
  --magenta: #d6246e;
  --yellow: #ffc72c;
  --ink: #1d1d1f;
  --muted: #5b5b66;
  --bg-soft: #f6f3f9;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif; color: var(--ink); line-height: 1.55; }
a { color: inherit; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.topbar { background: var(--purple-dark); color: #fff; font-size: 14px; }
.topbar .container { display: flex; justify-content: flex-end; gap: 24px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { text-decoration: none; opacity: .85; }
.topbar a:hover { opacity: 1; }

header.main { background: #fff; border-bottom: 1px solid #e6e0ee; position: sticky; top: 0; z-index: 10; }
header.main .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 800; font-size: 22px; color: var(--purple); text-decoration: none; letter-spacing: -.3px; }
.logo span { color: var(--magenta); }
nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
nav a { text-decoration: none; font-weight: 600; color: var(--purple); }
nav a:hover { color: var(--magenta); }
.btn { display: inline-block; padding: 12px 26px; border-radius: 28px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-size: 16px; }
.btn-primary { background: var(--yellow); color: var(--purple-dark); }
.btn-primary:hover { background: #ffd65c; }
.btn-outline { border-color: #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-explore {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 8px 10px 8px 24px;
  overflow: hidden;
  border: 1px solid transparent;
  background: linear-gradient(120deg, #492568, #301747) padding-box,
    linear-gradient(120deg, #e6b5ff, #d6246e 55%, #ffc72c) border-box;
  box-shadow: 0 6px 20px #16082455, inset 0 1px 0 #ffffff18;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-explore::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, #ffffff20 50%, transparent 75%);
  transform: translateX(-120%);
  transition: transform .6s ease;
}
.btn-explore-arrow {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--purple-dark);
  box-shadow: 0 2px 10px #ffc72c30;
  transition: transform .2s ease;
}
.btn-explore:hover,
.btn-explore:focus-visible {
  background: linear-gradient(120deg, #553078, #3b1c5a) padding-box,
    linear-gradient(120deg, #e6b5ff, #d6246e 55%, #ffc72c) border-box;
  box-shadow: 0 10px 28px #16082466, 0 0 22px #d6246e30;
  transform: translateY(-2px);
}
.btn-explore:hover::before,
.btn-explore:focus-visible::before { transform: translateX(120%); }
.btn-explore:hover .btn-explore-arrow,
.btn-explore:focus-visible .btn-explore-arrow { transform: rotate(-35deg); }
.btn-explore:focus-visible { outline: 3px solid var(--yellow); outline-offset: 4px; }
.btn-explore:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .btn-explore,
  .btn-explore::before,
  .btn-explore-arrow { transition: none; }
  .btn-explore::before { display: none; }
  .btn-explore:hover,
  .btn-explore:focus-visible,
  .btn-explore:hover .btn-explore-arrow,
  .btn-explore:focus-visible .btn-explore-arrow { transform: none; }
}

.agent-discovery { background: var(--bg-soft); padding: 24px 0; }
.agent-discovery h2 { font-size: 22px; margin: 0 0 8px; }
.agent-discovery p { margin: 0; }
.agent-discovery a { color: var(--purple); font-weight: 600; overflow-wrap: anywhere; }

.hero { background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); color: #fff; padding: 88px 0; }
.hero .container { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 48px; line-height: 1.1; margin: 0 0 16px; }
.hero p { font-size: 19px; opacity: .92; max-width: 520px; }
.hero .actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.hero-card { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.hero-card h3 { margin-top: 0; color: var(--purple); }
.stat { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #eee; }
.stat:last-of-type { border: 0; }
.stat strong { color: var(--magenta); }

section.block { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: 34px; color: var(--purple); margin: 0 0 12px; }
.lead { color: var(--muted); font-size: 18px; max-width: 680px; margin-bottom: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid #e6e0ee; border-radius: 14px; padding: 28px; }
.card h3 { margin: 0 0 8px; color: var(--purple); }
.card p { color: var(--muted); margin: 0 0 14px; }
.card a.more { color: var(--magenta); font-weight: 700; text-decoration: none; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 24px; margin-bottom: 14px; }

.chat { background: #fff; border-radius: 14px; border: 1px solid #e6e0ee; max-width: 720px; overflow: hidden; }
.chat-log { height: 260px; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fcfbfd; }
.msg { padding: 10px 14px; border-radius: 14px; max-width: 80%; }
.msg.user { align-self: flex-end; background: var(--purple); color: #fff; }
.msg.bot { align-self: flex-start; background: #ece6f3; }
.chat form { display: flex; border-top: 1px solid #e6e0ee; }
.chat input { flex: 1; border: 0; padding: 16px; font-size: 16px; outline: none; }
.chat button { border: 0; background: var(--magenta); color: #fff; font-weight: 700; padding: 0 24px; cursor: pointer; }

footer { background: var(--purple-dark); color: #d8cce6; padding: 48px 0 28px; font-size: 14px; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; margin-bottom: 28px; }
footer h4 { color: #fff; margin: 0 0 10px; }
footer a { display: block; text-decoration: none; margin: 6px 0; }
footer .legal { border-top: 1px solid rgba(255,255,255,.15); padding-top: 18px; font-size: 13px; opacity: .8; }

@media (max-width: 800px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  nav { display: none; }
}

.account { padding: 32px 0 64px; }
.account section { margin: 24px 0; }
.account form { display: grid; gap: 12px; max-width: 420px; }
.account label { display: grid; gap: 4px; }
.account .notice { color: #54645d; }
