/* Mining Intelligence: landing page.
   Brand tokens follow the app (apps/web/src/index.css): copper #b4531c on charcoal #161b1f, Barlow headings, Inter body.
   Light is the default; [data-theme="dark"] swaps the tokens. */

:root {
  --font-h: 'Barlow', system-ui, sans-serif;
  --font-b: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-m: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ground: #f2f3f5;
  --tint: #e9ebee;
  --surface: #ffffff;
  --ink: #161b1f;
  --ink-2: #36424c;
  --muted: #5b6670;
  --line: #dce0e4;
  --copper: #b4531c;
  --copper-2: #d4752f;
  --copper-3: #f2a65a;
  --copper-ink: #9a4513;
  --charcoal: #161b1f;
  --charcoal-2: #1f262b;
  --pass: #0f9d74;
  --mon: #d97706;
  --fail: #c8283a;
  --glass: rgba(255, 255, 255, 0.74);
  --nav-bg: rgba(242, 243, 245, 0.82);

  --shadow-card: 0 1px 2px rgba(22, 27, 31, 0.06), 0 12px 32px -14px rgba(22, 27, 31, 0.22);
  --shadow-lift: 0 2px 4px rgba(22, 27, 31, 0.06), 0 26px 50px -18px rgba(22, 27, 31, 0.34);
  --shadow-frame: 0 40px 80px -30px rgba(22, 27, 31, 0.55), 0 12px 24px -12px rgba(22, 27, 31, 0.3);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.45, 0, 0.55, 1);
  --nav-h: 72px;
  --wrap: 1200px;
  --r: 18px;
}

[data-theme='dark'] {
  color-scheme: dark;
  --ground: #0a0c0e;
  --tint: #0f1317;
  --surface: #14181c;
  --ink: #e9eef2;
  --ink-2: #c0cad2;
  --muted: #98a6b3;
  --line: #2a3036;
  --copper-ink: #e8955f;
  --glass: rgba(20, 24, 28, 0.7);
  --nav-bg: rgba(10, 12, 14, 0.78);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -14px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.4), 0 26px 50px -18px rgba(0, 0, 0, 0.8);
  --shadow-frame: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06);
}
[data-theme='light'] { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { overflow-x: clip; } /* off-screen reveal offsets must never add sideways scroll; clip keeps position: sticky working */
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--copper-3); outline-offset: 3px; border-radius: 8px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--copper); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top 0.2s; }
.skip:focus { top: 12px; }

/* Smooth colour change only while the theme is switching */
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after {
  transition: background-color 0.35s var(--ease-io), color 0.35s var(--ease-io), border-color 0.35s var(--ease-io), box-shadow 0.35s var(--ease-io) !important;
}

/* ───────────── Type ───────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-m); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--copper-ink);
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: linear-gradient(90deg, var(--copper), var(--copper-3)); border-radius: 2px; }
.eyebrow--light { color: var(--copper-3); }
.h2 {
  font-family: var(--font-h); font-weight: 800; letter-spacing: -0.01em; line-height: 1.04;
  font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin-top: 14px; text-wrap: balance;
}
.h2--sm { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.h2--light { color: #fff; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 60ch; margin-top: 18px; text-wrap: pretty; }
.lead--light { color: rgba(255, 255, 255, 0.78); }
.lead b { color: var(--ink); font-weight: 700; }
.head { max-width: 760px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .lead { margin-inline: auto; }
.num { font-variant-numeric: tabular-nums; }

/* ───────────── Buttons ───────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn .ico { transition: transform 0.25s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 10px; }
.btn--lg { padding: 15px 28px; font-size: 1rem; border-radius: 14px; }
.btn--primary { color: #fff; background: linear-gradient(135deg, #c2611f, #a14516); box-shadow: 0 10px 24px -10px rgba(180, 83, 28, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn--primary::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%); transform: translateX(-120%); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(180, 83, 28, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn--primary:hover::after { transform: translateX(120%); transition: transform 0.7s var(--ease); }
.btn--ghost { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-card); }
.btn--ghost:hover { transform: translateY(-2px); border-color: var(--copper); }
.btn--light { color: #9a4513; background: #fff; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.5); }
.btn--light:hover { transform: translateY(-2px); }
.play { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--copper); color: #fff; }
.play svg { width: 12px; height: 12px; margin-left: 1px; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  transition: transform 0.25s var(--ease), border-color 0.2s;
}
.icon-btn:hover { border-color: var(--copper); transform: rotate(12deg); }
.icon-btn .ico { grid-area: 1 / 1; transition: transform 0.45s var(--ease), opacity 0.25s; }
.ico--moon { opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme='dark'] .ico--sun { opacity: 0; transform: rotate(90deg) scale(0.5); }
[data-theme='dark'] .ico--moon { opacity: 1; transform: none; }

/* ───────────── Progress + header ───────────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--copper), var(--copper-3)); }

.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color 0.3s, box-shadow 0.3s, height 0.3s var(--ease), backdrop-filter 0.3s;
}
.nav.is-scrolled { height: 62px; background: var(--nav-bg); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand__logo { display: block; height: 44px; width: auto; aspect-ratio: 168.9 / 44; transition: height 0.3s var(--ease), transform 0.5s var(--ease); }
.nav.is-scrolled .brand__logo { height: 38px; }
.brand:hover .brand__logo { transform: translateY(-2px); }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a { position: relative; white-space: nowrap; padding: 8px 10px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 0.93rem; color: var(--ink-2); transition: color 0.2s; }
.nav__links a::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--copper); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.nav__links a:hover, .nav__links a.active { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.active::after { transform: scaleX(1); }
.nav__signin-m, .nav__demo-m { display: none; }
.nav__cta { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.nav__signin { font-weight: 600; font-size: 0.93rem; text-decoration: none; padding: 8px 6px; color: var(--ink-2); }
.nav__signin:hover { color: var(--copper-ink); }
.burger { display: none; }
.burger .ico--close { display: none; opacity: 1; transform: none; }

/* ───────────── Hero ───────────── */
.hero { position: relative; padding: calc(var(--nav-h) + 48px) 0 120px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 85% 20%, rgba(242, 166, 90, 0.22), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(180, 83, 28, 0.08), transparent 70%); pointer-events: none; }
.hero__contours { position: absolute; inset: -10%; pointer-events: none; opacity: 0.9;
  background: repeating-radial-gradient(ellipse 60% 48% at 82% 26%, transparent 0 26px, rgba(180, 83, 28, 0.13) 26px 27px);
  -webkit-mask-image: radial-gradient(70% 70% at 80% 28%, #000 10%, transparent 75%); mask-image: radial-gradient(70% 70% at 80% 28%, #000 10%, transparent 75%);
  animation: drift 24s ease-in-out infinite alternate; }
[data-theme='dark'] .hero__contours { background: repeating-radial-gradient(ellipse 60% 48% at 82% 26%, transparent 0 26px, rgba(242, 166, 90, 0.12) 26px 27px); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-2%, 3%, 0) scale(1.08); } }

