/* BiSeslen - shared design system. ASCII-only code and comments. */

@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,600;12..96,700;12..96,800&family=Inter:wght@400;500;600;700&display=swap");

:root {
  --paper: #fcfcfb;
  --ink: #16111f;
  --muted: #5e5872;
  --brand: #9050f0;
  --brand-deep: #7327d4;
  --pine: #2a1257;
  --pine-soft: #3c2570;
  --mint: #f0e9fe;
  --mint-deep: #ddd0f7;
  --line: #e7e3ef;
  --amber: #e2a012;
  --white: #ffffff;

  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;

  --radius: 16px;
  --radius-sm: 11px;
  --maxw: 1120px;
  --shadow-sm: 0 1px 2px rgba(12, 28, 24, 0.05), 0 4px 16px rgba(12, 28, 24, 0.04);
  --shadow-md: 0 10px 40px rgba(42, 18, 87, 0.10);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--brand-deep);
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 4px rgba(144, 80, 240, 0.16);
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(252, 252, 251, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand .mark svg { width: 19px; height: 19px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-weight: 600; font-size: 14.5px; transition: transform 0.12s, background 0.15s;
}
.nav-cta:hover { background: var(--pine); transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { padding: 78px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1100px 420px at 88% -8%, rgba(144, 80, 240, 0.10), transparent 60%),
    radial-gradient(700px 360px at 6% 12%, rgba(226, 160, 18, 0.06), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); margin: 18px 0 0; }
.hero h1 .accent { color: var(--brand-deep); }
.hero .lead { font-size: 19px; color: var(--muted); margin-top: 22px; max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 16px; padding: 14px 24px; border-radius: 999px;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s; cursor: pointer; border: 0;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(144, 80, 240, 0.28); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 24px; font-size: 14.5px; color: var(--muted); }
.hero-note svg { width: 18px; height: 18px; color: var(--brand); flex: none; }

/* ---------- chat signature ---------- */
.chat {
  background: linear-gradient(180deg, #f5f1fe 0%, #efe8fd 100%);
  border: 1px solid var(--mint-deep); border-radius: 26px;
  box-shadow: var(--shadow-md); padding: 16px; position: relative;
}
.chat-head { display: flex; align-items: center; gap: 11px; padding: 6px 8px 14px; border-bottom: 1px solid rgba(42, 18, 87, 0.08); }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(150deg, var(--brand), var(--brand-deep)); display: grid; place-items: center; color: #fff; }
.chat-avatar svg { width: 20px; height: 20px; }
.chat-name { font-weight: 700; font-size: 15.5px; font-family: var(--font-display); }
.chat-status { font-size: 12.5px; color: var(--brand-deep); display: flex; align-items: center; gap: 6px; }
.chat-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.chat-body { display: flex; flex-direction: column; gap: 11px; padding: 18px 8px 8px; }
.bubble {
  max-width: 80%; padding: 10px 14px; font-size: 14.5px; line-height: 1.45;
  border-radius: 16px; box-shadow: 0 1px 1px rgba(42, 18, 87, 0.06);
  opacity: 0; transform: translateY(8px); animation: rise 0.5s ease forwards;
}
.bubble.out { align-self: flex-end; background: #e9ddfc; color: #2a1257; border-bottom-right-radius: 5px; }
.bubble.in { align-self: flex-start; background: #fff; color: var(--ink); border-bottom-left-radius: 5px; }
.bubble .who { display: block; font-size: 11.5px; font-weight: 700; color: var(--brand-deep); margin-bottom: 2px; letter-spacing: 0.01em; }
.bubble .voice { display: inline-flex; align-items: center; gap: 8px; color: #2a1257; }
.bubble .voice svg { width: 16px; height: 16px; flex: none; }
.bubble .voice .wave { display: inline-flex; align-items: center; gap: 2.5px; height: 16px; }
.bubble .voice .wave i { width: 2.5px; border-radius: 2px; background: var(--brand-deep); display: inline-block; }
.bubble:nth-child(1) { animation-delay: 0.15s; }
.bubble:nth-child(2) { animation-delay: 0.55s; }
.bubble:nth-child(3) { animation-delay: 0.95s; }
.bubble:nth-child(4) { animation-delay: 1.35s; }
.bubble:nth-child(5) { animation-delay: 1.75s; }
.bubble:nth-child(6) { animation-delay: 2.15s; }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* ---------- trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 22px; padding-bottom: 22px; }
.strip-item { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--muted); }
.strip-item strong { color: var(--ink); font-weight: 600; }
.strip-item svg { width: 20px; height: 20px; color: var(--brand); flex: none; }

/* ---------- sections ---------- */
section { padding: 86px 0; }
.section-head { max-width: 36em; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 16px; font-size: 18px; }

/* features */
.features { background: var(--paper); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform 0.16s, box-shadow 0.16s, border-color 0.16s;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--mint-deep); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--mint); color: var(--brand-deep); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 19px; font-weight: 700; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 15.5px; }

/* steps */
.steps { background: var(--pine); color: #ece7f7; }
.steps .section-head h2 { color: #fff; }
.steps .section-head p { color: #b9aed6; }
.steps .eyebrow { color: #c4b5fd; }
.steps .eyebrow::before { background: #c4b5fd; box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.18); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 28px 24px; border: 1px solid var(--pine-soft); border-radius: var(--radius); background: rgba(255, 255, 255, 0.03); }
.step .num { font-family: var(--font-display); font-weight: 800; font-size: 15px; color: var(--pine); background: #c4b5fd; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { color: #fff; font-size: 18.5px; }
.step p { color: #b9aed6; margin-top: 9px; font-size: 15.5px; }

/* audience */
.audience .au-card {
  background: linear-gradient(135deg, var(--mint) 0%, #fff 100%);
  border: 1px solid var(--mint-deep); border-radius: 22px; padding: 44px 40px;
  display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center;
}
.audience h2 { font-size: clamp(25px, 3.2vw, 34px); }
.audience p { color: var(--muted); margin-top: 14px; font-size: 17.5px; max-width: 40em; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag { background: #fff; border: 1px solid var(--mint-deep); color: var(--brand-deep); font-weight: 600; font-size: 14px; padding: 8px 15px; border-radius: 999px; }

/* contact */
.contact { background: var(--paper); }
.contact-card {
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  padding: 44px 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
}
.contact-card h2 { font-size: clamp(24px, 3vw, 32px); }
.contact-card p { color: var(--muted); margin-top: 12px; }
.contact-list { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.contact-list a, .contact-list span { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 500; }
.contact-list svg { width: 19px; height: 19px; color: var(--brand); flex: none; }
.legal-box { background: var(--mint); border: 1px solid var(--mint-deep); border-radius: var(--radius); padding: 24px 22px; }
.legal-box .label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--brand-deep); }
.legal-box p { color: var(--ink); margin-top: 10px; font-size: 14.5px; line-height: 1.7; }
.legal-box .firm { font-weight: 700; }

/* ---------- footer ---------- */
.site-footer { background: var(--pine); color: #d8cef0; padding: 60px 0 34px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 38px; border-bottom: 1px solid var(--pine-soft); }
.site-footer .brand { color: #fff; }
.footer-about { margin-top: 16px; font-size: 14.5px; color: #b3a6d4; max-width: 30em; }
.footer-col h4 { font-family: var(--font-body); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: #9384bf; font-weight: 700; margin-bottom: 14px; }
.footer-col a, .footer-col span { display: block; font-size: 14.5px; color: #d8cef0; margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.footer-legal { padding-top: 26px; font-size: 13px; color: #a99ccb; line-height: 1.8; }
.footer-legal .firm-line { color: #d8cef0; font-weight: 600; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 13px; color: #9384bf; }

/* ---------- legal pages ---------- */
.doc-hero { padding: 56px 0 30px; border-bottom: 1px solid var(--line); }
.doc-hero h1 { font-size: clamp(30px, 4.2vw, 46px); margin-top: 14px; }
.doc-hero .updated { color: var(--muted); margin-top: 14px; font-size: 15px; }
.doc { padding: 50px 0 80px; }
.doc-inner { max-width: 760px; }
.doc-inner h2 { font-size: 23px; margin: 38px 0 12px; }
.doc-inner h3 { font-size: 18px; margin: 26px 0 8px; font-family: var(--font-body); font-weight: 700; }
.doc-inner p { color: #3a3450; margin: 0 0 14px; }
.doc-inner ul { margin: 0 0 16px; padding-left: 22px; color: #3a3450; }
.doc-inner li { margin-bottom: 8px; }
.doc-inner a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.callout { background: var(--mint); border: 1px solid var(--mint-deep); border-radius: var(--radius); padding: 20px 22px; margin: 8px 0 26px; font-size: 15px; color: var(--ink); }
.callout strong { color: var(--brand-deep); }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-deep); font-weight: 600; font-size: 15px; }
.back-link svg { width: 16px; height: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid, .step-grid { grid-template-columns: 1fr 1fr; }
  .audience .au-card, .contact-card { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .feature-grid, .step-grid, .footer-top { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 50px; }
  section { padding: 60px 0; }
  .audience .au-card, .contact-card, .legal-box { padding: 28px 22px; }
  .chat .bubble { max-width: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .bubble { opacity: 1; transform: none; }
}

/* ---------- brand logo image (real BiSeslen logo) ---------- */
.brand-logo { width: 34px; height: 34px; object-fit: contain; display: block; flex: none; }
.chat-avatar-img { width: 40px; height: 40px; object-fit: contain; display: block; flex: none; }
.site-footer .brand-logo { width: 32px; height: 32px; }
