/* ============================================================
   SlateCairn, studio site styles
   Apple-like confident minimalism. White and #f5f5f7,
   #1d1d1f text, blue accent, massive centered type,
   demos as hero product visuals. No template chrome.
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #333336;
  --muted: #6e6e73;
  --faint: #aeaeb2;
  --line: #e8e8ed;
  --line-soft: #f0f0f4;
  --accent: #0066cc;
  --accent-deep: #0058b0;
  --accent-wash: rgba(0, 102, 204, 0.07);
  --green: #1d8127;
  --green-wash: rgba(29, 129, 39, 0.08);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.14);
  --radius-btn: 999px;
  --radius-card: 18px;
  --font-display: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(3rem, 7vw, 5.4rem); line-height: 1.02; }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.06; margin-bottom: 18px; }
h3 { font-size: 1.15rem; font-weight: 650; line-height: 1.3; }

a { color: inherit; }

::selection { background: var(--accent); color: #fff; }

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

/* ---------- Buttons: Apple pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 34px; border-radius: var(--radius-btn);
  font-weight: 550; font-size: 1rem; font-family: var(--font-body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: scale(1.02); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--bg); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { padding: 10px 24px; font-size: 0.9rem; }

/* Text links with chevron, Apple style */
.more-link {
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: 1.05rem;
}
.more-link:hover { text-decoration: underline; }
.more-link::after { content: " ›"; }

/* ---------- Nav: minimal ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  max-width: 1024px; margin: 0 auto; padding: 13px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.02em; }
.logo-mark {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem;
}
.logo-mark svg { display: block; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-size: 0.86rem; font-weight: 500; opacity: 0.85; }
.nav-links a:hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero: massive, centered, product-forward ---------- */
.hero { padding: 110px 0 100px; text-align: center; }
.hero-kicker { color: var(--muted); font-size: 1.05rem; font-weight: 600; margin-bottom: 20px; }
.hero-sub { color: var(--muted); font-size: 1.3rem; line-height: 1.55; max-width: 640px; margin: 26px auto 0; }
.hero-ctas { display: flex; gap: 14px; margin-top: 40px; justify-content: center; flex-wrap: wrap; }
.hero-orb { margin: 72px auto 0; text-align: center; }
.orb-hint { margin-top: 22px; color: var(--muted); font-size: 1rem; font-weight: 500; }
.hero-stats {
  display: flex; gap: 64px; justify-content: center; flex-wrap: wrap;
  margin-top: 88px;
}

/* ---------- Sections ---------- */
.section { padding: 120px 0; text-align: center; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin: 0 auto 72px; }
.section-sub { color: var(--muted); font-size: 1.25rem; line-height: 1.6; margin-top: 20px; }

/* ---------- Stats: big numbers, no boxes ---------- */
.stat { min-width: 160px; }
.stat b {
  display: block; font-weight: 700; font-size: 3.4rem; letter-spacing: -0.04em;
  color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1;
}
.stat > span:last-child { display: block; margin-top: 10px; font-size: 0.95rem; color: var(--muted); }

/* ---------- Work: minimal rows ---------- */
.work-list { max-width: 860px; margin: 0 auto; text-align: left; border-top: 1px solid var(--line); }
.work-row {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
  padding: 34px 8px; border-bottom: 1px solid var(--line);
}
.work-num { display: none; }
.work-info h3 { font-size: 1.35rem; margin-bottom: 6px; }
.work-info p { color: var(--muted); font-size: 1.02rem; max-width: 58ch; }
.work-tags { display: none; }
.work-rev {
  font-weight: 700; font-size: 1.9rem; letter-spacing: -0.03em;
  color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums;
}

/* ---------- Services: airy minimal list ---------- */
.svc-min { max-width: 860px; margin: 0 auto; text-align: left; }
.svc-min-row {
  display: grid; grid-template-columns: 240px 1fr; gap: 32px;
  padding: 30px 8px; border-bottom: 1px solid var(--line-soft); align-items: baseline;
}
.svc-min-row:first-child { border-top: 1px solid var(--line-soft); }
.svc-min-row h3 { font-size: 1.2rem; }
.svc-min-row p { color: var(--muted); font-size: 1.02rem; }

