/* ── Solution Optimal Brand Design System ─────────────── */
:root {
  --ds-color-bg: #040712;
  --ds-color-surface: #0B111F;
  --ds-color-surface-2: #111827;
  --ds-color-text: #EDEDEF;
  --ds-color-text-muted: #8A8F98;
  --ds-color-border: #1E293B;
  --ds-color-border-strong: #334155;
  --ds-color-primary: #F5B455;
  --ds-color-primary-hover: #F6C478;
  --ds-color-primary-text: #040712;
  --ds-color-danger: #EF4444;
  --ds-color-success-fg: #22C55E;
  --ds-color-warning-fg: #F59E0B;
  --ds-color-info-fg: #93C5FD;
  --ds-font-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --ds-font-display: 'Playfair Display', Georgia, serif;
  --ds-font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --ds-radius-sm: 4px; --ds-radius-md: 6px; --ds-radius-lg: 10px; --ds-radius-full: 9999px;
  --ds-shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --ds-shadow-md: 0 4px 16px rgba(0,0,0,0.5);
  --so-gold-glow: 0 0 0 1px rgba(245,180,85,0.18), 0 8px 40px -12px rgba(245,180,85,0.25);
  --ds-space-1: 8px; --ds-space-2: 16px; --ds-space-3: 24px; --ds-space-4: 32px;
  --ds-space-5: 40px; --ds-space-6: 48px; --ds-space-8: 64px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--ds-color-bg); color: var(--ds-color-text); font-family: var(--ds-font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; line-height: 1.6; }
::selection { background: rgba(245,180,85,0.28); color: #fff; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.so-reveal { opacity: 0; transform: translateY(8px); transition: opacity 600ms cubic-bezier(0.16,1,0.3,1), transform 600ms cubic-bezier(0.16,1,0.3,1); }
.so-reveal.in { opacity: 1; transform: none; }
@keyframes so-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(245,180,85,0.45); } 50% { box-shadow: 0 0 0 10px rgba(245,180,85,0); } }
@keyframes so-slideup { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:none; } }
@keyframes so-fadein { from { opacity:0; } to { opacity:1; } }
@keyframes so-blink { 0%,100% { opacity:1; } 50% { opacity:0.15; } }
.so-scroll::-webkit-scrollbar { width: 6px; }
.so-scroll::-webkit-scrollbar-thumb { background: var(--ds-color-border-strong); border-radius: 9999px; }
@media (prefers-reduced-motion: reduce) {
  .so-reveal { opacity:1!important; transform:none!important; transition:none!important; }
  *,*::before,*::after { animation-duration:0.001ms!important; }
}

