/* Tagcloud — Apple-calm layout, shadcn components, industrial dot-matrix models */
:root {
  --ink: #05111a;
  --ink-2: #1c2730;
  --text-2: #5f6670;
  --text-3: #8a9099;
  --bg: #ffffff;
  --grey: #f5f5f7;
  --grey-2: #ececee;
  --line: rgba(5,17,26,.09);
  --line-2: rgba(5,17,26,.14);
  --z100: #f4f4f5;
  --z200: #e4e4e7;
  --night: #000000;
  --night-2: #0d0f11;
  --night-3: #16191c;
  --on-night: #f5f5f7;
  --on-night-2: #a1a1a6;
  --on-night-3: #6e6e73;
  --accent: #ff5b1f;          /* tag orange: only the tag, the scan and "done" */
  --accent-soft: #fff1ea;
  --ok: #2e9e5b;
  --warn: #d99a1e;
  --bad: #dc2626;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --wrap: 1120px;
  --gut: 24px;
  --nav-h: 52px;
  --sec: clamp(96px, 12vw, 160px);
  --r-tile: 28px;
  --r-card: 12px;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.5; letter-spacing: -0.011em; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.wrap--wide { max-width: 1280px; }

/* ---------- Buttons (shadcn shapes, Apple pill) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; transition: background .2s, color .2s, transform .15s, box-shadow .2s; }
.btn:active { transform: scale(.98); }
.btn--sm { height: 30px; padding: 0 14px; font-size: 13px; }
.btn--lg { height: 50px; padding: 0 26px; font-size: 16px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--ink-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e8e8ea; }
.btn--outline { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--z200); }
.btn--outline:hover { background: var(--z100); }
/* Apple "Learn more ›" link */
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; color: var(--ink); }
.more::after { content: "›"; font-size: 1.25em; line-height: 1; transform: translateY(-1px); transition: transform .2s; }
.more:hover::after { transform: translate(3px, -1px); }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.more--light { color: var(--on-night); }

/* ---------- Small shadcn parts ---------- */
.card { background: #fff; border-radius: var(--r-card); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(5,17,26,.04), 0 8px 24px -12px rgba(5,17,26,.12); }
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; letter-spacing: 0; white-space: nowrap; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.badge--soft { background: var(--z100); box-shadow: none; color: var(--text-2); vertical-align: 2px; margin-left: 4px; }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; flex: none; }
.dot--ok { background: var(--ok); } .dot--warn { background: var(--warn); } .dot--bad { background: var(--bad); }
.dot--accent { background: var(--accent); box-shadow: 0 0 0 3px rgba(255,91,31,.18); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chips span { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--z100); color: var(--text-2); }
.glyph { width: 30px; height: 30px; border-radius: 8px; background: var(--ink); flex: none; position: relative; }
.glyph::after { content: ""; position: absolute; inset: 10px; border-radius: 2px; background: var(--accent); }

