/* ============================================================
   Bondis.ai — marketing site styles
   Palette: ink #171120 · veil #221A30 · cyan #2BD4F2
            purple #B23FE8 · lilac #B6A9D9 · linen #F6F0E9
   Type:    Bricolage Grotesque (display) · Albert Sans (body)
   ============================================================ */

:root {
  --ink: #171120;
  --ink-deep: #110C19;
  --veil: #221A30;
  --veil-edge: #332747;
  --cyan: #2BD4F2;
  --cyan-deep: #16A6D8;
  --purple: #B23FE8;
  --purple-deep: #8A2BD0;
  --linen: #F6F0E9;
  --linen-dim: #C9C0D6;
  --lilac: #B6A9D9;

  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Albert Sans", system-ui, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--linen);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--cyan); }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.container-narrow { max-width: 760px; }

/* ---------- typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.5vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 0.5em; }
h3 { font-size: 1.25rem; }

h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lilac);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}

.section-sub {
  color: var(--linen-dim);
  max-width: 56ch;
  margin-bottom: 40px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn-lg { padding: 14px 28px; font-size: 1.05rem; }

.btn-primary {
  background: linear-gradient(100deg, var(--cyan), var(--purple));
  color: var(--ink-deep);
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  color: var(--linen);
  border: 1px solid var(--veil-edge);
}
.btn-ghost:hover { border-color: var(--lilac); transform: translateY(-2px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--veil-edge) 60%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--linen);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: -0.01em;
}

.brand-tld { color: var(--cyan); }

.brand-mark {
  width: 26px; height: 26px;
  background: url("/img/logo.png") center / contain no-repeat;
}

.nav-links { display: flex; gap: 26px; }

.nav-links a {
  color: var(--linen-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--linen); }

.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- hero ---------- */

.hero {
  padding: clamp(56px, 9vw, 110px) 0 clamp(48px, 7vw, 90px);
  background:
    radial-gradient(900px 480px at 78% -10%, color-mix(in srgb, var(--cyan) 13%, transparent), transparent 70%),
    radial-gradient(700px 420px at 8% 110%, color-mix(in srgb, var(--lilac) 10%, transparent), transparent 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.hero-sub {
  color: var(--linen-dim);
  font-size: 1.1rem;
  max-width: 50ch;
  margin: 22px 0 30px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-fineprint {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--lilac);
}

/* phone chat demo — the signature element */

.phone {
  background: var(--veil);
  border: 1px solid var(--veil-edge);
  border-radius: 30px;
  padding: 20px;
  max-width: 400px;
  margin-inline: auto;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 8px color-mix(in srgb, var(--veil-edge) 35%, transparent);
}

.phone-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--veil-edge);
  margin-bottom: 16px;
}

.phone-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cyan);
}

.phone-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

.phone-status { display: block; font-size: 0.74rem; color: var(--purple); }

.phone-thread { display: flex; flex-direction: column; gap: 10px; }

.msg {
  max-width: 85%;
  padding: 10px 14px;
  font-size: 0.92rem;
  line-height: 1.45;
  border-radius: var(--radius);
  opacity: 0;
  transform: translateY(10px);
  animation: msg-in 0.5s ease forwards;
  animation-delay: calc(0.55s + var(--d) * 0.85s);
}

.msg-companion {
  background: var(--ink-deep);
  border: 1px solid var(--veil-edge);
  border-bottom-left-radius: 6px;
  align-self: flex-start;
}

.msg-user {
  background: linear-gradient(110deg, var(--cyan), var(--cyan-deep));
  color: var(--ink-deep);
  font-weight: 500;
  border-bottom-right-radius: 6px;
  align-self: flex-end;
}

.msg-typing {
  display: flex;
  gap: 5px;
  align-self: flex-start;
  background: var(--ink-deep);
  border: 1px solid var(--veil-edge);
  border-bottom-left-radius: 6px;
  padding: 14px 16px;
}

.msg-typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lilac);
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.msg-typing span:nth-child(2) { animation-delay: 0.18s; }
.msg-typing span:nth-child(3) { animation-delay: 0.36s; }

@keyframes msg-in { to { opacity: 1; transform: translateY(0); } }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ---------- sections ---------- */

.section { padding: clamp(64px, 9vw, 110px) 0; }

.section-alt {
  background: linear-gradient(180deg, var(--ink-deep), var(--ink));
  border-block: 1px solid color-mix(in srgb, var(--veil-edge) 55%, transparent);
}

/* ---------- companion gallery ---------- */

.companion-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.companion-card {
  background: var(--veil);
  border: 1px solid var(--veil-edge);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.companion-card:hover {
  transform: translateY(-6px);
  border-color: var(--cyan);
}

.companion-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  height: auto;
}

.companion-meta { padding: 16px 18px 20px; }

.companion-meta h3 { margin-bottom: 6px; }

.companion-meta p {
  font-size: 0.88rem;
  color: var(--linen-dim);
  margin-bottom: 12px;
  min-height: 3.6em;
}

