/* Card5 landing page. Plain CSS, no build step, no external resources. */

:root {
  --bg: #07080f;
  --bg-2: #0c0e1a;
  --surface: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef0ff;
  --muted: #a4a9c8;
  --dim: #737896;
  --a1: #7b8cff;            /* icon gradient, top left */
  --a2: #b06cff;            /* icon gradient, bottom right */
  --green: #34d399;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(120deg, var(--a1), var(--a2));
  --radius: 22px;
  --wrap: 1180px;
  --font: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 650; letter-spacing: -.022em; line-height: 1.08; text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
h3 { font-size: 1.3rem; letter-spacing: -.012em; line-height: 1.25; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--a1); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(123, 140, 255, .4); }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 48px); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: #fff; color: #000; transform: translateY(-300%); }
.skip:focus { transform: none; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--font); white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px -8px rgba(142, 120, 255, .8); }
.btn--primary:hover { box-shadow: 0 14px 34px -8px rgba(142, 120, 255, .95); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255, 255, 255, .03); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, .3); }
.btn--store {
  padding: 11px 26px 11px 20px; gap: 14px; border-radius: 16px;
  background: #fff; color: #0b0c16; text-align: left;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 18px 50px -12px rgba(150, 125, 255, .85);
}
.btn--store:hover { box-shadow: 0 0 0 1px #fff, 0 24px 60px -10px rgba(160, 130, 255, 1); }
.btn--store span { display: grid; font-size: 1.14rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.15; }
.btn--store small { font-size: .7rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #5a5f7a; }
.btn--store-lg { padding: 14px 32px 14px 24px; }
.btn--store-lg span { font-size: 1.3rem; }

/* ── Navigation ──────────────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.nav.is-stuck { background: rgba(7, 8, 15, .72); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.22rem; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.nav__links { display: flex; gap: 4px; margin-left: auto; }
.nav__links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s, background-color .2s; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: var(--surface-2); }
.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; padding: 0; }
.nav__toggle span { display: block; width: 18px; height: 2px; margin: 5px auto; border-radius: 2px; background: var(--text); transition: transform .25s var(--ease); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 148px 0 0; text-align: center; isolation: isolate; overflow-x: clip; }
.hero__glow {
  position: absolute; inset: -10% -20% auto; height: 1100px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42% 36% at 28% 22%, rgba(123, 140, 255, .34), transparent 70%),
    radial-gradient(38% 34% at 74% 30%, rgba(176, 108, 255, .30), transparent 70%),
    radial-gradient(60% 40% at 50% 78%, rgba(72, 96, 255, .20), transparent 72%);
  filter: blur(10px);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero::before {            /* fine grid, fading out */
  content: ""; position: absolute; inset: 0 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(60% 70% at 50% 20%, #000 20%, transparent 78%);
          mask-image: radial-gradient(60% 70% at 50% 20%, #000 20%, transparent 78%);
}
@keyframes drift { from { transform: translate3d(-2%, 0, 0) scale(1); } to { transform: translate3d(2%, 2%, 0) scale(1.06); } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .05);
  font-size: .88rem; font-weight: 550; color: #d5d9f5; backdrop-filter: blur(8px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

.hero__title { margin: 26px auto 0; font-size: clamp(2.7rem, 7.6vw, 5.9rem); font-weight: 700; letter-spacing: -.04em; line-height: .98; }
.hero__lead { max-width: 720px; margin: 28px auto 0; font-size: clamp(1.06rem, 1.7vw, 1.28rem); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 16px; margin-top: 38px; }
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 30px; color: var(--muted); font-size: .93rem; font-weight: 500; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(52, 211, 153, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.500 8.300 2.300 2.300 4.700-5' fill='none' stroke='%2334d399' stroke-width='1.800' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

.hero__shot { margin-top: 72px; perspective: 2200px; padding-bottom: 40px; }

/* ── App window frame ────────────────────────────────────────────────── */
.window {
  position: relative; border-radius: 14px; overflow: hidden; background: #0d1020;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .5), 0 40px 120px -30px rgba(104, 88, 255, .55), 0 30px 60px -30px rgba(0, 0, 0, .9);
}
.window__bar { display: flex; align-items: center; gap: 9px; height: 34px; padding: 0 0 0 12px; background: #141729; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: .76rem; color: #c9cde6; text-align: left; }
.window__bar img { border-radius: 4px; }
.window__bar span { margin-right: auto; }
.window__bar i { width: 46px; height: 100%; position: relative; opacity: .7; }
.window__bar i::before { content: ""; position: absolute; left: 18px; top: 16px; width: 10px; height: 1px; background: #c9cde6; }
.window__bar i:nth-of-type(2)::before { top: 12px; height: 9px; width: 9px; background: none; border: 1px solid #c9cde6; }
.window__bar i:nth-of-type(3)::before, .window__bar i:nth-of-type(3)::after { content: ""; position: absolute; left: 17px; top: 16px; width: 12px; height: 1px; background: #c9cde6; transform: rotate(45deg); }
.window__bar i:nth-of-type(3)::after { transform: rotate(-45deg); }
.window__img { width: 100%; }
.window--hero { transform: rotateX(var(--tilt, 9deg)) scale(var(--zoom, .965)); transform-origin: 50% 0; will-change: transform; }
.window--hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 28%); }

/* ── Numbers ─────────────────────────────────────────────────────────── */
.stats { padding: 56px 0 26px; }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.stat { padding: 30px 26px; background: var(--bg-2); display: grid; gap: 6px; text-align: center; }
.stat b { font-size: clamp(2.1rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -.035em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat > span { color: var(--muted); font-size: .95rem; }
.stat b { direction: ltr; unicode-bidi: isolate; }   /* "~9 MB" keeps its order in right-to-left pages */

/* ── Marquee ─────────────────────────────────────────────────────────── */
.marquee { padding: 34px 0 20px; display: grid; gap: 12px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { display: flex; gap: 12px; width: max-content; animation: slide 70s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 82s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__row span { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: #cfd3ee; font-size: .93rem; font-weight: 500; white-space: nowrap; }
.marquee__row span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--c, var(--a1)); vertical-align: 1px; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ── Sections ────────────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(64px, 8vw, 108px) 0; }
.section--tint { background: linear-gradient(180deg, transparent, rgba(123, 140, 255, .055) 22%, rgba(176, 108, 255, .05) 78%, transparent); }
.section__head { max-width: 780px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; display: grid; gap: 18px; justify-items: center; }
.section__head p:not(.kicker) { color: var(--muted); font-size: 1.14rem; max-width: 660px; }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Tour ────────────────────────────────────────────────────────────── */
.tour__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0 auto 34px; padding: 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.tour__tabs button { padding: 11px 22px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 .97rem/1 var(--font); cursor: pointer; transition: color .2s, background-color .2s; }
.tour__tabs button:hover { color: var(--text); }
.tour__tabs button[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: 0 8px 22px -8px rgba(142, 120, 255, .9); }
.tour__text { max-width: 760px; margin: 0 auto 36px; text-align: center; display: grid; gap: 12px; min-height: 8.4em; align-content: start; }
.tour__text h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.tour__text p { color: var(--muted); }
.tour__body { transition: opacity .22s ease; }
.tour__body.is-switching { opacity: 0; }

/* ── Bento ───────────────────────────────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tile {
  position: relative; overflow: hidden; padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .02));
  display: grid; gap: 12px; align-content: start;
  transition: transform .35s var(--ease), border-color .35s;
}
.tile::before {            /* spotlight that follows the pointer (set by main.js) */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(150, 132, 255, .2), transparent 60%);
}
.tile:hover { transform: translateY(-4px); border-color: rgba(160, 140, 255, .45); }
.tile:hover::before { opacity: 1; }
.tile--wide { grid-column: span 2; }
.tile--full { grid-column: 1 / -1; }
.tile p { color: var(--muted); font-size: 1rem; }
.tile em { color: var(--text); font-style: normal; font-weight: 600; }
.tile__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(140deg, rgba(123, 140, 255, .28), rgba(176, 108, 255, .2)); border: 1px solid rgba(160, 140, 255, .35); margin-bottom: 6px; }
.tile__icon svg { width: 24px; height: 24px; fill: none; stroke: #cfd0ff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chips li { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #cdd1ec; font-size: .86rem; font-weight: 500; }
.chips--lg { gap: 10px; margin-top: 26px; }
.chips--lg li { padding: 9px 17px; font-size: .95rem; transition: border-color .25s, color .25s, background-color .25s; }
.chips--lg li:hover { border-color: rgba(160, 140, 255, .6); color: #fff; background: rgba(140, 125, 255, .14); }

/* ── Split layouts ───────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split__text { display: grid; gap: 18px; justify-items: start; }
.split__text > p:not(.kicker) { color: var(--muted); font-size: 1.12rem; }
.ticks { display: grid; gap: 14px; margin-top: 8px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li b { color: var(--text); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: rgba(123, 140, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='m6.500 11.300 3 3 6-6.500' fill='none' stroke='%23a9b2ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }

/* ── Workspaces: rule cards ──────────────────────────────────────────── */
.rules { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); display: grid; gap: 10px; box-shadow: 0 40px 100px -50px rgba(120, 100, 255, .7); }
.rules__title { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 6px; }
.rule { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(8, 9, 18, .55); transition: border-color .3s, transform .3s var(--ease), background-color .3s; }
.rule.is-on { border-color: rgba(160, 140, 255, .65); background: rgba(124, 110, 255, .13); transform: translateX(6px); }
.rule__when { color: #d6daf3; font-size: .98rem; }
.rule__arrow { color: var(--dim); }
.rule__ws { padding: 6px 13px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .86rem; font-weight: 650; white-space: nowrap; }
.rule--soft .rule__ws { background: var(--surface-2); color: var(--muted); }

/* ── Widget: a desktop scene with the three shapes of the widget ─────── */
.desk { display: grid; gap: 18px; justify-items: center; }
.desk__screen {
  position: relative; width: 100%; aspect-ratio: 1180 / 640; container-type: inline-size;
  border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2);
  background:
    radial-gradient(60% 70% at 18% 30%, rgba(92, 112, 255, .6), transparent 70%),
    radial-gradient(55% 70% at 80% 85%, rgba(190, 96, 255, .5), transparent 70%),
    radial-gradient(40% 50% at 55% 10%, rgba(56, 189, 248, .25), transparent 70%),
    linear-gradient(160deg, #161c4a, #0a0b1c);
  box-shadow: 0 60px 140px -60px rgba(120, 100, 255, .9), 0 0 0 1px rgba(0, 0, 0, .5);
}
.desk__top { position: absolute; inset: 0 0 auto 0; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .7); }
.desk__top img { width: 100%; }
.desk__strip { position: absolute; top: 5.6cqw; right: 0; bottom: 46px; width: min(210px, 17.800cqw); overflow: hidden; background: #0d1022; box-shadow: -20px 0 50px -18px rgba(0, 0, 0, .75); }
.desk__strip img { width: 100%; }
.desk__strip::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, #0d1022); }
.desk__grid { position: absolute; left: 11%; top: 52%; width: min(520px, 44cqw); transform: translateY(-50%); border-radius: 14px; box-shadow: 0 34px 80px -20px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .13); animation: float 7s ease-in-out infinite; }
.desk__taskbar { position: absolute; inset: auto 0 0 0; height: 46px; display: flex; justify-content: center; align-items: center; gap: 10px; background: rgba(14, 16, 34, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(255, 255, 255, .08); }
.desk__taskbar i { width: 24px; height: 24px; border-radius: 7px; background: rgba(255, 255, 255, .16); }
.desk__taskbar i:first-child { background: var(--grad); }
.desk figcaption { color: var(--dim); font-size: .94rem; text-align: center; }
@keyframes float { 50% { transform: translateY(calc(-50% - 10px)); } }
.ticks--cols { grid-template-columns: repeat(3, 1fr); gap: 22px 36px; margin-top: clamp(36px, 5vw, 56px); }
/* ── Compare (dark / light) ──────────────────────────────────────────── */
.compare { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 120px -40px rgba(104, 88, 255, .6); user-select: none; touch-action: pan-y; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__top { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 18px rgba(0, 0, 0, .5); pointer-events: none; }
.compare__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%); display: grid; place-items: center; border-radius: 50%; background: #fff; color: #171a2e; font-weight: 700; letter-spacing: 2px; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare:focus-within .compare__handle span { outline: 3px solid var(--a1); outline-offset: 3px; }

/* ── Privacy ─────────────────────────────────────────────────────────── */
.section--privacy::before { content: ""; position: absolute; inset: 10% 0 auto; height: 60%; pointer-events: none; background: radial-gradient(50% 60% at 50% 40%, rgba(52, 211, 153, .12), transparent 70%); }
.privacy { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { padding: 28px 24px; border-radius: var(--radius); border: 1px solid rgba(52, 211, 153, .22); background: linear-gradient(160deg, rgba(52, 211, 153, .09), rgba(255, 255, 255, .02)); display: grid; gap: 10px; align-content: start; }
.pcard b { font-size: 1.28rem; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.pcard b::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px var(--green); flex: none; }
.pcard p { color: var(--muted); font-size: .98rem; }
.privacy__note { position: relative; max-width: 800px; margin: 40px auto 0; text-align: center; color: var(--dim); font-size: .96rem; }

/* ── Performance meter ───────────────────────────────────────────────── */
.meter { padding: 36px 30px 30px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); display: grid; justify-items: center; gap: 14px; text-align: center; box-shadow: 0 40px 100px -50px rgba(52, 211, 153, .6); }
.meter__ring { position: relative; width: 210px; height: 210px; }
.meter__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.meter__ring circle { fill: none; stroke: rgba(255, 255, 255, .08); stroke-width: 9; }
.meter__ring .meter__arc { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 326.700; stroke-dashoffset: 326.700; transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 8px rgba(52, 211, 153, .7)); }
.meter.in .meter__arc { stroke-dashoffset: 297.300; }
.meter__val { position: absolute; inset: 0; display: grid; place-content: center; }
.meter__val b { font-size: 4rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--green); }
.meter__val span { color: var(--muted); font-weight: 600; letter-spacing: .08em; }
.meter > p { color: var(--text); font-weight: 600; }
.meter__spark { width: 100%; height: 64px; margin-top: 6px; }
#sparkLine { fill: none; stroke: var(--green); stroke-width: 1.600; vector-effect: non-scaling-stroke; }
#sparkArea { fill: rgba(52, 211, 153, .14); }
.meter small { color: var(--dim); font-size: .88rem; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: border-color .3s, background-color .3s; }
.faq details[open] { border-color: rgba(160, 140, 255, .4); background: rgba(124, 110, 255, .07); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.07rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ── Final call to action ────────────────────────────────────────────── */
.cta { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 130px); }
.cta__in {
  position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 28px; border-radius: 36px; text-align: center;
  display: grid; justify-items: center; gap: 20px; border: 1px solid rgba(170, 150, 255, .35);
  background:
    radial-gradient(60% 90% at 20% 0%, rgba(123, 140, 255, .5), transparent 70%),
    radial-gradient(60% 90% at 85% 100%, rgba(176, 108, 255, .5), transparent 70%),
    #101226;
}
.cta__in img { border-radius: 22px; box-shadow: 0 20px 60px -10px rgba(140, 120, 255, .9); }
.cta__in h2 { font-size: clamp(2.1rem, 5vw, 3.7rem); }
.cta__in > p { color: #d3d7f3; font-size: 1.16rem; max-width: 680px; }
.cta__in .btn { margin-top: 10px; }
.cta__in .hero__trust { margin-top: 12px; color: #d3d7f3; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding: 52px 0 60px; color: var(--muted); font-size: .94rem; }
.footer__in { display: grid; grid-template-columns: 1fr auto; gap: 28px 48px; align-items: start; }
.footer__brand { display: grid; gap: 10px; }
.footer__brand .brand { color: var(--text); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: flex-end; max-width: 520px; }
.footer__links a:hover { color: var(--text); }
.footer__legal { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: .84rem; line-height: 1.7; }

/* ── Language picker ─────────────────────────────────────────────────── */
.lang { position: relative; display: inline-flex; align-items: center; color: var(--muted); }
.lang svg { position: absolute; inset-inline-start: 11px; fill: none; stroke: currentColor; stroke-width: 1.6; pointer-events: none; }
.lang select {
  appearance: none; -webkit-appearance: none; max-width: 168px; padding: 9px 30px 9px 36px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.500 4.500 3.500 3.500 3.500-3.500' fill='none' stroke='%23a4a9c8' stroke-width='1.600' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 11px center / 12px no-repeat;
  color: var(--text); font: 500 .9rem/1.2 var(--font); cursor: pointer; text-overflow: ellipsis; transition: border-color .2s, background-color .2s;
}
.lang select:hover { border-color: var(--line-2); background-color: var(--surface-2); }
.lang select option { background: #14172a; color: var(--text); }
[dir="rtl"] .lang select { padding: 9px 36px 9px 30px; background-position: left 11px center; }

/* ── Hero slideshow ──────────────────────────────────────────────────── */
.slides { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #0d1020; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.025); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.slides img.is-on { opacity: 1; transform: none; z-index: 1; }
.slidenav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.slidenav button {
  position: relative; overflow: hidden; padding: 9px 17px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font: 600 .9rem/1 var(--font); cursor: pointer;
  transition: color .25s, border-color .25s, background-color .25s;
}
.slidenav button:hover { color: var(--text); border-color: var(--line-2); }
.slidenav button.is-on { color: #fff; border-color: rgba(160, 140, 255, .6); background: rgba(124, 110, 255, .16); }
.slidenav button::after { content: ""; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }
[dir="rtl"] .slidenav button::after { transform-origin: 100% 50%; }
.slidenav button.is-on::after { animation: slidefill var(--slide-ms, 4200ms) linear forwards; }
.slidenav.is-paused button.is-on::after { animation-play-state: paused; }
@keyframes slidefill { to { transform: scaleX(1); } }

/* ── Inventory facts ─────────────────────────────────────────────────── */
.tour__text em, .section__head em { font-style: normal; font-weight: 600; color: var(--text); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(36px, 5vw, 56px); }
.fact { padding: 24px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); display: grid; gap: 8px; align-content: start; }
.fact b { font-size: 1.08rem; letter-spacing: -.01em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact p { color: var(--muted); font-size: .97rem; }

/* ── Right-to-left languages (Arabic, Hebrew, Persian) ───────────────── */
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .hero__title { letter-spacing: 0; line-height: 1.25; }
[dir="rtl"] .kicker, [dir="rtl"] .rules__title, [dir="rtl"] .btn--store small { letter-spacing: 0; }
[dir="rtl"] .nav__links { margin-left: 0; margin-right: auto; }
[dir="rtl"] .ticks li { padding-left: 0; padding-right: 34px; }
[dir="rtl"] .ticks li::before { left: auto; right: 0; }
[dir="rtl"] .faq summary { padding: 20px 24px 20px 56px; }
[dir="rtl"] .faq summary::after { right: auto; left: 24px; }
[dir="rtl"] .rule.is-on { transform: translateX(-6px); }
[dir="rtl"] .rule__arrow { transform: scaleX(-1); }
[dir="rtl"] .btn--store { text-align: right; padding: 11px 20px 11px 26px; }
[dir="rtl"] .marquee__row span::before { margin-right: 0; margin-left: 10px; }
[dir="rtl"] .window__bar, [dir="rtl"] .marquee { direction: ltr; }
[dir="rtl"] .footer__links { justify-content: flex-start; }
/* Scripts without capitals or with tall marks need more line height in the big headlines. */
:lang(hi) h1, :lang(ne) h1, :lang(th) h1, :lang(hi) h2, :lang(ne) h2, :lang(th) h2 { line-height: 1.3; letter-spacing: 0; }
:lang(zh-Hans) h1, :lang(zh-Hant) h1, :lang(ja) h1, :lang(ko) h1 { line-height: 1.15; letter-spacing: -.01em; word-break: keep-all; }
:lang(zh-Hans) h2, :lang(zh-Hant) h2, :lang(ja) h2, :lang(ko) h2 { line-height: 1.25; letter-spacing: 0; word-break: keep-all; }

@media (max-width: 1100px) { .nav__in { gap: 14px; } .nav__links a { padding: 8px 10px; } }
@media (max-width: 1000px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) {
  .facts { grid-template-columns: 1fr; }
  .slidenav { gap: 6px; margin-top: 18px; }
  .slidenav button { padding: 8px 12px; font-size: .82rem; }
  .lang select { max-width: 132px; }
}
@media (max-width: 520px) { .nav__in > .btn { display: none; } .lang { margin-inline-start: auto; } }

/* ── Reveal on scroll (only when JavaScript runs) ────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .privacy { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .ticks--cols { grid-template-columns: repeat(2, 1fr); }
  .stats__in { grid-template-columns: repeat(2, 1fr); }
  .tour__text { min-height: 0; }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; order: 3; }
  .nav__in { gap: 12px; }
  .nav__in > .btn { margin-left: auto; }
  .nav__links { position: absolute; top: 68px; left: 12px; right: 12px; flex-direction: column; gap: 2px; padding: 10px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(12, 14, 26, .97); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 13px 16px; font-size: 1.02rem; }
  .hero { padding-top: 120px; }
  .hero__shot { margin-top: 52px; }
  .window__bar { height: 26px; }
  .window__bar i { display: none; }
  .footer__in { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap, .wrap--narrow { width: calc(100% - 36px); }
  .bento, .privacy { grid-template-columns: 1fr; }
  .tile--wide { grid-column: auto; }
  .tour__tabs { border-radius: 22px; }
  .tour__tabs button { padding: 10px 16px; }
  .rule { grid-template-columns: 1fr auto; }
  .rule__arrow { display: none; }
  .desk__screen { aspect-ratio: 5 / 5.200; }
  .desk__top, .desk__strip { display: none; }
  .desk__grid { left: 7%; top: 46%; width: 86%; }
  .ticks--cols { grid-template-columns: 1fr; }
  .btn--store { width: 100%; max-width: 330px; }
  .compare__handle span { width: 38px; height: 38px; font-size: .85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .window--hero { transform: none; }
  .marquee__row { flex-wrap: wrap; width: auto; justify-content: center; }
}
