/* ============================================================
   NORTHPILOT.IO — Design System
   Navy + White + Teal / Premium Strategic AI Consultancy
   ============================================================ */

/* ---- Design Tokens ---------------------------------------- */
:root {
  /* Background scale */
  --bg-0:   #060B18;
  --bg-1:   #080E1D;
  --bg-2:   #0C1425;
  --bg-3:   #10192E;
  --bg-4:   #151F38;

  /* Accent — teal/green */
  --accent:         #2DCFB3;
  --accent-hover:   #24B99F;
  --accent-dim:     rgba(45, 207, 179, 0.07);
  --accent-border:  rgba(45, 207, 179, 0.18);

  /* Text scale */
  --text-1: #EEF2FF;   /* primary */
  --text-2: #8898B8;   /* secondary */
  --text-3: #4E5E7A;   /* muted */

  /* Borders */
  --border:       rgba(255, 255, 255, 0.07);
  --border-md:    rgba(255, 255, 255, 0.11);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale */
  --text-xs:   0.6875rem;  /*  11px */
  --text-sm:   0.8125rem;  /*  13px */
  --text-base: 1rem;       /*  16px */
  --text-lg:   1.125rem;   /*  18px */
  --text-xl:   1.25rem;    /*  20px */
  --text-2xl:  1.5rem;     /*  24px */
  --text-3xl:  2rem;       /*  32px */
  --text-4xl:  2.75rem;    /*  44px */
  --text-5xl:  3.5rem;     /*  56px */
  --text-6xl:  4.5rem;     /*  72px */

  /* Spacing */
  --s1:  0.25rem;
  --s2:  0.5rem;
  --s3:  0.75rem;
  --s4:  1rem;
  --s5:  1.25rem;
  --s6:  1.5rem;
  --s8:  2rem;
  --s10: 2.5rem;
  --s12: 3rem;
  --s16: 4rem;
  --s20: 5rem;
  --s24: 6rem;
  --s32: 8rem;

  /* Layout */
  --container-w: 1120px;
  --radius-sm:   4px;
  --radius:      6px;
  --radius-lg:   10px;

  /* Motion */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --dur:      380ms;
  --dur-fast: 200ms;
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: var(--text-base);
  background: var(--bg-0);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
}

a       { text-decoration: none; color: inherit; }
ul      { list-style: none; }
img     { display: block; max-width: 100%; }
button  { font-family: inherit; }

::selection {
  background: rgba(45, 207, 179, 0.22);
  color: var(--text-1);
}

/* ---- Container -------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 var(--s6);
}

/* ---- Section ---------------------------------------------- */
.section {
  padding: var(--s32) 0;
  border-top: 1px solid var(--border);
}

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text-1);
}

h1 { font-size: clamp(2.25rem, 5.5vw, var(--text-6xl)); }
h2 { font-size: clamp(1.75rem, 3.8vw, var(--text-4xl)); }
h3 { font-size: clamp(1.15rem, 2.2vw, var(--text-2xl)); font-weight: 600; }

p { color: var(--text-2); line-height: 1.72; }

/* ---- Eyebrow label ---------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
}

/* ---- Accent dot ------------------------------------------- */
.accent-dot { color: var(--accent); }

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

/* Sizes */
.btn--sm  { font-size: var(--text-xs);  padding: 0.5rem  1rem;   }
.btn--md  { font-size: var(--text-sm);  padding: 0.65rem 1.35rem; }
.btn--lg  { font-size: var(--text-base); padding: 0.8rem 1.75rem; }

/* Primary — teal filled */
.btn--primary {
  background: var(--accent);
  color: #05091A;
  border-color: var(--accent);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(45, 207, 179, 0.22);
}
.btn--primary:active { transform: translateY(0); }

/* Outline — subtle border */
.btn--outline {
  background: transparent;
  color: var(--text-1);
  border-color: var(--border-md);
}
.btn--outline:hover {
  border-color: var(--accent-border);
  color: var(--accent);
}

