/* Cinnyx — wide, clean layout: hairline grids, large type, live product visuals instead of icons.
   Design tokens at the top (light + dark). Sections: base, header, buttons, hero + console, products,
   demo, services, principles, process, about, contact, product pages, legal pages, footer. */

@font-face { font-family: "Sora"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/sora-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/sora-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/sora-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0898-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  --navy: #0B0E26; --indigo: #23338C; --violet: #5B3BB0; --peri: #4A5BD6; --lavender: #A88BF5; --sun: #F28C28;
  --bg: #FBFBFD; --surface: #FFFFFF; --soft: #F3F3F8; --ink: #0B0E26; --muted: #565B78; --faint: #6E7390;
  --line: #E6E6EF; --line-strong: #D2D2E0;
  --action: #23338C; --hl: #B4570F; --x: #5B3BB0; --err: #9E1B2E; --ok: #2F7A4A;
  --btn: #0B0E26; --on-btn: #FFFFFF;
  --grad: linear-gradient(95deg, #E0761A 0%, #C2477A 55%, #5B3BB0 100%);
  --glow: rgba(242, 140, 40, .16); --glow-2: rgba(91, 59, 176, .10);
  --shadow: 0 1px 2px rgba(11, 14, 38, .04), 0 24px 60px -24px rgba(11, 14, 38, .18);
  --w1: #4A5BD6; --w2: #5B3BB0; --w3: #141A3A; --w4: #23338C; --w5: #3D3596; --chest: #FFFFFF;
  --font: "Sora", "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --max: 1440px; --gutter: clamp(20px, 4vw, 64px); --sec: clamp(80px, 10vw, 144px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #070918; --surface: #0E1230; --soft: #0B0F28; --ink: #F2F2FA; --muted: #A9ADC8; --faint: #8E93B3;
  --line: #1D2246; --line-strong: #2B3160;
  --action: #A88BF5; --hl: #F7A55A; --x: #A88BF5; --err: #FF9AA8; --ok: #6FCF97;
  --btn: #F2F2FA; --on-btn: #0B0E26;
  --grad: linear-gradient(95deg, #F7A55A 0%, #E2709A 50%, #A88BF5 100%);
  --glow: rgba(242, 140, 40, .14); --glow-2: rgba(124, 140, 240, .12);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  --w1: #7C8CF0; --w2: #A88BF5; --w3: #FFFFFF; --w4: #12163A; --w5: #23338C;
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #070918; --surface: #0E1230; --soft: #0B0F28; --ink: #F2F2FA; --muted: #A9ADC8; --faint: #8E93B3;
  --line: #1D2246; --line-strong: #2B3160;
  --action: #A88BF5; --hl: #F7A55A; --x: #A88BF5; --err: #FF9AA8; --ok: #6FCF97;
  --btn: #F2F2FA; --on-btn: #0B0E26;
  --grad: linear-gradient(95deg, #F7A55A 0%, #E2709A 50%, #A88BF5 100%);
  --glow: rgba(242, 140, 40, .14); --glow-2: rgba(124, 140, 240, .12);
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  --w1: #7C8CF0; --w2: #A88BF5; --w3: #FFFFFF; --w4: #12163A; --w5: #23338C;
  color-scheme: dark;
}
/* always-dark sections (principles, "why now", footer) carry their own tokens */
.dark, footer {
  --bg: #0B0E26; --surface: rgba(255, 255, 255, .04); --soft: rgba(255, 255, 255, .06); --ink: #F2F2FA; --muted: #B4B8D2; --faint: #8E93B3;
  --line: rgba(255, 255, 255, .10); --line-strong: rgba(255, 255, 255, .18);
  --action: #A88BF5; --hl: #F7A55A; --x: #A88BF5; --btn: #F2F2FA; --on-btn: #0B0E26;
  --grad: linear-gradient(95deg, #F7A55A 0%, #E2709A 50%, #A88BF5 100%);
  background: var(--bg); color: var(--ink);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.dark, footer) { --bg: #0E1230; } }
:root[data-theme="dark"] :is(.dark, footer) { --bg: #0E1230; }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--action); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3, p, li, address { overflow-wrap: break-word; }
/* long German compounds (Datenschutzerklärung, Forderungsmanagement) must not overflow narrow screens */
:lang(de) :is(h2, h3, p, li, address) { hyphens: auto; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px)); }
section { padding-block: var(--sec); position: relative; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: 16px; top: -48px; z-index: 30; background: var(--btn); color: var(--on-btn); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

/* type */
.kicker, .label { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.kicker .n { color: var(--hl); }
.kicker .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 140, 40, .45); } 70% { box-shadow: 0 0 0 10px rgba(242, 140, 40, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 140, 40, 0); } }
.display { font-size: clamp(44px, 5.6vw, 92px); line-height: .98; letter-spacing: -0.045em; }
/* German compounds are long: slightly smaller hero headline so words don't break mid-word */
:lang(de) .hero .display { font-size: clamp(34px, 4.4vw, 76px); }
.h2, .head h2 { font-size: clamp(34px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -0.04em; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.mono { font-family: var(--mono); }

/* section head: kicker, title and lead stacked in one left-aligned column */
.head { display: grid; gap: 20px; margin-bottom: clamp(40px, 5vw, 72px); }
.head h2 { max-width: 22ch; }

/* ---------- logo ---------- */
.m-sun { fill: #F28C28; }
.m-w1 { fill: var(--w1); } .m-w2 { fill: var(--w2); } .m-w3 { fill: var(--w3); }
.m-w4 { fill: var(--w4); } .m-w5 { fill: var(--w5); } .m-chest { fill: var(--chest); }
.wm { font-weight: 700; letter-spacing: -0.035em; line-height: 1; display: inline-flex; align-items: baseline; color: inherit; }
.wm .i { position: relative; display: inline-block; }
.wm .i b { position: absolute; left: 50%; top: .02em; width: .21em; height: .21em; margin-left: -.105em; border-radius: 50%; background: var(--sun); }
.wm .x { color: var(--x); }
.mark { flex: none; }

/* ---------- header ---------- */
header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
@supports not (background: color-mix(in srgb, red, blue)) { header { background: var(--bg); } }
.nav { display: flex; align-items: center; gap: 40px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 24px; margin-right: auto; }
.menu { display: flex; gap: 36px; }
.menu a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; }
.menu a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 10px; }
.lang { font: 500 12px/16px var(--mono); letter-spacing: .06em; color: var(--ink); text-decoration: none; height: 36px; min-width: 36px; padding: 0 10px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; transition: border-color .15s; }
.lang:hover { border-color: var(--line-strong); }
.theme-toggle { width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .15s; }
.theme-toggle:hover { border-color: var(--line-strong); }
.theme-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-sun, .theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: block; }
.nav .btn { margin-left: 6px; }
@media (max-width: 960px) { .menu { display: none; } }
@media (max-width: 420px) { .nav .btn { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 600 15px/20px var(--font); padding: 13px 22px; border-radius: 999px; border: 1px solid transparent; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .15s, background-color .15s, border-color .15s, box-shadow .15s; }
.btn-primary { background: var(--btn); color: var(--on-btn) !important; }
.btn-accent { background: var(--sun); color: #0B0E26 !important; box-shadow: 0 8px 24px -8px rgba(242, 140, 40, .6); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink) !important; background: transparent; }
.btn:hover { transform: translateY(-1px); }
.btn-primary:hover, .btn-accent:hover { box-shadow: 0 12px 28px -10px rgba(11, 14, 38, .45); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .arr { transition: transform .15s; }
.btn:hover .arr { transform: translateX(3px); }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.link { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link::after { content: "→"; color: var(--hl); transition: transform .15s; }
.link:hover::after { transform: translateX(4px); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- hero ---------- */
.hero { padding-block: clamp(56px, 7vw, 112px) clamp(72px, 8vw, 128px); overflow: hidden; }
.grid-bg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 72% 40%, #000 10%, transparent 72%); }
.grid-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 80% 30%, var(--glow), transparent 38%), radial-gradient(circle at 62% 78%, var(--glow-2), transparent 42%); }
.grid-bg > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero h1 { margin-top: 24px; }
.hero .lead { margin-top: 28px; }
.hero .ctas { margin-top: 40px; }
.facts { list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; font: 500 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--x); }
@media (max-width: 1040px) { .hero-grid { grid-template-columns: 1fr; } }

/* console: a live look at Email Triage working on one email */
.console { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; font-size: 14px; min-width: 0; }
.console-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12px/16px var(--mono); color: var(--faint); }
.console-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.console-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.console-bar .live { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--ok); flex: none; }
.console-bar .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.console-body { padding: clamp(16px, 2vw, 24px); display: grid; gap: 14px; }
.mail-in { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--soft); overflow: hidden; }
.mail-in .meta { display: flex; justify-content: space-between; gap: 12px; font: 12px/16px var(--mono); color: var(--faint); }
.mail-in .subj { font-weight: 600; margin-top: 8px; }
.mail-in .snip { color: var(--muted); margin-top: 4px; font-size: 14px; }
.mail-in::after { content: ""; position: absolute; left: 0; right: 0; top: -40%; height: 40%; background: linear-gradient(180deg, transparent, rgba(168, 139, 245, .22), transparent); opacity: 0; }
.console.play .mail-in::after { animation: scan 1.4s ease-out .2s 1; }
@keyframes scan { 0% { top: -40%; opacity: 1; } 100% { top: 100%; opacity: 1; } }
.fields { margin: 0; border: 1px solid var(--line); border-radius: 14px; font: 13px/18px var(--mono); }
.fields > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line); align-items: center; }
.fields > div:first-child { border-top: 0; }
.fields dt { color: var(--faint); }
.fields dd { margin: 0; color: var(--ink); min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/16px var(--mono); padding: 3px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); border: 1px solid var(--line); white-space: nowrap; }
.chip.v { background: color-mix(in srgb, #5B3BB0 14%, transparent); border-color: transparent; color: var(--x); }
.chip.s { background: color-mix(in srgb, #F28C28 18%, transparent); border-color: transparent; color: var(--hl); }
.chip.i { background: color-mix(in srgb, #4A5BD6 14%, transparent); border-color: transparent; color: var(--action); }
.chip.g { background: color-mix(in srgb, #2F7A4A 14%, transparent); border-color: transparent; color: var(--ok); }
.done { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.done li { display: flex; gap: 10px; align-items: center; }
.done li::before { content: "✓"; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--ok); }
.route { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--btn); color: var(--on-btn); }
.route strong { font-size: 15px; }
.route span { font: 12px/16px var(--mono); opacity: .75; }
/* step-by-step reveal, driven by site.js; without JS (or with reduced motion) everything is simply shown */
.console.js-anim [data-step] { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.console.js-anim.play [data-step] { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i, 0) * .6s); }

/* hero showcase: three examples (e-invoicing, email triage, automation) that take turns; site.js drives it.
   Without JS only the first example is shown; with reduced motion the examples don't rotate on their own. */
.scene { display: grid; gap: 14px; }
.scene + .scene { display: none; }
.showcase.js-on .scene { display: none; }
.showcase.js-on .scene.on { display: grid; }
.showcase.js-on .scene [data-s] { opacity: 0; transform: translateY(8px); transition: opacity .45s ease, transform .45s ease; transition-delay: calc(var(--i, 0) * .5s); }
.showcase.js-on .scene.play [data-s] { opacity: 1; transform: none; }
.sc-tabs { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.showcase.js-on .sc-tabs { display: grid; }
.sc-tab { font: 500 12px/16px var(--mono); color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 10px; cursor: pointer; position: relative; overflow: hidden; transition: color .15s, border-color .15s; }
.sc-tab:hover { color: var(--ink); }
.sc-tab[aria-selected="true"] { color: var(--ink); border-color: var(--line-strong); }
.sc-tab i { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--sun); }
.showcase.rotating .sc-tab[aria-selected="true"] i { animation: sc-fill var(--sc-dur, 7s) linear forwards; }
@keyframes sc-fill { to { width: 100%; } }
.tag { display: inline-block; font: 500 10px/14px var(--mono); padding: 2px 7px; border-radius: 999px; margin-left: 8px; letter-spacing: .04em; vertical-align: 1px; }
.tag.ai { background: color-mix(in srgb, #5B3BB0 16%, transparent); color: var(--x); }
.tag.rule { background: color-mix(in srgb, #F28C28 18%, transparent); color: var(--hl); }
.step { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.step small { display: block; font: 12px/16px var(--mono); color: var(--faint); }
.step-down { text-align: center; font: 14px/1 var(--mono); color: var(--hl); margin: -6px 0; }
.step-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.step-split .step { background: var(--bg); }
@media (max-width: 520px) { .step .chip { display: none; } .sc-tab { padding: 8px 4px; font-size: 11px; } }

/* ---------- products (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { grid-column: span 6; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.tile:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.tile.span-7 { grid-column: span 7; } .tile.span-5 { grid-column: span 5; }
.tile .tile-text { display: flex; flex-direction: column; gap: 14px; }
.tile h3 { font-size: clamp(24px, 2.2vw, 34px); line-height: 1.1; letter-spacing: -0.03em; }
.tile p { color: var(--muted); max-width: 52ch; }
.tile p.tile-sub { margin-top: -6px; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.3; font-weight: 500; color: var(--ink); }
/* thin full-width orange rule separating the title block from the body text */
.tile p.tile-sub::after { content: ""; display: block; width: 100%; height: 1px; margin: 16px 0 4px; border-radius: 3px; background: var(--sun); opacity: .85; }
/* visual panel grows to fill the card, so side-by-side tiles of unequal text length leave no empty gap */
.tile .visual { flex: 1; display: flex; flex-direction: column; justify-content: center; margin-top: 12px; padding: clamp(16px, 2vw, 28px); border-radius: 16px; background: var(--soft); }
.tile .link { margin-top: 4px; }
.tile .link::before { content: ""; position: absolute; inset: 0; } /* whole tile is clickable */
@media (max-width: 1040px) { .tile, .tile.span-7, .tile.span-5 { grid-column: 1 / -1; } }

/* tile visuals: small, honest pictures of what each product does */
.inbox { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); }
.inbox > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.inbox > div:first-child { border-top: 0; }
.inbox .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inbox .s small { display: block; font: 11px/16px var(--mono); color: var(--faint); }
@media (max-width: 520px) { .inbox .s { white-space: normal; } .inbox > div { grid-template-columns: 1fr; gap: 8px; } .inbox .chip { justify-self: start; } }
.convert { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; }
.file { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); font: 13px/18px var(--mono); min-width: 0; overflow-wrap: anywhere; }
.file small { display: block; color: var(--faint); font-size: 11px; }
.file.out { border-color: color-mix(in srgb, #2F7A4A 40%, var(--line)); }
.convert .arrow { font: 18px/1 var(--mono); color: var(--hl); }
.valid { margin-top: 12px; font: 12px/16px var(--mono); color: var(--ok); display: flex; gap: 8px; align-items: center; }
.dates { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 24px; border-top: 1px solid var(--line-strong); }
.dates div { position: relative; padding-top: 14px; padding-right: 8px; font-size: 13px; color: var(--muted); }
.dates div::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.dates div.now::before { background: var(--sun); box-shadow: 0 0 0 4px var(--glow); }
.dates b { display: block; font: 600 14px/18px var(--mono); color: var(--ink); }
.meeting { display: grid; grid-template-columns: minmax(0, .8fr) auto minmax(0, 1.2fr); gap: 16px; align-items: center; }
.transcript { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg); display: grid; gap: 8px; }
.transcript small { font: 11px/16px var(--mono); color: var(--faint); }
.transcript i { display: block; height: 7px; border-radius: 4px; background: var(--soft); border: 1px solid var(--line); }
.transcript i:nth-child(3) { width: 82%; } .transcript i:nth-child(4) { width: 64%; } .transcript i:nth-child(5) { width: 90%; }
.meeting .arrow { font: 18px/1 var(--mono); color: var(--hl); }
.tasks { display: grid; gap: 8px; }
.task { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; background: var(--bg); font-size: 14px; }
.task .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 11px/1 var(--font); color: #fff; background: var(--indigo); }
.task:nth-child(2) .av { background: var(--violet); } .task:nth-child(3) .av { background: #B4570F; }
.task span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task small { font: 11px/16px var(--mono); color: var(--faint); }
@media (max-width: 640px) { .meeting { grid-template-columns: 1fr; } .meeting .arrow { transform: rotate(90deg); justify-self: center; } }

/* ---------- demo (tabs + video) ---------- */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tabs { display: grid; gap: 4px; border-left: 1px solid var(--line); }
.tab { text-align: left; font: inherit; color: var(--muted); background: none; border: 0; border-left: 2px solid transparent; margin-left: -1px; padding: 16px 20px; cursor: pointer; display: grid; gap: 4px; border-radius: 0 12px 12px 0; transition: color .15s, border-color .15s, background-color .15s; }
.tab strong { font-size: 17px; color: var(--ink); font-weight: 600; }
.tab small { font: 12px/16px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }
.tab:hover { background: var(--soft); }
.tab[aria-selected="true"] { border-left-color: var(--sun); color: var(--ink); background: var(--soft); }
.demo-side .link { margin: 20px 0 0 22px; }
.frame { margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); font: 12px/16px var(--mono); color: var(--faint); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); flex: none; }
.frame-bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frame video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; object-fit: contain; }
.frame .placeholder { aspect-ratio: 16 / 9; display: grid; place-items: center; align-content: center; gap: 16px; padding: 24px; text-align: center; color: var(--muted); background: var(--soft); }
.frame .play { width: 64px; height: 64px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; }
.frame .play svg { width: 22px; height: 22px; fill: #0B0E26; margin-left: 3px; }
.quote { margin: 20px 0 0; font-size: 16px; color: var(--muted); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.quote::before { content: "“"; font: 700 40px/1 var(--font); color: var(--hl); }
@media (max-width: 900px) {
  .demo { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); border-left: 0; border-bottom: 1px solid var(--line); }
  .tab { border-left: 0; border-bottom: 2px solid transparent; margin: 0 0 -1px; padding: 12px; border-radius: 12px 12px 0 0; }
  .tab[aria-selected="true"] { border-bottom-color: var(--sun); }
  .tab small { display: none; } .tab strong { font-size: 14px; }
  .demo-side .link { display: none; }
}

/* ---------- hairline grids (services, features, workflows) ---------- */
.cells { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cell { padding: clamp(24px, 3vw, 40px) var(--pad) clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 12px; min-width: 0; border-left: 1px solid var(--line); }
.cell .num { font: 500 12px/16px var(--mono); color: var(--hl); letter-spacing: .08em; }
.cell h3 { font-size: clamp(20px, 1.7vw, 26px); line-height: 1.2; letter-spacing: -0.02em; }
.cell p { color: var(--muted); }
.cell .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--ink); margin-bottom: 8px; }
.cell .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.keys { list-style: none; margin: auto 0 0; padding: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.keys li { font: 12px/16px var(--mono); padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.cells-cta { margin-top: 48px; }
/* the first cell of each row has no left rule; --pad is the inner gutter */
.cells { --cols: 3; --pad: clamp(20px, 2.5vw, 40px); }
.cells.c4 { --cols: 4; } .cells.c2 { --cols: 2; }
.cells.rows > .cell { border-bottom: 1px solid var(--line); }
@media (min-width: 1041px) {
  .cells > .cell:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .cells:is(.c4, .c2) > .cell:nth-child(3n + 1) { padding-left: var(--pad); border-left: 1px solid var(--line); }
  .cells.c4 > .cell:nth-child(4n + 1), .cells.c2 > .cell:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}
@media (min-width: 641px) and (max-width: 1040px) {
  .cells { --cols: 2 !important; }
  .cells > .cell { border-bottom: 1px solid var(--line); }
  .cells > .cell:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .cells { --cols: 1 !important; }
  .cells > .cell { padding-inline: 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- principles (dark) ---------- */
.dark .statement { font-size: clamp(34px, 4.6vw, 72px); line-height: 1.02; letter-spacing: -0.04em; max-width: 20ch; margin-top: 20px; }
.dark .head { margin-bottom: clamp(48px, 6vw, 88px); }

/* ---------- process (connected steps) ---------- */
.flow { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 32px; position: relative; list-style: none; margin: 0; padding: 0; }
.flow::before { content: ""; position: absolute; top: 22px; left: 22px; right: 0; height: 1px; background: linear-gradient(90deg, var(--sun), var(--x) 60%, var(--line)); }
.flow li { position: relative; display: flex; flex-direction: column; gap: 10px; padding-right: 16px; }
.flow .dot { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--mono); background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink); margin-bottom: 14px; position: relative; }
.flow li:first-child .dot { background: var(--sun); border-color: var(--sun); color: #0B0E26; }
.flow h3 { font-size: 22px; letter-spacing: -0.02em; }
.flow p { color: var(--muted); max-width: 40ch; }
.flow.n4 { --n: 4; }
@media (max-width: 900px) {
  .flow, .flow.n4 { grid-template-columns: 1fr; gap: 28px; }
  .flow::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--sun), var(--x) 60%, var(--line)); }
  .flow li { padding-left: 68px; }
  .flow .dot { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 6vw, 112px); align-items: center; }
.about-art { position: relative; display: grid; place-items: center; }
.about-art::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); }
.about-art svg { position: relative; width: min(100%, 420px); height: auto; }
.about .h2 { margin-top: 20px; }
.about .lead + .lead { margin-top: 16px; }
.about .h2 + .lead { margin-top: 28px; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; } .about-art { justify-items: start; } .about-art svg { width: 140px; } .about-art::before { display: none; } }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact .h2 { margin-top: 20px; }
.contact .lead { margin-top: 24px; }
.next { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px; }
.next li { display: flex; gap: 12px; align-items: center; }
.next li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--ok); }
.reach { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.reach .line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 15px; }
.reach .line > span:first-child { font: 12px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); min-width: 64px; }
.reach .line a { font-weight: 600; color: var(--ink); text-decoration: none; }
.copy { font: 500 12px/16px var(--mono); border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.copy:hover { border-color: var(--line-strong); color: var(--ink); }
form { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; box-shadow: var(--shadow); min-width: 0; }
.field { display: grid; gap: 8px; }
.field label { font: 600 13px/18px var(--font); }
.field .opt { font-weight: 400; color: var(--faint); }
.field input, .field select, .field textarea { font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--x); box-shadow: 0 0 0 4px color-mix(in srgb, var(--x) 18%, transparent); }
.field [aria-invalid="true"] { border-color: var(--err); }
.field textarea { min-height: 120px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.note { font-size: 13px; color: var(--faint); }
.note.err { color: var(--err); font-weight: 600; }
.submit { justify-self: start; }
.ok { display: flex; gap: 10px; align-items: flex-start; background: color-mix(in srgb, var(--ok) 14%, transparent); border-radius: 12px; padding: 14px 16px; font-size: 14px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }

/* ---------- product pages ---------- */
.page-hero { padding-block: clamp(40px, 5vw, 72px) clamp(72px, 8vw, 120px); overflow: hidden; }
.crumbs { display: flex; gap: 10px; align-items: center; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 40px; }
.crumbs a { color: var(--faint); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { margin-top: 20px; font-size: clamp(38px, 4.1vw, 66px); }
.page-hero .lead { margin-top: 28px; }
.page-hero .ctas { margin-top: 40px; }
.badge { font: 500 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--hl); background: color-mix(in srgb, var(--sun) 16%, transparent); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.big-visual { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3vw, 36px); box-shadow: var(--shadow); min-width: 0; }
.usecase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(32px, 5vw, 88px); align-items: center; padding-block: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line); }
.usecase:last-child { padding-bottom: 0; }
.usecase h3 { font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; letter-spacing: -0.03em; margin-top: 16px; }
.mail { margin: 24px 0 0; padding: 16px 20px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); font-size: 15px; }
.mail .from { display: block; font: 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.usecase ol { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.usecase ol li { counter-increment: s; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; color: var(--muted); font-size: 15px; }
.usecase ol li::before { content: counter(s, decimal-leading-zero); font: 500 12px/24px var(--mono); color: var(--hl); }
.usecase ol strong { color: var(--ink); font-weight: 600; }
.usecase .hint { margin-top: 20px; font: 12px/18px var(--mono); color: var(--faint); }
@media (max-width: 960px) { .usecase { grid-template-columns: 1fr; } }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.timeline > div { position: relative; padding: 32px 32px 0 0; }
.timeline > div::before { content: ""; position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.timeline > div.now::before { background: var(--sun); box-shadow: 0 0 0 6px rgba(242, 140, 40, .2); }
.timeline .yr { font: 700 clamp(40px, 4.4vw, 68px)/1 var(--font); letter-spacing: -0.04em; }
.timeline > div.now .yr { color: var(--hl); }
.timeline h3 { font-size: 18px; margin-top: 16px; }
.timeline p { color: var(--muted); margin-top: 8px; max-width: 36ch; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); } .timeline > div { padding: 0 0 36px 28px; } .timeline > div::before { top: 8px; left: -6px; } }
.final { border-radius: 32px; padding: clamp(40px, 6vw, 96px); background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 32px 64px; align-items: end; }
.final::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--glow), transparent 65%); pointer-events: none; }
.final > * { position: relative; z-index: 1; }
.final .h2 { margin-top: 20px; }
.final .lead { margin-top: 20px; }
@media (max-width: 900px) { .final { grid-template-columns: 1fr; align-items: start; } }

