/* =========================================================
   Context Bridge Works | Marketing Site
   ========================================================= */

:root {
  --bg: #0a0e1a;
  --bg-elev: #111827;
  --bg-soft: #0f1524;
  --panel: #131a2c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #e6eaf2;
  --text-muted: #c1cadc;
  --text-dim: #adb8d0;
  --accent: #6ea8ff;
  --accent-2: #8b5cf6;
  --accent-3: #22d3ee;
  --success: #34d399;
  --grad: linear-gradient(135deg, #6ea8ff 0%, #8b5cf6 50%, #22d3ee 100%);
  --container: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 60px -10px rgba(110, 168, 255, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.6em;
  color: #f6f8fc;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--text-muted); }

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(110, 168, 255, 0.06);
}

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad);
  color: #0a0e1a;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 70px -5px rgba(139, 92, 246, 0.5); }
.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 26, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--grad);
  color: #0a0e1a;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
}
.logo-text { color: #fff; font-size: 1rem; }
.logo-llc { color: var(--text-dim); font-weight: 500; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.primary-nav a {
  font-size: 0.93rem;
  color: var(--text-muted);
  font-weight: 500;
}
.primary-nav a:hover { color: #fff; }
.nav-cta {
  padding: 9px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  color: #fff !important;
}
.nav-cta:hover { border-color: var(--accent); }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  width: 40px; height: 40px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; width: 18px; height: 2px; background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 20% 0%, rgba(110, 168, 255, 0.18), transparent 60%),
    radial-gradient(50% 40% at 90% 20%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(40% 30% at 60% 100%, rgba(34, 211, 238, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.lede {
  font-size: 1.13rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-trust {
  display: flex;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  color: var(--text-dim);
  font-size: 0.88rem;
}
.hero-trust strong {
  display: block;
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

/* Hero visual */
.hero-visual {
  position: relative;
  height: 460px;
}
.orb {
  position: absolute;
  width: 320px; height: 320px;
  top: 30px; right: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(110, 168, 255, 0.55), rgba(139, 92, 246, 0.35) 50%, transparent 70%);
  filter: blur(20px);
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}
/* Hero chat preview — clickable card that opens the live concierge */
.hero-chat {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-chat:hover {
  transform: translateY(-3px);
  border-color: rgba(110, 168, 255, 0.45);
  box-shadow: 0 30px 80px -20px rgba(110, 168, 255, 0.4);
}

.hero-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
}
.hero-chat-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--grad);
  color: #0a0e1a;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: -0.02em;
  flex: none;
}
.hero-chat-title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.hero-chat-title strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.hero-chat-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.hero-chat-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  animation: heroPulse 2s ease-in-out infinite;
}
@keyframes heroPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
  50% { box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.05); }
}

.hero-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 16px 12px;
}
.hero-chat-msg {
  font-size: 0.86rem;
  line-height: 1.5;
  padding: 10px 13px;
  border-radius: 12px;
  max-width: 92%;
}
.hero-chat-msg p { margin: 0; color: var(--text); }
.hero-chat-msg-user {
  align-self: flex-end;
  background: var(--grad);
  color: #0a0e1a;
  font-weight: 500;
  border-top-right-radius: 6px;
}
.hero-chat-msg-assistant {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-top-left-radius: 6px;
}
.hero-chat-cite {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(110, 168, 255, 0.08);
  border: 1px solid rgba(110, 168, 255, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
}

.hero-chat-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.hero-chat-placeholder {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  box-sizing: border-box;
  font-size: 0.87rem;
  line-height: 1;
  color: var(--text-dim);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
}
.hero-chat-typed {
  display: inline-block;
  max-width: calc(100% - 6px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-chat-cursor {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: var(--accent);
  margin-left: 2px;
  flex: none;
  animation: heroChatCursor 1s steps(2, end) infinite;
}
@keyframes heroChatCursor {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-chat-cursor { animation: none; opacity: 1; }
}
.hero-chat-send {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--grad);
  color: #0a0e1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-chat-send svg { width: 16px; height: 16px; }

/* ---------- Logos strip ---------- */
.logos-strip {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.strip-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 22px;
}
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
}
.logos span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}
.logos span:hover { opacity: 1; color: #fff; }

/* ---------- Section header ---------- */
.section-header {
  max-width: 720px;
  margin: 0 auto 60px;
  text-align: center;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* ---------- Services ---------- */
.services { padding: 110px 0; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.service-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(110, 168, 255, 0.08);
  color: var(--accent);
  margin-bottom: 22px;
  border: 1px solid rgba(110, 168, 255, 0.18);
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { color: #fff; }
.service-card p em { color: var(--text); font-style: normal; font-weight: 500; }
.service-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}
.service-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 0.95rem;
}
.service-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 10px;
  width: 14px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.service-link {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.92rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}
.service-link:hover { color: #fff; transform: translateX(2px); }

.service-card-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 32px;
  align-items: start;
}
.service-card-wide .service-icon { margin-bottom: 0; }
.service-card-wide h3 { margin-bottom: 12px; }
.service-card-wide .service-wide-body { max-width: 100%; }
.service-list-wide {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 28px;
  row-gap: 8px;
}

/* ---------- Approach ---------- */
.approach {
  padding: 110px 0;
  background:
    linear-gradient(180deg, transparent, rgba(110, 168, 255, 0.03) 50%, transparent),
    var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 70px;
  align-items: start;
}
.approach-copy p strong { color: var(--text); font-weight: 600; }

.approach-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.approach-steps li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 22px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.45);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.approach-steps li:hover { border-color: var(--border-strong); background: rgba(17, 24, 39, 0.7); }
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.approach-steps h3 {
  margin-bottom: 6px;
  color: #fff;
  font-size: 1.05rem;
}
.approach-steps p { margin: 0; font-size: 0.95rem; }

/* ---------- Capabilities ---------- */
.capabilities { padding: 110px 0; }
.cap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.cap-item {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}
.cap-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.cap-item span {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}
.cap-item p { margin: 0; font-size: 0.93rem; color: var(--text); }

/* ---------- About ---------- */
.about {
  padding: 110px 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 70px;
  align-items: center;
}
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.stat {
  padding: 32px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, transparent 100%);
  text-align: left;
}
.stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  line-height: 1;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Contact ---------- */
.contact { padding: 120px 0; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: start;
}
.contact-meta {
  list-style: none;
  padding: 0;
  margin: 30px 0 0;
  display: grid;
  gap: 14px;
}
.contact-meta li {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(17, 24, 39, 0.4);
}
.contact-meta span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 2px;
}

