:root {
  /* Warm near-black base + Qobra AI-agents pastel palette
     (pink / peach / lilac), matching the .council showcase. */
  --bg: #0d0c10;
  --surface: #161616;
  --surface-2: #1c1c1c;
  --border: rgba(255, 255, 255, 0.10);
  --text: #f5f3f1;
  --muted: #8c8c8c;
  --pink: #f4aeca;
  --peach: #f4a268;
  --lilac: #c9b6f2;
  --brand: #c9b6f2;      /* lilac */
  --brand-2: #f4aeca;    /* pink  */
  --btn: #eadcf7;
  --btn-ink: #2a1830;
  --danger: #ff6b6b;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(201, 182, 242, 0.22), transparent 60%),
              radial-gradient(900px 520px at 0% 8%, rgba(244, 174, 202, 0.16), transparent 55%),
              radial-gradient(760px 460px at 60% 40%, rgba(244, 162, 104, 0.08), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

/* Nav */
.nav { padding: 22px 0; border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; color: var(--text); text-decoration: none; }
.brand-logo { height: 26px; width: auto; display: block; }
.nav-tag { color: var(--muted); font-size: 14px; font-weight: 500; }

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand-2); margin-bottom: 14px; }
h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 18px; font-weight: 800; }
.hl { background: linear-gradient(100deg, var(--pink), var(--peach) 55%, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; max-width: 46ch; }
.lede strong { color: var(--text); }
.micro { font-size: 13px; color: var(--muted); margin-top: 14px; }
.micro.center { text-align: center; }

/* Buttons */
.btn { display: inline-block; cursor: pointer; border: none; border-radius: 999px; font-weight: 600; font-family: inherit; text-decoration: none; transition: transform 0.12s ease, opacity 0.12s ease, box-shadow 0.12s ease; }
.btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 30px rgba(234, 220, 247, 0.14); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(244, 174, 202, 0.28); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { width: 100%; margin-top: 8px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); }
.btn-ghost:active { transform: translateY(0); }

/* Agents CTA — scoped to the light .council section so the ghost
   button uses dark ink/border instead of the dark-theme white text. */
.agents-cta { text-align: center; margin-top: 44px; }
.council .agents-cta .btn-ghost { color: var(--ink); border: 1px solid rgba(20, 12, 30, 0.22); background: transparent; }
.council .agents-cta .btn-ghost:hover { border-color: rgba(20, 12, 30, 0.42); background: rgba(20, 12, 30, 0.04); }

/* Hero box */
.hero-box { position: relative; margin: 0; display: flex; align-items: center; justify-content: center; animation: float 5s ease-in-out infinite; }
.box-photo {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 18px;
  filter: drop-shadow(0 30px 50px rgba(94, 26, 58, 0.45));
  /* fade + gentle rise in, revealing the box as the hero settles */
  animation: boxReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes boxReveal {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-box { animation: none; }
  .box-photo { animation: none; }
}

/* ============================================================
   AI agents section — faithful reproduction of the Qobra AI
   Council hero showcase, scoped under `.council` so its pastel
   brand never leaks into the rest of the landing page.
   ============================================================ */
.council {
  --ink: #17121d;
  --muted: #6b6472;
  --faint: #a49dad;
  --card: #ffffff;
  --line: rgba(20, 12, 30, 0.09);
  --pink: #F4AECA;
  --peach: #F4A268;
  --lilac: #C9B6F2;
  background: #ffffff;
  color: var(--ink);
}

.agents { position: relative; padding: 96px 0 104px; overflow: hidden; }

/* agent avatars (shared by tabs and chat chips) */
.council .av-archi { background: url('assets/agent-architect.png'); background-size: cover; background-position: center; }
.council .av-analyst { background: url('assets/agent-analyst.png'); background-size: cover; background-position: center; }
.council .av-coach { background: url('assets/agent-coach.png'); background-size: cover; background-position: center; }

/* section head */
.council .wrap { position: relative; z-index: 2; }
.council .section-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.council .section-head h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; color: var(--ink); margin: 0 0 14px; }
.council .section-head p { color: var(--muted); font-size: 18px; margin: 0 auto; }

/* pill tab selector */
.council .tabbar {
  display: flex; gap: 4px; width: fit-content; max-width: 100%; flex-wrap: wrap;
  justify-content: center; margin: 0 auto 52px;
  padding: 6px; border-radius: 999px; background: #f4f2f7; border: 1px solid var(--line);
}
.council .tab {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  border: 1px solid transparent; background: none; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; color: var(--muted);
  transition: background .15s, color .15s, box-shadow .15s, border-color .15s;
}
.council .tab:hover { color: var(--ink); }
.council .tab.active { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: 0 6px 16px rgba(20, 12, 30, 0.10); }
.council .tab .avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; }