/* ── Layout ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--ds-space-3); }
.section { padding: var(--ds-space-8) 0; }

/* ── Header ──────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: var(--ds-space-2) 0;
  background: transparent;
  transition: background 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.site-header.scrolled {
  background: rgba(4,7,18,0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--ds-color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 var(--ds-space-3);
}
.header-brand { display: flex; align-items: center; gap: var(--ds-space-2); }
.header-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--ds-color-border-strong); }
.header-name { font-weight: 600; font-size: 15px; white-space: nowrap; }
.header-role { font-size: 12px; color: var(--ds-color-text-muted); }
.header-nav { display: flex; align-items: center; gap: var(--ds-space-4); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  font-size: 14px; color: var(--ds-color-text-muted);
  transition: color 200ms; position: relative; padding-bottom: 4px;
}
.header-nav a:hover { color: var(--ds-color-text); }
.header-nav a.active { color: var(--ds-color-primary); }
.header-nav a.active::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--ds-color-primary); border-radius: 1px;
}
.lang-switch { display: flex; gap: 8px; margin-left: var(--ds-space-3); padding-left: var(--ds-space-3); border-left: 1px solid var(--ds-color-border); }
.lang-btn {
  background: transparent; border: 1px solid var(--ds-color-border);
  color: var(--ds-color-text-muted); font-size: 12px; font-family: var(--ds-font-sans);
  padding: 4px 10px; border-radius: var(--ds-radius-sm); cursor: pointer;
  transition: all 200ms;
}
.lang-btn:hover { border-color: var(--ds-color-border-strong); color: var(--ds-color-text); }
.lang-btn.active {
  background: var(--ds-color-primary); color: var(--ds-color-primary-text);
  border-color: var(--ds-color-primary); font-weight: 600;
}
.mobile-menu-btn {
  display: none; background: none; border: none; color: var(--ds-color-text);
  cursor: pointer; padding: 8px;
}
.mobile-menu-btn svg { width: 24px; height: 24px; }

/* ── Buttons ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ds-color-primary); color: var(--ds-color-primary-text);
  font-weight: 600; font-size: 15px; padding: 14px 28px;
  border-radius: var(--ds-radius-md); border: none; cursor: pointer;
  transition: background 200ms, box-shadow 200ms; font-family: var(--ds-font-sans);
}
.btn-primary:hover { background: var(--ds-color-primary-hover); box-shadow: var(--so-gold-glow); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--ds-color-text);
  font-weight: 500; font-size: 15px; padding: 14px 28px;
  border-radius: var(--ds-radius-md); border: 1px solid var(--ds-color-border-strong);
  cursor: pointer; transition: border-color 200ms, color 200ms; font-family: var(--ds-font-sans);
}
.btn-outline:hover { border-color: var(--ds-color-primary); color: var(--ds-color-primary); }

/* ── Hero (shared pattern) ───────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -120px; left: -80px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,180,85,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--ds-space-8);
  align-items: center; width: 100%;
}
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(245,180,85,0.08); border: 1px solid rgba(245,180,85,0.2);
  border-radius: var(--ds-radius-full); padding: 6px 18px;
  font-size: 13px; color: var(--ds-color-primary); font-weight: 500;
  margin-bottom: var(--ds-space-3);
}
.hero h1 {
  font-family: var(--ds-font-display); font-size: clamp(36px, 5vw, 56px);
  font-weight: 700; line-height: 1.15; margin-bottom: var(--ds-space-3);
}
.hero h1 .gold, .gold { color: var(--ds-color-primary); }
.hero-subtitle {
  font-size: 18px; color: var(--ds-color-text-muted); line-height: 1.6;
  margin-bottom: var(--ds-space-5); max-width: 520px;
}
.hero-ctas { display: flex; gap: var(--ds-space-2); flex-wrap: wrap; }
.hero-portrait-wrap {
  position: relative; border-radius: var(--ds-radius-lg); overflow: hidden;
  aspect-ratio: 3/4; max-height: 520px;
}
.hero-portrait { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero-portrait-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(to top, var(--ds-color-bg), transparent);
  pointer-events: none;
}
.hero-portrait-caption {
  position: absolute; bottom: var(--ds-space-3); left: var(--ds-space-3);
  font-size: 13px; color: var(--ds-color-text-muted); font-weight: 500;
}
.hero-portrait-caption .name-highlight { color: var(--ds-color-primary); }

/* ── CQ Formula ──────────────────────────────────────── */
.cq-strip {
  background: var(--ds-color-surface); border-top: 1px solid var(--ds-color-border);
  border-bottom: 1px solid var(--ds-color-border); padding: var(--ds-space-6) 0;
}
.cq-formula {
  text-align: center; font-family: var(--ds-font-mono); font-size: clamp(16px, 2.5vw, 22px);
  color: var(--ds-color-text-muted); margin-bottom: var(--ds-space-5); letter-spacing: 0.5px;
}
.cq-formula .gold { font-weight: 700; }
.cq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-4); }
.cq-card { text-align: center; padding: var(--ds-space-3); border-radius: var(--ds-radius-md); transition: background 200ms; }
.cq-card:hover { background: rgba(255,255,255,0.02); }
.cq-card.highlighted { border: 1px solid rgba(245,180,85,0.2); background: rgba(245,180,85,0.04); }
.cq-card-abbr { font-family: var(--ds-font-mono); font-size: 28px; font-weight: 700; margin-bottom: var(--ds-space-1); }
.cq-card.highlighted .cq-card-abbr { color: var(--ds-color-primary); }
.cq-card-title { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.cq-card-desc { font-size: 13px; color: var(--ds-color-text-muted); line-height: 1.5; }

/* ── Cases ───────────────────────────────────────────── */
.cases-header { text-align: center; margin-bottom: var(--ds-space-6); }
.cases-header h2 { font-family: var(--ds-font-display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; margin-bottom: var(--ds-space-1); }
.cases-header p { color: var(--ds-color-text-muted); font-size: 16px; }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-3); }
.case-card {
  background: var(--ds-color-surface); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg); padding: var(--ds-space-4);
  transition: border-color 300ms, box-shadow 300ms, transform 200ms;
  cursor: default; display: flex; flex-direction: column;
}
.case-card:hover { border-color: var(--ds-color-primary); box-shadow: var(--so-gold-glow); transform: translateY(-2px); }
.case-tag {
  display: inline-flex; align-items: center; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ds-color-primary); font-weight: 600; margin-bottom: var(--ds-space-2);
}
.case-title { font-family: var(--ds-font-display); font-size: 22px; font-weight: 700; margin-bottom: var(--ds-space-2); }
.case-desc { font-size: 14px; color: var(--ds-color-text-muted); line-height: 1.6; margin-bottom: var(--ds-space-3); flex-grow: 1; }
.case-metrics { display: flex; gap: var(--ds-space-3); flex-wrap: wrap; }
.case-metric { text-align: left; }
.case-metric-value { font-family: var(--ds-font-mono); font-size: 24px; font-weight: 700; color: var(--ds-color-primary); }
.case-metric-label { font-size: 12px; color: var(--ds-color-text-muted); }
.case-fact {
  margin-top: var(--ds-space-2); padding-top: var(--ds-space-2);
  border-top: 1px solid var(--ds-color-border);
  font-size: 13px; color: var(--ds-color-text-muted); font-style: italic;
}