/* Ghost — for Client Login link */
.btn--ghost {
  background: transparent;
  color: var(--text-3);
  border-color: transparent;
}
.btn--ghost:hover {
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.04);
}
.nav__login { font-size: 13px; padding: 6px 12px; }

/* Ghost — low contrast */
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border-color: var(--border);
}
.btn--ghost:hover {
  color: var(--text-1);
  border-color: var(--border-md);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: var(--s4) 0;
  transition:
    background var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(6, 11, 24, 0.88);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-1);
  transition: opacity var(--dur-fast);
}
.nav__logo:hover { opacity: 0.8; }

.nav__right {
  display: flex;
  align-items: center;
  gap: var(--s6);
}

/* ---- Nav Link (page navigation) -------------------------- */
.nav__link {
  font-size: var(--text-sm);
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color var(--dur-fast);
}
.nav__link:hover,
.nav__link--active {
  color: var(--text-1);
}

/* ---- Language Toggle -------------------------------------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--s2);
}

.lang-sep {
  color: var(--text-3);
  font-size: var(--text-sm);
  user-select: none;
}

.lang-btn {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--text-3);
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--s1) var(--s2);
  border-radius: var(--radius-sm);
  transition: color var(--dur-fast) var(--ease-out);
  line-height: 1;
}
.lang-btn:hover    { color: var(--text-2); }
.lang-btn.active   { color: var(--accent); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 var(--s32);
  overflow: hidden;
}

/* Subtle grid overlay */
.hero__bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(45, 207, 179, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 207, 179, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 20%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 20%, transparent 90%);
  pointer-events: none;
}

/* Soft radial glow */
.hero__bg-glow {
  position: absolute;
  top: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(45, 207, 179, 0.055) 0%, transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero__content {
  max-width: 820px;
}

.hero__headline {
  margin-top: var(--s3);
  margin-bottom: var(--s6);
}

.hero__sub {
  font-size: clamp(1rem, 1.8vw, var(--text-lg));
  color: var(--text-2);
  max-width: 540px;
  margin-bottom: 0;
  line-height: 1.72;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  margin-top: var(--s8);
}

/* Scroll indicator */
.hero__indicator {
  margin-top: var(--s16);
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  opacity: 0.4;
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.15; transform: scaleY(1); }
  50%       { opacity: 0.5;  transform: scaleY(1.15); }
}

/* ============================================================
   PAGE HERO (inner pages: About, etc.)
   ============================================================ */
.page-hero {
  padding: 120px 0 var(--s20);
  background: var(--bg-0);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner {
  max-width: 760px;
}
.page-hero__headline {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: var(--text-1);
  margin-top: var(--s4);
  margin-bottom: var(--s6);
}
.page-hero__sub {
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
}
.page-hero__actions {
  display: flex;
  gap: var(--s4);
  flex-wrap: wrap;
  margin-top: var(--s8);
}

/* ---- About: "don't" list ---------------------------------- */
.dont-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  margin-top: var(--s10);
}
.dont-list li {
  font-size: var(--text-lg);
  color: var(--text-2);
  padding-left: var(--s8);
  position: relative;
  line-height: 1.6;
}
.dont-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
.dont-close {
  font-size: var(--text-base);
  color: var(--text-3);
  font-style: italic;
  margin-top: var(--s8);
  padding-left: var(--s8);
}
.dont-list--muted li::before {
  color: var(--text-3);
}

/* ============================================================
   SERVICES PAGE
   ============================================================ */

/* ---- Svc System Item (2-col: body + delivers/support) ----- */
.svc-system-item {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--s8) var(--s16);
  align-items: start;
  padding: var(--s12) 0;
}
.svc-system-item__right {
  position: sticky;
  top: 100px;
}
.svc-system-item__sub {
  font-size: var(--text-lg);
  color: var(--text-2);
  margin-top: var(--s4);
  line-height: 1.6;
  max-width: 520px;
}
.svc-system-item__body {
  font-size: var(--text-base);
  color: var(--text-2);
  margin-top: var(--s5);
  line-height: 1.8;
  max-width: 520px;
}
.svc-system-item__cta {
  margin-top: var(--s8);
}
.svc-system-item h2 {
  margin-top: var(--s3);
}

