/* Landing, lower half — part 1: shared bits, industries, ROI, confidence grid,
   process tabs. Part 2 (demos, FAQ, CTA, footer) is imported below. */

.bt { position: relative; }
.bt [hidden] { display: none !important; }
.bt-head { max-width: 960px; margin: 0 auto 48px; text-align: center; }
.bt-h2 { font-size: 48px; line-height: 1; letter-spacing: -1px; font-weight: 400; color: var(--text); }
.bt-sub { margin-top: 16px; font-size: 18px; line-height: 1.4; color: var(--muted); }
.bt-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.js .bt .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .bt .reveal.in { opacity: 1; transform: none; }

/* ── Industries: warm full-bleed scene + white card ─────────────────────── */
.ind {
  --ind-a: #ecdcc7; --ind-b: #dcc1a1; --ind-c: #c69d77; --ind-d: #b9774f;
  overflow: hidden;
  isolation: isolate;
  padding: var(--section) 0;
  background: var(--ind-b);
}
.ind-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(42% 60% at 70% 42%, var(--ind-a) 0%, transparent 70%),
    linear-gradient(110deg, var(--ind-c) 0%, var(--ind-b) 30%, var(--ind-a) 62%, var(--ind-b) 100%);
}
.ind-bg::after { /* paper grain */
  content: ""; position: absolute; inset: 0; opacity: 0.18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}
.ind-glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.ind-glow--1 { width: 620px; height: 620px; right: 4%; top: -18%; background: rgba(255, 244, 228, 0.75); }
.ind-glow--2 { width: 560px; height: 380px; right: -6%; bottom: -22%; background: var(--ind-d); opacity: 0.45; }
.ind-arc { position: absolute; width: 760px; height: 760px; right: 2%; top: 50%; translate: 0 -50%; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 90px rgba(255, 255, 255, 0.07); }