.hero__in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__h1 { font-family: var(--font-h); font-weight: 800; font-size: clamp(2.7rem, 6.2vw, 5rem); line-height: 1; letter-spacing: -0.015em; margin-top: 20px; }
.w { display: inline-block; opacity: 0; transform: translateY(0.55em) rotate(3deg); transform-origin: 0 100%; animation: rise 0.95s var(--ease) forwards; animation-delay: calc(var(--i) * 85ms + 150ms); }
.w--accent { background: linear-gradient(100deg, var(--copper) 10%, var(--copper-3) 60%, var(--copper) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 0.95s var(--ease) forwards, sheen 5s ease-in-out 1.4s infinite; animation-delay: calc(var(--i) * 85ms + 150ms), 0s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes sheen { 0%, 100% { background-position: 0 0; } 50% { background-position: 100% 0; } }
.hero__lead { margin-top: 26px; opacity: 0; animation: fade-up 0.9s var(--ease) 0.75s forwards; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; opacity: 0; animation: fade-up 0.9s var(--ease) 0.9s forwards; }
.hero__proof { display: grid; gap: 8px; margin-top: 34px; font-size: 0.92rem; color: var(--ink-2); opacity: 0; animation: fade-up 0.9s var(--ease) 1.05s forwards; }
.hero__proof li { display: flex; align-items: center; gap: 10px; }
.hero__proof .ico { width: 18px; height: 18px; color: var(--pass); padding: 2px; border-radius: 50%; background: rgba(15, 157, 116, 0.14); stroke-width: 2.6; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Hero visual: mine photo behind a floating 3D card */
.hv { position: relative; aspect-ratio: 1 / 0.9; --mx: 0; --my: 0; }
.hv__photo { position: absolute; top: 0; right: 0; width: 86%; height: 62%; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lift); opacity: 0; animation: slide-in 1.1s var(--ease) 0.35s forwards; }
.hv__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; transform: translate3d(calc(var(--mx) * -10px), calc(var(--my) * -8px), 0) scale(1.08); transition: transform 0.25s linear; }
.hv__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 12, 14, 0) 40%, rgba(10, 12, 14, 0.35)); }
/* The entrance animation owns `transform`; the pointer parallax uses the separate `translate` property so they compose. */
.hv .hv__card { position: absolute; left: 0; bottom: 0; width: 86%; z-index: 2; opacity: 0; animation: slide-up 1.1s var(--ease) 0.5s forwards;
  translate: calc(var(--mx) * 14px) calc(var(--my) * 10px); transition: translate 0.25s linear; }
.hv__card img { aspect-ratio: 5 / 3; object-fit: cover; }
.hv__scan { position: absolute; left: 0; right: 0; top: 34px; height: 90px; background: linear-gradient(180deg, transparent, rgba(242, 166, 90, 0.16), transparent); transform: translateY(-100%); animation: scan 5.5s var(--ease-io) 1.6s infinite; pointer-events: none; }
@keyframes scan { 0% { transform: translateY(-100%); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(420%); opacity: 0; } }
@keyframes slide-in { from { opacity: 0; transform: translate3d(40px, -10px, 0); } to { opacity: 1; transform: none; } }
@keyframes slide-up { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }

.chip { position: absolute; z-index: 3; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); border: 1px solid rgba(255, 255, 255, 0.5); box-shadow: var(--shadow-lift); opacity: 0; animation: pop 0.8s var(--ease) forwards, bob 6s ease-in-out infinite; }
[data-theme='dark'] .chip { border-color: rgba(255, 255, 255, 0.1); }
.chip b { display: block; font-family: var(--font-h); font-size: 1rem; font-weight: 700; line-height: 1.15; }
.chip span { display: block; font-size: 0.74rem; color: var(--muted); line-height: 1.3; }
.chip__dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--c); flex: none; }
.chip__dot::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: ping 2.4s ease-out infinite; }
.chip--fail { --c: var(--fail); } .chip--mon { --c: var(--mon); } .chip--pass { --c: var(--pass); }
.c1 { top: 8%; left: 2%; animation-delay: 1.2s, 1.2s; }
.c2 { top: 38%; right: -2%; animation-delay: 1.45s, 2.4s; }
.c3 { bottom: -4%; right: 4%; animation-delay: 1.7s, 3.1s; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.8; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.hv__note { position: absolute; left: 6px; bottom: -34px; font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ───────────── Frames ───────────── */
.frame { border-radius: 16px; overflow: hidden; background: var(--charcoal); box-shadow: var(--shadow-frame); border: 1px solid rgba(255, 255, 255, 0.07); position: relative; }
.frame__bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: #1b2126; border-bottom: 1px solid #2a3036; font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.06em; color: #8d9aa6; }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4148; flex: none; }
.frame__bar i:nth-child(1) { background: #c8283a; opacity: 0.85; } .frame__bar i:nth-child(2) { background: #d97706; opacity: 0.85; } .frame__bar i:nth-child(3) { background: #0f9d74; opacity: 0.85; }
.frame__bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; }

/* ───────────── Capabilities strip ───────────── */
.caps { position: relative; z-index: 4; margin-top: -64px; }
.caps__grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lift); padding: 8px; }
.caps__grid li { display: flex; align-items: flex-start; gap: 16px; padding: 22px 22px; border-radius: 16px; position: relative; transition: background-color 0.3s; }
.caps__grid li + li::before { content: ''; position: absolute; left: -1px; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.caps__grid li:hover { background: var(--ground); }
.caps__grid h3, .cards3 h3, .trio h3 { font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; line-height: 1.2; }
.caps__grid p { font-size: 0.88rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.caps__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; color: var(--copper-ink); background: linear-gradient(145deg, rgba(242, 166, 90, 0.28), rgba(180, 83, 28, 0.1)); transition: transform 0.45s var(--ease); }
.caps__icon .ico { width: 23px; height: 23px; }
li:hover > .caps__icon { transform: translateY(-4px) rotate(-6deg) scale(1.06); }

.marquee { margin-top: 52px; overflow: hidden; border-block: 1px solid var(--line); background: var(--surface); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { display: inline-flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px; font-family: var(--font-h); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.marquee__track span::after { content: ''; width: 8px; height: 8px; background: var(--copper); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────────── Sections ───────────── */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section--tint { background: var(--tint); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 88px); }
.split--center { align-items: center; }
.ticks { display: grid; gap: 12px; margin-top: 28px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.ticks .ico { width: 22px; height: 22px; margin-top: 1px; padding: 3px; border-radius: 50%; color: #fff; background: var(--copper); stroke-width: 3; }
.ticks--light li { color: rgba(255, 255, 255, 0.86); }
.ticks--light .ico { background: var(--copper-2); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-card); }
.card--hover { transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }
.card--hover:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: rgba(180, 83, 28, 0.45); }
.fig-note { margin-top: 16px; text-align: center; font-family: var(--font-m); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Monitoring */
.tilt-stage { margin-top: 64px; perspective: 1800px; }
.tilt { --rx: 18deg; transform: rotateX(var(--rx)); transform-origin: 50% 100%; will-change: transform; max-width: 1080px; margin-inline: auto; }
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.trio li { padding: 28px 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); position: relative; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.trio li::before { content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 3px; background: linear-gradient(90deg, var(--copper), var(--copper-3)); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.6s var(--ease); }
.trio li:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.trio li:hover::before { transform: scaleX(1); }
.trio p { color: var(--muted); margin-top: 8px; font-size: 0.96rem; }
#grading { margin-top: clamp(80px, 10vw, 140px); }

.chart { position: relative; padding: 22px 22px 14px; overflow: hidden; }
.chart__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.chart__head b { display: block; font-family: var(--font-h); font-size: 1.15rem; }
.chart__head span { font-size: 0.78rem; color: var(--muted); font-family: var(--font-m); letter-spacing: 0.04em; }
.legend { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); }
.lg { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-left: 8px; }
.lg:first-child { margin-left: 0; }
.lg--pass { background: var(--pass); } .lg--mon { background: var(--mon); } .lg--fail { background: var(--fail); }
.chart__svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid path { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.chart .limit { stroke-width: 1.4; stroke-dasharray: 6 5; fill: none; }
.limit--fail { stroke: var(--fail); } .limit--mon { stroke: var(--mon); }
.lim-t { font-family: var(--font-m); font-size: 9.5px; letter-spacing: 0.12em; }
.chart .line { fill: none; stroke: url(#trend-stroke); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.chart .area { fill: url(#trend-fill); opacity: 0; transition: opacity 1.2s ease 0.9s; }
.chart.in .line { stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--ease-io) 0.3s; }
.chart.in .area { opacity: 1; }
.chart .dot { fill: var(--surface); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.chart.in .dot { animation: dot-pop 0.5s var(--ease) forwards; animation-delay: calc(0.35s + var(--k) * 0.2s); }
@keyframes dot-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
.chart .halo { fill: var(--fail); opacity: 0; transform-box: fill-box; transform-origin: center; }
.chart.in .halo { animation: halo 2s ease-out 2.4s infinite; }
@keyframes halo { 0% { opacity: 0.45; transform: scale(0.6); } 100% { opacity: 0; transform: scale(3.4); } }
.toast { position: absolute; right: 16px; bottom: 12px; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 14px; border-radius: 14px; background: var(--charcoal); color: #fff; box-shadow: var(--shadow-lift); max-width: 270px; opacity: 0; transform: translateY(-14px) scale(0.94); }
.toast .ico { color: #fff; width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--fail); }
.toast b { display: block; font-family: var(--font-h); font-size: 1rem; line-height: 1.2; }
.toast span { display: block; font-size: 0.74rem; color: #b8c2cb; line-height: 1.35; }
.chart.in .toast { animation: toast 0.7s var(--ease) 2.5s forwards; }
@keyframes toast { to { opacity: 1; transform: none; } }

.datain { margin-top: clamp(80px, 10vw, 140px); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.cards3 li { padding: 30px 28px; }
.cards3 .caps__icon { margin-bottom: 20px; }
.cards3 p { color: var(--muted); margin-top: 8px; font-size: 0.96rem; }

/* ───────────── 3D viewer ───────────── */
.viewer { margin-top: 56px; }
.viewer__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 6px; width: fit-content; max-width: 100%; margin: 0 auto 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); }
.vtab { position: relative; padding: 10px 20px; border: 0; border-radius: 11px; background: transparent; cursor: pointer; font-weight: 600; font-size: 0.93rem; color: var(--muted); overflow: hidden; transition: color 0.25s, background-color 0.25s; }
.vtab:hover { color: var(--ink); }
.vtab[aria-selected='true'] { color: #fff; background: linear-gradient(135deg, #c2611f, #a14516); box-shadow: 0 8px 18px -8px rgba(180, 83, 28, 0.8); }
.vtab .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: rgba(255, 255, 255, 0.85); transform: scaleX(0); transform-origin: 0 50%; }
.vtab.run .bar { animation: fill 5.4s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }
.viewer__stage { max-width: 1120px; margin-inline: auto; }
.viewer__imgs { position: relative; aspect-ratio: 8 / 5; background: #000; }
.vimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.035); transition: opacity 0.7s var(--ease-io), transform 1.4s var(--ease); }
.vimg.on { opacity: 1; transform: none; }
.viewer__cap { max-width: 640px; margin: 28px auto 0; text-align: center; min-height: 92px; }
.viewer__cap h3 { font-family: var(--font-h); font-weight: 800; font-size: 1.6rem; }
.viewer__cap p { color: var(--muted); margin-top: 6px; }
.viewer__cap h3, .viewer__cap p { transition: opacity 0.3s, transform 0.4s var(--ease); }
.viewer__cap.swap h3, .viewer__cap.swap p { opacity: 0; transform: translateY(8px); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 64px; border-block: 1px solid var(--line); }
.stats li { padding: 34px 20px; text-align: center; position: relative; }
.stats li + li::before { content: ''; position: absolute; left: 0; top: 28px; bottom: 28px; width: 1px; background: var(--line); }
.stats b { display: block; font-family: var(--font-h); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1; color: var(--copper-ink); letter-spacing: -0.01em; }
.stats span { display: block; margin-top: 8px; font-family: var(--font-m); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Sticky walkthrough */
.walk { margin-top: clamp(80px, 11vw, 150px); }
.walk__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); margin-top: 40px; align-items: start; }
.wstep { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0 24px 28px; border-left: 2px solid var(--line); opacity: 0.38; transition: opacity 0.5s var(--ease), border-color 0.4s; position: relative; }
.wstep::before { content: ''; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--ground); border: 2px solid var(--line); transition: all 0.4s var(--ease); }
.section--tint .wstep::before { background: var(--tint); }
.wstep.on { opacity: 1; border-color: var(--copper); }
.wstep.on::before { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 0 6px rgba(180, 83, 28, 0.18); }
.wstep__n { font-family: var(--font-m); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--copper-ink); }
.wstep h3 { font-family: var(--font-h); font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.08; margin-top: 8px; }
.wstep p { color: var(--muted); margin-top: 12px; max-width: 46ch; }
.wstep__fig { display: none; margin-top: 22px; }
.walk__stage { position: sticky; top: calc(var(--nav-h) + 28px); }
.walk__imgs { position: relative; aspect-ratio: 8 / 5; background: #000; }
.wimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04) translateY(10px); transition: opacity 0.6s var(--ease-io), transform 1.1s var(--ease); }
.wimg.on { opacity: 1; transform: none; }
.walk__dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.walk__dots i { width: 8px; height: 8px; border-radius: 8px; background: var(--line); transition: width 0.4s var(--ease), background-color 0.3s; }
.walk__dots i.on { width: 30px; background: var(--copper); }

/* ───────────── Ask Tim: see the demo styles at the end ───────────── */
@keyframes glow { from { transform: translate(0, 0) scale(1); } to { transform: translate(-60px, 40px) scale(1.15); } }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes blink { 50% { opacity: 0; } }
.caret { width: 2px; height: 1.2em; margin-left: 3px; background: var(--copper-3); animation: blink 1s steps(1) infinite; }

/* ───────────── Phones ───────────── */
.split--phones { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.phones { position: relative; display: flex; justify-content: center; align-items: center; gap: clamp(10px, 2vw, 24px); min-height: 520px; }
.phone { width: min(30%, 220px); padding: 7px; border-radius: 34px; background: linear-gradient(160deg, #3a4148, #14181c); box-shadow: var(--shadow-frame); position: relative; }
.phone img { border-radius: 28px; }
.phone--1 { transform: translateY(26px); animation: float-a 7s ease-in-out infinite; }
.phone--2 { width: min(34%, 250px); z-index: 2; animation: float-b 8s ease-in-out infinite; }
.phone--3 { transform: translateY(40px); animation: float-a 9s ease-in-out 1s infinite; }
@keyframes float-a { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes float-b { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }

/* ───────────── Flow ───────────── */
.flow { --p: 0; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 72px; }
.flow__line { position: absolute; left: 12.5%; right: 12.5%; top: 34px; height: 3px; border-radius: 3px; background: var(--line); }
.flow__line i { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, var(--copper), var(--copper-3)); transform-origin: 0 50%; transform: scaleX(var(--p)); }
.fstep { position: relative; text-align: center; padding: 0 10px; }
.fstep__node { position: relative; z-index: 1; display: grid; place-items: center; width: 70px; height: 70px; margin: 0 auto 22px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); color: var(--muted); box-shadow: var(--shadow-card); transition: all 0.6s var(--ease); }
.fstep__node .ico { width: 28px; height: 28px; }
.fstep.on .fstep__node { color: #fff; background: linear-gradient(145deg, #d4752f, #a14516); border-color: transparent; transform: scale(1.1); box-shadow: 0 0 0 8px rgba(180, 83, 28, 0.15), 0 16px 30px -12px rgba(180, 83, 28, 0.8); }
.fstep h3 { font-family: var(--font-h); font-weight: 800; font-size: 1.5rem; }
.fstep p { color: var(--muted); margin-top: 8px; font-size: 0.95rem; max-width: 30ch; margin-inline: auto; }

/* ───────────── Photo band ───────────── */
.band { position: relative; overflow: hidden; padding: clamp(90px, 12vw, 160px) 0; color: #fff; isolation: isolate; }
.band__bg { position: absolute; inset: -90px 0; z-index: -2; will-change: transform; }
.band__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.band__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 12, 14, 0.92), rgba(10, 12, 14, 0.72) 55%, rgba(10, 12, 14, 0.5)); }
.glass3 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.glass3 li { padding: 26px 24px; border-radius: var(--r); background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s; }
.glass3 li:hover { transform: translateY(-6px); background: rgba(255, 255, 255, 0.13); border-color: rgba(242, 166, 90, 0.6); }
.glass3 h3 { font-family: var(--font-h); font-weight: 700; font-size: 1.25rem; margin-top: 16px; }
.glass3 p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.74); margin-top: 6px; }
.glass__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--copper-3); background: rgba(242, 166, 90, 0.16); }

