/* ANONYMOUS landing — security-envelope hatch, seal blue + safe mint, light & dark. */
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-ext-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-cyrillic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-cyrillic-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-condensed-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex Condensed'; src: url('/fonts/ibm-plex-sans-condensed-latin-ext-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Plex Arabic'; src: url('/fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Plex Mono'; src: url('/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --bg: #f2f5fa; --surface: #ffffff; --ink: #0f1a2b; --muted: #5a6678; --line: #dce3ee;
  --seal: #2450a0; --seal-ink: #ffffff; --mint: #0d9c78; --tint: #e3eaf5;
  --hatch-a: rgb(36 80 160 / .36); --hatch-b: rgb(36 80 160 / .18);
  --glow-1: rgb(36 80 160 / .20); --glow-2: rgb(13 156 120 / .16); --glow-3: rgb(120 90 220 / .12);
  --shadow: 0 1px 0 rgb(15 26 43 / .04), 0 24px 48px -28px rgb(15 26 43 / .35);
  --display: 'Plex Condensed', 'Plex', 'Plex Arabic', system-ui, sans-serif;
  --body: 'Plex', 'Plex Arabic', system-ui, sans-serif;
  --mono: 'Plex Mono', ui-monospace, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0a101c; --surface: #111a2a; --ink: #e7edf6; --muted: #93a1b6; --line: #1f2b40;
    --seal: #7ea8ff; --seal-ink: #0a101c; --mint: #3fd9ae; --tint: #172338;
    --hatch-a: rgb(126 168 255 / .34); --hatch-b: rgb(126 168 255 / .16);
    --glow-1: rgb(70 120 255 / .28); --glow-2: rgb(63 217 174 / .16); --glow-3: rgb(150 110 255 / .18);
    --shadow: 0 1px 0 rgb(0 0 0 / .3), 0 30px 60px -30px rgb(0 0 0 / .8);
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #0a101c; --surface: #111a2a; --ink: #e7edf6; --muted: #93a1b6; --line: #1f2b40;
  --seal: #7ea8ff; --seal-ink: #0a101c; --mint: #3fd9ae; --tint: #172338;
  --hatch-a: rgb(126 168 255 / .34); --hatch-b: rgb(126 168 255 / .16);
  --glow-1: rgb(70 120 255 / .28); --glow-2: rgb(63 217 174 / .16); --glow-3: rgb(150 110 255 / .18);
  --shadow: 0 1px 0 rgb(0 0 0 / .3), 0 30px 60px -30px rgb(0 0 0 / .8);
  color-scheme: dark;
}
:lang(ar) h1 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.3; }
:lang(ar) { --display: 'Plex Arabic', system-ui, sans-serif; --body: 'Plex Arabic', system-ui, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background .3s, color .3s; }
a { color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--seal); outline-offset: 3px; border-radius: 6px; }

.hatch {
  background: repeating-linear-gradient(45deg, var(--hatch-a) 0 1px, transparent 1px 4px),
              repeating-linear-gradient(-45deg, var(--hatch-b) 0 1px, transparent 1px 6px), var(--tint);
}

/* Ambient colour: three slow blobs behind everything. */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sky i { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .9; }
.sky i:nth-child(1) { background: var(--glow-1); top: -18vmax; inset-inline-end: -10vmax; }
.sky i:nth-child(2) { background: var(--glow-2); top: 30vh; inset-inline-start: -16vmax; }
.sky i:nth-child(3) { background: var(--glow-3); bottom: -20vmax; inset-inline-end: 10vmax; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; padding: 14px max(24px, calc((100% - 1112px) / 2));
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.word { display: flex; align-items: center; gap: 10px; font: 600 18px/1 var(--display); letter-spacing: .1em; text-decoration: none; }
.word small { font: 400 12px var(--body); letter-spacing: 0; color: var(--muted); }
.mark { width: 26px; height: 26px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--seal); }
.links { margin-inline-start: auto; display: flex; gap: 22px; font-size: 15px; }
.links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.links a:hover { color: var(--ink); }
.lang { position: relative; }
.lang summary { list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--line); font: 500 13px var(--mono); color: var(--muted); }
.lang summary::-webkit-details-marker { display: none; }
.lang .menu { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); display: grid; min-width: 160px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.lang .menu a { padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.lang .menu a:hover, .lang .menu a[aria-current] { background: var(--tint); color: var(--seal); }
.theme { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--ink); cursor: pointer; }
.theme svg:last-child { display: none; }
:root[data-theme='dark'] .theme svg:first-child { display: none; }
:root[data-theme='dark'] .theme svg:last-child { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme svg:first-child { display: none; }
  :root:not([data-theme='light']) .theme svg:last-child { display: block; }
}