/* ---------- NAV (Apple-thin, frosted; turns dark over dark sections) ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); background: rgba(255,255,255,.78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); box-shadow: 0 1px 0 var(--line); transition: background .35s, box-shadow .35s; }
.nav.is-dark { background: rgba(0,0,0,.72); box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.nav__logo { position: relative; display: block; width: 104px; height: 20px; flex: none; }
.nav__logo img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .35s; }
.nav .logo-light { opacity: 0; }
.nav.is-dark .logo-light { opacity: 1; }
.nav.is-dark .logo-dark { opacity: 0; }
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__links a { padding: 6px 12px; font-size: 13px; color: var(--text-2); transition: color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--ink); }
.nav.is-dark .nav__links a { color: var(--on-night-2); }
.nav.is-dark .nav__links a:hover, .nav.is-dark .nav__links a.is-active { color: var(--on-night); }
.nav__cta { display: flex; align-items: center; gap: 8px; }
.nav.is-dark .btn--primary { background: #fff; color: var(--ink); }
.nav__burger { display: none; width: 32px; height: 32px; position: relative; }
.nav__burger span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease); }
.nav.is-dark .nav__burger { color: var(--on-night); }
.nav__burger span:first-child { top: 12px; }
.nav__burger span:last-child { top: 19px; }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; background: var(--night); color: var(--on-night); padding: calc(var(--nav-h) + clamp(40px, 7vh, 88px)) 0 clamp(32px, 5vh, 56px); overflow: hidden; text-align: center; }
/* faint floor light under the model */
.hero::before { content: ""; position: absolute; left: 50%; bottom: 8%; width: min(1100px, 120%); height: 46%; transform: translateX(-50%); background: radial-gradient(50% 50% at 50% 60%, rgba(255,255,255,.06), transparent 70%); pointer-events: none; }
.eyebrow { font-size: clamp(15px, 1.4vw, 19px); font-weight: 500; color: var(--on-night-2); letter-spacing: -0.01em; }
.eyebrow span { color: var(--accent); padding: 0 2px; }
.hero__title { margin-top: 12px; font-size: clamp(44px, 7vw, 88px); letter-spacing: -0.045em; line-height: 1.02;
  background: linear-gradient(180deg, #ffffff 30%, #b9bcc2); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.hero__lead { max-width: 620px; margin: 18px auto 0; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.4; color: var(--on-night-2); letter-spacing: -0.015em; }
.hero__actions { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }

.hero__stage { position: relative; height: clamp(300px, calc(100svh - 540px), 540px); max-width: 1240px; margin: clamp(16px, 4vh, 40px) auto 0; }
#heroDots { width: 100%; height: 100%; }

/* Floating record card that follows the orange tag */
.callout { position: absolute; left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity .5s; will-change: transform; }
.callout.is-on { opacity: 1; }
.callout__line { position: absolute; left: 0; top: 0; width: 72px; height: 1px; background: linear-gradient(90deg, rgba(255,91,31,.8), rgba(255,255,255,.35)); transform-origin: 0 0; transform: rotate(-32deg); }
.callout__card { position: absolute; left: 60px; top: -62px; display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 10px; border-radius: 12px; text-align: left; white-space: nowrap;
  background: rgba(22,25,28,.72); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px rgba(0,0,0,.4); }
.callout__tag { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); position: relative; flex: none; }
.callout__tag::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.9); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.callout b { display: block; font-size: 13px; font-weight: 500; color: var(--on-night); }
.callout small { display: block; font-size: 11.5px; color: var(--on-night-2); }
.callout.is-left .callout__line { transform: rotate(-148deg); }
.callout.is-left .callout__card { left: auto; right: 60px; }