/* ── Cases Page (full articles) ──────────────────────── */
.case-article {
  background: var(--ds-color-surface); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg); padding: var(--ds-space-6);
  margin-bottom: var(--ds-space-4);
  transition: border-color 300ms;
}
.case-article:hover { border-color: rgba(245,180,85,0.3); }
.case-article-header { margin-bottom: var(--ds-space-4); }
.case-metrics-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--ds-space-3); margin-bottom: var(--ds-space-4);
}
.case-metric-card {
  background: var(--ds-color-surface-2); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md); padding: var(--ds-space-3); text-align: center;
}
.case-metric-card .case-metric-value { font-size: 28px; margin-bottom: 4px; }
.case-tech-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--ds-space-3); }
.tech-badge {
  background: var(--ds-color-surface-2); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-full); padding: 4px 12px;
  font-size: 12px; color: var(--ds-color-text-muted); font-family: var(--ds-font-mono);
}
.case-live-ref {
  font-size: 13px; color: var(--ds-color-text-muted);
  padding-top: var(--ds-space-2); border-top: 1px solid var(--ds-color-border);
}
.case-live-ref a { color: var(--ds-color-primary); transition: color 200ms; }
.case-live-ref a:hover { color: var(--ds-color-primary-hover); }

/* ── Additional proof (dashed border) ────────────────── */
.proof-section {
  border: 1px dashed var(--ds-color-border-strong); border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-5); text-align: center; margin: var(--ds-space-6) 0;
}
.proof-section h3 { font-family: var(--ds-font-display); font-size: 24px; font-weight: 700; margin-bottom: var(--ds-space-2); }
.proof-section p { color: var(--ds-color-text-muted); font-size: 15px; max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* ── Retention Proof ─────────────────────────────────── */
.retention-strip {
  background: var(--ds-color-surface); border-top: 1px solid var(--ds-color-border);
  border-bottom: 1px solid var(--ds-color-border); padding: var(--ds-space-6) 0;
}
.retention-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ds-space-4); text-align: center; }
.retention-value { font-family: var(--ds-font-mono); font-size: 28px; font-weight: 700; color: var(--ds-color-primary); margin-bottom: 4px; }
.retention-label { font-size: 13px; color: var(--ds-color-text-muted); }
.retention-badge {
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--ds-space-4);
  padding: 6px 14px; background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--ds-radius-full); font-size: 12px; color: var(--ds-color-warning-fg); font-weight: 500;
}
.retention-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ds-color-warning-fg); }