main, footer { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Hero ── */
.hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; min-height: calc(100vh - 80px); padding: 32px 0 72px; }
.kicker { display: inline-flex; font: 600 13px var(--body); letter-spacing: .02em; color: var(--seal); background: color-mix(in srgb, var(--seal) 10%, transparent); padding: 6px 12px; border-radius: 999px; margin: 0 0 22px; }
h1 { font: 600 clamp(34px, 4.4vw, 58px)/1.05 var(--display); letter-spacing: -.01em; margin: 0 0 22px; text-wrap: balance; }
h1 span { display: block; }
.grad { background: linear-gradient(100deg, var(--seal) 10%, var(--mint) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.sub { font-size: 20px; color: var(--muted); max-width: 30ch; margin: 0 0 30px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 20px; border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.btn.primary { background: var(--seal); color: var(--seal-ink); box-shadow: 0 10px 24px -12px var(--seal); }
.btn.primary[aria-disabled] { cursor: default; }
.btn.ghost { border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 60%, transparent); }
.btn.ghost:hover { transform: translateY(-2px); }

/* ── Demo: the thesis of the page ── */
.demo { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 14px; position: relative; }
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--tint); }
.tabs button { position: relative; z-index: 1; border: 0; background: none; padding: 9px 6px; border-radius: 10px; font: 600 13px var(--body); color: var(--muted); cursor: pointer; transition: color .3s; }
.tabs .bar { position: absolute; top: 4px; bottom: 4px; width: calc((100% - 16px) / 3); inset-inline-start: 4px; border-radius: 10px; background: var(--surface); box-shadow: 0 2px 8px -2px rgb(0 0 0 / .15);
  transition: inset-inline-start .45s cubic-bezier(.6,.1,.2,1); }
.demo[data-stage='1'] .bar { inset-inline-start: calc(4px + (100% - 16px) / 3 + 4px); }
.demo[data-stage='2'] .bar { inset-inline-start: calc(4px + 2 * ((100% - 16px) / 3 + 4px)); }
.demo[data-stage='0'] [data-go='0'], .demo[data-stage='1'] [data-go='1'], .demo[data-stage='2'] [data-go='2'] { color: var(--ink); }
.sheet { padding: 26px 22px 10px; min-height: 230px; font-size: 16.5px; line-height: 1.9; }
.letter { margin: 0; transition: opacity .4s; }
.answer { margin: 18px 0 0; padding: 14px 16px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--mint) 12%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--mint) 30%, transparent); opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s; }
[dir='rtl'] .answer { border-radius: 14px 14px 4px 14px; }
.demo[data-stage='2'] .letter { opacity: .45; }
.demo[data-stage='2'] .answer { opacity: 1; transform: none; }

/* A token stacks the real value and its placeholder in one grid cell, so nothing jumps. */
.tok { unicode-bidi: isolate; display: inline-grid; vertical-align: bottom; border-radius: 5px; padding: 0 3px; margin: 0 -1px; background-size: 0 100%, 0 100%, 0 100%; background-repeat: no-repeat;
  background-image: repeating-linear-gradient(45deg, var(--hatch-a) 0 1px, transparent 1px 4px), repeating-linear-gradient(-45deg, var(--hatch-b) 0 1px, transparent 1px 6px), linear-gradient(var(--tint), var(--tint));
  transition: background-size .55s cubic-bezier(.6,.1,.2,1), box-shadow .3s; transition-delay: calc(var(--k, 0) * 160ms); }
[dir='rtl'] .tok { background-position: right; }
.tok > span { grid-area: 1 / 1; transition: opacity .35s, transform .35s; transition-delay: calc(var(--k, 0) * 160ms + 180ms); white-space: nowrap; }
.tok .real { box-shadow: inset 0 -1.5px 0 color-mix(in srgb, var(--ink) 35%, transparent); }
.tok .tag { font: 500 .86em/inherit var(--mono); color: var(--seal); opacity: 0; transform: translateY(6px); align-self: center; }
.masked .tok { background-size: 100% 100%, 100% 100%, 100% 100%; box-shadow: inset 0 -1.5px 0 var(--seal); }
.masked .tok .real { opacity: 0; transform: translateY(-6px); }
.masked .tok .tag { opacity: 1; transform: none; }
.restored .tok { background-size: 0 100%, 0 100%, 0 100%; box-shadow: inset 0 -2px 0 var(--mint); }
.restored .tok .real { opacity: 1; transform: none; color: color-mix(in srgb, var(--mint) 70%, var(--ink)); font-weight: 600; box-shadow: none; }
.restored .tok .tag { opacity: 0; transform: translateY(6px); }
.status { display: flex; align-items: center; gap: 8px; margin: 0 8px 6px; padding: 10px 12px; border-radius: 12px; font-size: 14px; color: var(--mint);
  background: color-mix(in srgb, var(--mint) 10%, transparent); opacity: 0; transition: opacity .4s .5s; }