/* ---- Svc Diagnostic Blocks (3-col) ----------------------- */
.svc-diag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s5);
  margin-top: var(--s12);
}
.svc-diag-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s8) var(--s6);
}
.svc-diag-card__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.svc-diag-card p {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
}

/* ---- Svc Bridge (transition statements) ------------------- */
.svc-bridge {
  border-left: 2px solid var(--accent-border);
  padding-left: var(--s8);
  max-width: 700px;
}
.svc-bridge .eyebrow {
  display: block;
  margin-bottom: var(--s5);
}
.svc-bridge h2 {
  font-size: clamp(1.4rem, 2.8vw, 2.1rem);
  line-height: 1.3;
  margin-bottom: var(--s5);
}
.svc-bridge p {
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: 1.75;
}

/* ---- Svc Support Blocks (2×2 for system right col) -------- */
.svc-support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.svc-support-block {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5) var(--s4);
}
.svc-support-block p {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.55;
}

/* ---- Svc Why Grid (3-col principles) ---------------------- */
.svc-why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s6);
  margin-top: var(--s12);
}
.svc-why-card {
  padding: var(--s8) 0;
  border-top: 1px solid var(--border);
}
.svc-why-card h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--s3);
  color: var(--text-1);
}
.svc-why-card p {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.7;
}

/* ---- Svc For List (Who This Is For) ----------------------- */
.svc-for-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin-top: var(--s8);
  max-width: 600px;
}
.svc-for-list li {
  font-size: var(--text-lg);
  color: var(--text-2);
  padding-left: var(--s8);
  position: relative;
  line-height: 1.5;
}
.svc-for-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: var(--text-sm);
  top: 3px;
}

/* ---- Responsive: Services Page ---------------------------- */
@media (max-width: 900px) {
  .svc-system-item {
    grid-template-columns: 1fr;
  }
  .svc-system-item__right {
    position: static;
  }
  .svc-diag-grid {
    grid-template-columns: 1fr;
  }
  .svc-why-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .svc-support-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

/* ---- Form: extend to select -------------------------------  */
.form-field select {
  font-family: var(--font);
  font-size: var(--text-sm);
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  padding: 0.65rem 2.5rem 0.65rem 0.875rem;
  outline: none;
  width: 100%;
  transition: border-color var(--dur-fast);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234E5E7A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-field select:focus {
  border-color: var(--accent-border);
}
.form-field select option {
  background: var(--bg-3);
  color: var(--text-1);
}

/* ---- Contact Process (numbered steps) -------------------- */
.contact-process {
  list-style: none;
  margin-top: var(--s12);
  max-width: 680px;
}
.contact-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 0 var(--s5);
  padding: var(--s6) 0;
  border-top: 1px solid var(--border);
}
.contact-step:first-child { border-top: none; }
.contact-step__num {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.8;
  padding-top: 4px;
}
.contact-step__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s2);
}
.contact-step__body {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
}
.contact-process__note {
  font-size: var(--text-sm);
  color: var(--text-3);
  font-style: italic;
  margin-top: var(--s6);
  max-width: 560px;
}

/* ---- Contact Form Split (2-col) -------------------------- */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--s8) var(--s16);
  align-items: start;
}
.contact-split__left {
  position: sticky;
  top: 100px;
}
.contact-split__left .eyebrow {
  display: block;
  margin-bottom: var(--s5);
}
.contact-split__left h2 {
  margin-bottom: var(--s5);
}
.contact-split__left > p {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.75;
}
.contact-trust {
  margin-top: var(--s8);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.contact-trust__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  font-size: var(--text-sm);
  color: var(--text-3);
  line-height: 1.5;
}
.contact-trust__item::before {
  content: '✓';
  color: var(--accent);
  flex-shrink: 0;
  font-size: var(--text-xs);
  font-weight: 700;
  margin-top: 2px;
}