/* ───────────── CTA ───────────── */
.cta { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(32px, 5vw, 64px); border-radius: 32px; color: #fff; overflow: hidden; background: radial-gradient(90% 120% at 0% 0%, #d4752f, #b4531c 45%, #8a3a10); box-shadow: 0 40px 80px -30px rgba(138, 58, 16, 0.7); }
.cta::before { content: ''; position: absolute; inset: 0; background: repeating-radial-gradient(ellipse 70% 60% at 100% 100%, transparent 0 26px, rgba(255, 255, 255, 0.09) 26px 27px); pointer-events: none; }
.cta > * { position: relative; }
.cta__mark { width: 56px; height: 50px; margin-bottom: 22px; animation: float-a 6s ease-in-out infinite; }
.cta__links { display: grid; gap: 12px; margin-top: 28px; }
.cta__links a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; padding: 10px 16px 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.22); transition: background-color 0.25s, transform 0.3s var(--ease); }
.cta__links a:hover { background: rgba(255, 255, 255, 0.24); transform: translateX(6px); }
.cta__form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); border-radius: 22px; background: rgba(22, 27, 31, 0.5); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.cta__form label { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.85); }
.cta__form input { width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 0.97rem; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.cta__form select { width: 100%; padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 0.97rem; color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22); cursor: pointer; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s; }
.cta__form select option { color: #161b1f; background: #fff; }
.cta__form select:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }
.cta__form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.cta__form input:focus { outline: none; border-color: #fff; background: rgba(255, 255, 255, 0.16); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18); }
.cta__form input.bad { border-color: #ffb4b4; }
.cta__form .btn { margin-top: 6px; width: 100%; }
.cta__form small { font-size: 0.76rem; color: rgba(255, 255, 255, 0.7); line-height: 1.45; }

/* ───────────── Footer: the ground ───────────── */
.foot { --ink: #e9eef2; --ink-2: #c0cad2; --muted: #98a6b3; --line: #2a3036; --copper-ink: #f2a65a;
  position: relative; isolation: isolate; overflow: hidden; padding: clamp(110px, 12vw, 170px) 0 40px; color: var(--ink-2);
  background: linear-gradient(180deg, #0f1316 0%, #0a0c0e 100%); }
.foot__ground { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.foot__earth { position: absolute; left: 0; top: -2px; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 0 0; opacity: 0.9;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 78%); mask-image: linear-gradient(180deg, #000 0%, #000 22%, transparent 78%); }
.foot__art { position: absolute; right: max(-60px, calc((100vw - var(--wrap)) / -2)); bottom: 0; width: min(640px, 56%); height: auto; max-width: none; opacity: 0.9; mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 72% 78% at 56% 52%, #000 38%, transparent 76%); mask-image: radial-gradient(ellipse 72% 78% at 56% 52%, #000 38%, transparent 76%); }
.foot__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; max-width: min(100%, 620px); margin-inline: auto 0; margin-left: max(20px, calc((100% - var(--wrap)) / 2)); }
.foot__brand { display: grid; gap: 14px; }
.foot__brand p { max-width: 38ch; font-size: 0.95rem; color: var(--muted); }
.brand__logo--lg { height: 56px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { font-size: 0.95rem; color: var(--ink-2); text-decoration: none; padding: 4px 0; border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s; }
.foot__links a:hover { color: #fff; border-color: var(--copper-ink); }
.foot__fine { font-size: 0.8rem; color: var(--muted); }

/* ───────────── Scroll reveal ───────────── */
.js .reveal { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 0.9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal[data-dir='left'] { transform: translate3d(-44px, 0, 0); }
.js .reveal[data-dir='right'] { transform: translate3d(44px, 0, 0); }
.js .reveal[data-dir='up'] { transform: translate3d(0, 70px, 0); }
.js .reveal.in { opacity: 1; transform: none; }
.js .phone.reveal { transition-delay: var(--d, 0s); }
.js .phone--1.reveal.in { transform: translateY(26px); }
.js .phone--3.reveal.in { transform: translateY(40px); }
/* Stagger uses `translate` so a card's own hover `transform` still works afterwards. */
.js [data-stagger] > li { opacity: 0; translate: 0 24px;
  transition: opacity 0.8s var(--ease) calc(var(--k, 0) * 90ms + 120ms), translate 0.9s var(--ease) calc(var(--k, 0) * 90ms + 120ms),
    transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s, border-color 0.3s; }
.js [data-stagger].in > li { opacity: 1; translate: none; }
.js [data-stagger].reveal { opacity: 1; transform: none; }

/* ───────────── Responsive ───────────── */
@media (max-width: 1080px) {
  .caps__grid { grid-template-columns: repeat(2, 1fr); }
  .caps__grid li:nth-child(3)::before { display: none; }
  .glass3 { grid-template-columns: repeat(2, 1fr); }
  .nav__signin { display: none; }
}
@media (max-width: 1160px) {
  :root { --nav-h: 64px; }
  .burger { display: inline-grid; }
  .nav__links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 20px 24px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lift); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s; }
  .nav.open .nav__links { opacity: 1; transform: none; visibility: visible; }
  .nav.open { background: var(--nav-bg); backdrop-filter: blur(16px); }
  .nav__links a { padding: 14px 12px; font-size: 1.05rem; }
  .nav__signin-m, .nav__demo-m { display: block; }
  .nav__links .nav__demo-m { color: var(--copper-ink); font-weight: 700; }
  .nav.open .burger .ico--open { display: none; }
  .nav.open .burger .ico--close { display: block; }
}
@media (max-width: 960px) {
  .js .reveal[data-dir='left'], .js .reveal[data-dir='right'] { transform: translate3d(0, 34px, 0); }
  .hero { padding-bottom: 96px; }
  .hero__in { grid-template-columns: 1fr; }
  .hv { max-width: 620px; margin-inline: auto; width: 100%; }
  .hv__note { bottom: -30px; }
  .split, .split--phones { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .trio, .cards3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3)::before { display: none; }
  .stats li:nth-child(n + 3) { border-top: 1px solid var(--line); }

  /* Walkthrough: each step carries its own image, no sticky stage */
  .walk__grid { grid-template-columns: 1fr; }
  .walk__stage { display: none; }
  .wstep { min-height: 0; opacity: 1; padding: 8px 0 44px 22px; justify-content: flex-start; }
  .wstep__fig { display: block; }
  .wstep::before { top: 18px; margin-top: 0; }

  .flow { grid-template-columns: 1fr; gap: 34px; margin-top: 48px; }
  .flow__line { left: 34px; right: auto; top: 20px; bottom: 20px; width: 3px; height: auto; }
  .flow__line i { transform-origin: 50% 0; transform: scaleY(var(--p)); }
  .fstep { display: grid; grid-template-columns: 70px 1fr; column-gap: 20px; text-align: left; padding: 0; align-items: start; }
  .fstep__node { grid-row: 1 / span 2; margin: 0; }
  .fstep p { margin: 6px 0 0; max-width: none; }
  .phones { min-height: 0; padding-bottom: 40px; }
  .foot__in { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .caps { margin-top: -48px; }
  .caps__grid { grid-template-columns: 1fr; }
  .caps__grid li + li::before { display: none; }
  .caps__grid li + li { border-top: 1px solid var(--line); border-radius: 0; }
  .glass3 { grid-template-columns: 1fr; }
  .chip { padding: 8px 12px 8px 10px; gap: 9px; }
  .chip b { font-size: 0.88rem; } .chip span { font-size: 0.66rem; }
  .c1 { top: 4%; left: -2%; } .c2 { top: 36%; right: -3%; } .c3 { right: 0; }
  .hero__cta .btn { flex: 1 1 100%; }
  .nav__cta > .btn { display: none; }
  .vtab { padding: 9px 13px; font-size: 0.86rem; }
  .toast { position: static; margin-top: 8px; max-width: none; }
  .phone { padding: 5px; border-radius: 26px; } .phone img { border-radius: 21px; }
}

/* ───────────── Reduced motion ───────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .w, .hero__lead, .hero__cta, .hero__proof, .hv__photo, .hv__card, .chip { opacity: 1; transform: none; }
  .js .reveal, .js [data-stagger] > li { opacity: 1; transform: none; translate: none; }
  .tilt { --rx: 0deg !important; }
  .marquee__track { animation: none; }
  .chart .line { stroke-dashoffset: 0; } .chart .area, .chart .dot, .toast { opacity: 1; transform: none; }
}

/* ───────────── Logo tokens (same names as the app: apps/web/src/index.css) ───────────── */
:root { --mi-bl: #1b2126; --mi-br: #3a4651; --mi-sub: #b4531c; }
[data-theme='dark'], .mi-on-dark { --mi-bl: #8f9ba6; --mi-br: #dfe6ec; --mi-sub: #f2a65a; }
.mi-bl { fill: var(--mi-bl); } .mi-br { fill: var(--mi-br); } .mi-fl { fill: url(#mi-cu2); } .mi-fr { fill: url(#mi-cu); }
.mi-sw { fill: url(#mi-sw); } .mi-cap { fill: #fff; opacity: 0.9; } .mi-ta { fill: currentColor; } .mi-tb { fill: var(--mi-sub); }

/* ───────────── Earth layers: decorative soil with dissolved edges, from the supplied artwork ─────────────
   Always aria-hidden, never catch the pointer, sit behind content, and keep clear of text. */
.earth { position: absolute; z-index: 0; max-width: none; height: auto; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.earth--hero { left: 0; bottom: 0; width: 100%; height: 150px; object-fit: cover; object-position: 50% 0; opacity: 0.92;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 22%, #000 52%); mask-image: linear-gradient(90deg, transparent 0%, transparent 22%, #000 52%); }
.earth--band { left: 0; bottom: -1px; width: 100%; height: clamp(90px, 11vw, 160px); object-fit: cover; object-position: 50% 0; opacity: 0.95; }
.band__in { position: relative; z-index: 1; }
[data-theme='dark'] .earth--hero { opacity: 0.78; }
@media (max-width: 960px) { .earth--hero { height: 64px; opacity: 0.85; -webkit-mask-image: none; mask-image: none; } .foot__art { opacity: 0.45; width: 90%; right: -10%; } .foot__in { margin-left: 20px; } }

/* ═════════════ Demos: Ask Tim and WhatsApp ═════════════ */
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wave { 0%, 100% { height: 7px; } 50% { height: 28px; } }
@keyframes dotb { 0%, 80%, 100% { transform: translateY(0); opacity: 0.45; } 40% { transform: translateY(-4px); opacity: 1; } }
.pop { animation: pop 0.45s var(--ease) both; }

.night { --ink: #e9eef2; --ink-2: #c0cad2; --muted: #98a6b3; --line: #2a3036; --surface: #14181c; --copper-ink: #f2a65a;
  position: relative; overflow: hidden; isolation: isolate; padding: clamp(80px, 11vw, 150px) 0; color: var(--ink-2); background: linear-gradient(160deg, #1f262b, #161b1f 55%, #0f1316); }
.night__glow { position: absolute; z-index: -1; width: 760px; height: 760px; right: -200px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 149, 95, 0.28), transparent 65%); animation: glow 9s ease-in-out infinite alternate; pointer-events: none; }

.demo { margin-top: 48px; }
.demo__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.dtabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.04); }
.dtab { padding: 9px 16px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font: 600 0.9rem var(--font-b); cursor: pointer; transition: color 0.2s, background-color 0.25s; }
.dtab:hover { color: var(--ink); }
.dtab[aria-selected='true'] { color: #fff; background: linear-gradient(135deg, #c2611f, #a14516); box-shadow: 0 8px 18px -8px rgba(180, 83, 28, 0.8); }
.dctl { display: flex; gap: 8px; }
.ctl { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--ink); cursor: pointer; transition: border-color 0.2s, transform 0.25s var(--ease); }
.ctl:hover { border-color: var(--copper); transform: translateY(-1px); }
.ctl .ico { width: 18px; height: 18px; }
.ctl .ico--play { display: none; } .is-paused .ctl .ico--pause { display: none; } .is-paused .ctl .ico--play { display: block; }
.demo__note { margin-top: 14px; font-size: 0.8rem; color: var(--muted); text-align: center; }
.demo__text { margin-top: 10px; font-size: 0.9rem; color: var(--muted); }
.demo__text summary { cursor: pointer; width: fit-content; margin-inline: auto; padding: 6px 10px; border-radius: 8px; color: var(--copper-ink); font-weight: 600; }
.demo__text h3 { font-family: var(--font-h); font-weight: 700; font-size: 1.05rem; color: var(--ink); margin: 16px 0 4px; }
.demo__text p { margin: 4px 0; max-width: 78ch; }

/* — Tim: the app on the left, Tim docked on the right, like the product — */
.tstage { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 18px; height: 570px; }
.tstage__app { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.tstage__imgs { position: relative; flex: 1; min-height: 0; background: #060a0f; overflow: hidden; }
.tm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 50%; opacity: 0; transform: scale(1.03); transition: opacity 0.7s var(--ease-io), transform 1.3s var(--ease); }
.tm.on { opacity: 1; transform: none; }
.tstage__badge { position: absolute; left: 16px; bottom: 16px; right: 16px; width: fit-content; max-width: calc(100% - 32px); display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(10, 12, 14, 0.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font-size: 0.85rem; font-weight: 600; opacity: 0; transform: translateY(10px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
.tstage__badge.on { opacity: 1; transform: none; }
.tstage__badge .ico { width: 18px; height: 18px; padding: 3px; border-radius: 50%; color: #fff; background: var(--pass); stroke-width: 3; }
.tpanel { display: flex; flex-direction: column; min-height: 0; border-radius: 18px; background: rgba(14, 19, 24, 0.9); border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: var(--shadow-frame); overflow: hidden; }
.tpanel__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.orb { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #f2a65a, #b4531c); box-shadow: 0 6px 16px -6px rgba(180, 83, 28, 0.9); }
.orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #f2a65a; opacity: 0; animation: ripple 2.6s ease-out infinite; }
.tpanel__who b { display: block; font: 700 1.05rem var(--font-h); color: #fff; line-height: 1.1; }
.tpanel__who small { display: block; font-size: 0.74rem; color: var(--muted); margin-top: 2px; }
.tstate { margin-left: auto; padding: 5px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--muted); font: 500 0.66rem var(--font-m); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; transition: color 0.3s, background-color 0.3s; }
.tstate[data-s='busy'] { color: #f2a65a; background: rgba(242, 166, 90, 0.14); }
.tstate[data-s='listen'] { color: #7fd6c2; background: rgba(15, 157, 116, 0.18); }
.tpanel__log { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: none; }
.tpanel__log::-webkit-scrollbar { display: none; }
.tpanel__log > *, .wa__chat > * { flex: none; }
.tm-msg { max-width: 94%; padding: 11px 14px; border-radius: 14px; font-size: 0.88rem; line-height: 1.5; color: #e9eef2; }
.tm-msg p { margin: 0 0 6px; } .tm-msg p:last-child { margin-bottom: 0; }
.tm-msg ol { margin: 6px 0 0; padding-left: 20px; list-style: decimal; } .tm-msg li { margin-top: 3px; }
.tm-msg b { color: #fff; }
.tm-msg--user { align-self: flex-end; background: rgba(180, 83, 28, 0.3); border: 1px solid rgba(242, 166, 90, 0.38); border-bottom-right-radius: 4px; }
.tm-msg--tim { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); border-bottom-left-radius: 4px; }
.tm-msg.is-voice { display: flex; gap: 10px; align-items: flex-start; } .tm-msg.is-voice > .ico { width: 18px; height: 18px; margin-top: 2px; color: #7fd6c2; }
.tm-busy { display: flex; gap: 10px; align-items: center; color: var(--muted); font-style: italic; }
.spin { flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(242, 166, 90, 0.3); border-top-color: #f2a65a; animation: spin 0.8s linear infinite; }
.tm-src { align-self: stretch; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tm-src h4, .tm-chart h4 { margin: 0 6px 0 0; font: 600 0.64rem var(--font-m); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tchip { flex: none; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.74rem; color: var(--ink-2); }
.tchip .ico { width: 13px; height: 13px; } .tchip b { font-weight: 600; color: #fff; } .tchip i { font-style: normal; color: var(--muted); }
.tm-fb { align-self: flex-start; display: flex; gap: 8px; align-items: center; font-size: 0.74rem; color: var(--muted); }
.tm-fb button { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.12); background: transparent; color: var(--muted); }
.tm-fb .ico { width: 14px; height: 14px; }
.tm-cards { align-self: stretch; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tm-card { padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); }
.tm-card b { display: block; font: 800 1.7rem/1 var(--font-h); } .tm-card span { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--muted); }
.tm-card--fail b { color: #ff7a8a; } .tm-card--mon b { color: #f5a524; } .tm-card--ok b { color: #34d6a0; }
.tm-chart { align-self: stretch; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.tm-chart h4 { margin-bottom: 4px; }
.tm-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.tm-chart .lim { stroke: #ff7a8a; stroke-dasharray: 5 4; fill: none; }
.tm-chart text { fill: #ff9aa6; font: 9px var(--font-m); }
.tm-chart .ln { fill: none; stroke: #f2a65a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tm-chart.pop .ln { animation: draw 1.6s var(--ease-io) 0.2s forwards; }
.tm-chart .pt { fill: #ff7a8a; opacity: 0; } .tm-chart.pop .pt { animation: fadein 0.3s ease 1.7s forwards; }
.tpanel__in { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 9px 10px 9px 14px; min-height: 46px; border-radius: 14px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); }
.tpanel__field { flex: 1; min-width: 0; display: flex; align-items: center; font-size: 0.9rem; color: #fff; }
#tdTyped:empty::before { content: 'Ask Tim…'; color: var(--muted); }
.tpanel__send { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #c2611f, #a14516); color: #fff; } .tpanel__send .ico { width: 16px; height: 16px; }
.tpanel__voice { display: none; margin: 0 14px 14px; padding: 12px 14px; border-radius: 14px; text-align: center; background: rgba(15, 157, 116, 0.1); border: 1px solid rgba(15, 157, 116, 0.3); }
.tpanel__voice small { display: block; margin-top: 4px; font-size: 0.74rem; color: var(--muted); }
.wave { display: inline-flex; gap: 4px; align-items: center; height: 30px; }
.wave i { width: 4px; height: 7px; border-radius: 3px; background: #7fd6c2; animation: wave 1.05s ease-in-out infinite; }
.wave i:nth-child(2n) { animation-delay: 0.15s; } .wave i:nth-child(3n) { animation-delay: 0.3s; } .wave i:nth-child(5n) { animation-delay: 0.45s; }
.is-paused .wave i, .is-paused .orb::after, .is-paused .spin, .is-paused .wb--typing i { animation-play-state: paused; }
.tpanel.is-voice .tpanel__in { display: none; } .tpanel.is-voice .tpanel__voice { display: block; }

.vgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.vgrid li { padding: 24px 22px; border-radius: var(--r); background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); transition: border-color 0.3s; }
.vgrid li:hover { border-color: rgba(242, 166, 90, 0.55); }
.vgrid__icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; color: #f2a65a; background: rgba(242, 166, 90, 0.14); margin-bottom: 14px; }
.vgrid h3 { font-family: var(--font-h); font-weight: 700; font-size: 1.2rem; color: #fff; }
.vgrid p { margin-top: 6px; font-size: 0.92rem; color: var(--muted); }

/* — WhatsApp — */
.split--wa { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: start; }
.vlist { display: grid; gap: 18px; margin-top: 30px; }
.vlist li { display: flex; gap: 14px; align-items: flex-start; }
.vlist__icon { display: inline-grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; color: var(--copper-ink); background: linear-gradient(145deg, rgba(242, 166, 90, 0.28), rgba(180, 83, 28, 0.1)); }
.vlist h3 { font-family: var(--font-h); font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.vlist p { margin-top: 3px; font-size: 0.93rem; color: var(--muted); }
.fineprint { margin-top: 26px; padding-left: 14px; border-left: 2px solid var(--line); max-width: 58ch; font-size: 0.82rem; color: var(--muted); }
.wdemo { margin-top: 0; }
.wdemo .dtabs { background: var(--surface); box-shadow: var(--shadow-card); }
.wdemo .ctl { background: var(--surface); }
.wdemo .demo__note { text-align: left; }
.wdemo .demo__text summary { margin-inline: 0; }
.wa { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; }
.wphone { position: relative; width: 318px; height: 600px; padding: 10px; border-radius: 44px; background: linear-gradient(160deg, #2b343b, #0f1316); box-shadow: var(--shadow-frame); }
.wphone::before { content: ''; position: absolute; z-index: 3; top: 18px; left: 50%; width: 84px; height: 20px; margin-left: -42px; border-radius: 14px; background: #000; }
.wphone__screen { height: 100%; display: flex; flex-direction: column; border-radius: 34px; overflow: hidden; background: #efeae2; }
.wa__top { display: flex; align-items: center; gap: 10px; padding: 38px 14px 10px; background: #0f6b5b; color: #fff; }
.wa__top b { display: block; font: 600 0.95rem var(--font-b); } .wa__top small { display: block; font-size: 0.7rem; opacity: 0.78; }
.wa__avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #d4752f, #a14516); }
.wa__avatar svg { width: 22px; height: 20px; }
.wa__chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 10px 10px 6px; scrollbar-width: none; background-image: radial-gradient(rgba(0, 0, 0, 0.04) 1px, transparent 1px); background-size: 18px 18px; }
.wa__chat::-webkit-scrollbar { display: none; }
.wday { align-self: center; margin: 4px 0; padding: 3px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.88); font-size: 0.68rem; color: #54656f; }
.wb { max-width: 90%; padding: 7px 9px 4px; border-radius: 9px; font-size: 0.76rem; line-height: 1.42; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.13); overflow-wrap: anywhere; }
.wb--in { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wb--out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 2px; }
.wb__m { display: block; margin-top: 2px; text-align: right; font-size: 0.6rem; color: #667781; }
.tk { width: 15px; height: 9px; fill: none; stroke: #8696a0; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; vertical-align: -1px; }
.tk .t2 { opacity: 0; transition: opacity 0.3s; } .delivered .tk .t2 { opacity: 1; } .read .tk { stroke: #53bdeb; transition: stroke 0.3s; }
.wb--typing { display: flex; gap: 4px; align-items: center; width: 52px; padding: 11px 12px; }
.wb--typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: dotb 1.1s infinite; } .wb--typing i:nth-child(2) { animation-delay: 0.15s; } .wb--typing i:nth-child(3) { animation-delay: 0.3s; }
.wbtns { display: grid; gap: 4px; width: 90%; align-self: flex-start; }
.wbtn { position: relative; padding: 8px; border-radius: 8px; background: #fff; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.13); text-align: center; font-size: 0.76rem; font-weight: 600; color: #027eb5; transition: background-color 0.2s, transform 0.2s; }
.wbtn.tapped { background: #e1f1f8; transform: scale(0.97); box-shadow: inset 0 0 0 2px rgba(2, 126, 181, 0.4); }
.wdoc { display: flex; gap: 9px; align-items: center; padding: 8px; margin-bottom: 4px; border-radius: 8px; background: rgba(0, 0, 0, 0.05); }
.wdoc svg { flex: none; width: 26px; height: 26px; fill: none; stroke: #d3392f; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wdoc b { display: block; font-size: 0.76rem; } .wdoc small { display: block; font-size: 0.64rem; color: #667781; }
.wa__in { display: flex; align-items: center; gap: 8px; padding: 8px 10px 12px; background: #f0f2f5; }
.wa__field { flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; padding: 0 14px; border-radius: 18px; background: #fff; font-size: 0.78rem; color: #111b21; overflow: hidden; white-space: nowrap; }
#waTyped:empty::before { content: 'Message'; color: #8696a0; }
.wa__go { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #0f6b5b; color: #fff; } .wa__go .ico { width: 17px; height: 17px; }
[data-theme='dark'] .wphone__screen { background: #0b141a; }
[data-theme='dark'] .wa__chat { background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px); }
[data-theme='dark'] .wa__top { background: #1f2c34; }
[data-theme='dark'] .wday { background: #182229; color: #8696a0; }
[data-theme='dark'] .wb { color: #e9edef; box-shadow: none; } [data-theme='dark'] .wb--in { background: #202c33; } [data-theme='dark'] .wb--out { background: #005c4b; }
[data-theme='dark'] .wb__m { color: #8696a0; } [data-theme='dark'] .wbtn { background: #202c33; color: #53bdeb; box-shadow: none; } [data-theme='dark'] .wbtn.tapped { background: #2a3942; }
[data-theme='dark'] .wdoc { background: rgba(255, 255, 255, 0.06); } [data-theme='dark'] .wdoc small { color: #8696a0; }
[data-theme='dark'] .wa__in { background: #1f2c34; } [data-theme='dark'] .wa__field { background: #2a3942; color: #e9edef; }
.wsteps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: st; }
.wsteps li { position: relative; padding: 14px 16px 14px 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); opacity: 0.5; transition: opacity 0.45s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.wsteps li::before { counter-increment: st; content: counter(st); position: absolute; left: 14px; top: 14px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--muted); font: 700 0.85rem var(--font-h); transition: background-color 0.3s, color 0.3s; }
.wsteps li.on { opacity: 1; border-color: var(--copper); box-shadow: var(--shadow-card); } .wsteps li.on::before { background: var(--copper); color: #fff; }
.wsteps li.done { opacity: 0.8; } .wsteps li.done::before { content: '✓'; background: var(--pass); color: #fff; }
.wsteps b { display: block; font-family: var(--font-h); font-weight: 700; font-size: 1.08rem; line-height: 1.2; }
.wsteps span { display: block; margin-top: 3px; font-size: 0.86rem; color: var(--muted); }

@media (max-width: 1180px) { .tstage { grid-template-columns: minmax(0, 1fr) 350px; } }
@media (max-width: 1080px) { .split--wa { grid-template-columns: 1fr; } .vgrid { grid-template-columns: repeat(2, 1fr); } .wdemo { max-width: 760px; margin-inline: auto; width: 100%; } }
@media (max-width: 960px) {
  .tstage { grid-template-columns: 1fr; height: auto; }
  .tstage__app { aspect-ratio: 16 / 10; }
  .tpanel { height: 520px; }
}
@media (max-width: 760px) { .wa { grid-template-columns: 1fr; justify-items: center; } .wsteps { width: 100%; } }
@media (max-width: 640px) {
  .tstage__badge { left: 8px; bottom: 8px; padding: 6px 10px; gap: 8px; font-size: 0.72rem; border-radius: 10px; max-width: calc(100% - 16px); }
  .tstage__badge .ico { width: 15px; height: 15px; }
  .vgrid { grid-template-columns: 1fr; }
  .dtab { padding: 8px 12px; font-size: 0.84rem; }
  .demo__bar { justify-content: flex-start; }
  .wphone { width: min(318px, 100%); }
}
@media (prefers-reduced-motion: reduce) {
  .tm-chart .ln { stroke-dashoffset: 0; } .tm-chart .pt { opacity: 1; } .pop { animation: none; }
}

.tm-split { align-self: stretch; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); }
.tm-split h4 { margin: 0 0 10px; font: 600 0.64rem var(--font-m); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tm-split .bar { display: flex; gap: 3px; height: 14px; border-radius: 7px; overflow: hidden; }
.tm-split .bar .s { display: block; width: 0; flex: none; }
.tm-split.pop .bar .s { animation: grow 1.1s var(--ease) 0.25s forwards; }
@keyframes grow { to { width: var(--w); } }
.tm-split .s--ok { background: #0f9d74; } .tm-split .s--mon { background: #d97706; } .tm-split .s--fail { background: #e0394d; } .tm-split .s--none { background: #6b7782; }
.tm-split ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 0.76rem; color: var(--ink-2); }
.tm-split li { display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.tm-split li i { width: 9px; height: 9px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) { .tm-split .bar .s { width: var(--w); animation: none; } }

/* ═════════════ 3D scanning service ═════════════ */
@keyframes sdpulse { 0% { transform: scale(0.5); opacity: 0.9; } 100% { transform: scale(2.6); opacity: 0; } }
.sdemo .dtabs { background: var(--surface); box-shadow: var(--shadow-card); }
.sdemo .ctl { background: var(--surface); }
.sdemo .demo__note { text-align: left; }
.sdemo .demo__text summary { margin-inline: 0; }
.sstage { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 18px; align-items: stretch; }
.sstage__view { margin: 0; display: flex; flex-direction: column; }
.sstage__canvas { position: relative; background: radial-gradient(80% 90% at 50% 0%, #131c24, #070b0f); }
.sdgl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sdgl.is-off { display: none; }
.sdsvg { position: relative; z-index: 1; }
.sdsvg { display: block; width: 100%; height: auto; }
.sdsvg text { font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.02em; fill: #d7e0e7; paint-order: stroke; stroke: #070b0f; stroke-width: 3px; stroke-linejoin: round; }
.sdsvg text.sm { font-size: 10px; fill: #9fb0bd; }
.sdsvg .grid line { stroke: rgba(255, 255, 255, 0.05); stroke-width: 1; }
.sdsvg .nominal { fill: none; stroke: rgba(233, 238, 242, 0.85); stroke-width: 1.4; stroke-dasharray: 6 5; }
.sdsvg .dim { fill: none; stroke: #e9eef2; stroke-width: 1.3; }
.sdsvg .dim--dash { stroke-dasharray: 4 4; stroke: rgba(233, 238, 242, 0.7); }
.sdsvg .surf { fill: none; stroke: #a9bccb; stroke-width: 1.8; stroke-linejoin: round; }
.sdsvg text.val { font-weight: 600; fill: #fff; font-size: 12px; }
.sdsvg .fade { opacity: 0; transition: opacity 0.6s var(--ease); }
.sdsvg .fade.on { opacity: 1; }
.sdsvg .cloud { transition: opacity 0.6s; } .sdsvg .cloud.dim { opacity: 0.25; }
.sdsvg .pulse { fill: none; stroke: #ffb347; stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: sdpulse 1.9s ease-out infinite; }
.sdsvg .bar { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 0.9s var(--ease); }
.sdsvg .bar.on { transform: none; }
.sdsvg .proj { fill: none; stroke: #ffb347; stroke-width: 2; stroke-dasharray: 6 5; stroke-dashoffset: 1; }
.sdsvg .thr { fill: none; stroke-width: 1.3; stroke-dasharray: 6 5; }
.is-paused .sdsvg .pulse { animation-play-state: paused; }
.slegend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 12px 16px 14px; min-height: 64px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.74rem; color: #98a6b3; }
.slegend__t { font: 500 0.64rem var(--font-m); letter-spacing: 0.1em; text-transform: uppercase; color: #98a6b3; }
.slegend__bar { position: relative; flex: 1 1 220px; min-width: 200px; height: 10px; margin-bottom: 34px; border-radius: 5px; background: var(--bar); }
.slegend__bar i { position: absolute; top: 15px; left: var(--at); transform: translateX(-50%); font-style: normal; white-space: nowrap; color: #c0cad2; }
.slegend__bar i small { display: block; margin-top: 1px; font-size: 0.92em; color: #8795a2; }
.slegend__bar i:first-child { transform: none; } .slegend__bar i:last-child { transform: translateX(-100%); }
.slegend__n { flex-basis: 100%; font-size: 0.72rem; color: #7f8e9b; }
.slegend .sw { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; vertical-align: -1px; }
.slegend .sw--ok { background: #0f9d74; } .slegend .sw--mon { background: #d97706; } .slegend .sw--fail { background: #e0394d; }

.spanel { display: flex; flex-direction: column; gap: 16px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.spanel__head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.spanel__head b { display: block; font: 700 1.2rem/1.15 var(--font-h); }
.spanel__head small { display: block; margin-top: 3px; font-size: 0.78rem; color: var(--muted); }
.sdemo .tstate { margin-left: 0; flex: none; background: var(--ground); border: 1px solid var(--line); color: var(--muted); }
.sdemo .tstate[data-s='busy'] { color: var(--copper-ink); background: rgba(242, 166, 90, 0.16); border-color: transparent; }
.sdemo .tstate[data-s='done'] { color: var(--copper-ink); background: rgba(217, 119, 6, 0.14); border-color: transparent; }
.sdemo .tstate[data-s='pass'] { color: var(--pass); background: rgba(15, 157, 116, 0.14); border-color: transparent; }
.scards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.scard { padding: 10px 11px; border-radius: 12px; border: 1px solid var(--line); background: var(--ground); opacity: 0.5; transform: translateY(4px); transition: opacity 0.45s var(--ease), transform 0.5s var(--ease), border-color 0.3s; }
.scard.on { opacity: 1; transform: none; border-color: var(--copper); }
.scard span { display: block; font: 500 0.6rem var(--font-m); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.scard b { display: block; margin-top: 5px; font: 800 1.3rem/1.1 var(--font-h); font-variant-numeric: tabular-nums; white-space: nowrap; }
.scard b em { font-style: normal; font-size: 0.62em; font-weight: 700; margin-left: 2px; color: var(--muted); }
.scard small { display: block; margin-top: 4px; font-size: 0.68rem; line-height: 1.3; color: var(--muted); }
.scard--mon.on b { color: var(--mon); } .scard--ok.on b { color: var(--pass); } .scard--fail.on b { color: var(--fail); }
.sdsteps { gap: 10px; }
.sdsteps li { padding: 11px 14px 11px 48px; }
.sdsteps li::before { left: 12px; top: 11px; width: 26px; height: 26px; }

.scanlists { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 64px; }
.scanlist { padding: 26px 26px 28px; }
.scanlist h3 { font-family: var(--font-h); font-weight: 800; font-size: 1.4rem; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags li { padding: 7px 12px; border-radius: 999px; background: var(--ground); border: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); transition: border-color 0.25s, transform 0.3s var(--ease); }
.tags li:hover { border-color: var(--copper); transform: translateY(-2px); }
#scanning .cards3 { margin-top: 18px; }
.scancta { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; margin-top: 18px; padding: clamp(24px, 3.4vw, 40px); border-radius: 24px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-card); }
.scancta > div { flex: 1 1 420px; max-width: 70ch; }
.scancta h3 { font-family: var(--font-h); font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; }
.scancta p { margin-top: 8px; color: var(--muted); font-size: 0.97rem; }

@media (max-width: 1180px) { .sstage { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 960px) { .sstage { grid-template-columns: 1fr; } .scanlists { grid-template-columns: 1fr; margin-top: 44px; } }
@media (max-width: 640px) { .slegend__t, .slegend__bar { flex-basis: 100%; } .sdsvg text { font-size: 14px; } .sdsvg text.sm { font-size: 12px; } .sdsvg text.val { font-size: 14px; } .scards { grid-template-columns: 1fr; } .scard { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; align-items: baseline; } .scard span, .scard small { grid-column: 1 / -1; } .scard b { grid-column: 2; grid-row: 1; margin: 0; } .scard span { grid-column: 1; grid-row: 1; } }
@media (prefers-reduced-motion: reduce) { .sdsvg .bar { transform: none; } .sdsvg .pulse { animation: none; opacity: 0.5; } .scard { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  .sdemo .dtab { padding: 8px 9px; font-size: 0.8rem; }
  .sdemo .dtabs { gap: 2px; }
  .sdsvg.chain text { font-size: 17px; stroke-width: 4px; } .sdsvg.chain text.sm { font-size: 16px; }
}
@media (max-width: 480px) {
  .sdemo .dtabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 4px; }
  .sdemo .dtab { min-height: 44px; padding: 8px; font-size: 0.86rem; text-align: center; }
}

/* ───────────── Questions (FAQ) ───────────── */
.faq { max-width: 860px; margin: clamp(36px, 5vw, 56px) auto 0; display: grid; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-card); transition: border-color 0.25s; }
.faq__item[open] { border-color: color-mix(in srgb, var(--copper) 45%, var(--line)); }
.faq__item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 22px; cursor: pointer; border-radius: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:focus-visible { outline: 2px solid var(--copper); outline-offset: 2px; }
.faq__item summary h3 { font-family: var(--font-h); font-weight: 700; font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.25; }
.faq__pm { flex: none; position: relative; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); transition: background-color 0.25s, border-color 0.25s; }
.faq__item summary:hover .faq__pm { border-color: var(--copper); }
.faq__pm::before, .faq__pm::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: var(--copper); transition: transform 0.35s var(--ease); }
.faq__pm::after { transform: rotate(90deg); }
.faq__item[open] .faq__pm::after { transform: rotate(0deg); }
.faq__a { padding: 0 22px 20px; }
.faq__a p { max-width: 70ch; color: var(--muted); font-size: 0.98rem; line-height: 1.62; }
.faq__a a { color: var(--copper-ink); font-weight: 600; text-underline-offset: 3px; }
.faq__item[open] .faq__a { animation: fade-up 0.5s var(--ease); }

/* ───────────── Contact form: email or WhatsApp ───────────── */
.cta__btns { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin-top: 6px; }
.cta__form .cta__btns .btn { margin-top: 0; width: 100%; justify-content: center; }
.btn--wa { color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.42); }
.btn--wa:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-2px); }
.scancta__copy { flex: 1 1 420px; max-width: 70ch; }
.scancta > .btn { flex: none; }

/* ───────────── Phone: a contact bar once the hero has gone ───────────── */
.mcta { display: none; }
@media (max-width: 640px) {
  .mcta { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 10px; transform: translateY(150%); visibility: hidden; transition: transform 0.45s var(--ease), visibility 0s linear 0.45s; }
  .mcta.on { transform: none; visibility: visible; transition: transform 0.45s var(--ease), visibility 0s; }
  .mcta .btn { min-height: 48px; box-shadow: var(--shadow-lift); }
  .mcta .btn--primary { flex: 1; justify-content: center; }
  .mcta__wa { width: 52px; padding: 0; justify-content: center; }
  .foot__in { padding-bottom: 76px; }
}

/* ───────────── Page head (pages other than the landing page) ───────────── */
.phero { position: relative; padding: calc(var(--nav-h) + 40px) 0 clamp(56px, 8vw, 104px); overflow: hidden; }
.phero__in { position: relative; }
.phero__in > * { max-width: 880px; }
.phero__h1 { font-family: var(--font-h); font-weight: 800; font-size: clamp(2.3rem, 5vw, 4.1rem); line-height: 1.02; letter-spacing: -0.015em; margin-top: 18px; text-wrap: balance; animation: fade-up 0.9s var(--ease) both; }
.phero .lead { animation: fade-up 0.9s var(--ease) 0.15s both; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 0.86rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 8px; opacity: 0.6; }
.crumbs a { color: var(--copper-ink); font-weight: 600; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.scanlists--first { margin-top: clamp(32px, 4vw, 48px); }
.head--sub { margin-top: clamp(56px, 7vw, 88px); }
@media (prefers-reduced-motion: reduce) { .phero__h1, .phero .lead, .faq__item[open] .faq__a { animation: none; } .mcta, .mcta.on { transition: none; } }