.demo:not([data-stage='0']) .status { opacity: 1; }

/* ── Sections ── */
section { padding: 72px 0; }
h2 { font: 600 clamp(28px, 3.4vw, 42px)/1.1 var(--display); margin: 0 0 32px; text-wrap: balance; }
.muted { color: var(--muted); }
.card { background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line); border-radius: 20px; padding: 26px; box-shadow: var(--shadow); }

.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { position: relative; transition: transform .3s; }
.steps li:hover { transform: translateY(-4px); }
.steps .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; color: var(--seal); background: color-mix(in srgb, var(--seal) 12%, transparent); margin-bottom: 18px; }
.steps .ico svg { width: 26px; height: 26px; }
.steps li:nth-child(2) .ico { color: var(--ink); background: none; }
.steps li:nth-child(2) .ico { background-image: repeating-linear-gradient(45deg, var(--hatch-a) 0 1px, transparent 1px 4px); box-shadow: inset 0 0 0 1.5px var(--seal); }
.steps li:nth-child(3) .ico { color: var(--mint); background: color-mix(in srgb, var(--mint) 14%, transparent); }
.steps .n { position: absolute; top: 22px; inset-inline-end: 24px; font: 500 13px var(--mono); color: var(--muted); }
.steps h3 { font: 600 21px/1.2 var(--display); margin: 0 0 8px; }
.steps p { margin: 0; color: var(--muted); }

.ai h2 { margin-bottom: 8px; }
.marquee { margin-top: 28px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.track { display: flex; gap: 12px; width: max-content; animation: slide 28s linear infinite; }
[dir='rtl'] .track { animation-direction: reverse; }
.chip { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; white-space: nowrap; }
.chip.local { color: var(--mint); border-color: color-mix(in srgb, var(--mint) 45%, transparent); }
@keyframes slide { to { transform: translateX(-50%); } }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 880px; }
.plan h3 { font: 600 15px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.plan .price { margin: 0; }
.plan .price b { font: 600 52px/1 var(--display); }
.plan .price span { color: var(--muted); }
.plan .lead { font-weight: 600; margin: 10px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { color: var(--mint); margin-top: 4px; }
.plan .note { margin: 18px 0 0; font-size: 14px; color: var(--muted); }
/* Pro: a slowly turning seal-to-mint border. */
.pro { position: relative; border-color: transparent; background:
  linear-gradient(var(--surface), var(--surface)) padding-box,
  conic-gradient(from var(--spin, 0deg), var(--seal), var(--mint), var(--seal)) border-box; border: 1.5px solid transparent; }
.pro h3 { color: var(--seal); }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }

.trust { display: flex; align-items: center; gap: 14px; margin: 24px 0 40px; padding: 22px 26px; border-radius: 20px; border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 80%, transparent); font-weight: 600; }
.trust .hatch { width: 46px; height: 28px; border-radius: 6px; flex: none; }
.trust svg { color: var(--mint); }
.trust p { margin: 0; }

footer { display: flex; flex-wrap: wrap; gap: 20px; padding-top: 24px; padding-bottom: 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

/* ── Motion ── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--d, 0) * 120ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .sky i { animation: drift 22s ease-in-out infinite alternate; }
  .sky i:nth-child(2) { animation-duration: 28s; }
  .sky i:nth-child(3) { animation-duration: 34s; }
  .pro { animation: spin 8s linear infinite; }
}
@keyframes drift { to { transform: translate(6vmax, 4vmax) scale(1.12); } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .track { animation: none; flex-wrap: wrap; width: auto; }
  .tok, .tok > span, .answer, .tabs .bar { transition: none; }
}

/* ── Small screens ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 36px; padding-top: 16px; }
  .steps ol, .plans { grid-template-columns: 1fr; }
  .links { display: none; }
  .lang { margin-inline-start: auto; }
  .nav { padding: 12px 16px; }
  .ctas .btn { flex: 1 1 auto; justify-content: center; }
  main, footer { padding: 0 16px; }
  footer { padding-bottom: 40px; }
  .sheet { padding: 20px 10px 6px; font-size: 15.5px; }
  .tok > span { white-space: normal; }
  section { padding: 52px 0; }
}