.trait-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.trait-list li {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--purple);
  border: 1px solid color-mix(in srgb, var(--purple) 45%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- marquee ---------- */

.marquee-section { padding: 10px 0 64px; overflow: hidden; }

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marquee-scroll 55s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  to { transform: translateX(-50%); }
}

.marquee-item {
  width: 150px;
  flex: none;
}

.marquee-item img {
  width: 150px; height: 210px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--veil-edge);
}

.marquee-item figcaption {
  text-align: center;
  font-size: 0.78rem;
  color: var(--lilac);
  margin-top: 7px;
}

.marquee-caption {
  text-align: center;
  color: var(--linen-dim);
  margin-top: 26px;
  font-size: 0.95rem;
}

/* ---------- split sections (memory / create) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}

.split-reverse > .split-copy { order: 1; }
.split-reverse > :not(.split-copy) { order: 2; }

.split-copy p { color: var(--linen-dim); margin-bottom: 16px; max-width: 52ch; }
.split-copy .btn { margin-top: 8px; }

.memory-cards { display: flex; flex-direction: column; gap: 14px; }

.memory-chip {
  background: var(--veil);
  border: 1px solid var(--veil-edge);
  border-left: 3px solid var(--purple);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
}

.memory-chip:nth-child(odd) { transform: rotate(-0.6deg) translateX(-6px); }
.memory-chip:nth-child(even) { transform: rotate(0.5deg) translateX(10px); }

.builder-mock {
  background: var(--veil);
  border: 1px solid var(--veil-edge);
  border-radius: var(--radius);
  padding: 28px;
}

.builder-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--lilac);
  margin: 18px 0 10px;
}
.builder-label:first-child { margin-top: 0; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--veil-edge);
  color: var(--linen-dim);
}

.chip-on {
  background: color-mix(in srgb, var(--cyan) 18%, transparent);
  border-color: var(--cyan);
  color: var(--linen);
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}

.plan {
  position: relative;
  background: var(--veil);
  border: 1px solid var(--veil-edge);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.plan-featured { border-color: var(--cyan); }

.plan-flag {
  position: absolute;
  top: -13px;
  left: 28px;
  background: linear-gradient(100deg, var(--cyan), var(--purple));
  color: var(--ink-deep);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  margin: 10px 0 4px;
}

.plan-price span {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--lilac);
}

.plan-blurb { color: var(--linen-dim); font-size: 0.95rem; margin-bottom: 20px; }

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.95rem;
  border-bottom: 1px solid color-mix(in srgb, var(--veil-edge) 60%, transparent);
}
.plan-features li:last-child { border-bottom: 0; }

.plan-features li::before {
  content: "✦";
  position: absolute;
  left: 4px;
  color: var(--purple);
}

.plan .btn { text-align: center; }

/* ---------- FAQ ---------- */

.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

.faq {
  background: var(--veil);
  border: 1px solid var(--veil-edge);
  border-radius: var(--radius-sm);
  padding: 0 22px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 18px 0;
  list-style: none;
  position: relative;
  padding-right: 32px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--cyan);
  transition: transform 0.2s ease;
}

.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq p { color: var(--linen-dim); padding-bottom: 20px; font-size: 0.96rem; }

/* ---------- CTA band ---------- */

.cta-band {
  text-align: center;
  padding: clamp(70px, 10vw, 120px) 0;
  background:
    radial-gradient(640px 320px at 50% 120%, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 70%),
    var(--ink-deep);
  border-top: 1px solid color-mix(in srgb, var(--veil-edge) 55%, transparent);
}

.cta-band h2 { margin-bottom: 28px; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid color-mix(in srgb, var(--veil-edge) 55%, transparent);
  padding: 44px 0;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer-note { font-size: 0.82rem; color: var(--lilac); margin-top: 8px; }

.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

.footer-links a {
  color: var(--linen-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-links a:hover { color: var(--linen); }

.footer-copy { width: 100%; font-size: 0.8rem; color: var(--lilac); }

/* ---------- legal pages ---------- */

.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.3rem; margin: 32px 0 8px; }
.legal p { color: var(--linen-dim); margin-bottom: 12px; }
.legal-updated { font-size: 0.85rem; color: var(--lilac); margin-bottom: 28px; }

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .companion-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .split-reverse > .split-copy { order: 0; }
  .hero-demo { order: 2; }
  .nav-links { display: none; }
}

@media (max-width: 560px) {
  .companion-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg { animation: none; opacity: 1; transform: none; }
  .msg-typing { display: none; }
  .marquee-track { animation: none; }
  .btn, .companion-card { transition: none; }
}

/* brand text wrapper keeps flex gap from splitting the wordmark */
.brand-text { display: inline; }

/* ---------- hero three.js canvas ---------- */

.hero { position: relative; overflow: hidden; }

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-canvas canvas { width: 100%; height: 100%; display: block; }

.hero-grid { position: relative; z-index: 1; }