.contact-form {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: grid;
  gap: 18px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}
.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.97rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 12px 14px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: var(--bg-soft);
}
.form-note {
  margin: 0;
  font-size: 0.85rem;
  text-align: center;
  color: var(--text-dim);
}
.form-note a { color: var(--accent); }

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.form-status {
  display: none;
  font-size: 0.9rem;
  text-align: center;
  padding: 12px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
}
.form-status-success,
.form-status-error {
  display: block;
}
.form-status-success {
  color: #a7f3d0;
  background: rgba(52, 211, 153, 0.08);
  border-color: rgba(52, 211, 153, 0.35);
}
.form-status-error {
  color: #fecaca;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.35);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 70px 0 30px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.logo-footer { margin-bottom: 14px; }
.footer-tag {
  max-width: 380px;
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}
.footer-address {
  max-width: 380px;
  margin: 22px 0 0;
  font-style: normal;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-dim);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.footer-cols h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 16px;
}
.footer-cols a {
  display: block;
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 4px 0;
}
.footer-cols a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  color: var(--text-dim);
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .approach-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-visual { height: 380px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card-wide { grid-template-columns: 1fr; gap: 20px; }
  .service-list-wide { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .primary-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: rgba(10, 14, 26, 0.98); border-bottom: 1px solid var(--border); flex-direction: column; gap: 0; padding: 12px 0; }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 14px 24px; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-cta { border: none !important; border-radius: 0; }
  .nav-toggle { display: inline-flex; }
  .hero { padding: 60px 0 70px; }
  .services, .approach, .capabilities, .about, .contact { padding: 80px 0; }
  .section-header { margin-bottom: 40px; }
  .stats { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .contact-form { padding: 26px; }
}

@media (max-width: 480px) {
  .cap-grid { grid-template-columns: 1fr; }
  .hero-trust { gap: 18px; }
  .hero-visual { height: 320px; }
  .orb { width: 220px; height: 220px; }
}

/* =========================================================
   Concierge chat widget
   ========================================================= */

.concierge {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 100;
  font-family: 'Inter', system-ui, sans-serif;
}

.concierge-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 14px 16px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--grad);
  color: #0a0e1a;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  box-shadow: 0 18px 40px -12px rgba(110, 168, 255, 0.55),
              0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.concierge-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px -10px rgba(139, 92, 246, 0.6),
              0 0 0 1px rgba(255, 255, 255, 0.14) inset;
}
.concierge-launcher-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  color: #0a0e1a;
}
.concierge-launcher-icon svg { width: 22px; height: 22px; }