/* stage / panels */
.council .stage { position: relative; }
.council .agent-panel { display: none; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.council .agent-panel.active { display: grid; animation: panelIn .4s ease; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .council .agent-panel.active { animation: none; } }

/* left copy column */
.council .panel-copy .chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 600;
  padding: 6px 15px 6px 6px; border-radius: 999px; border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(20, 12, 30, 0.05);
}
.council .panel-copy .chip .av { width: 24px; height: 24px; border-radius: 50%; }
.council .panel-copy h3 { font-size: clamp(26px, 3.1vw, 38px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; color: var(--ink); margin: 18px 0 22px; }

/* accordion */
.council .accordion { border-top: 1px solid var(--line); }
.council .acc-item { border-bottom: 1px solid var(--line); }
.council .acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; font-family: inherit; text-align: left;
  padding: 18px 2px; font-size: 17px; font-weight: 600; color: var(--faint);
  transition: color .15s;
}
.council .acc-head:hover { color: var(--ink); }
.council .acc-item.open .acc-head { color: var(--ink); }
.council .acc-ic { width: 10px; height: 10px; flex: none; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .25s ease; margin: -4px 4px 0 0; }
.council .acc-item.open .acc-ic { transform: rotate(-135deg); margin-top: 2px; }
.council .acc-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.council .acc-item.open .acc-body { max-height: 260px; }
.council .acc-body p { margin: 0 0 20px; color: var(--muted); font-size: 15.5px; line-height: 1.6; max-width: 48ch; }

/* stat card */
.council .stat-card {
  margin-top: 30px; padding: 22px 24px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(244, 162, 104, 0.14), rgba(244, 174, 202, 0.14));
  border: 1px solid var(--line);
}
.council .stat-lead { margin: 0 0 6px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.council .stat-hl { margin: 0; color: var(--ink); font-size: 17px; font-weight: 700; line-height: 1.4; }

/* right visual column — chat card on a soft pastel gradient */
/* right visual column — the live animated demo embedded straight from
   Qobra's own iframes (the genuine chat playback + typing animation). */
.council .panel-visual { display: flex; }
.council .agent-embed {
  width: 100%; aspect-ratio: 584 / 628; border: 0; display: block;
  border-radius: 26px; background: #f7ede6;
  box-shadow: 0 30px 70px rgba(20, 12, 30, 0.14);
}

/* Order modal */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 24px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(6, 8, 12, 0.72); backdrop-filter: blur(4px); animation: fade 0.18s ease; }
.modal-dialog { position: relative; width: min(720px, 96vw); max-height: 92vh; overflow-y: auto; border-radius: 24px; animation: pop 0.2s ease; }
.modal-close { position: absolute; top: 14px; right: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.12s ease; }
.modal-close:hover { background: var(--border); }
.modal .order { padding: 0; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
body.modal-open { overflow: hidden; }

/* Order */
.order { padding: 40px 0 80px; }
.order-card { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.order-head h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -0.02em; }
.order-head p { margin: 0 0 26px; color: var(--muted); }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.span-2 { grid-column: 1 / -1; }
label { font-size: 14px; font-weight: 500; color: var(--text); }
.req { color: var(--brand-2); }
input, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
input::placeholder, textarea::placeholder { color: #6a6a6a; }
input:focus, textarea:focus { outline: none; border-color: var(--lilac); box-shadow: 0 0 0 3px rgba(201, 182, 242, 0.25); }
input:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--danger); }
textarea { resize: vertical; }

.form-error { background: rgba(255, 107, 107, 0.12); border: 1px solid rgba(255, 107, 107, 0.4); color: #ffb3b3; padding: 12px 14px; border-radius: 11px; font-size: 14px; margin: 18px 0 0; }

/* Success */
.success { text-align: center; padding: 30px 10px; }
.success-emoji { font-size: 54px; }
.success h2 { margin: 10px 0 8px; font-size: 28px; }
.success p { color: var(--muted); max-width: 42ch; margin: 0 auto; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding: 24px 0; }
.foot .wrap { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }

/* Responsive */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-box { order: -1; }
  .box-photo { max-width: 400px; }
  .grid { grid-template-columns: 1fr; }
  .foot .wrap { flex-direction: column; gap: 6px; text-align: center; }
  .council .agent-panel.active { grid-template-columns: 1fr; gap: 32px; }
  .council .panel-visual { order: 2; }
  .council .tab { font-size: 14px; padding: 7px 16px 7px 7px; }
  .council .tab .avatar { width: 34px; height: 34px; }
}