/* ---- Contact Process Note --------------------------------- */
.contact-process-note {
  margin-top: var(--s10);
  font-size: var(--text-sm);
  color: var(--text-3);
  max-width: 600px;
  line-height: 1.65;
  font-style: italic;
}

/* ---- Contact Form Card ----------------------------------- */
.contact-form-card {
  background: var(--bg-2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: var(--s10) var(--s8);
}
.contact-form-card .modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}
.contact-form-success {
  text-align: center;
  padding: var(--s16) var(--s8);
}
.contact-form-success .success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: var(--text-xl);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s6);
}
.contact-form-success h3 { margin-bottom: var(--s3); }
.contact-form-success p  { color: var(--text-2); line-height: 1.6; }

/* ---- Responsive Contact ---------------------------------- */
@media (max-width: 900px) {
  .contact-split {
    grid-template-columns: 1fr;
  }
  .contact-split__left {
    position: static;
  }
}

/* ============================================================
   SCENARIOS PAGE
   ============================================================ */

.scenarios-disclaimer {
  margin-top: var(--s5);
  font-size: var(--text-sm);
  color: var(--text-3);
  font-style: italic;
  max-width: 620px;
  line-height: 1.65;
  padding: var(--s4) var(--s6);
  border-left: 2px solid var(--border);
}

/* ---- Framework List --------------------------------------- */
.framework-list {
  list-style: none;
  margin-top: var(--s12);
  max-width: 720px;
}
.framework-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 0 var(--s5);
  padding: var(--s6) 0;
  border-top: 1px solid var(--border);
}
.framework-item:last-child { border-bottom: 1px solid var(--border); }
.framework-item__num {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--accent);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.framework-item__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s2);
}
.framework-item__body {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
}

/* ---- Scenario Sections ------------------------------------ */
.scenario-meta {
  margin-bottom: var(--s10);
}
.scenario-block {
  margin-bottom: var(--s8);
  padding-bottom: var(--s8);
  border-bottom: 1px solid var(--border);
}
.scenario-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
.scenario-block__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s3);
}
.scenario-block__body {
  font-size: var(--text-base);
  color: var(--text-2);
  line-height: 1.75;
}

/* ---- Scenario System Card (right col) --------------------- */
.scenario-right {
  position: sticky;
  top: 100px;
}
.scenario-system-card {
  background: var(--bg-2);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: var(--s8) var(--s7);
  margin-bottom: var(--s5);
}
.scenario-system-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.scenario-system-card__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: var(--s4);
}
.scenario-system-card__body {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.7;
}
.scenario-delivers {
  list-style: none;
  margin: var(--s5) 0;
}
.scenario-delivers li {
  position: relative;
  padding-left: var(--s6);
  margin-bottom: var(--s3);
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
}
.scenario-delivers li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: var(--text-xs);
  font-weight: 600;
}
.scenario-next-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--s5) var(--s6);
}
.scenario-next-card__label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s2);
}
.scenario-next-card__body {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.65;
}

/* ---- Scenarios Common Grid ------------------------------- */
.scenarios-common-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s6);
  margin-top: var(--s12);
}
.scenario-common-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s8) var(--s6);
}
.scenario-common-item__num {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--s3);
  letter-spacing: 0.04em;
}
.scenario-common-item__title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s3);
  line-height: 1.4;
}
.scenario-common-item__body {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.7;
}

/* ---- Project Bridge -------------------------------------- */
.scenarios-project-note {
  margin-top: var(--s8);
  padding: var(--s5) var(--s7);
  border-left: 2px solid var(--accent-border);
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 680px;
  font-style: italic;
}