/* ---------- About: one centered paragraph ---------- */
.about-center { max-width: 680px; margin: 0 auto; }
.about-center p { color: var(--muted); font-size: 1.2rem; line-height: 1.7; margin-top: 24px; }
.about-center p strong { color: var(--ink); font-weight: 650; }

/* ---------- FAQ: Apple-support simple ---------- */
.faq-inner { max-width: 760px; margin: 0 auto; text-align: left; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer; text-align: left;
  padding: 24px 4px; font-family: var(--font-body); font-size: 1.08rem; font-weight: 600; color: var(--ink);
}
.faq-icon { color: var(--muted); font-size: 1.4rem; font-weight: 300; flex-shrink: 0; transition: transform 0.2s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.28s ease; }
.faq-a p { color: var(--muted); padding: 0 4px 26px; font-size: 1rem; }

/* ---------- Final: huge centered close ---------- */
.final { padding: 140px 0; text-align: center; }
.final h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.final-links { margin-top: 36px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer: minimal ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 36px 0; background: var(--bg-2); }
.footer-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  color: var(--muted); font-size: 0.82rem;
}
.footer-inner nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-inner a { color: var(--muted); text-decoration: none; }
.footer-inner a:hover { color: var(--ink); }

/* ---------- Scroll reveal: quiet ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
/* ---------- Demos ---------- */
.demo { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; margin-bottom: 90px; }
.demo:last-child { margin-bottom: 0; }
.demo-flip .demo-copy { order: 2; }
.demo-flip .demo-stage { order: 1; }
.demo-tag {
  display: block; font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-deep);
  margin-bottom: 16px;
}
.demo-copy h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; letter-spacing: -0.01em; margin-bottom: 14px; }
.demo-copy > p { color: var(--muted); margin-bottom: 22px; font-size: 1rem; line-height: 1.7; }
.demo-points { list-style: none; }
.demo-points li { color: var(--muted); font-size: 0.95rem; padding: 7px 0 7px 26px; position: relative; }
.demo-points li::before { content: "→"; position: absolute; left: 0; top: 7px; color: var(--accent-deep); font-size: 0.9rem; }
.demo-stage {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 20px; padding: 22px;
}
/* removed: "Live preview" badge */

/* --- Chat demo --- */
.chat { display: flex; flex-direction: column; height: 470px; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 6px 4px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }
.chat-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem;
}
.chat-title { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.chat-status { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; scrollbar-width: thin; }
.msg-bot p { margin: 0 0 8px; }
.msg-bot p:last-child { margin-bottom: 0; }
.msg-typing { display: inline-flex; gap: 5px; padding: 15px 17px; }
.msg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: blink 1.1s infinite; }
.msg-typing i:nth-child(2) { animation-delay: 0.18s; }
.msg-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.chat-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 10px 2px; min-height: 8px; }
.chat-chips:empty { padding: 0; }
.chip {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  font-size: 0.82rem; font-weight: 500; font-family: var(--font-body);
  padding: 8px 15px; border-radius: 20px; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { background: var(--bg-2); border-color: var(--ink); }
.chat-input { display: flex; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.chat-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 15px; color: var(--ink); font-size: 0.92rem; font-family: inherit;
}
.chat-input input:focus { outline: none; border-color: var(--ink); }
.chat-input input::placeholder { color: var(--faint); }
.chat-input button {
  width: 46px; height: 46px; border-radius: 10px; border: 0; cursor: pointer; flex-shrink: 0;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.15s ease;
}
.chat-input button:hover { opacity: 0.82; }
.chat-input button svg { width: 18px; height: 18px; }

/* Rich chat content: listing + booking cards */
.listing-card { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; margin: 10px 0; min-width: 230px; }
.listing-thumb { height: 76px; display: flex; align-items: flex-end; justify-content: flex-end; padding: 8px 10px; background: var(--bg-2); }
.listing-price { background: var(--ink); color: var(--bg); font-weight: 600; font-size: 0.9rem; padding: 4px 11px; border-radius: 7px; }
.listing-body { padding: 13px 15px 15px; }
.listing-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px !important; color: var(--ink); }
.listing-meta { color: var(--accent-deep); font-size: 0.8rem; font-weight: 600; margin-bottom: 6px !important; }
.listing-blurb { color: var(--muted); font-size: 0.85rem; margin-bottom: 11px !important; }
.listing-book {
  width: 100%; background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 10px 12px; font-weight: 600; font-size: 0.85rem; cursor: pointer;
  font-family: inherit; transition: border-color 0.15s ease, background 0.15s ease;
}
.listing-book:hover { border-color: var(--ink); background: var(--bg-2); }
.booking-card { background: var(--bg); border: 1px solid var(--line-soft); border-radius: 12px; padding: 15px; margin: 10px 0 4px; min-width: 230px; }
.booking-title { font-weight: 600; color: var(--green); margin-bottom: 10px !important; font-size: 0.92rem; }
.booking-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.85rem; padding: 5px 0; border-top: 1px solid var(--line-soft); }
.booking-row span { color: var(--muted); }
.booking-row strong { font-weight: 600; text-align: right; color: var(--ink-2); }
.booking-note { color: var(--muted); font-size: 0.78rem; margin-top: 10px !important; margin-bottom: 0 !important; }