/* Panel */
.concierge-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: 380px;
  max-width: calc(100vw - 44px);
  height: min(580px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.concierge[data-state="open"] .concierge-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.concierge[data-state="open"] .concierge-launcher {
  opacity: 0;
  pointer-events: none;
}

/* Header */
.concierge-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
}
.concierge-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.concierge-brand .logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.78rem;
}
.concierge-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.concierge-brand-text strong {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
}
.concierge-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-dim);
}
.concierge-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
.concierge-close {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.concierge-close:hover { color: #fff; border-color: var(--border-strong); }
.concierge-close svg { width: 16px; height: 16px; }

/* Messages */
.concierge-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-strong) transparent;
}
.concierge-messages::-webkit-scrollbar { width: 6px; }
.concierge-messages::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 999px;
}

.concierge-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
  gap: 6px;
}
.concierge-msg-user { align-self: flex-end; align-items: flex-end; }
.concierge-msg-assistant { align-self: flex-start; }

.concierge-bubble {
  padding: 11px 14px;
  border-radius: 14px;
  font-size: 0.93rem;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.concierge-msg-assistant .concierge-bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  border-top-left-radius: 6px;
}
.concierge-msg-user .concierge-bubble {
  background: var(--grad);
  color: #0a0e1a;
  font-weight: 500;
  border-top-right-radius: 6px;
}

/* Citations */
.concierge-citations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.concierge-cite {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 0.72rem;
  color: var(--accent);
  background: rgba(110, 168, 255, 0.08);
  border: 1px solid rgba(110, 168, 255, 0.22);
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.concierge-cite:hover {
  background: rgba(110, 168, 255, 0.18);
  color: #fff;
  border-color: rgba(110, 168, 255, 0.55);
  transform: translateY(-1px);
}
.concierge-cite::before {
  content: '↗';
  margin-right: 5px;
  font-size: 0.75rem;
  opacity: 0.7;
}

/* Follow-up suggestions after an assistant message */
.concierge-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 4px;
}
.concierge-followups-label {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
  flex-basis: 100%;
  margin-bottom: 4px;
}
.concierge-followup {
  font-family: inherit;
  font-size: 0.82rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
}
.concierge-followup:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(110, 168, 255, 0.08);
  transform: translateY(-1px);
}