/* ---- Responsive Scenarios -------------------------------- */
@media (max-width: 900px) {
  .scenarios-common-grid {
    grid-template-columns: 1fr;
  }
  .scenario-right {
    position: static;
  }
}

/* ---- About: prose sections -------------------------------- */
.prose-section__inner {
  max-width: 680px;
}
.prose-section__inner p {
  font-size: var(--text-lg);
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: var(--s6);
}
.prose-section__inner p:last-child {
  margin-bottom: 0;
}
.prose-section__inner p.prose-accent {
  color: var(--text-1);
  font-style: italic;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section__header {
  margin-bottom: var(--s16);
}

.section__header h2 {
  margin-top: var(--s3);
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--s8) var(--s20);
  align-items: start;
}

.problem__left h2 {
  margin-top: var(--s3);
}

.problem__lead {
  font-size: var(--text-lg);
  color: var(--text-2);
  margin-bottom: var(--s6);
  font-weight: 400;
}

.problem__list {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.problem__list li {
  color: var(--text-2);
  font-size: var(--text-base);
  padding-left: var(--s5);
  position: relative;
  line-height: 1.6;
}

.problem__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: var(--text-sm);
  top: 2px;
}

.problem__pullquote {
  padding: var(--s4) var(--s5);
  border-left: 2px solid var(--accent);
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.problem__pullquote p {
  color: var(--text-1);
  font-size: var(--text-base);
  line-height: 1.65;
}

/* ============================================================
   APPROACH
   ============================================================ */
.approach {
  background: var(--bg-2);
}

.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: var(--s6) var(--s8);
  padding: var(--s10) 0;
  border-top: 1px solid var(--border);
}

.step:first-child { border-top: none; padding-top: 0; }

.step__num {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--border-md, rgba(255,255,255,0.1));
  padding-top: var(--s1);
  user-select: none;
}

.step__body h3 {
  margin-bottom: var(--s3);
}

.step__body p {
  max-width: 600px;
}

/* ============================================================
   SERVICES — TRANSFORMATION PATH
   ============================================================ */
.section__lead {
  max-width: 560px;
  margin: var(--s4) auto 0;
  text-align: center;
  color: var(--text-3);
  font-size: var(--text-base);
  line-height: 1.7;
}

.service-list {
  display: flex;
  flex-direction: column;
  margin-top: var(--s4);
}

.service-item {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: var(--s6) var(--s16);
  align-items: start;
  padding: var(--s10) 0;
  border-top: 1px solid var(--border);
}

.service-item:first-child { border-top: none; padding-top: 0; }

.service-item__meta {
  margin-bottom: var(--s4);
}

.service-phase {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
  opacity: 0.75;
}

.service-item__left p {
  max-width: 520px;
}

.service-item__right {
  padding-top: var(--s1);
}

.service-item__delivers-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s3);
}

.service-item__delivers {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.service-item__delivers li {
  font-size: var(--text-sm);
  color: var(--text-2);
  display: flex;
  align-items: flex-start;
  gap: var(--s3);
  line-height: 1.55;
}

.service-item__delivers li::before {
  content: '✓';
  color: var(--accent);
  font-size: var(--text-xs);
  flex-shrink: 0;
  margin-top: 2px;
  font-weight: 600;
}

/* Connector between services */
.service-connector {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) 0;
}

.connector-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--accent-border), transparent);
  margin-left: 2px;
  flex-shrink: 0;
}

.connector-label {
  font-size: var(--text-xs);
  color: var(--text-3);
  font-style: italic;
  letter-spacing: 0.01em;
}

/* ============================================================
   WHY THIS APPROACH WORKS
   ============================================================ */
.why {
  background: var(--bg-2);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s1) var(--s16);
}

.why-item {
  padding: var(--s8) 0;
  border-top: 1px solid var(--border);
}

.why-item h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--s3);
  color: var(--text-1);
}