/* --- Voice call demo --- */
.call { display: flex; flex-direction: column; height: 500px; }
.call-header { display: flex; align-items: center; gap: 12px; padding: 6px 4px 14px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; }
.call-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--ink); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.call-avatar svg { width: 18px; height: 18px; }
.call-timer { margin-left: auto; font-family: var(--font-mono); font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.call-transcript { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; scrollbar-width: thin; }
.call-transcript:empty {
  align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 50% 42%, rgba(11, 94, 215, 0.09) 0%, transparent 62%);
}
.call-transcript:empty::after {
  content: ""; order: -1; width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #8fbdff, #0b5ed7 58%, #084298);
  box-shadow: 0 14px 34px rgba(11, 94, 215, 0.4), inset 0 2px 10px rgba(255, 255, 255, 0.5);
  animation: orb-breathe 4s ease-in-out infinite;
}
.call-transcript:empty::before {
  content: "Press play to hear a simulated sample call.";
  color: var(--faint); font-size: 0.92rem; max-width: 250px; line-height: 1.6;
}
.call-speaker { display: block; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 4px; text-transform: uppercase; }
.msg-user .call-speaker { color: rgba(250, 249, 245, 0.6); }
.call-summary { margin-top: 4px; }
.call-summary .booking-card { margin: 10px 0 0; }
.call-controls { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.call-note { font-size: 0.78rem; color: var(--faint); }

/* --- Agent demo --- */
.agent-head { margin-bottom: 18px; }
.agent-title { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 4px; }
.agent-sub { color: var(--muted); font-size: 0.94rem; }
.agent-input { display: flex; gap: 10px; margin-bottom: 16px; }
.agent-input input {
  flex: 1; background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 16px; color: var(--ink); font-size: 0.95rem; font-family: inherit;
  box-shadow: inset 0 1px 3px rgba(10, 20, 40, 0.05);
}
.agent-input input:focus { outline: none; border-color: var(--ink); }
.agent-input input::placeholder { color: var(--faint); }
.agent-steps { display: flex; flex-direction: column; gap: 9px; margin-bottom: 8px; }
.agent-step {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 12px 15px; font-size: 0.9rem; color: var(--muted);
  animation: msg-in 0.3s ease;
}
.agent-step.done { color: var(--ink-2); border-color: var(--line); }
.agent-step.done .step-check { color: var(--green); }
.step-check { font-weight: 700; width: 18px; text-align: center; flex-shrink: 0; padding-top: 1px; }
.step-labelwrap { display: flex; flex-direction: column; gap: 3px; }
.step-find { font-size: 0.8rem; color: var(--green); line-height: 1.5; }
.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent-deep);
  animation: spin 0.7s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }
.agent-result {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px; margin-top: 12px;
  animation: msg-in 0.35s ease;
}
.agent-result h4 { font-size: 1.15rem; margin-bottom: 4px; color: var(--ink); font-weight: 600; }
.sim-badge {
  display: inline-block; font-family: var(--font-mono);
  font-size: 0.64rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line);
  padding: 4px 11px; border-radius: 20px; margin-bottom: 14px;
}
.fit-wrap { display: flex; align-items: center; gap: 12px; margin: 14px 0 18px; }
.fit-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.fit-bar { flex: 1; height: 8px; border-radius: 5px; background: var(--bg-2); overflow: hidden; }
.fit-fill { height: 100%; width: 0; border-radius: 5px; background: var(--accent); transition: width 1s ease; }
.fit-num { font-weight: 600; color: var(--accent-deep); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.agent-result dl { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; font-size: 0.9rem; }
.agent-result dt { color: var(--muted); font-weight: 500; }
.agent-result dd { color: var(--ink-2); }
.agent-subhead { margin-top: 18px; margin-bottom: 6px; color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; }
.agent-service { font-size: 0.95rem; color: var(--ink-2); }
.agent-result ul { margin: 6px 0 0 2px; list-style: none; }
.agent-result ul li { font-size: 0.9rem; padding: 5px 0 5px 22px; position: relative; color: var(--ink-2); }
.agent-result ul li::before { content: "→"; position: absolute; left: 0; color: var(--accent-deep); }
.opener-box { background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 10px; padding: 15px; margin-top: 8px; }
.opener-text { font-size: 0.9rem; line-height: 1.65; color: var(--ink-2); font-style: italic; margin-bottom: 13px; }
.copy-btn {
  background: transparent; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 17px; font-weight: 600; font-size: 0.82rem; cursor: pointer;
  font-family: inherit; transition: border-color 0.15s ease, background 0.15s ease;
}
.copy-btn:hover { border-color: var(--ink); background: var(--bg-2); }
.agent-note { font-size: 0.78rem; color: var(--faint); margin-top: 14px; text-align: center; }


/* ---------- Shared chat bubbles ---------- */
.msg {
  max-width: 85%; padding: 10px 15px; border-radius: 14px;
  font-size: 0.92rem; line-height: 1.55; color: var(--ink-2);
  animation: msg-in 0.25s ease;
}
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg-bot { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 4px; }

/* ---------- Apple widget accents ---------- */
.demo { text-align: left; }
.demo-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 600;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 16px;
}
.demo-copy h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 12px; }
.demo-copy p { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.msg-user { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.msg-user .call-speaker { color: rgba(255, 255, 255, 0.75); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.dot-pulse { animation: dot-pulse 1.6s ease-in-out infinite; }
@keyframes dot-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.chat, .call, .agent {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-md);
}
.chip {
  border: 1px solid var(--line); background: var(--bg);
  border-radius: 999px; padding: 8px 16px; font-size: 0.85rem; font-weight: 500;
  color: var(--ink-2); cursor: pointer; transition: border-color 0.18s ease, color 0.18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.listing-book { background: var(--ink); color: #fff; }
.listing-book:hover { background: #000; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .svc-min-row { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 700px) {
  .section { padding: 84px 0; }
  .hero { padding: 76px 0 70px; }
  .final { padding: 96px 0; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line-soft);
    padding: 8px 24px 20px; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
  .work-row { grid-template-columns: 1fr; gap: 6px; }
  .chat { height: 430px; }
  .call { height: 470px; }
  .agent-input { flex-direction: column; }
  .hero-stats { gap: 36px; }
  .stat b { font-size: 2.6rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; }
}

/* ============================================================
   AI orbs + demo modals
   ============================================================ */
.orbs { display: flex; justify-content: center; gap: 72px; flex-wrap: wrap; margin-top: 12px; }
.orb-wrap { text-align: center; max-width: 230px; }
.orb-wrap h3 { margin: 24px 0 8px; font-size: 1.25rem; }
.orb-wrap p { color: var(--muted); font-size: 0.95rem; }

.orb {
  position: relative; width: 168px; height: 168px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; padding: 0;
  transition: transform 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}
.orb:hover { transform: scale(1.07); }
.orb:active { transform: scale(0.98); }
.orb-core {
  position: absolute; inset: 22px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(140deg, #0066cc 0%, #5e5bff 48%, #00c2ff 100%);
  box-shadow: 0 18px 44px rgba(0, 102, 204, 0.35), inset 0 2px 14px rgba(255, 255, 255, 0.4), inset 0 -8px 20px rgba(0, 20, 60, 0.25);
  animation: orb-breathe 4.5s ease-in-out infinite;
}
.orb-blob {
  position: absolute; inset: -32%;
  background:
    radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.6), transparent 44%),
    radial-gradient(circle at 68% 66%, rgba(0, 18, 60, 0.4), transparent 48%),
    conic-gradient(from 0deg, rgba(255, 255, 255, 0.3), transparent 28%, rgba(255, 255, 255, 0.14) 52%, transparent 72%, rgba(255, 255, 255, 0.3));
  filter: blur(7px);
  border-radius: 42% 58% 63% 37% / 45% 42% 58% 55%;
  animation: orb-swirl 9s linear infinite;
}
@keyframes orb-swirl { to { transform: rotate(360deg); } }
@keyframes orb-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.055); } }
.orb-ring {
  position: absolute; inset: 22px; border-radius: 50%;
  border: 2px solid rgba(0, 102, 204, 0.35);
  animation: orb-ring 2.8s ease-out infinite; pointer-events: none;
}
.orb-ring.delay { animation-delay: 1.4s; }
@keyframes orb-ring {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
.orb-lg { width: 224px; height: 224px; }
.orb-lg .orb-core, .orb-lg .orb-ring { inset: 26px; }

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(13, 25, 45, 0.5);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.28s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  position: relative; width: 100%; max-width: 620px; max-height: 92vh; overflow-y: auto;
  transform: translateY(26px) scale(0.96);
  transition: transform 0.34s cubic-bezier(0.2, 0.9, 0.25, 1.12);
  border-radius: var(--radius-card);
}
.modal-overlay.open .modal-panel { transform: none; }
.modal-close {
  position: absolute; top: -52px; right: 2px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.96); border: 0; font-size: 1.35rem; line-height: 1;
  color: var(--ink); cursor: pointer; box-shadow: var(--shadow-md); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.modal-close:hover { transform: scale(1.1); }