/* ---------- legal pages + 404 ---------- */
.legal-page { padding-block: clamp(48px, 6vw, 96px) var(--sec); }
.legal-page .doc > * { max-width: 760px; }
.legal-page h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; margin: 20px 0 32px; }
.legal-page h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; margin: 44px 0 12px; }
.legal-page h3 { font-size: 17px; margin: 24px 0 6px; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page p + p { margin-top: 10px; }
.legal-page ul { padding-left: 20px; }
.legal-page ol { padding-left: 22px; }
.legal-page li + li { margin-top: 8px; }
.legal-page li::marker { color: var(--faint); }
.legal-page address { font-style: normal; color: var(--ink); }
.legal-page a:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal-page .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.callout { border: 1px solid var(--line); border-left: 3px solid var(--sun); background: var(--surface); padding: 14px 18px; border-radius: 0 12px 12px 0; margin-bottom: 24px; font-size: 14px; }
.fill { background: color-mix(in srgb, var(--sun) 25%, transparent); color: var(--ink); border-radius: 4px; padding: 0 4px; }

/* ---------- footer ---------- */
.foot { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: clamp(64px, 7vw, 96px) 48px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; color: var(--ink); text-decoration: none; }
.foot .wm .x { color: #A88BF5; }
.foot p { color: var(--muted); margin-top: 16px; max-width: 34ch; }
.foot h4 { margin: 0 0 16px; font: 500 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.foot nav a { display: block; color: var(--ink); text-decoration: none; font-size: 15px; padding: 4px 0; transition: color .15s; }
.foot nav a:hover { color: var(--sun); }
.legal { border-top: 1px solid var(--line); padding-block: 24px 32px; font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 820px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }


/* ---------- source note under a section (e.g. regulatory dates) ---------- */
.source-note { margin-top: 40px; font-size: 13px; color: var(--faint); max-width: 80ch; }
.source-note a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Arabic (right to left) ----------
   Only pages with lang="ar" dir="rtl" are affected; everything below mirrors left/right rules used on those pages. */
:lang(ar) {
  --font: "Sora", "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Sans Arabic", ui-monospace, "SFMono-Regular", "Cascadia Code", Consolas, "Liberation Mono", monospace;
}
/* Arabic letters join, so no letter-spacing; and the script needs more line height than Latin display type */
:lang(ar) :is(.display, .h2, .head h2, .kicker, .label, .crumbs, .facts, .badge, .foot h4, .timeline .yr, .cell h3, .flow h3, .lead) { letter-spacing: 0; }
:lang(ar) .display { line-height: 1.25; }
:lang(ar) :is(.h2, .head h2) { line-height: 1.25; }
:lang(ar) .page-hero h1 { font-size: clamp(34px, 3.6vw, 58px); }
[dir="rtl"] .skip { left: auto; right: 16px; }
[dir="rtl"] .brand { margin-right: 0; margin-left: auto; }
[dir="rtl"] .nav .btn { margin-left: 0; margin-right: 6px; }
[dir="rtl"] .console-bar span { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .console-bar .live { margin-left: 0; margin-right: auto; }
[dir="rtl"] .btn:hover .arr { transform: translateX(-3px); }
[dir="rtl"] .cell { border-left: 0; border-right: 1px solid var(--line); }
@media (min-width: 1041px) {
  [dir="rtl"] .cells > .cell:nth-child(3n + 1) { padding-left: var(--pad); padding-right: 0; border-right: 0; }
  [dir="rtl"] .cells:is(.c4, .c2) > .cell:nth-child(3n + 1) { padding-right: var(--pad); border-right: 1px solid var(--line); }
  [dir="rtl"] .cells.c4 > .cell:nth-child(4n + 1), [dir="rtl"] .cells.c2 > .cell:nth-child(2n + 1) { padding-right: 0; border-right: 0; }
}
@media (min-width: 641px) and (max-width: 1040px) {
  [dir="rtl"] .cells > .cell:nth-child(2n + 1) { padding-left: var(--pad); padding-right: 0; border-right: 0; }
}
@media (max-width: 640px) { [dir="rtl"] .cells > .cell { border-right: 0; } }
[dir="rtl"] .flow::before { left: 0; right: 22px; background: linear-gradient(270deg, var(--sun), var(--x) 60%, var(--line)); }
[dir="rtl"] .flow li { padding-right: 0; padding-left: 16px; }
@media (max-width: 900px) {
  [dir="rtl"] .flow::before { left: auto; right: 22px; background: linear-gradient(180deg, var(--sun), var(--x) 60%, var(--line)); }
  [dir="rtl"] .flow li { padding-left: 0; padding-right: 68px; }
  [dir="rtl"] .flow .dot { left: auto; right: 0; }
}
[dir="rtl"] .timeline > div { padding: 32px 0 0 32px; }
[dir="rtl"] .timeline > div::before { left: auto; right: 0; }
@media (max-width: 760px) {
  [dir="rtl"] .timeline { border-left: 0; border-right: 1px solid var(--line-strong); }
  [dir="rtl"] .timeline > div { padding: 0 28px 36px 0; }
  [dir="rtl"] .timeline > div::before { left: auto; right: -6px; }
}
[dir="rtl"] .final::after { right: auto; left: -10%; }
[dir="rtl"] .grid-bg::before { -webkit-mask-image: radial-gradient(ellipse 60% 70% at 28% 40%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 28% 40%, #000 10%, transparent 72%); }
[dir="rtl"] .grid-bg::after { background: radial-gradient(circle at 20% 30%, var(--glow), transparent 38%), radial-gradient(circle at 38% 78%, var(--glow-2), transparent 42%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