/* ── Invite Banner ───────────────────────────────────── */
.invite-banner {
  background: linear-gradient(135deg, rgba(245,180,85,0.06) 0%, rgba(245,180,85,0.02) 100%);
  border: 1px solid rgba(245,180,85,0.12); border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-6); text-align: center; margin: var(--ds-space-6) 0;
}
.invite-banner h2 { font-family: var(--ds-font-display); font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin-bottom: var(--ds-space-2); }
.invite-banner p { color: var(--ds-color-text-muted); font-size: 16px; max-width: 560px; margin: 0 auto var(--ds-space-4); }
.invite-banner .btn-primary { font-size: 16px; padding: 16px 32px; }

/* ── Contact Section ─────────────────────────────────── */
.contact-section { text-align: center; }
.contact-section h2 { font-family: var(--ds-font-display); font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; margin-bottom: var(--ds-space-2); }
.contact-section p { color: var(--ds-color-text-muted); font-size: 16px; margin-bottom: var(--ds-space-4); max-width: 480px; margin-left: auto; margin-right: auto; }
.contact-ctas { display: flex; justify-content: center; gap: var(--ds-space-2); flex-wrap: wrap; }

/* ── About Page ──────────────────────────────────────── */
.about-hero { min-height: auto; padding-top: 120px; padding-bottom: var(--ds-space-6); }
.about-eyebrow { font-size: 13px; color: var(--ds-color-primary); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: var(--ds-space-2); }
.about-intro { font-size: 18px; color: var(--ds-color-text-muted); line-height: 1.7; margin-bottom: var(--ds-space-4); max-width: 560px; }
.about-facts { display: flex; gap: var(--ds-space-4); flex-wrap: wrap; margin-bottom: var(--ds-space-4); }
.about-fact {
  background: var(--ds-color-surface); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-md); padding: 12px 20px;
}
.about-fact-value { font-family: var(--ds-font-mono); font-size: 20px; font-weight: 700; color: var(--ds-color-primary); }
.about-fact-label { font-size: 12px; color: var(--ds-color-text-muted); }

.zone-of-genius { padding: var(--ds-space-8) 0; }
.zone-of-genius h2 { font-family: var(--ds-font-display); font-size: clamp(28px, 3.5vw, 36px); font-weight: 700; margin-bottom: var(--ds-space-5); text-align: center; }

.pull-quote {
  border-left: 3px solid var(--ds-color-primary); padding: var(--ds-space-4) var(--ds-space-5);
  margin: var(--ds-space-6) auto; max-width: 700px;
  font-family: var(--ds-font-display); font-size: clamp(20px, 2.5vw, 26px);
  font-style: italic; color: var(--ds-color-text); line-height: 1.5;
}

.philosophy-section { padding: var(--ds-space-8) 0; }
.philosophy-section h2 { font-family: var(--ds-font-display); font-size: clamp(28px, 3.5vw, 36px); font-weight: 700; margin-bottom: var(--ds-space-2); text-align: center; }
.philosophy-section > .container > p { color: var(--ds-color-text-muted); font-size: 16px; text-align: center; margin-bottom: var(--ds-space-5); max-width: 600px; margin-left: auto; margin-right: auto; }

