/* ClaMeTix landing page */

/* Self-hosted variable fonts (Latin subset, SIL Open Font License; see assets/fonts/LICENSE-*.txt). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter Tight";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../assets/fonts/inter-tight-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0d0b1f;
  --bg-2: #13102c;
  --bg-3: #1a1640;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f4f3fc;
  --muted: #b0aed0;
  --dim: #77749a;

  --violet: #7b5cff;
  --indigo: #4a4f8a;
  --indigo-strong: #3a345c;
  --blue: #3d6df2;
  --lav: #b9b6ff;
  --sky: #8fb2ff;
  --mint: #3fd9a6;
  --success: #2e966e;
  --amber: #f3b644;
  --pink: #ff7aa8;

  /* light "app window" surfaces used by the product illustrations */
  --app-bg: #eceef3;
  --app-surface: #ffffff;
  --app-text: #1f1f2a;
  --app-muted: #53536b;
  --app-heading: #3f3a60;
  --app-line: #dfe1ea;

  --grad-text: linear-gradient(95deg, #d4d2ff 0%, #a9a6ff 45%, #8fb2ff 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-lg: 0 40px 120px -30px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;

  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

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

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

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

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn svg { width: 18px; height: 18px; }
.btn-sm { --h: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { --h: 56px; padding: 0 30px; font-size: 17px; }
.btn-primary {
  background: linear-gradient(180deg, #8d74ff 0%, #6a4ff0 100%);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(20, 12, 60, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); background: linear-gradient(180deg, #9580ff 0%, #7257f2 100%); box-shadow: 0 8px 18px -6px rgba(20, 12, 60, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-2px); }
.btn-meta { font-weight: 500; color: var(--muted); font-size: 14px; padding-left: 2px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s, border-color .35s, backdrop-filter .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(13, 11, 31, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-color: var(--line);
}
.nav-inner {
  padding-inline: clamp(16px, 3vw, 48px); height: var(--nav-h);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.brand-sm { font-size: 18px; }
.nav-links { position: relative; display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-links a { position: relative; z-index: 1; }
.nav-links a.active { color: var(--text); }
.nav-links a.active:hover { background: transparent; }
/* Sliding highlight behind the link whose section is on screen */
.nav-pill {
  position: absolute; top: 0; left: 0; height: 100%; width: var(--w, 0); border-radius: 999px; pointer-events: none;
  background: rgba(185, 182, 255, .14); box-shadow: inset 0 0 0 1px rgba(185, 182, 255, .22);
  transform: translateX(var(--x, 0)); opacity: 0;
  transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s;
}
.nav-pill.on { opacity: 1; }
.nav .btn { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1200px 700px at 18% 10%, rgba(102, 64, 214, 0.55), transparent 60%),
    radial-gradient(900px 700px at 90% 100%, rgba(45, 90, 200, 0.5), transparent 60%),
    linear-gradient(160deg, #2c1f63 0%, #1c1847 45%, #172a63 100%);
}
.wall {
  position: absolute; inset: 0; z-index: -2;
  perspective: 1600px; perspective-origin: 50% 40%;
}
.wall-plane {
  --rx: 0deg; --ry: 0deg;
  position: absolute; left: 50%; top: 50%;
  width: 3000px; height: 2400px;
  display: flex; gap: 22px; justify-content: center;
  transform: translate(-50%, -50%) rotateX(calc(48deg + var(--rx))) rotateZ(calc(-24deg + var(--ry))) translateZ(-120px);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
}
.wall-col {
  flex: 0 0 240px; display: flex; flex-direction: column; gap: 22px;
  animation: drift var(--dur, 90s) linear infinite;
  will-change: transform;
}
.wall-col.rev { animation-direction: reverse; }
@keyframes drift { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.tile {
  position: relative; flex: 0 0 auto; aspect-ratio: 3 / 2; border-radius: 14px; overflow: hidden;
  background: #241f52;
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: box-shadow .5s var(--ease), transform .5s var(--ease), filter .5s;
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile.video::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(0, 0, 0, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5v11l9-5.5z' fill='white'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.tile .tag {
  position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 999px;
  font: 600 13px/1 var(--font-body); color: #fff; letter-spacing: 0;
  background: rgba(46, 150, 110, 0.95); box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(6px) scale(.9); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.tile.hit { box-shadow: 0 0 0 3px var(--mint), 0 0 50px 6px rgba(63, 217, 166, 0.55); transform: translateZ(30px); }
.tile.hit .tag { opacity: 1; transform: none; }

.hero-veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 62% 52% at 50% 50%, rgba(16, 12, 40, 0.88) 0%, rgba(16, 12, 40, 0.55) 55%, rgba(16, 12, 40, 0.15) 100%),
    linear-gradient(180deg, rgba(13, 11, 31, 0.55) 0%, transparent 22%, transparent 70%, var(--bg) 100%);
}
.hero-content {
  position: relative; text-align: center; padding: 140px 16px 120px; max-width: 980px;
}
.eyebrow {
  font: 600 13px/1.2 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lav);
  margin-bottom: 18px;
}
.hero-title {
  font-size: clamp(44px, 7.6vw, 96px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98;
  text-wrap: balance; text-shadow: 0 10px 50px rgba(10, 6, 30, .5);
}
.hero-sub {
  margin: 26px auto 0; max-width: 680px; font-size: clamp(17px, 2vw, 20px); color: #d3d1ec; text-wrap: pretty;
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.scroll-cue {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .35);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Problem (sticky, scroll-lit words) ---------- */
.problem { position: relative; height: 280vh; background: var(--bg); }
.problem-sticky {
  position: sticky; top: 0; height: 100svh; display: grid; place-items: center; overflow: hidden;
  background:
    radial-gradient(800px 500px at 50% 50%, rgba(91, 63, 209, 0.16), transparent 70%);
}
.problem-text { font-size: clamp(30px, min(5.2vw, 6.2vh), 112px); width: min(100% - 32px, 16.5em); }
.pline { font-family: var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.pline-1, .pline-2 { font-size: 1em; font-weight: 700; line-height: 1.08; }
.pline-2 { margin-top: 1em; }
.pline-sub { font-size: max(17px, .44em); font-weight: 500; color: var(--muted); margin-top: 18px; letter-spacing: -0.015em; }
.pline .w { opacity: var(--o, .14); transition: opacity .25s linear; }
.pline em { font-style: normal; }
.pline em .w { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Sections ---------- */
/* Nav jumps land the first line of a section ~28px below the fixed header, not at the top of its padding. */
.section { --pad: clamp(80px, 12vw, 150px); position: relative; padding: var(--pad) 0; scroll-margin-top: calc(var(--nav-h) + 28px - var(--pad)); }
.section-head { max-width: 820px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
h2 { font-size: clamp(34px, 5vw, 58px); font-weight: 750; text-wrap: balance; }
h2.display { font-size: clamp(42px, 7vw, 88px); font-weight: 800; letter-spacing: -0.045em; }
.nw { white-space: nowrap; }
.caps .section-head { max-width: 1100px; }
.lede { margin-top: 20px; font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); text-wrap: pretty; }
.center .lede { margin-inline: auto; max-width: 680px; }

/* ---------- Demo player ---------- */
.demo { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); overflow-x: clip; }
.player-wrap { position: relative; max-width: 1040px; margin-inline: auto; }
.player-glow {
  position: absolute; inset: -60px -40px; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55;
  background: radial-gradient(50% 60% at 35% 50%, rgba(123, 92, 255, .6), transparent 70%), radial-gradient(40% 50% at 70% 60%, rgba(61, 109, 242, .5), transparent 70%);
}
.player {
  position: relative; z-index: 1; border-radius: 20px; overflow: hidden; background: #000;
  aspect-ratio: 16 / 9; box-shadow: var(--shadow-lg);
}
.player video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.player-cover {
  position: absolute; inset: 0; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 22px;
  background: radial-gradient(60% 70% at 50% 50%, rgba(13, 11, 31, .25), rgba(13, 11, 31, .6));
  transition: opacity .45s var(--ease), visibility .45s;
}
.player.playing .player-cover { opacity: 0; visibility: hidden; }
.play-orb {
  position: relative; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .4); backdrop-filter: blur(12px);
  transition: transform .35s var(--ease), background .35s;
}
.play-orb::before {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25);
  animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.play-orb svg { width: 36px; height: 36px; margin-left: 5px; color: #fff; }
.player-cover:hover .play-orb { transform: scale(1.08); background: rgba(255, 255, 255, .22); }
.player-cover-text { display: grid; text-align: left; }
.player-cover-text strong { font: 700 26px/1.1 var(--font-display); letter-spacing: -0.02em; }
.player-cover-text span { color: #d6d4ef; font-size: 15px; margin-top: 4px; }


/* ---------- Capabilities overview ---------- */
.caps { background: var(--bg-2); overflow: hidden; }
.caps::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 50% 0%, rgba(91, 63, 209, .28), transparent 70%);
}
.cap-cards { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cap-card {
  position: relative; display: block; padding: 30px; border-radius: var(--radius); text-decoration: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.cap-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px 220px at var(--mx, 50%) var(--my, 0%), rgba(123, 92, 255, .22), transparent 70%);
}
.cap-card:hover { transform: translateY(-6px); border-color: rgba(185, 182, 255, .35); }
.cap-card:hover::before { opacity: 1; }
.cap-icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 26px;
  background: linear-gradient(160deg, #7f6cff, #4a5bd6); box-shadow: 0 4px 10px -4px rgba(20, 12, 60, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.cap-icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cap-card h3 { font-size: 24px; font-weight: 700; }
.cap-card p { margin-top: 10px; color: var(--muted); }
.cap-link { display: inline-flex; gap: 6px; margin-top: 22px; color: var(--lav); font-weight: 600; font-size: 15px; }
.cap-link i { font-style: normal; transition: transform .3s var(--ease); }
.cap-card:hover .cap-link i { transform: translateX(4px); }

/* ---------- Feature sections ---------- */
.feature { overflow: hidden; }
.feature-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.feature-grid.reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature-grid.reverse .feature-copy { order: 2; }
.eyebrow-chip {
  display: inline-block; text-transform: none; letter-spacing: 0; font-size: 14px; color: #fff;
  padding: 6px 14px; border-radius: 999px; background: rgba(123, 92, 255, .9);
}
.feature-copy h2 { font-size: clamp(32px, 4.2vw, 52px); }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: #dedcf3; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(63, 217, 166, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233fd9a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* light app window used by the interactive demos */
.demo-card {
  position: relative; border-radius: 20px; overflow: hidden; background: var(--app-bg); color: var(--app-text);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1), 0 0 80px -20px rgba(123, 92, 255, .35);
}
.win-bar {
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 16px;
  background: var(--app-surface); border-bottom: 1px solid var(--app-line);
}
.dots { display: inline-flex; gap: 7px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.win-title { font: 600 14.5px/1 var(--font-body); color: var(--app-heading); }
.seg { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 10px; background: var(--app-bg); border: 1px solid var(--app-line); }
.seg button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--app-muted); transition: background .25s, color .25s;
}
.seg button[aria-selected="true"] { background: var(--indigo); color: #fff; box-shadow: 0 2px 8px rgba(74, 79, 138, .35); }
.mini-label { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--app-muted); }

.btn-app {
  --h: 42px; width: 100%; margin-top: auto; border-radius: 10px; font-size: 14.5px; padding: 0 14px;
  background: var(--indigo); color: #fff; box-shadow: 0 6px 16px -6px rgba(74, 79, 138, .7);
}
.btn-app:hover { background: var(--indigo-strong); }
.btn-app svg { width: 15px; height: 15px; }
.btn-app[disabled] { opacity: .65; cursor: default; }

/* Duplicate demo */
.dup-body { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 16px; }
.dup-query {
  display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px;
  background: var(--app-surface); border: 1px solid var(--app-line);
}
.dup-query-media { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; background: #d9dbe5; margin-top: 2px; }
.dup-query-media img, .dup-query-media video { width: 100%; height: 100%; object-fit: cover; }
#dupDemo[data-mode="video"] .dup-query-media { aspect-ratio: 16 / 10; }
.dup-query-name { font-weight: 600; font-size: 14px; word-break: break-word; line-height: 1.3; margin-top: 4px; }
.dup-query-meta { font-size: 12.5px; color: var(--app-muted); line-height: 1.4; margin-bottom: 10px; }
.dup-library { padding: 14px; border-radius: 14px; background: var(--app-surface); border: 1px solid var(--app-line); min-width: 0; }
.dup-lib-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 12px; }
.dup-status { font-size: 13px; font-weight: 600; color: var(--app-muted); display: inline-flex; align-items: center; gap: 7px; }
.dup-status.done { color: var(--success); }
.dup-status.done::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--success) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.dup-status.busy::before {
  content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(74, 79, 138, .25); border-top-color: var(--indigo);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.dup-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dtile {
  position: relative; aspect-ratio: 1; border-radius: 9px; background: #d9dbe5;
  transition: opacity .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), filter .5s;
}
.dtile img, .dtile video { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.dtile video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.dtile.playing video { opacity: 1; }
.dtile.checked { filter: saturate(.85); }
.dup-grid.done .dtile:not(.match) { opacity: .28; filter: grayscale(.6); transform: scale(.94); }
/* Duplicate demo callouts (illustration annotations outside the app window) */
.feature-grid.wide-figure { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.dup-figure { position: relative; padding-right: 168px; }
.callout-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.callout-lines line { stroke: #9a86ff; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .6s var(--ease); }
.callout-lines line.in { stroke-dashoffset: 0; }
.callout-dots { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.callout-dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%; translate: -50% -50%; scale: 0;
  display: grid; place-items: center; font: 700 11px/1 var(--font-body); color: #fff;
  background: #7b5cff; box-shadow: 0 0 0 3px #fff, 0 3px 10px rgba(10, 6, 30, .55);
  transition: scale .45s cubic-bezier(.34, 1.56, .64, 1);
}
.callout-dot span { display: none; }
.callout-dot.in { scale: 1; }
.callouts { list-style: none; margin: 0; padding: 0; }
.callout {
  position: absolute; right: 0; width: 150px; translate: 0 -50%; padding-left: 4px;
  font: 600 15px/1.25 var(--font-body); color: var(--text);
  opacity: 0; transform: translateX(-8px); transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.callout.in { opacity: 1; transform: none; }
.callout .n { display: none; }

.scan-beam {
  position: absolute; top: -6px; bottom: -6px; left: 0; width: 70px; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(123, 92, 255, .35) 60%, rgba(160, 140, 255, .95) 96%, transparent);
  border-radius: 6px;
}
.dup-grid.scanning .scan-beam { animation: beam var(--scan, 1600ms) cubic-bezier(.45, .05, .55, .95) forwards; }
@keyframes beam { 0% { left: -70px; opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* Similarity demo */
.sim-body { padding: 18px; display: grid; gap: 14px; }
.sim-input { padding: 16px 18px; border-radius: 14px; background: var(--app-surface); border: 1.5px solid #c9c7e8; box-shadow: 0 0 0 4px rgba(74, 79, 138, .08); min-height: 98px; }
.sim-typed { margin-top: 8px; font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--app-text); min-height: 1.5em; letter-spacing: -0.01em; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--indigo); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sim-example { display: flex; gap: 14px; align-items: center; }
.sim-example[hidden], .sim-text[hidden] { display: none; }
.sim-chips.is-hidden { visibility: hidden; }
.sim-example img { width: 96px; height: 66px; object-fit: cover; border-radius: 8px; }
.sim-ex-name { font-weight: 600; margin-top: 4px; }
.sim-ex-meta { font-size: 13px; color: var(--app-muted); }
.sim-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-chips button {
  border: 1px solid var(--app-line); background: var(--app-surface); color: var(--app-heading); cursor: pointer;
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; transition: border-color .2s, background .2s, color .2s;
}
.sim-chips button:hover { border-color: #b8b6dd; }
.sim-chips button[aria-pressed="true"] { background: #e6e5f6; border-color: var(--indigo); color: var(--indigo-strong); font-weight: 600; }
.sim-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; min-height: 196px; }
.rcard {
  border-radius: 12px; overflow: hidden; background: var(--app-surface); border: 1px solid var(--app-line);
  opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.rcard.in { opacity: 1; transform: none; }
.rcard img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #d9dbe5; }
.rcard-body { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 9px 10px; }
.rcard-name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rank { flex: none; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #e6e5f6; color: var(--indigo-strong); }
.sim-note { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--app-heading); font-weight: 500; min-height: 22px; opacity: 0; transition: opacity .5s; }
.sim-note.in { opacity: 1; }
.sim-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(46, 150, 110, .18); }

/* AI detection visual */
.auth-visual { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; align-items: center; }
.auth-frame { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 9 / 11; box-shadow: var(--shadow-lg); }
.auth-frame img { width: 100%; height: 100%; object-fit: cover; }
.auth-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(185, 182, 255, .18) 1px, transparent 1px), linear-gradient(90deg, rgba(185, 182, 255, .18) 1px, transparent 1px);
  background-size: 36px 36px; mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.auth-scan {
  position: absolute; left: 0; right: 0; height: 120px; top: -120px;
  background: linear-gradient(180deg, transparent, rgba(143, 178, 255, .38) 85%, rgba(220, 230, 255, .9) 100%);
  animation: scanY 4.2s var(--ease) infinite;
}
@keyframes scanY { 0% { top: -120px; } 70%, 100% { top: 100%; } }
.auth-box { position: absolute; border: 1.5px solid rgba(185, 182, 255, .9); border-radius: 6px; box-shadow: 0 0 20px rgba(123, 92, 255, .5); opacity: 0; animation: boxIn 4.2s var(--ease) infinite; }
.auth-box.b1 { left: 14%; top: 22%; width: 26%; height: 18%; animation-delay: .5s; }
.auth-box.b2 { left: 52%; top: 46%; width: 30%; height: 16%; animation-delay: 1.2s; }
.auth-box.b3 { left: 24%; top: 68%; width: 22%; height: 14%; animation-delay: 1.9s; }
@keyframes boxIn { 0% { opacity: 0; transform: scale(1.15); } 15% { opacity: 1; transform: none; } 60% { opacity: 1; } 80%, 100% { opacity: 0; } }
.auth-panel {
  position: relative; z-index: 1; margin-left: -60px; padding: 22px; border-radius: 18px;
  background: rgba(24, 20, 56, .78); border: 1px solid var(--line-2);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: var(--shadow-lg);
}
.auth-panel .mini-label { color: var(--muted); }
.verdicts { display: grid; gap: 8px; margin: 14px 0 18px; }
.verdict {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); color: var(--muted);
  transition: background .5s, color .5s, border-color .5s;
}
.verdict::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; opacity: .9; }
.verdict.lit.v-ok { color: var(--mint); border-color: rgba(63, 217, 166, .45); background: rgba(63, 217, 166, .1); }
.verdict.lit.v-mid { color: var(--amber); border-color: rgba(243, 182, 68, .45); background: rgba(243, 182, 68, .1); }
.verdict.lit.v-ai { color: var(--pink); border-color: rgba(255, 122, 168, .45); background: rgba(255, 122, 168, .1); }
.auth-rows { display: grid; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.auth-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; padding: 8px 2px; font-size: 14.5px; color: #e3e1f6; }
.auth-row.prov { margin-top: 8px; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.ar-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--lav); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ar-state { font-size: 12.5px; font-weight: 600; color: var(--lav); background: rgba(185, 182, 255, .12); padding: 3px 9px; border-radius: 999px; }

/* ---------- Dashboard / tilt ---------- */
.glance { background: linear-gradient(180deg, var(--bg) 0%, #15123a 55%, var(--bg) 100%); overflow: hidden; }
.tilt-stage { position: relative; perspective: 1800px; }
.browser { margin: 0; border-radius: 16px; overflow: hidden; background: #f6f6fa; box-shadow: var(--shadow-lg); }
.browser-bar { display: flex; align-items: center; gap: 14px; height: 38px; padding: 0 14px; background: #e9eaf1; border-bottom: 1px solid #dadbe5; }
.browser-bar .dots i { width: 10px; height: 10px; }
.browser-url { margin-inline: auto; padding: 4px 16px; border-radius: 7px; background: #fff; color: #6a6a80; font-size: 12.5px; transform: translateX(-30px); }
.browser img { width: 100%; height: auto; }
.tilt { --t: 1; transform-origin: 50% 0; transform: rotateX(calc(var(--t) * 22deg)) scale(calc(1 - var(--t) * .06)); will-change: transform; }

/* ---------- How it works ---------- */
.how-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 46px 1fr; gap: 18px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step-n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  font: 800 20px/1 var(--font-display); color: #fff; background: linear-gradient(160deg, #7f6cff, #4a5bd6);
}
.step h3 { font-size: 20px; font-weight: 700; }
.step p { color: var(--muted); margin-top: 6px; font-size: 16px; }
.effort { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.effort-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.effort-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.effort-seg span { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.effort-seg .on { background: var(--indigo); color: #fff; box-shadow: 0 4px 12px -4px rgba(74, 79, 138, .9); }
.how-shot { transform: perspective(1600px) rotateY(-9deg) rotateX(3deg); transition: transform .8s var(--ease); }
.how-shot:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(1deg); }

/* API note under "How it works" */
.api-note {
  display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 14px 18px; border-radius: var(--radius);
  border: 1px dashed rgba(185, 182, 255, .35); background: rgba(123, 92, 255, .06);
}
.api-note-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(185, 182, 255, .12); }
.api-note-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--lav); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.api-note p { font-size: 15.5px; color: var(--muted); }
.api-note strong { color: var(--text); font-weight: 600; }

/* ---------- Teams ---------- */
.teams { background: var(--bg-2); }
.team-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.team-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.team-card:hover { border-color: rgba(185, 182, 255, .3); transform: translateY(-4px); }
.team-card h3 { font-size: 19px; font-weight: 700; }
.team-card p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta { --pad: clamp(110px, 16vw, 190px); scroll-margin-top: calc(var(--nav-h) + 28px - var(--pad)); position: relative; overflow: hidden; padding: var(--pad) 0; text-align: center; isolation: isolate; background: linear-gradient(160deg, #2c1f63 0%, #1c1847 50%, #172a63 100%); }
.cta-aurora {
  position: absolute; inset: -30%; z-index: -1; filter: blur(70px); opacity: .9;
  background:
    radial-gradient(30% 35% at 30% 40%, rgba(123, 92, 255, .7), transparent 70%),
    radial-gradient(28% 32% at 70% 60%, rgba(61, 109, 242, .6), transparent 70%),
    radial-gradient(22% 25% at 55% 30%, rgba(63, 217, 166, .25), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes aurora { to { transform: rotate(12deg) scale(1.1) translate(3%, -2%); } }
.cta-inner { max-width: 820px; }
.cta-word { font: 800 clamp(16px, 2vw, 18px)/1 var(--font-display); letter-spacing: -0.02em; color: var(--lav); margin-bottom: 18px; }
.cta h2 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; }
.cta .lede { margin-inline: auto; color: #d3d1ec; }
.cta-mail { margin-top: 26px; color: var(--muted); font-size: 15px; }
.cta-mail a { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--dim); font-size: 14px; }
.footer-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer .brand { color: var(--text); }
.footer-copy { margin-left: auto; }

/* ---------- 404 page ---------- */
.notfound-page { min-height: 100svh; display: flex; flex-direction: column; }
.notfound-page .nav { background: rgba(13, 11, 31, 0.72); border-color: var(--line); }
.notfound {
  position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--nav-h) + 60px) 16px 80px; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #2c1f63 0%, #1c1847 50%, #172a63 100%);
}
.notfound-aurora {
  position: absolute; inset: -30%; z-index: -1; filter: blur(70px); opacity: .8;
  background: radial-gradient(30% 35% at 35% 40%, rgba(123, 92, 255, .6), transparent 70%), radial-gradient(28% 32% at 68% 62%, rgba(61, 109, 242, .5), transparent 70%);
}
.notfound-code {
  font: 800 clamp(96px, 18vw, 180px)/1 var(--font-display); letter-spacing: -0.05em;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { margin-top: 8px; font-size: clamp(30px, 4.5vw, 48px); font-weight: 800; letter-spacing: -0.035em; }
.notfound .lede { margin: 14px auto 32px; max-width: 520px; color: #d3d1ec; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .player-wrap { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
  .feature-grid, .feature-grid.reverse, .feature-grid.wide-figure, .how-grid { grid-template-columns: 1fr; }
  .feature-grid.reverse .feature-copy { order: 0; }
  .cap-cards { grid-template-columns: 1fr; }
  .effort { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.effort-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.effort-seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.effort-seg span { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.effort-seg .on { background: var(--indigo); color: #fff; box-shadow: 0 4px 12px -4px rgba(74, 79, 138, .9); }
.how-shot { transform: none; }
  .how-shot:hover { transform: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --nav-h: 62px; }
  .brand { font-size: 20px; }
  .hero-content { padding: 110px 16px 100px; }
  .hero-actions .btn { width: 100%; }
  .wall-col { flex-basis: 170px; gap: 14px; }
  .wall-plane { gap: 14px; }
  .problem-sticky { padding-top: 40px; }
  .pline-2 { margin-top: 36px; }
  .pline-sub { margin-top: 12px; }
  .player-cover { flex-direction: column; gap: 14px; }
  .player-cover-text { text-align: center; }
  .player-cover-text strong { font-size: 20px; }
  .play-orb { width: 72px; height: 72px; }
  .play-orb svg { width: 28px; height: 28px; }
  .dup-body { grid-template-columns: 1fr; }
  .dup-query { display: grid; grid-template-columns: 96px 1fr; grid-template-areas: "label label" "media name" "media meta" "btn btn"; column-gap: 12px; row-gap: 2px; }
  .dup-query .mini-label { grid-area: label; margin-bottom: 6px; }
  .dup-query-media { grid-area: media; aspect-ratio: 1 !important; margin: 0; }
  .dup-query-name { grid-area: name; align-self: end; }
  .dup-query-meta { grid-area: meta; align-self: start; margin-bottom: 0; }
  .dup-query .btn-app { grid-area: btn; margin-top: 12px; }
  .dup-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dup-figure { padding-right: 0; }
  .dtile:nth-child(16) { display: none; } /* 15 tiles fill the 3-column grid; slot 16 is always a filler */
  .callout-lines { display: none; }
  .callout-dot { width: 22px; height: 22px; }
  .callout-dot span { display: block; }
  .callouts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 16px; }
  .callout { position: static; width: auto; translate: none; display: flex; gap: 8px; align-items: baseline; font-size: 14px; padding: 0; }
  .callout .n { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #7b5cff; font-size: 11px; color: #fff; translate: 0 4px; }
  .win-title { display: none; }
  .seg { margin-left: auto; }
  .sim-results { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; min-height: 0; }
  .rcard-body { flex-direction: column; align-items: flex-start; padding: 7px 8px; }
  .rcard-name { max-width: 100%; font-size: 11.5px; }
  .auth-visual { grid-template-columns: 1fr; }
  .auth-frame { aspect-ratio: 4 / 3; }
  .auth-panel { margin: -50px 12px 0; }
  .team-cards { grid-template-columns: 1fr; }
  .footer-copy { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .wall-col { animation: none; }
  .reveal { opacity: 1; transform: none; }
  .pline .w { opacity: 1 !important; }
  .problem { height: auto; }
  .problem-sticky { position: relative; height: auto; padding: 120px 0; }
  .tilt { transform: none; }
  .auth-scan, .auth-box { display: none; }
}