/* "New conversation" button in the header */
.concierge-reset {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 6px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.concierge-reset:hover { color: #fff; border-color: var(--border-strong); }
.concierge-reset svg { width: 15px; height: 15px; }

/* Markdown rendering inside chat bubbles */
.concierge-msg-assistant .concierge-bubble p {
  margin: 0 0 8px;
  color: var(--text);
}
.concierge-msg-assistant .concierge-bubble p:last-child { margin-bottom: 0; }
.concierge-msg-assistant .concierge-bubble ul,
.concierge-msg-assistant .concierge-bubble ol {
  margin: 4px 0 8px;
  padding-left: 22px;
}
.concierge-msg-assistant .concierge-bubble li { margin-bottom: 3px; }
.concierge-msg-assistant .concierge-bubble strong { color: #fff; font-weight: 600; }
.concierge-msg-assistant .concierge-bubble em { font-style: italic; }
.concierge-msg-assistant .concierge-bubble a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.concierge-msg-assistant .concierge-bubble a:hover { color: #fff; }
.md-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 5px;
  color: #c4b5fd;
}
.md-pre {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 8px 0;
  overflow-x: auto;
}
.md-pre code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d6dcec;
  background: transparent;
  border: none;
  padding: 0;
}

/* Brief highlight when a citation chip jumps to a section */
@keyframes csFlash {
  0% { box-shadow: 0 0 0 0 rgba(110, 168, 255, 0); }
  20% { box-shadow: 0 0 0 4px rgba(110, 168, 255, 0.45); }
  100% { box-shadow: 0 0 0 0 rgba(110, 168, 255, 0); }
}
.cs-flash {
  animation: csFlash 1.6s ease-out;
  border-radius: var(--radius-lg);
}
@media (prefers-reduced-motion: reduce) {
  .cs-flash { animation: none; }
}

/* Typing indicator */
.concierge-typing {
  display: inline-flex;
  gap: 4px;
  padding: 11px 14px;
}
.concierge-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typingBounce 1.2s infinite ease-in-out;
}
.concierge-typing span:nth-child(2) { animation-delay: 0.15s; }
.concierge-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* Suggested prompts */
.concierge-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.concierge-suggestion {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 0.82rem;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  text-align: left;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.concierge-suggestion:hover {
  color: #fff;
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
}

/* Input */
.concierge-input {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px 12px 6px;
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}
.concierge-input textarea {
  flex: 1;
  resize: none;
  min-height: 38px;
  max-height: 120px;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s;
}
.concierge-input textarea:focus { border-color: var(--accent); }
.concierge-send {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: var(--grad);
  color: #0a0e1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.concierge-send:hover { transform: translateY(-1px); }
.concierge-send:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.concierge-send svg { width: 18px; height: 18px; }

.concierge-footer {
  padding: 6px 14px 12px;
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  background: rgba(0, 0, 0, 0.15);
}

/* Error state */
.concierge-error {
  padding: 10px 14px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.08);
  border-radius: 12px;
  font-size: 0.86rem;
  color: #fecaca;
  align-self: flex-start;
  max-width: 92%;
}

/* Mobile */
@media (max-width: 520px) {
  .concierge { right: 14px; bottom: 14px; }
  .concierge-panel {
    width: calc(100vw - 28px);
    height: calc(100vh - 100px);
    bottom: calc(100% + 10px);
  }
  .concierge-launcher-label { display: none; }
  .concierge-launcher { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .concierge-launcher,
  .concierge-panel,
  .concierge-typing span { transition: none; animation: none; }
}

/* =========================================================
   Polish: skip link, hero CTA, principles, FAQ, expect block
   ========================================================= */

/* Skip link (keyboard a11y) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--grad);
  color: #0a0e1a;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

/* Improved focus indicators across the site */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-cta:focus-visible {
  outline-offset: 3px;
}

/* Hero concierge CTA — sits below the primary buttons */
.hero-concierge-cta {
  margin: 0 0 36px;
  font-size: 0.92rem;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.55;
}
.link-cta {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(110, 168, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
.link-cta:hover {
  color: #fff;
  text-decoration-color: #fff;
}

/* Principles grid (replaces the old stats grid) */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.principle {
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--panel) 0%, transparent 100%);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.principle:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.principle-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}
.principle-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.02rem;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.principle-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}
@media (max-width: 720px) {
  .principles { grid-template-columns: 1fr; }
}

/* FAQ section */
.faq {
  padding: 110px 0;
  border-top: 1px solid var(--border);
}
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
}
.faq-body {
  padding: 0 24px 22px;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.96rem;
}
.faq-list a { color: var(--accent); }

@media (max-width: 720px) {
  .faq { padding: 80px 0; }
  .faq-item summary { padding: 16px 18px; font-size: 0.96rem; }
  .faq-body { padding: 0 18px 18px; }
}

/* "What to expect" reassurance block above the contact form */
.expect-block {
  margin-top: 30px;
  padding: 24px 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(110, 168, 255, 0.06) 0%, transparent 100%),
    var(--panel);
}
.expect-header {
  margin: 0 0 14px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
}
.expect-list {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: grid;
  gap: 10px;
}
.expect-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--text);
  line-height: 1.5;
}
.expect-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.expect-footer {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Legal pages (privacy, terms) */
.legal-page {
  padding: 80px 0 120px;
}
.legal-container {
  max-width: 760px;
}
.legal-header {
  margin-bottom: 50px;
}
.legal-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 2.6rem);
}
.legal-meta {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.legal-page section {
  margin-bottom: 36px;
}
.legal-page h2 {
  font-size: 1.25rem;
  margin: 0 0 14px;
  color: #fff;
  letter-spacing: -0.01em;
}
.legal-page p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.98rem;
}
.legal-page p strong { color: var(--text); font-weight: 600; }
.legal-page ul {
  color: var(--text-muted);
  line-height: 1.7;
  padding-left: 22px;
  margin: 0 0 16px;
}
.legal-page ul li { margin-bottom: 6px; }
.legal-page a { color: var(--accent); }
.legal-page a:hover { color: #fff; }

/* 404 / error page */
.error-page {
  padding: 120px 0 140px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.error-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 30% 20%, rgba(110, 168, 255, 0.14), transparent 65%),
    radial-gradient(45% 40% at 80% 70%, rgba(139, 92, 246, 0.14), transparent 65%);
  pointer-events: none;
}
.error-grid {
  position: relative;
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
}
.error-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}
.error-page h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 18px;
}
.error-lede {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 auto 32px;
  max-width: 480px;
}
.error-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px;
}
.error-aside {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto;
}

/* Footer legal links */
.footer-legal {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-dim);
}
.footer-legal a { color: var(--text-dim); transition: color 0.15s ease; }
.footer-legal a:hover { color: #fff; }
.footer-bottom {
  align-items: center;
}