.ind-wrap { display: grid; grid-template-columns: 600px minmax(0, 1fr); gap: 40px; align-items: center; }
.ind-card { background: var(--surface); border-radius: var(--radius-lg); padding: 32px; color: var(--text); }
.ind-title { font-size: 48px; line-height: 1; letter-spacing: -1px; }
.ind-sub { margin-top: 24px; font-size: 18px; line-height: 1.4; color: var(--muted); }
.ind-grid { margin-top: 96px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ind-btn {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) 20px; align-items: center; gap: 12px;
  min-height: 78px; padding: 12px 20px 12px 24px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
  font-size: 18px; font-weight: 500; line-height: 1.2; text-align: left; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.ind-btn:hover { border-color: var(--line-strong); }
.ind-btn-arrow { color: var(--muted); transition: transform 0.2s ease, color 0.2s ease; }
.ind-btn:hover .ind-btn-arrow { transform: translateX(3px); color: var(--text); }
.ind-btn[aria-pressed="true"] { background: var(--surface); border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.ind-btn[aria-pressed="true"] .ind-btn-arrow { color: var(--text); }

.ind-stage { --px: 0; --py: 0; position: relative; min-height: 640px; }
.ind-phone {
  position: absolute; right: 3%; top: 50%; width: 290px; height: 600px; margin-top: -300px;
  padding: 10px; border-radius: 48px; background: #121212;
  box-shadow: inset 0 0 0 2px #333, 0 50px 90px -40px rgba(70, 35, 10, 0.7), 0 20px 40px -20px rgba(70, 35, 10, 0.4);
  transform: translate(calc(var(--px) * -22px), calc(var(--py) * -16px)) rotate(3deg);
  transition: transform 0.4s ease-out;
  animation: indFloat 8s ease-in-out infinite;
}
.ind-screen { height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; background: #dfe8d2; color: #0a0c0e; font-size: 13.5px; line-height: 1.35; }
.ind-status { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px 6px; background: #fff; font-weight: 600; font-size: 13px; }
.ind-notch { width: 84px; height: 24px; border-radius: 20px; background: #0a0a0a; }
.ind-sig { width: 34px; height: 11px; border-radius: 3px; border: 1.5px solid #0a0c0e; position: relative; }
.ind-sig::after { content: ""; position: absolute; inset: 1.5px 6px 1.5px 1.5px; border-radius: 1px; background: #0a0c0e; }
.ind-chathead { display: flex; align-items: center; gap: 10px; padding: 8px 16px 12px; background: #fff; border-bottom: 1px solid #e6e8ee; }
.ind-chathead .logo-mark { width: 38px; height: 38px; border-radius: 50%; background: url("../img/logo-icon.svg") center / contain no-repeat; }
.ind-chathead .logo-mark::before, .ind-chathead .logo-mark::after { display: none; } /* app icon, not the theme-dependent mark */
.ind-chathead b { display: block; font-weight: 600; font-size: 14px; }
.ind-chathead small { color: #3a8dde; font-size: 12px; }
.ind-chatbody {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding: 14px 12px;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.35) 0 2px, transparent 3px) 0 0 / 28px 28px, linear-gradient(160deg, #d8e6c4, #b7cfa0);
}
.ind-chat { display: flex; flex-direction: column; gap: 8px; }
.ind-msg {
  max-width: 84%; padding: 8px 12px 6px; border-radius: 16px 16px 16px 4px; background: #fff;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); animation: indMsg 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.ind-msg small { display: block; text-align: right; font-size: 10.5px; color: #8a919c; margin-top: 2px; }
.ind-msg--me { align-self: flex-end; background: #e3fbcd; border-radius: 16px 16px 4px 16px; font-family: var(--font-mono); font-size: 12.5px; animation-delay: 0.1s; }
.ind-msg--me small { color: #4fae4e; }
.ind-msg:nth-child(2) { animation-delay: 0.55s; }
.ind-msg--ok { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; padding: 8px 12px; animation-delay: 1s; }
.ind-ok-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #20c58f; box-shadow: 0 0 0 3px rgba(32, 197, 143, 0.2); }
.ind-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px 22px; background: #fff; }
.ind-input span { flex: 1; height: 32px; border-radius: 16px; background: #f1f3f6; }
.ind-input i { width: 32px; height: 32px; border-radius: 50%; background: #3a8dde; }

.ind-dash, .ind-detail { position: absolute; z-index: 2; background: var(--surface); color: var(--text); border-radius: 20px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(10, 12, 14, 0.04); }
.ind-dash {
  right: -2%; bottom: 5%; width: 250px; padding: 18px;
  transform: translate(calc(var(--px) * 26px), calc(var(--py) * 20px)); transition: transform 0.4s ease-out;
  animation: indFloat 7s ease-in-out -2s infinite;
}
.ind-dash-top { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.ind-dash-top b { flex: 1; font-weight: 600; }
.ind-dash-ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); }
.ind-dash-ic svg { width: 16px; height: 16px; }
.ind-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--good-soft); color: var(--good-text); }
.ind-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ind-bars { margin-top: 16px; height: 84px; display: flex; align-items: flex-end; gap: 7px; }
.ind-bars i { flex: 1; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 35%, transparent) 100%); transform-origin: bottom; animation: indBar 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ind-bars i:last-child { background: var(--mint); }
.ind-bars i:nth-child(2) { animation-delay: 0.05s; } .ind-bars i:nth-child(3) { animation-delay: 0.1s; }
.ind-bars i:nth-child(4) { animation-delay: 0.15s; } .ind-bars i:nth-child(5) { animation-delay: 0.2s; }
.ind-bars i:nth-child(6) { animation-delay: 0.25s; } .ind-bars i:nth-child(7) { animation-delay: 0.3s; }

.ind-detail {
  left: 0; top: 50%; translate: 0 -50%; width: 340px; padding: 24px;
  transform: translate(calc(var(--px) * 12px), calc(var(--py) * 10px)); transition: transform 0.4s ease-out;
}
.ind-stage.is-swap .ind-panel:not([hidden]) { animation: indIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ind-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ind-panel-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-soft); }
.ind-badge { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent-text); }
.ind-panel-title { margin-top: 16px; font-size: 24px; line-height: 1.1; letter-spacing: -0.5px; }
.ind-panel-eyebrow { margin-top: 14px; font: 500 11px/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.ind-panel-desc { margin-top: 8px; font-size: 15px; line-height: 1.45; color: var(--text-2); }
.ind-list { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; font-size: 14px; line-height: 1.35; }
.ind-list li { position: relative; padding-left: 18px; }
.ind-list li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ind-panel-link { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--accent-text); }
.ind-panel-link svg { width: 16px; height: 16px; transition: transform 0.2s ease; }
.ind-panel-link:hover svg { transform: translateX(3px); }

@keyframes indFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes indMsg { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes indBar { from { transform: scaleY(0.1); } to { transform: none; } }
@keyframes indIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── ROI: dark block with stat cards ──────────────────────────────────── */
.roi { background: var(--ink); color: var(--ink-text); padding: var(--section) 0; }
.roi-wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 64px; align-items: start; }
.roi-title { font-size: 48px; line-height: 1; letter-spacing: -1px; color: #fff; }
.roi-text { margin: 24px 0 40px; max-width: 620px; font-size: 18px; line-height: 1.4; color: rgba(255, 255, 255, 0.8); }
.roi-stats { display: grid; grid-template-columns: repeat(2, 320px); gap: 16px; }
.roi-stat { min-height: 220px; padding: 40px; border-radius: var(--radius-lg); background: #1a1d21; display: flex; flex-direction: column; justify-content: center; }
.roi-num { font-family: var(--font-display); font-size: 96px; line-height: 1; letter-spacing: -3px; color: #fff; }
.roi-label { margin-top: 20px; font-size: 18px; font-weight: 500; line-height: 1.3; color: #fff; }

/* ── Confidence: bordered 4×2 grid ───────────────────────────────────── */
.conf { padding-top: var(--section); }
.conf-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.conf-cell {
  min-height: 218px; padding: 28px 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background 0.2s ease;
}
.conf-cell:nth-child(4n) { border-right: 0; }
.conf-cell:nth-child(n+5) { border-bottom: 0; }
.conf-cell:hover { background: var(--bg-soft); }
.conf-ic { color: var(--text); }
.conf-label { font-size: 18px; font-weight: 500; line-height: 1.25; color: var(--text); max-width: 220px; }

/* ── Process: tabs + typed log ───────────────────────────────────────── */
.proc { padding-top: var(--section); }
.proc-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; padding: 32px; border-radius: var(--radius-lg); background: var(--bg-soft); }
.proc-left { display: flex; flex-direction: column; min-height: 440px; }
.proc-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin: -3px; }
.proc-tabs::-webkit-scrollbar { display: none; }
.proc-tab {
  display: inline-flex; align-items: center; gap: 10px; flex: none; height: 58px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 17px; font-weight: 500; cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.proc-tab:hover { border-color: var(--line-strong); }
.proc-tab[aria-selected="true"] { background: var(--invert-bg); border-color: var(--invert-bg); color: var(--invert-text); }
/* Auto-advance timer: the ring fills once over AUTO_MS (bottom-behavior.js, 6s), then the next step starts. */
@property --proc-p { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.proc-ring {
  display: none; flex: none; width: 16px; height: 16px; border-radius: 50%;
  background: conic-gradient(currentColor var(--proc-p), color-mix(in srgb, currentColor 22%, transparent) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2.5px), #000 calc(100% - 2px));
}
.proc-box.is-tick .proc-tab[aria-selected="true"] .proc-ring { display: block; animation: procFill 6s linear forwards; }
.proc-panel { margin-top: auto; padding-top: 48px; }
.proc-panel:focus-visible { outline-offset: 6px; }
.proc-h3 { font-size: 32px; line-height: 1.1; letter-spacing: -0.5px; }
.proc-text { margin-top: 16px; max-width: 520px; font-size: 18px; line-height: 1.42; color: var(--muted); }
.proc-btn { margin-top: 32px; }
.proc-visual {
  display: grid; place-items: center; padding: 24px; border-radius: 16px; min-height: 440px;
  background: radial-gradient(80% 70% at 15% 10%, rgba(255, 255, 255, 0.55), transparent 60%), linear-gradient(135deg, #d4ecf6 0%, #a8d1f2 50%, #72aded 100%);
}
.proc-card {
  width: min(482px, 100%); min-height: 300px; padding: 22px; border-radius: 12px; color: #0a0c0e;
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255, 255, 255, 0.75);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 20px 50px -30px rgba(20, 60, 120, 0.45);
}
.proc-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 14px; line-height: 1.35; }
.proc-l { transition: opacity 0.25s ease; min-height: 19px; }
.proc-l.wait { opacity: 0; }
.proc-l--cmd { display: flex; gap: 8px; padding: 6px 10px; border-radius: 6px; background: #fff; }
.proc-caret { font-weight: 600; }
.proc-l--read { color: #4b5563; }
.proc-l--dot { position: relative; padding-left: 12px; }
.proc-l--dot::before { content: "•"; position: absolute; left: 0; }
.proc-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: #fff; font-weight: 500; }
.proc-chip i { width: 7px; height: 7px; border-radius: 50%; background: #20d39b; box-shadow: 0 0 0 3px rgba(32, 211, 155, 0.2); }
@keyframes procFill { to { --proc-p: 360deg; } }

/* ── Dark theme variants ─────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .ind { --ind-a: #3a2d22; --ind-b: #2a2119; --ind-c: #1e1812; --ind-d: #6b3d24; }
  :root:not([data-theme="light"]) .ind-glow--1 { background: rgba(160, 110, 70, 0.28); }
  :root:not([data-theme="light"]) .ind-arc { border-color: rgba(255, 220, 180, 0.12); box-shadow: 0 0 0 90px rgba(255, 220, 180, 0.03); }
  :root:not([data-theme="light"]) .proc-visual { background: radial-gradient(80% 70% at 15% 10%, rgba(120, 180, 255, 0.18), transparent 60%), linear-gradient(135deg, #0f2133 0%, #133a5f 55%, #1d5a96 100%); }
  :root:not([data-theme="light"]) .proc-card { color: #f2f3f5; background: rgba(10, 12, 14, 0.5); border-color: rgba(255, 255, 255, 0.12); }
  :root:not([data-theme="light"]) .proc-l--cmd, :root:not([data-theme="light"]) .proc-chip { background: rgba(255, 255, 255, 0.1); }
  :root:not([data-theme="light"]) .proc-l--read { color: #a9b0bb; }
}
:root[data-theme="dark"] .ind { --ind-a: #3a2d22; --ind-b: #2a2119; --ind-c: #1e1812; --ind-d: #6b3d24; }
:root[data-theme="dark"] .ind-glow--1 { background: rgba(160, 110, 70, 0.28); }
:root[data-theme="dark"] .ind-arc { border-color: rgba(255, 220, 180, 0.12); box-shadow: 0 0 0 90px rgba(255, 220, 180, 0.03); }
:root[data-theme="dark"] .proc-visual { background: radial-gradient(80% 70% at 15% 10%, rgba(120, 180, 255, 0.18), transparent 60%), linear-gradient(135deg, #0f2133 0%, #133a5f 55%, #1d5a96 100%); }
:root[data-theme="dark"] .proc-card { color: #f2f3f5; background: rgba(10, 12, 14, 0.5); border-color: rgba(255, 255, 255, 0.12); }
:root[data-theme="dark"] .proc-l--cmd, :root[data-theme="dark"] .proc-chip { background: rgba(255, 255, 255, 0.1); }
:root[data-theme="dark"] .proc-l--read { color: #a9b0bb; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .ind-wrap { grid-template-columns: 520px minmax(0, 1fr); }
  .ind-phone { right: 4%; }
  .ind-dash { right: -1%; }
  .ind-detail { width: 300px; }
  .roi-stats { grid-template-columns: repeat(2, 260px); }
  .roi-stat { padding: 32px; }
  .roi-num { font-size: 80px; }
}
@media (max-width: 1024px) {
  .bt-h2, .ind-title, .roi-title { font-size: 40px; }
  .ind-wrap { grid-template-columns: minmax(0, 1fr); }
  .ind-grid { margin-top: 48px; }
  .ind-stage { min-height: 0; display: flex; flex-direction: column; align-items: center; padding-top: 24px; }
  .ind-phone { position: relative; right: auto; top: auto; margin: 0 auto; transform: rotate(2deg); }
  .ind-dash { left: 0; right: auto; top: 64px; bottom: auto; width: 240px; }
  .ind-detail { position: relative; left: auto; top: auto; translate: none; width: min(560px, 100%); margin-top: -96px; transform: none; }
  .roi-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .roi-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proc-box { grid-template-columns: minmax(0, 1fr); }
  .proc-left { min-height: 0; }
  .proc-visual { min-height: 380px; }
}
@media (max-width: 640px) {
  .bt-head { margin-bottom: 32px; }
  .bt-h2, .ind-title, .roi-title { font-size: 32px; letter-spacing: -0.5px; }
  .bt-sub, .ind-sub, .roi-text { font-size: 16px; }
  .ind { padding: 48px 0; }
  .ind-card { padding: 24px 20px; }
  .ind-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 32px; }
  .ind-btn { min-height: 64px; font-size: 17px; }
  .ind-phone { width: 260px; height: 540px; border-radius: 44px; }
  .ind-screen { border-radius: 34px; }
  .ind-dash { left: -4px; top: 40px; width: 200px; padding: 14px; }
  .ind-bars { height: 60px; }
  .ind-detail { padding: 20px; }
  .roi-stats { grid-template-columns: minmax(0, 1fr); }
  .roi-stat { min-height: 0; padding: 32px; }
  .roi-num { font-size: 72px; }
  .conf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .conf-cell { min-height: 168px; padding: 20px 12px; gap: 14px; }
  .conf-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .conf-cell:nth-child(2n) { border-right: 0; }
  .conf-cell:nth-child(n+5) { border-bottom: 1px solid var(--line); }
  .conf-cell:nth-child(n+7) { border-bottom: 0; }
  .conf-label { font-size: 15px; }
  .proc-box { margin: 0 calc(-1 * var(--gutter)); padding: 24px var(--gutter); border-radius: 0; }
  .proc-tabs { flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scrollbar-width: none; }
  .proc-tab { height: 48px; padding: 0 18px; font-size: 16px; flex: none; }
  .proc-panel { padding-top: 28px; }
  .proc-h3 { font-size: 26px; }
  .proc-text { font-size: 16px; }
  .proc-btn { width: 100%; }
  .proc-visual { min-height: 0; padding: 20px 14px; }
  .proc-card { padding: 16px; min-height: 260px; }
  .proc-log { font-size: 13px; gap: 11px; }
}