/* Industry switcher: segmented control with autoplay progress */
.ind { display: inline-flex; gap: 2px; padding: 4px; margin-top: 8px; border-radius: 999px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ind::-webkit-scrollbar { display: none; }
.ind button { flex: none; position: relative; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; color: var(--on-night-2); white-space: nowrap; overflow: hidden; transition: color .25s, background .25s; }
.ind button:hover { color: var(--on-night); }
.ind button[aria-selected="true"] { color: var(--on-night); background: rgba(255,255,255,.1); }
.ind button i { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 1.5px; border-radius: 2px; background: rgba(255,255,255,.12); opacity: 0; transition: opacity .25s; }
.ind button i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.ind button[aria-selected="true"] i { opacity: 1; }

/* Entrance */
.rise { animation: rise 1.2s var(--ease) both; }
.hero .rise:nth-child(2) { animation-delay: .08s; }
.hero .rise:nth-child(3) { animation-delay: .16s; }
.hero .rise:nth-child(4) { animation-delay: .24s; }
.hero__stage.rise { animation-delay: .35s; animation-duration: 1.8s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- LOGOS ---------- */
.logos-sec { padding: 56px 0 8px; }
.logos-sec__label { text-align: center; font-size: 14px; color: var(--text-3); }
.logos { margin-top: 22px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.logos__track { list-style: none; margin: 0; padding: 0; display: flex; width: max-content; animation: logos 50s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
.logos li { display: flex; align-items: center; gap: 9px; margin-right: 60px; height: 44px; white-space: nowrap; opacity: .5; filter: grayscale(1); transition: opacity .2s; }
.logos li:hover { opacity: .9; }
.logos img { width: 22px; height: 22px; }
.logos img.big { width: 40px; height: 40px; }
.logos li span { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
@keyframes logos { to { transform: translateX(-50%); } }

/* ---------- STATEMENT (scroll-lit words) ---------- */
.statement { padding: clamp(96px, 14vw, 180px) 0; }
.statement__text { max-width: 980px; margin: 0 auto; font-size: clamp(30px, 4.4vw, 54px); font-weight: 600; line-height: 1.14; letter-spacing: -0.035em; text-wrap: balance; }
.statement__text .w { color: #d2d4d8; transition: color .35s; }
.statement__text .w.is-lit { color: var(--ink); }
.statement__text .w.is-tag { color: #f7c7b3; }
.statement__text .w.is-tag.is-lit { color: var(--accent); }

/* ---------- SECTIONS ---------- */
.sec { padding: var(--sec) 0; }
.sec--grey { background: var(--grey); }
.sec--top-0 { padding-top: 0; }
.head { text-align: center; max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); }
.head h2 { font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.04em; }
.head p { margin-top: 16px; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-2); line-height: 1.4; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease) var(--d, 0s), transform 1s var(--ease) var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- BENTO ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile { position: relative; background: var(--grey); border-radius: var(--r-tile); padding: clamp(28px, 3vw, 40px); overflow: hidden; }
.tile__text { position: relative; z-index: 1; }
.tile h3 { font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -0.03em; line-height: 1.12; max-width: 16ch; }
.tile__text > p:not(.kicker) { margin-top: 10px; color: var(--text-2); font-size: 16px; max-width: 34ch; }
.kicker { font-size: 14px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.tile--id { grid-column: span 7; min-height: 560px; display: flex; flex-direction: column; }
.tile--ai { grid-column: span 5; min-height: 560px; display: flex; flex-direction: column; }
.tile--spec { grid-column: span 3; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; }
.tile--spec b { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.045em; line-height: 1; }
.tile--spec p { margin-top: 10px; font-size: 15px; color: var(--text-2); }
.tile--sys, .tile--insp, .tile--sec { grid-column: span 4; min-height: 400px; display: flex; flex-direction: column; }
.tile--dark { background: var(--night-2); color: var(--on-night); }
.tile--dark .kicker { color: var(--on-night-2); }

/* Tagcloud ID: 3D tag */
.tag-stage { flex: 1; display: grid; place-items: center; perspective: 1100px; position: relative; min-height: 340px; }
.tag { position: relative; width: 210px; aspect-ratio: 1 / 1.18; transform-style: preserve-3d; transform: rotateX(18deg) rotateY(-24deg) rotateZ(2deg); transition: transform .5s var(--ease); z-index: 1; }
.tag__face { position: absolute; inset: 0; background: linear-gradient(145deg, #3a3d40, #24272a 55%, #05111a); clip-path: polygon(0 0, 78% 0, 100% 18%, 100% 100%, 0 100%); padding: 9% 10%; display: flex; flex-direction: column; transform: translateZ(8px); }
.tag__face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.12) 45%, transparent 60%); background-size: 250% 100%; background-position: var(--sheen, 50%) 0; pointer-events: none; }
.tag__edge { position: absolute; inset: 0; background: #0a0a0a; clip-path: polygon(0 0, 78% 0, 100% 18%, 100% 100%, 0 100%); }
.tag__hole { width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--grey); box-shadow: inset 0 2px 3px rgba(5,17,26,.6), 0 0 0 3px #6b6b6b; }
.tag__brand { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; color: #f5f5f7; margin-top: 10%; }
.tag__code { margin-top: 8%; width: 46%; aspect-ratio: 1; display: grid; grid-template-columns: repeat(13, 1fr); background: #f5f5f7; padding: 4%; }
.tag__code i { background: var(--ink); }
.tag__code i.o { background: transparent; }
.tag__serial { margin-top: auto; font-family: var(--mono); font-size: 8px; color: #b8bcc2; letter-spacing: .08em; }
.tag__nfc { position: absolute; right: 10%; bottom: 9%; width: 22%; aspect-ratio: 1; }
.tag__nfc i { position: absolute; border: 1.5px solid var(--accent); border-left-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(45deg); }
.tag__nfc i:nth-child(1) { inset: 35%; } .tag__nfc i:nth-child(2) { inset: 18%; } .tag__nfc i:nth-child(3) { inset: 0; }
.tag__shadow { position: absolute; width: 200px; height: 28px; bottom: 12%; left: 50%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(5,17,26,.25), transparent 70%); filter: blur(6px); }

/* Tagcloud AI: chat card */
.chat { margin-top: auto; padding: 14px; display: grid; gap: 10px; font-size: 13.5px; }
.chat__asset { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.chat__asset div { flex: 1; min-width: 0; }
.chat__asset b { display: block; font-weight: 500; }
.chat__asset small { display: block; font-size: 12px; color: var(--text-3); }
.chat__q { justify-self: end; max-width: 82%; background: var(--ink); color: #fff; padding: 8px 13px; border-radius: 14px 14px 4px 14px; }
.chat__a { background: var(--z100); padding: 11px 13px; border-radius: 14px 14px 14px 4px; min-height: 112px; }
.chat__by { font-size: 11.5px; color: var(--text-3); margin-bottom: 3px; }
.chat .chips { opacity: 0; transition: opacity .5s; }
.chat.is-done .chips { opacity: 1; }
.chips span { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.chat__input { display: flex; justify-content: space-between; align-items: center; border-radius: 999px; padding: 6px 6px 6px 14px; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--z200); }
.chat__input span { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; }
.chat__input svg { width: 13px; height: 13px; }

/* Connected: hub row */
.hubs { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr auto 1fr 1fr; align-items: center; gap: 8px; position: relative; }
.hubs::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; height: 1px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.hubs span { position: relative; height: 36px; display: grid; place-items: center; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 12px; font-weight: 500; font-family: var(--mono); color: var(--text-2); }
.hubs .hubs__core { width: 56px; height: 56px; border-radius: 16px; background: var(--ink); box-shadow: 0 8px 20px -6px rgba(5,17,26,.5); }
.hubs__core img { width: 26px; filter: invert(1); }

/* Inspections */
.checks { margin-top: auto; padding: 6px 14px 12px; font-size: 13.5px; }
.checks__row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.checks__row i { font-style: normal; font-size: 11.5px; font-weight: 500; padding: 2px 9px; border-radius: 999px; }
.checks__row i.ok { background: var(--z100); color: var(--text-2); }
.checks__row i.bad { background: #fdecec; color: var(--bad); }
.checks__done { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checks__done::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Security list */
.ticks { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 0; }
.ticks li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid rgba(255,255,255,.08); font-size: 15px; color: var(--on-night); }
.ticks li::before { content: ""; width: 14px; height: 14px; flex: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a1a1a6' stroke-width='1.6'%3E%3Cpath d='M3 8.5l3 3L13 4.5'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- HOW IT WORKS ---------- */
.how { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.how__steps { list-style: none; margin: 0; padding: 0; }
.how__step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; opacity: .28; transition: opacity .5s var(--ease); max-width: 420px; }
.how__step:first-child { min-height: 60vh; }
.how__step.is-on { opacity: 1; }
.how__n { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line-2); font-size: 14px; font-weight: 500; margin-bottom: 20px; }
.how__step.is-on .how__n { background: var(--ink); color: #fff; box-shadow: none; }
.how__step h3 { font-size: clamp(32px, 3.6vw, 44px); letter-spacing: -0.04em; }
.how__step p { margin-top: 14px; font-size: clamp(17px, 1.5vw, 20px); color: var(--text-2); line-height: 1.45; }
.how__device { position: sticky; top: calc(var(--nav-h) + max(24px, (100vh - var(--nav-h) - 640px) / 2)); display: grid; place-items: center; }

/* Phone */
.phone { width: 300px; height: 620px; border-radius: 52px; padding: 11px; background: linear-gradient(145deg, #2a2d31, #0b0c0e); box-shadow: inset 0 0 0 1.5px #3b3f44, 0 40px 80px -30px rgba(5,17,26,.45), 0 20px 30px -20px rgba(5,17,26,.3); }
.phone__screen { position: relative; height: 100%; border-radius: 42px; background: #fff; overflow: hidden; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 0; font-size: 13px; font-weight: 600; height: 46px; }
.phone__island { width: 92px; height: 26px; border-radius: 999px; background: #000; }
.screen { position: absolute; inset: 56px 16px 18px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .55s var(--ease), transform .55s var(--ease); pointer-events: none; font-size: 13.5px; }
.phone[data-screen="0"] [data-s="0"], .phone[data-screen="1"] [data-s="1"], .phone[data-screen="2"] [data-s="2"] { opacity: 1; transform: none; }
.screen--scan { align-items: center; justify-content: center; text-align: center; gap: 28px; }
.screen__hint { font-size: 20px; font-weight: 600; letter-spacing: -0.03em; }
.scan { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.scan__ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: ring 2.4s var(--ease) infinite; }
.scan__ring + .scan__ring { animation-delay: 1.2s; }
.scan__tag { width: 64px; height: 76px; border-radius: 10px; background: linear-gradient(145deg, #3a3d40, #05111a); clip-path: polygon(0 0, 78% 0, 100% 18%, 100% 100%, 0 100%); position: relative; }
.scan__tag::after { content: ""; position: absolute; right: 9px; bottom: 9px; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--accent); border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
@keyframes ring { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
.screen__found { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--z100); font-size: 13px; font-weight: 500; }
.ph-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 6px 2px 4px; }
.ph-head b { display: block; font-size: 19px; letter-spacing: -0.03em; font-weight: 600; }
.ph-head small { display: block; font-size: 12px; color: var(--text-3); }
.ph-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-tiles span { padding: 12px; border-radius: 14px; background: var(--grey); min-height: 74px; display: flex; flex-direction: column; justify-content: flex-end; }
.ph-tiles b { font-weight: 600; font-size: 14px; }
.ph-tiles small { font-size: 11.5px; color: var(--text-3); }
.ph-row { display: flex; justify-content: space-between; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.ph-row span { color: var(--text-2); }
.ph-row b { font-weight: 500; }
.ph-q { align-self: flex-end; margin-top: 6px; background: var(--ink); color: #fff; padding: 8px 13px; border-radius: 16px 16px 4px 16px; }
.ph-a { background: var(--grey); padding: 11px 13px; border-radius: 16px 16px 16px 4px; line-height: 1.45; }
.ph-a small { display: block; font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.ph-a .chips span { background: #fff; }
.ph-done { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.ph-done b { display: block; font-weight: 500; }
.ph-done small { display: block; font-size: 12px; color: var(--text-3); }
.ph-btn { height: 44px; border-radius: 999px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 500; }

/* ---------- WEB APP ---------- */
.browser { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 50px 100px -40px rgba(5,17,26,.35), 0 20px 40px -24px rgba(5,17,26,.2); transform-origin: 50% 0; transform: scale(var(--s, .9)); transition: transform .1s linear; }
.browser__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 16px; background: var(--grey); border-bottom: 1px solid var(--line); }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--z200); }
.browser__bar span { margin: 0 auto; transform: translateX(-24px); font-size: 12px; color: var(--text-3); background: #fff; padding: 3px 14px; border-radius: 7px; box-shadow: 0 0 0 1px var(--line); }
.web { display: grid; grid-template-columns: 190px 1fr; min-height: 520px; font-size: 13.5px; }
.web__side { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; border-right: 1px solid var(--line); background: #fcfcfc; }
.web__mark { width: 24px; margin: 0 8px 16px; }
.web__side span { padding: 7px 10px; border-radius: 8px; color: var(--text-2); }
.web__side span.is-on { background: var(--z100); color: var(--ink); font-weight: 500; }
.web__main { padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.web__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.web__top b { display: block; font-size: 20px; letter-spacing: -0.03em; font-weight: 600; }
.web__top small { color: var(--text-3); font-size: 12.5px; }
.web__search { width: 260px; height: 34px; display: flex; align-items: center; padding: 0 12px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--z200); color: var(--text-3); font-size: 13px; }
.web__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.web__stats .card { padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.web__stats small { display: block; font-size: 12px; color: var(--text-3); }
.web__stats b { display: block; margin-top: 2px; font-size: 26px; font-weight: 600; letter-spacing: -0.04em; }
.web__grid { display: grid; grid-template-columns: 1fr 260px; gap: 12px; }
.web__tablewrap { box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.web__table { width: 100%; border-collapse: collapse; }
.web__table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fcfcfc; }
.web__table td { padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; color: var(--text-2); }
.web__table td:first-child { color: var(--ink); }
.web__table td b { font-weight: 500; margin-right: 4px; }
.web__table tr:last-child td { border-bottom: 0; }
.web__table tr.is-live td { background: linear-gradient(90deg, rgba(255,91,31,.07), transparent 60%); }
.web__table tr.is-live td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
.web__feed { padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.web__feed-h { font-size: 12px; color: var(--text-3); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.web__feed-h::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.web__feed ul { list-style: none; margin: 0; padding: 0; }
.web__feed li { padding: 9px 0; border-bottom: 1px solid var(--line); animation: feedIn .5s var(--ease); }
.web__feed li:last-child { border-bottom: 0; }
.web__feed li b { font-weight: 500; }
.web__feed small { display: block; font-size: 12px; color: var(--text-3); }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- INDUSTRIES ---------- */
.uses { display: grid; grid-template-columns: 5fr 7fr; gap: 16px; align-items: stretch; }
.uses__list { display: flex; flex-direction: column; gap: 4px; }
.use { display: block; width: 100%; padding: 16px 22px; border-radius: 18px; transition: background .3s; }
.use:hover { background: rgba(5,17,26,.035); }
.use.is-on { background: #fff; box-shadow: 0 0 0 1px var(--line), 0 6px 20px -12px rgba(5,17,26,.18); }
.use__k { display: block; font-size: 13px; color: var(--text-3); }
.use__t { display: block; font-size: 19px; font-weight: 600; letter-spacing: -0.025em; color: var(--text-2); transition: color .3s; }
.use.is-on .use__t { color: var(--ink); }
.use__b { display: grid; grid-template-rows: 0fr; overflow: hidden; font-size: 15.5px; color: var(--text-2); line-height: 1.45; transition: grid-template-rows .45s var(--ease), margin .45s var(--ease), opacity .45s; opacity: 0; }
.use.is-on .use__b { grid-template-rows: 1fr; margin-top: 6px; opacity: 1; }
/* grid-rows trick needs an inner element; the text node is wrapped by JS */
.use__b > span { min-height: 0; }
.uses__stage { position: relative; display: flex; flex-direction: column; border-radius: var(--r-tile); background: #fff; min-height: 560px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
#useDots { flex: 1 1 0; width: 100%; min-height: 280px; }
.record { margin: 0 20px 20px; max-width: 380px; padding: 14px 16px; font-size: 13.5px; transition: opacity .3s, transform .3s var(--ease); }
.record.is-swap { opacity: 0; transform: translateY(8px); }
.record__head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.record__head div { flex: 1; min-width: 0; }
.record__head b { display: block; font-weight: 500; }
.record__head small { display: block; font-size: 12px; color: var(--text-3); }
.record__row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.record__row:last-child { border-bottom: 0; padding-bottom: 0; }
.record__row span { color: var(--text-2); }
.record__row b { font-weight: 500; text-align: right; }

/* ---------- CUSTOMERS ---------- */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.case { border-radius: var(--r-tile); overflow: hidden; background: var(--grey); display: flex; flex-direction: column; }
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; filter: grayscale(.3) contrast(1.02); }
.case__body { padding: 26px 28px 30px; }
.case__ind { font-size: 13px; color: var(--text-3); }
.case__stat { margin-top: 10px; font-size: clamp(36px, 3.6vw, 48px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; }
.case__k { margin-top: 6px; font-weight: 500; }
.case__p { margin-top: 14px; font-size: 15.5px; color: var(--text-2); }

/* ---------- FAQ (shadcn accordion) ---------- */
.faq { max-width: 820px; }
.faq h2 { text-align: center; font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -0.04em; margin-bottom: 40px; }
.faq__list details { border-bottom: 1px solid var(--line-2); }
.faq__list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: ""; width: 10px; height: 10px; flex: none; border-right: 1.6px solid var(--text-2); border-bottom: 1.6px solid var(--text-2); transform: translateY(-3px) rotate(45deg); transition: transform .3s var(--ease); }
.faq__list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__list details p { padding: 0 40px 24px 0; color: var(--text-2); font-size: 16.5px; }

/* ---------- CTA ---------- */
.cta { background: var(--night); color: var(--on-night); padding: var(--sec) 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; left: 50%; top: -30%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(255,91,31,.12), transparent); pointer-events: none; }
.cta__in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.cta h2 { font-size: clamp(40px, 5.6vw, 68px); letter-spacing: -0.045em; background: linear-gradient(180deg, #fff 30%, #b9bcc2); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.cta__copy p { margin-top: 18px; font-size: clamp(18px, 1.6vw, 21px); color: var(--on-night-2); max-width: 30ch; }
.form { position: relative; padding: 24px; display: grid; gap: 14px; color: var(--ink); border-radius: 20px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
.form .opt { color: var(--text-3); font-weight: 400; }
.form input, .form textarea { width: 100%; height: 40px; padding: 0 12px; border-radius: 9px; border: 0; box-shadow: inset 0 0 0 1px var(--z200); background: #fff; font-size: 15px; font-weight: 400; transition: box-shadow .2s; }
.form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--ink), 0 0 0 3px rgba(5,17,26,.08); }
.form .is-bad { box-shadow: inset 0 0 0 1px var(--bad); }
.form__error { min-height: 0; color: var(--bad); font-size: 13.5px; }
.form__error:empty { display: none; }
.form button[type="submit"] { width: 100%; }
.form__done { position: absolute; inset: 0; border-radius: inherit; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 24px; }
.form__done[hidden] { display: none; }
.form__ok { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.form__ok svg { width: 24px; }
.form__done h3 { font-size: 26px; }
.form__done p { color: var(--text-2); font-size: 15px; margin-bottom: 6px; }

/* ---------- FOOTER ---------- */
.foot { background: var(--grey); padding: 48px 0 32px; font-size: 13px; color: var(--text-2); }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.foot__logo img { width: 104px; }
.foot__grid div { display: flex; flex-direction: column; gap: 8px; }
.foot__h { color: var(--ink); font-weight: 500; margin-bottom: 2px; }
.foot__grid a:hover { color: var(--ink); }
.foot__c { padding-top: 20px; color: var(--text-3); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .tile--id, .tile--ai { grid-column: span 12; min-height: 0; }
  .tile--ai .chat { margin-top: 28px; }
  .tile--spec { grid-column: span 6; }
  .tile--sys, .tile--insp, .tile--sec { grid-column: span 12; min-height: 0; }
  .tile--sys .hubs, .tile--insp .checks, .tile--sec .ticks { margin-top: 28px; }
  .web__grid { grid-template-columns: 1fr; }
  .web__stats { grid-template-columns: repeat(2, 1fr); }
  .uses { grid-template-columns: 1fr; }
  .uses__stage { min-height: 460px; order: -1; }
  .cases { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .cta__in { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .nav__links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 24px 20px; margin: 0; background: rgba(255,255,255,.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); }
  .nav.is-dark .nav__links { background: rgba(0,0,0,.94); }
  .nav__links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
  .nav.is-dark .nav__links a { border-color: rgba(255,255,255,.08); }
  .nav__cta { margin-left: auto; }
  .nav__burger { display: block; }

  /* How it works: phone first, steps as a tap list */
  .how { grid-template-columns: 1fr; gap: 28px; }
  .how__device { position: static; order: -1; }
  .how__step { min-height: 0 !important; padding: 18px 0; opacity: .4; cursor: pointer; max-width: none; border-top: 1px solid var(--line); }
  .how__n { margin-bottom: 12px; }
  .how__step h3 { font-size: 26px; }
  .how__step p { font-size: 16px; margin-top: 6px; }
  .web { grid-template-columns: 1fr; }
  .web__side { display: none; }
  .web__search { display: none; }
  .browser { transform: none; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  .hero__stage { height: 300px; }
  /* Phones: no room beside the tag, so the card sits under the model */
  .callout { transform: none !important; left: 0; right: 0; top: auto; bottom: 4px; display: flex; justify-content: center; }
  .callout__line { display: none; }
  .callout__card { position: relative; left: auto !important; right: auto !important; top: auto; }
  .tile { border-radius: 22px; }
  .tile--spec { min-height: 150px; }
  .phone { width: 270px; height: 560px; }
  .web__main { padding: 16px; }
  .web__table th:nth-child(3), .web__table td:nth-child(3), .web__table th:nth-child(4), .web__table td:nth-child(4) { display: none; }
  .form__row { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__logo { grid-column: span 2; }
  .use { padding: 14px 16px; }
  .uses__stage { min-height: 420px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .browser { transform: none; }
}