.why-item p {
  font-size: var(--text-base);
  color: var(--text-2);
  max-width: 420px;
}

/* ============================================================
   WHO THIS IS FOR
   ============================================================ */
.for-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s8);
}

.for-col {
  padding: var(--s8);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.for-col--yes {
  background: rgba(45, 207, 179, 0.03);
  border-color: var(--accent-border);
}

.for-col--no {
  background: rgba(255, 255, 255, 0.02);
}

.for-col__header {
  display: flex;
  align-items: center;
  gap: var(--s3);
  margin-bottom: var(--s6);
}

.for-col__marker {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: var(--text-xs);
  font-weight: 700;
  flex-shrink: 0;
}

.for-col__marker--yes {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.for-col__marker--no {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-3);
  border: 1px solid var(--border);
}

.for-col__header h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}

.for-list {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}

.for-list li {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  padding-left: var(--s5);
  position: relative;
}

.for-col--yes .for-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 300;
}

.for-col--no .for-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-weight: 300;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: var(--bg-3);
}

.cta-block {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.cta-block h2 {
  margin-top: var(--s3);
  margin-bottom: var(--s5);
}

.cta-block > p {
  font-size: var(--text-lg);
  color: var(--text-2);
  margin-bottom: var(--s8);
  line-height: 1.7;
}

.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s3);
}

.cta-block__trust {
  margin-top: var(--s5);
  font-size: var(--text-sm);
  color: var(--text-3);
  font-style: italic;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: var(--s12) 0 var(--s8);
  border-top: 1px solid var(--border);
  background: var(--bg-0);
}

/* Top row: logo left, company info right */
.footer__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s8);
  padding-bottom: var(--s8);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--s6);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.footer__tagline {
  font-size: var(--text-xs);
  color: var(--text-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0;
}

/* Company information */
.footer__info {
  display: flex;
  gap: var(--s10);
  flex-wrap: wrap;
  text-align: right;
}

.footer__info-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer__company-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-2);
}

.footer__company-detail {
  font-size: var(--text-xs);
  color: var(--text-3);
  line-height: 1.6;
}

.footer__company-email {
  font-size: var(--text-xs);
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.15s;
}
.footer__company-email:hover { opacity: 0.75; }

/* Bottom row: copyright left, social + language right */
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-3);
  margin: 0;
}

.footer__actions {
  display: flex;
  align-items: center;
  gap: var(--s5);
}

/* Social icons */
.footer__social {
  display: flex;
  align-items: center;
  gap: var(--s3);
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-md);
  color: var(--text-3);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  text-decoration: none;
}
.footer__social-link:hover {
  color: var(--text-1);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}
.footer__social-link svg { display: block; flex-shrink: 0; }

/* Error message inside forms */
.form-error-msg {
  font-size: var(--text-sm);
  color: #f87171;
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: 6px;
  padding: var(--s3) var(--s4);
  margin-bottom: var(--s4);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(5, 8, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--bg-3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: var(--s10) var(--s10);
  width: 100%;
  max-width: 520px;
  max-height: 90svh;
  overflow-y: auto;
  position: relative;
  transform: translateY(16px);
  transition: transform var(--dur) var(--ease);
}

.modal-overlay.open .modal {
  transform: translateY(0);
}

.modal__close {
  position: absolute;
  top: var(--s5);
  right: var(--s5);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border: none;
  border-radius: 50%;
  color: var(--text-3);
  cursor: pointer;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.modal__close:hover {
  background: var(--border-md);
  color: var(--text-1);
}

.modal__title {
  font-size: var(--text-xl);
  margin-top: var(--s3);
  margin-bottom: var(--s3);
}

.modal__sub {
  font-size: var(--text-sm);
  color: var(--text-3);
  margin-bottom: var(--s8);
  line-height: 1.6;
}

/* Form */
.modal__form {
  display: flex;
  flex-direction: column;
  gap: var(--s5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}

.form-field label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-2);
}

.form-field input,
.form-field textarea {
  font-family: var(--font);
  font-size: var(--text-sm);
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  padding: 0.65rem 0.875rem;
  outline: none;
  transition: border-color var(--dur-fast);
  resize: vertical;
  line-height: 1.5;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent-border);
}

