:root {
  --bg: #0b1020;
  --bg-alt: #11182e;
  --surface: #161f3a;
  --text: #e8edf7;
  --muted: #9aa6c4;
  --accent: #3b82f6;
  --accent-2: #8b5cf6;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

a { color: inherit; text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 16, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; font-weight: 700; }
.brand-logo { height: 44px; width: auto; display: block; }
.brand-name { font-size: 1.1rem; letter-spacing: 0.3px; }
.brand-sub {
  color: var(--muted);
  font-weight: 500;
  margin-left: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); }

/* ===== Hero ===== */
.hero {
  background: radial-gradient(1200px 500px at 70% -10%, rgba(139, 92, 246, 0.25), transparent 60%),
              radial-gradient(900px 500px at 10% 0%, rgba(59, 130, 246, 0.22), transparent 55%);
  padding: 72px 0 64px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  margin: 0 0 18px;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  height: 400px;            /* fixed box so the loop never resizes the page */
}
.chat-bubble {
  background: #1d2747;
  border: 1px solid var(--border);
  padding: 12px 14px;
  border-radius: 14px;
  max-width: 85%;
  font-size: 0.95rem;
}
.chat-bubble.bot {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(139,92,246,0.25));
  border-color: rgba(139, 92, 246, 0.4);
}
/* Live looping chat demo */
.chat-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;     /* fill the fixed-height card */
  min-height: 0;      /* allow overflow clipping inside flex */
  overflow: hidden;   /* keep the box a constant size */
  justify-content: flex-end; /* newest message stays at the bottom */
}
.chat-bubble { opacity: 0; transform: translateY(8px); animation: bubbleIn 0.32s ease forwards; }
@keyframes bubbleIn { to { opacity: 1; transform: none; } }
.typing {
  align-self: flex-end;
  display: inline-flex;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59,130,246,0.25), rgba(139,92,246,0.25));
  border: 1px solid rgba(139, 92, 246, 0.4);
}
.typing.left {
  align-self: flex-start;
  background: #1d2747;
  border-color: var(--border);
}
.typing span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #c7d2fe;
  animation: typingDot 1s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) {
  .chat-bubble { animation: none; opacity: 1; transform: none; }
  /* Keep the typing dots visible (just not bouncing) so "typing" still shows. */
  .typing span { animation: none; opacity: 1; }
}

/* ===== Logo lockup on team page ===== */
.logo-lockup {
  display: block;
  width: 147px;            /* matches the width of "ORG & LEADERSHIP" above it; height auto keeps scale */
  max-width: 100%;
  height: auto;
  margin: 0;               /* sits next to the text in a flex row */
  flex: 0 0 auto;
}

/* ===== Team hero: logo next to the text, centered as a unit ===== */
.team-hero .container { text-align: center; }
.team-hero-row { display: flex; align-items: flex-start; justify-content: center; gap: 36px; }
.team-hero-left { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.team-hero-left .eyebrow { display: block; }
.team-hero-text { text-align: left; }
.team-hero-text .lead { margin-left: 0; }

/* ===== Owner / Founder page ===== */
.owner-hero-left { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.owner-hero-left .eyebrow { display: block; }
.owner-avatar {
  width: 128px; height: 128px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3.4rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
  border: 3px solid rgba(255, 255, 255, 0.15);
}
@media (max-width: 820px) {
  .owner-hero-left { gap: 12px; }
  .owner-avatar { width: 104px; height: 104px; font-size: 2.8rem; }
}

/* ===== Org chart figure ===== */
.org-figure {
  margin: 0 auto;
  max-width: 1100px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.org-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ===== Stats ===== */
.stats { border-block: 1px solid var(--border); background: var(--bg-alt); }
.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 48px;
  padding: 28px 20px;
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.7rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin: 0 0 8px; text-align: center; }
.section-sub { color: var(--muted); text-align: center; margin: 0 auto 36px; max-width: 560px; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform 0.2s, border-color 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(139, 92, 246, 0.45); }
.card-icon { font-size: 1.8rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; }
.card p { color: var(--muted); margin: 0; font-size: 0.96rem; }

/* ===== Steps ===== */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.step-num {
  display: inline-flex;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 700; margin-bottom: 12px;
}
.steps h3 { margin: 0 0 8px; }
.steps p { color: var(--muted); margin: 0; }

/* ===== Lead form ===== */
.lead-wrap { max-width: 720px; }
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.9rem; color: var(--muted); }
.field input, .field textarea {
  background: #0e1530;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.btn.full { grid-column: 1 / -1; }
.form-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #b9f6c8;
  font-size: 0.95rem;
}

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; background: var(--bg-alt); }
.footer-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-tag { color: var(--muted); margin: 0; }
.footer-copy { color: var(--muted); font-size: 0.85rem; margin: 0; }

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats-grid { justify-content: center; gap: 24px; }
  .lead-form { grid-template-columns: 1fr; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 240px; }
  .nav-links a { padding: 14px 20px; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .team-hero-row { flex-direction: column; text-align: center; gap: 20px; }
  .team-hero-text { text-align: center; }
}
@media (max-width: 520px) {
  .cards { grid-template-columns: 1fr; }
}