/* ---------- Responsive ---------- */
@media (max-width: 700px) {
  .orbs { gap: 48px; }
  .orb { width: 140px; height: 140px; }
  .orb-core, .orb-ring { inset: 18px; }
  .orb-lg { width: 180px; height: 180px; }
  .orb-lg .orb-core, .orb-lg .orb-ring { inset: 21px; }
  .modal-close { top: -46px; }
}

@media (prefers-reduced-motion: reduce) {
  .orb-core, .orb-blob, .orb-ring { animation: none; }
}

/* ---------- Distinct orb identities ---------- */
.orb-voice .orb-core {
  background: linear-gradient(140deg, #0066cc 0%, #5e5bff 48%, #00c2ff 100%);
  box-shadow: 0 18px 44px rgba(0, 102, 204, 0.35), inset 0 2px 14px rgba(255, 255, 255, 0.4), inset 0 -8px 20px rgba(0, 20, 60, 0.25);
}
.orb-chat .orb-core {
  background: linear-gradient(140deg, #7c3aed 0%, #c026d3 52%, #f472b6 100%);
  box-shadow: 0 18px 44px rgba(168, 85, 247, 0.38), inset 0 2px 14px rgba(255, 255, 255, 0.4), inset 0 -8px 20px rgba(40, 0, 60, 0.25);
}
.orb-agent .orb-core {
  background: linear-gradient(140deg, #f59e0b 0%, #f97316 52%, #fb7185 100%);
  box-shadow: 0 18px 44px rgba(249, 115, 22, 0.38), inset 0 2px 14px rgba(255, 255, 255, 0.4), inset 0 -8px 20px rgba(60, 20, 0, 0.25);
}
.orb-voice .orb-ring { border-color: rgba(0, 102, 204, 0.35); }
.orb-chat .orb-ring { border-color: rgba(168, 85, 247, 0.4); }
.orb-agent .orb-ring { border-color: rgba(249, 115, 22, 0.4); }

/* Voice orb: animated equalizer bars (it plays audio) */
.orb-eq {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.orb-eq i {
  width: 4px; height: 30px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.88);
  transform: scaleY(0.3);
  animation: eq-bounce 1.15s ease-in-out infinite;
}
.orb-eq i:nth-child(1) { animation-delay: 0s; }
.orb-eq i:nth-child(2) { animation-delay: 0.18s; }
.orb-eq i:nth-child(3) { animation-delay: 0.36s; }
.orb-eq i:nth-child(4) { animation-delay: 0.12s; }
.orb-eq i:nth-child(5) { animation-delay: 0.3s; }
@keyframes eq-bounce { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(1); } }

/* Chat and agent orbs: centered glyph */
.orb-glyph {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255, 255, 255, 0.94);
}
.orb-glyph svg {
  width: 36%; height: 36%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25));
}