.form-field input.error,
.form-field textarea.error {
  border-color: rgba(239, 68, 68, 0.4);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--text-3);
}

.form-submit {
  width: 100%;
  position: relative;
  overflow: hidden;
}

.form-submit__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast);
}

.form-submit.loading .form-submit__text { opacity: 0; }
.form-submit.loading .form-submit__loading { opacity: 1; }

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(5, 9, 26, 0.3);
  border-top-color: #05091A;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-note {
  font-size: var(--text-xs);
  color: var(--text-3);
  text-align: center;
  font-style: italic;
  margin-top: calc(-1 * var(--s2));
}

/* Success state */
.modal__success {
  text-align: center;
  padding: var(--s8) 0;
}

.success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: var(--text-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s5);
}

.modal__success h3 {
  margin-bottom: var(--s3);
  font-size: var(--text-xl);
}

.modal__success p {
  color: var(--text-2);
  font-size: var(--text-sm);
}

@media (max-width: 480px) {
  .modal {
    padding: var(--s8) var(--s6);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity  0.65s var(--ease),
    transform 0.65s var(--ease);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside a visible parent */
.fade-up-children > * {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity  0.5s var(--ease),
    transform 0.5s var(--ease);
}

.fade-up-children.visible > *:nth-child(1) { transition-delay: 0s;    opacity: 1; transform: none; }
.fade-up-children.visible > *:nth-child(2) { transition-delay: 0.09s; opacity: 1; transform: none; }
.fade-up-children.visible > *:nth-child(3) { transition-delay: 0.18s; opacity: 1; transform: none; }
.fade-up-children.visible > *:nth-child(4) { transition-delay: 0.27s; opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .problem__grid {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }

  .service-item {
    grid-template-columns: 1fr;
    gap: var(--s5);
  }

  .service-item__right {
    padding-top: 0;
    border-top: 1px solid var(--border);
    padding-top: var(--s4);
    margin-top: var(--s2);
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .for-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }
}

@media (max-width: 720px) {
  .section { padding: var(--s20) 0; }

  .step {
    grid-template-columns: 64px 1fr;
    gap: var(--s4);
  }

  .step__num {
    font-size: var(--text-3xl);
  }

  .section__header { margin-bottom: var(--s10); }
}

@media (max-width: 560px) {
  .container { padding: 0 var(--s4); }

  .nav__cta { display: none; }

  .hero {
    padding: 110px 0 var(--s20);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .step {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }

  .step__num {
    font-size: var(--text-xl);
    color: var(--accent);
    opacity: 0.5;
  }

  .cta-block__actions {
    flex-direction: column;
  }

  .cta-block__actions .btn {
    width: 100%;
  }

  .footer__top {
    flex-direction: column;
    gap: var(--s6);
  }

  .footer__info {
    text-align: left;
    gap: var(--s6);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s4);
  }

  .footer__actions {
    gap: var(--s4);
  }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: var(--bg-2);
  border-top: 1px solid var(--border-md);
  padding: var(--s4) 0;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
  animation: slideUpCookie 0.3s ease;
}

@keyframes slideUpCookie {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.cookie-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
}

.cookie-banner__text {
  font-size: var(--text-sm);
  color: var(--text-2);
  line-height: 1.6;
  margin: 0;
  flex: 1;
  min-width: 220px;
}

.cookie-banner__text strong {
  color: var(--text-1);
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--s3);
  flex-shrink: 0;
}

/* ============================================================
   CHAT WIDGET
   ============================================================ */

/* FAB Button */
.chat-fab {
  position: fixed;
  bottom: var(--s8);
  right: var(--s8);
  z-index: 400;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #05091A;
  box-shadow: 0 4px 24px rgba(45, 207, 179, 0.28);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.chat-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(45, 207, 179, 0.38);
}
.chat-fab:active { transform: translateY(0); }

.chat-fab__icon { display: none; }
.chat-fab__icon--open  { display: block; }
.chat-fab.active .chat-fab__icon--open  { display: none; }
.chat-fab.active .chat-fab__icon--close { display: block; }

.chat-fab__unread {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: #EF4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--bg-0);
  animation: badgePop 0.3s var(--ease);
}

@keyframes badgePop {
  0%   { transform: scale(0); }
  70%  { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Chat Window */
.chat-window {
  position: fixed;
  bottom: calc(var(--s8) + 60px);
  right: var(--s8);
  z-index: 400;
  width: 360px;
  max-height: 520px;
  background: var(--bg-3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.97);
  transform-origin: bottom right;
  transition:
    opacity var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}
.chat-window.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0) scale(1);
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--s5);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-header__left {
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.chat-header__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-header__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
}
.chat-header__status {
  font-size: var(--text-xs);
  color: var(--text-3);
  margin-top: 1px;
}
.chat-header__close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: none;
  border: none;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur-fast), background var(--dur-fast);
  flex-shrink: 0;
}
.chat-header__close:hover {
  color: var(--text-1);
  background: var(--border);
}

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