.principle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--ds-space-3); }
.principle-card {
  background: var(--ds-color-surface); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg); padding: var(--ds-space-4);
  transition: border-color 300ms, transform 200ms;
}
.principle-card:hover { border-color: rgba(245,180,85,0.3); transform: translateY(-2px); }
.principle-number { font-family: var(--ds-font-mono); font-size: 32px; font-weight: 700; color: var(--ds-color-primary); margin-bottom: var(--ds-space-1); }
.principle-title { font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.principle-desc { font-size: 14px; color: var(--ds-color-text-muted); line-height: 1.6; }

/* ── Services Page ───────────────────────────────────── */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-3); }
.service-card {
  background: var(--ds-color-surface); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg); padding: var(--ds-space-4);
  transition: border-color 300ms, box-shadow 300ms, transform 200ms;
}
.service-card:hover { border-color: var(--ds-color-primary); box-shadow: var(--so-gold-glow); transform: translateY(-2px); }
.service-icon { font-size: 32px; margin-bottom: var(--ds-space-2); }
.service-title { font-family: var(--ds-font-display); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.service-desc { font-size: 14px; color: var(--ds-color-text-muted); line-height: 1.6; }

.engagement-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-3); }
.engagement-card {
  background: var(--ds-color-surface); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg); padding: var(--ds-space-5);
  text-align: center; transition: border-color 300ms, transform 200ms;
  position: relative;
}
.engagement-card:hover { border-color: rgba(245,180,85,0.3); transform: translateY(-2px); }
.engagement-card.featured { border-color: var(--ds-color-primary); }
.engagement-card.featured::before {
  content: ''; position: absolute; top: -1px; left: 20%; right: 20%;
  height: 2px; background: var(--ds-color-primary);
}
.engagement-tier { font-size: 13px; color: var(--ds-color-primary); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; margin-bottom: var(--ds-space-1); }
.engagement-price { font-family: var(--ds-font-mono); font-size: 28px; font-weight: 700; margin-bottom: var(--ds-space-1); }
.engagement-period { font-size: 13px; color: var(--ds-color-text-muted); margin-bottom: var(--ds-space-3); }
.engagement-features { list-style: none; text-align: left; }
.engagement-features li {
  font-size: 14px; color: var(--ds-color-text-muted); padding: 6px 0;
  border-bottom: 1px solid var(--ds-color-border);
}
.engagement-features li:last-child { border-bottom: none; }
.engagement-features li::before { content: '\2713'; color: var(--ds-color-success-fg); margin-right: 8px; font-weight: 600; }

.ownership-callout {
  background: linear-gradient(135deg, rgba(245,180,85,0.06) 0%, rgba(245,180,85,0.02) 100%);
  border: 1px solid rgba(245,180,85,0.12); border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-5); text-align: center; margin: var(--ds-space-6) 0;
}
.ownership-callout h3 { font-family: var(--ds-font-display); font-size: 24px; font-weight: 700; margin-bottom: var(--ds-space-1); }
.ownership-callout p { color: var(--ds-color-text-muted); font-size: 15px; max-width: 560px; margin: 0 auto; line-height: 1.6; }