/* Stagger the orbs so they breathe out of sync */
.orbs .orb-wrap:nth-child(2) .orb-core { animation-delay: -1.6s; }
.orbs .orb-wrap:nth-child(2) .orb-blob { animation-delay: -3.2s; }
.orbs .orb-wrap:nth-child(3) .orb-core { animation-delay: -3.1s; }
.orbs .orb-wrap:nth-child(3) .orb-blob { animation-delay: -6.1s; }

@media (prefers-reduced-motion: reduce) {
  .orb-eq i { animation: none; transform: scaleY(0.6); }
}

/* ================= Iteration 8: modal bodies + cosmic orbs ================= */

/* --- Widgets: consistent card, calmer padding --- */
.chat, .call, .agent {
  padding: 24px 24px 22px;
  border-radius: 20px;
  box-shadow: 0 32px 90px rgba(8, 18, 38, 0.32);
}

/* --- Headers: aligned rhythm, gradient avatars --- */
.call-header, .chat-header { padding: 0 0 16px; margin-bottom: 16px; gap: 14px; }
.call-avatar, .chat-avatar { width: 44px; height: 44px; }
.call-avatar {
  background: radial-gradient(circle at 32% 28%, #6ea8ff, #0b5ed7 62%, #083c8a);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11, 94, 215, 0.4);
}
.chat-avatar {
  background: radial-gradient(circle at 32% 28%, #d8b4fe, #9333ea 62%, #6b21a8);
  color: #fff; font-weight: 700;
  box-shadow: 0 6px 18px rgba(147, 51, 234, 0.4);
}
.chat-title { font-size: 1rem; font-weight: 650; letter-spacing: -0.01em; }
.chat-status { font-size: 0.8rem; }

/* --- Messages: roomier bubbles, clearer type --- */
.msg {
  max-width: 82%; padding: 12px 16px; border-radius: 18px;
  font-size: 0.95rem; line-height: 1.6;
}
.call-speaker { font-size: 0.64rem; margin-bottom: 5px; }

/* --- Call controls: one confident primary action --- */
.call-controls { padding-top: 18px; gap: 12px; }
.call-controls .btn { padding: 14px 30px; font-size: 1rem; }
.call-note { font-size: 0.8rem; color: var(--muted); }

/* --- Chat input: pill --- */
.chat-input { padding-top: 14px; }
.chat-input input { padding: 14px 18px; border-radius: 999px; font-size: 0.95rem; }

/* --- Agent note: readable, not whisper-faint --- */
.agent-note { font-size: 0.8rem; color: var(--muted); }

/* --- Cosmic orbs (x.ai/voice reference): dark galaxy spheres,
       starfield texture on the surface, tinted nebula per demo --- */
.orb-core { background: #06060c; }
.orb-voice .orb-core,
.orb-chat .orb-core,
.orb-agent .orb-core { background: #06060c; }
.orb-voice .orb-core {
  box-shadow: 0 0 46px rgba(88, 120, 255, 0.4), inset 0 0 26px rgba(88, 120, 255, 0.28);
}
.orb-chat .orb-core {
  box-shadow: 0 0 46px rgba(192, 92, 246, 0.4), inset 0 0 26px rgba(192, 92, 246, 0.28);
}
.orb-agent .orb-core {
  box-shadow: 0 0 46px rgba(251, 146, 60, 0.4), inset 0 0 26px rgba(251, 146, 60, 0.28);
}
/* Nebula wash + glass highlight */
.orb-core::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background:
    radial-gradient(ellipse 65% 38% at 30% 16%, rgba(255, 255, 255, 0.3), transparent 70%),
    radial-gradient(circle at 70% 26%, rgba(150, 130, 255, 0.5), transparent 58%),
    radial-gradient(circle at 26% 74%, rgba(90, 110, 255, 0.28), transparent 52%);
}
.orb-voice .orb-core::before {
  background:
    radial-gradient(ellipse 65% 38% at 30% 16%, rgba(255, 255, 255, 0.3), transparent 70%),
    radial-gradient(circle at 70% 26%, rgba(88, 120, 255, 0.6), transparent 56%),
    radial-gradient(circle at 26% 74%, rgba(0, 194, 255, 0.3), transparent 52%);
}
.orb-chat .orb-core::before {
  background:
    radial-gradient(ellipse 65% 38% at 30% 16%, rgba(255, 255, 255, 0.3), transparent 70%),
    radial-gradient(circle at 70% 26%, rgba(192, 92, 246, 0.6), transparent 56%),
    radial-gradient(circle at 26% 74%, rgba(244, 114, 182, 0.3), transparent 52%);
}
.orb-agent .orb-core::before {
  background:
    radial-gradient(ellipse 65% 38% at 30% 16%, rgba(255, 255, 255, 0.3), transparent 70%),
    radial-gradient(circle at 70% 26%, rgba(251, 146, 60, 0.6), transparent 56%),
    radial-gradient(circle at 26% 74%, rgba(251, 113, 133, 0.3), transparent 52%);
}
/* Starfield specks on the sphere surface */
.orb-core::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: 1;
  background-image:
    radial-gradient(1.6px 1.6px at 22% 28%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(1.2px 1.2px at 68% 16%, rgba(255, 255, 255, 0.8), transparent 60%),
    radial-gradient(1px 1px at 82% 52%, rgba(190, 220, 255, 0.9), transparent 60%),
    radial-gradient(1.4px 1.4px at 45% 74%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1px 1px at 12% 60%, rgba(255, 235, 200, 0.85), transparent 60%),
    radial-gradient(1.8px 1.8px at 56% 38%, rgba(255, 255, 255, 0.9), transparent 60%),
    radial-gradient(1px 1px at 32% 84%, rgba(200, 190, 255, 0.8), transparent 60%),
    radial-gradient(1.2px 1.2px at 78% 80%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 38% 12%, rgba(255, 255, 255, 0.85), transparent 60%),
    radial-gradient(1.3px 1.3px at 88% 32%, rgba(255, 255, 255, 0.75), transparent 60%);
}
/* Empty-state mini orb matches the cosmic family */
.call-transcript:empty::after {
  background: radial-gradient(circle at 35% 30%, #3b4a8f, #10132e 58%, #06060c);
  box-shadow: 0 0 30px rgba(120, 130, 255, 0.45), inset 0 0 18px rgba(120, 130, 255, 0.3);
}

/* ================= Iteration 10: header with brand + CTA ================= */
.nav-links a { padding: 8px 12px; border-radius: 9px; transition: background 0.18s ease, opacity 0.18s ease; }
.nav-links a:hover { background: rgba(10, 20, 40, 0.055); opacity: 1; }
.nav-cta { padding: 10px 22px; font-size: 0.85rem; white-space: nowrap; }
@media (max-width: 700px) {
  .nav-cta { padding: 9px 16px; font-size: 0.8rem; }
  .nav-links a { padding: 13px 0; border-radius: 0; }
  .nav-links a:hover { background: none; }
}

/* ================= Iteration 13: stat suffix breathing room ================= */
.stat-suffix { margin-left: 0.08em; }

/* ================= Iteration 14: multi-page site ================= */
.nav-links a.active { opacity: 1; font-weight: 600; }

/* ================= Iteration 17: smart nav + ink buttons ================= */
.nav { transition: transform 0.32s ease; }
.nav.nav-hidden { transform: translateY(-100%); }