/* Message row */
.cm {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}
.cm--bot  { align-self: flex-start; }
.cm--user { align-self: flex-end; }

.cm__bubble {
  padding: var(--s3) var(--s4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.62;
}
.cm--bot .cm__bubble {
  background: var(--bg-4);
  color: var(--text-2);
  border-radius: var(--radius) var(--radius-lg) var(--radius-lg) var(--radius);
}
.cm--user .cm__bubble {
  background: var(--accent);
  color: #05091A;
  font-weight: 500;
  border-radius: var(--radius-lg) var(--radius) var(--radius) var(--radius-lg);
}

/* Typing indicator */
.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--s3) var(--s5) !important;
  min-width: 52px;
}
.typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: typingPulse 1.2s ease-in-out infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingPulse {
  0%, 80%, 100% { transform: scale(0.75); opacity: 0.4; }
  40%           { transform: scale(1);    opacity: 1; }
}

/* CTA inside message */
.cm__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}
.cm__cta .btn {
  font-size: 0.75rem;
  padding: 0.45rem 0.9rem;
}

/* Quick reply chips */
.cm__qr {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  margin-top: var(--s3);
}
.qr-chip {
  font-family: var(--font);
  font-size: var(--text-xs);
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition:
    background var(--dur-fast),
    color var(--dur-fast),
    border-color var(--dur-fast);
  line-height: 1.4;
}
.qr-chip:hover:not(:disabled) {
  background: rgba(45, 207, 179, 0.14);
  border-color: var(--accent);
}
.qr-chip:disabled {
  cursor: default;
}

/* Footer / Input */
.chat-footer {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s3) var(--s4);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chat-input {
  flex: 1;
  font-family: var(--font);
  font-size: var(--text-sm);
  background: var(--bg-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-1);
  padding: 0.5rem 0.75rem;
  outline: none;
  transition: border-color var(--dur-fast);
  line-height: 1.4;
}
.chat-input:focus { border-color: var(--accent-border); }
.chat-input::placeholder { color: var(--text-3); }

.chat-send {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--accent);
  border: none;
  color: #05091A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--dur-fast), transform var(--dur-fast);
}
.chat-send:hover   { background: var(--accent-hover); }
.chat-send:active  { transform: scale(0.95); }

/* Mobile */
@media (max-width: 480px) {
  .chat-fab {
    bottom: var(--s5);
    right: var(--s5);
  }
  .chat-window {
    right: var(--s4);
    left: var(--s4);
    width: auto;
    bottom: calc(var(--s5) + 60px);
    max-height: 70svh;
  }
}