/* ── Footer ──────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--ds-color-border);
  padding: var(--ds-space-6) 0 var(--ds-space-3); margin-top: var(--ds-space-8);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--ds-space-6);
  margin-bottom: var(--ds-space-5);
}
.footer-brand { display: flex; align-items: center; gap: var(--ds-space-1); margin-bottom: var(--ds-space-2); }
.footer-logo { width: 32px; height: 32px; border-radius: 50%; }
.footer-brand-name { font-weight: 600; font-size: 15px; }
.footer-tagline { font-size: 13px; color: var(--ds-color-text-muted); line-height: 1.5; }
.footer-col-title { font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ds-color-text-muted); margin-bottom: var(--ds-space-2); }
.footer-link { display: block; font-size: 14px; color: var(--ds-color-text-muted); padding: 3px 0; transition: color 200ms; }
.footer-link:hover { color: var(--ds-color-text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: var(--ds-space-3); border-top: 1px solid var(--ds-color-border);
  font-size: 12px; color: var(--ds-color-text-muted);
}
.footer-sdk { display: flex; align-items: center; gap: 6px; }
.footer-sdk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ds-color-success-fg); animation: so-pulse 2s ease-in-out infinite; }

/* ── Chat Widget ─────────────────────────────────────── */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--ds-color-primary); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--so-gold-glow); animation: so-pulse 2.5s ease-in-out infinite;
  transition: transform 200ms;
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 24px; height: 24px; fill: var(--ds-color-primary-text); }
.chat-fab-pill {
  position: fixed; bottom: 88px; right: 24px; z-index: 199;
  background: var(--ds-color-surface); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg); padding: 12px 16px;
  font-size: 13px; color: var(--ds-color-text); max-width: 260px;
  box-shadow: var(--ds-shadow-md); opacity: 0; transform: translateY(8px) scale(0.95);
  transition: opacity 400ms, transform 400ms; pointer-events: none;
}
.chat-fab-pill.show { opacity: 1; transform: none; pointer-events: auto; }
.chat-fab-pill::after {
  content: ''; position: absolute; bottom: -6px; right: 32px;
  width: 12px; height: 12px; background: var(--ds-color-surface);
  border-right: 1px solid var(--ds-color-border);
  border-bottom: 1px solid var(--ds-color-border); transform: rotate(45deg);
}
.chat-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 201;
  width: 380px; height: 560px; max-height: calc(100vh - 48px);
  background: var(--ds-color-surface); border: 1px solid var(--ds-color-border);
  border-radius: var(--ds-radius-lg); overflow: hidden;
  display: none; flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6); animation: so-slideup 300ms ease-out;
}
.chat-panel.open { display: flex; }
.chat-header {
  display: flex; align-items: center; gap: var(--ds-space-2);
  padding: var(--ds-space-2) var(--ds-space-3);
  border-bottom: 1px solid var(--ds-color-border); background: var(--ds-color-surface-2);
}
.chat-header-logo { width: 32px; height: 32px; border-radius: 50%; }
.chat-header-info { flex: 1; }
.chat-header-name { font-weight: 600; font-size: 14px; }
.chat-header-status { font-size: 11px; color: var(--ds-color-success-fg); display: flex; align-items: center; gap: 4px; }
.chat-header-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ds-color-success-fg); }
.chat-close-btn { background: none; border: none; color: var(--ds-color-text-muted); cursor: pointer; padding: 4px; transition: color 200ms; }
.chat-close-btn:hover { color: var(--ds-color-text); }
.chat-close-btn svg { width: 20px; height: 20px; }
.chat-messages { flex: 1; overflow-y: auto; padding: var(--ds-space-3); display: flex; flex-direction: column; gap: var(--ds-space-2); }
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: var(--ds-radius-lg);
  font-size: 14px; line-height: 1.5; animation: so-fadein 300ms ease-out;
}
.chat-msg.bot { align-self: flex-start; background: var(--ds-color-surface-2); border: 1px solid var(--ds-color-border); border-bottom-left-radius: var(--ds-radius-sm); }
.chat-msg.user { align-self: flex-end; background: var(--ds-color-primary); color: var(--ds-color-primary-text); border-bottom-right-radius: var(--ds-radius-sm); }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 var(--ds-space-3) var(--ds-space-2); }
.chat-chip {
  background: transparent; border: 1px solid var(--ds-color-border-strong);
  color: var(--ds-color-text); font-size: 13px; padding: 7px 14px;
  border-radius: var(--ds-radius-full); cursor: pointer;
  transition: border-color 200ms, background 200ms, color 200ms;
  font-family: var(--ds-font-sans);
}
.chat-chip:hover { border-color: var(--ds-color-primary); background: rgba(245,180,85,0.08); color: var(--ds-color-primary); }
.chat-footer { padding: var(--ds-space-1) var(--ds-space-3) var(--ds-space-2); border-top: 1px solid var(--ds-color-border); text-align: center; }
.chat-footer-text { font-size: 11px; color: var(--ds-color-text-muted); display: flex; align-items: center; justify-content: center; gap: 4px; }
.chat-footer-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ds-color-success-fg); }
.chat-typing { display: flex; align-items: center; gap: 4px; padding: 10px 14px; align-self: flex-start; background: var(--ds-color-surface-2); border: 1px solid var(--ds-color-border); border-radius: var(--ds-radius-lg); border-bottom-left-radius: var(--ds-radius-sm); }
.chat-typing-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ds-color-text-muted); animation: so-blink 1.2s ease-in-out infinite; }
.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }

/* ── Responsive ──────────────────────────────────────── */

/* Tablet landscape */
@media (max-width: 1024px) {
  .hero-grid, .grid-hero { grid-template-columns: 1fr !important; gap: var(--ds-space-5) !important; }
  .hero-portrait-wrap { max-height: 420px; max-width: 420px; margin: 0 auto; }
  .cases-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .services-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .engagement-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .principle-grid, .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
  .retention-grid { grid-template-columns: repeat(2, 1fr) !important; gap: var(--ds-space-3) !important; }
  .footer-grid, .grid-footer { grid-template-columns: 1fr 1fr !important; }
  .grid-2 { grid-template-columns: 1fr !important; }
  .case-article-grid, .grid-case-article { grid-template-columns: 1fr !important; }
}

/* Tablet portrait / large phone */
@media (max-width: 768px) {
  .container, [class*="container"] { padding-left: var(--ds-space-2) !important; padding-right: var(--ds-space-2) !important; }
  .header-nav .nav-links { display: none; }
  .header-nav .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(4,7,18,0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    padding: var(--ds-space-3); gap: var(--ds-space-2);
    border-bottom: 1px solid var(--ds-color-border);
    z-index: 99;
  }
  .header-nav .nav-links.open a { font-size: 16px; padding: 12px 16px; }
  .mobile-menu-btn { display: block; }
  .lang-switch { border-left: none !important; margin-left: var(--ds-space-1) !important; padding-left: 0 !important; }
  .hero { min-height: auto; padding-top: 90px; }
  .hero h1 { font-size: clamp(28px, 7vw, 40px); }
  .hero-portrait-wrap { max-height: 360px; max-width: 340px; }
  .cq-grid { grid-template-columns: 1fr !important; gap: var(--ds-space-3) !important; }
  .cases-grid { grid-template-columns: 1fr !important; }
  .retention-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .section { padding: var(--ds-space-6) 0; }
  /* Chat widget full-width */
  .chat-panel { width: calc(100vw - 32px) !important; right: 16px !important; bottom: 16px !important; max-height: calc(100vh - 80px) !important; }
  .chat-fab { bottom: 16px !important; right: 16px !important; }
  .chat-fab-pill { bottom: 80px !important; right: 16px !important; width: calc(100vw - 100px) !important; }
}

/* Phone */
@media (max-width: 480px) {
  .hero { padding-top: 80px; padding-bottom: var(--ds-space-5); }
  .about-hero { padding-top: 80px; }
  .hero h1 { font-size: 26px; line-height: 1.2; }
  .hero-subtitle { font-size: 15px; }
  .hero-badge { font-size: 11px; padding: 5px 14px; }
  .hero-ctas { flex-direction: column; gap: var(--ds-space-1); }
  .hero-ctas a, .hero-ctas button { width: 100%; justify-content: center; text-align: center; }
  .hero-portrait-wrap { max-height: 300px; max-width: 280px; aspect-ratio: auto; }
  .btn-primary, .btn-outline { font-size: 14px; padding: 12px 20px; }
  .services-grid { grid-template-columns: 1fr !important; }
  .engagement-grid { grid-template-columns: 1fr !important; }
  .principle-grid, .grid-4 { grid-template-columns: 1fr !important; }
  .footer-grid, .grid-footer { grid-template-columns: 1fr !important; gap: var(--ds-space-4) !important; }
  .retention-grid { grid-template-columns: 1fr 1fr !important; gap: var(--ds-space-2) !important; }
  .case-metrics-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .section { padding: var(--ds-space-5) 0; }
  h2 { font-size: clamp(22px, 5.5vw, 32px) !important; }
  /* CQ formula smaller */
  .cq-formula { font-size: 18px !important; }
  /* Case article number watermark */
  .case-no { font-size: 48px !important; }
  /* Invite banner */
  .invite-banner { padding: var(--ds-space-4) !important; }
  .invite-banner .grid-invite { grid-template-columns: 1fr !important; text-align: center; }
  /* Contact section */
  .contact-section h2 { font-size: 28px !important; }
}
