/* Dahat — the parent site. Paper, ink and one amber point, like the Core mark.
   Logical properties everywhere so Arabic and Kurdish mirror; the mark itself never mirrors. */

@font-face { font-family: "Inter"; src: url("fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-var.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "NRT"; src: url("fonts/NRT-Reg.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "NRT"; src: url("fonts/NRT-Bd.ttf") format("truetype"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/PlexArabic-400.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: "Plex Arabic"; src: url("fonts/PlexArabic-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --paper: #FAFAF8; --paper-2: #F3F2EE; --card: #FFFFFF; --sunk: #F6F5F2;
  --ink: #1C1C1E; --ink-2: #3A3A3D; --muted: #6C6C70; --faint: #A3A29E; --line: #E6E4DF; --line-2: #D9D7D1;
  --amber: #D9A04A; --amber-ink: #8E6220; --amber-soft: #F6EBD8;
  --green: #0E8F66; --green-soft: #DDF1E9;
  --app-bg: #EDF0EE; --app-line: #DDE3E0; --app-muted: #5D6A68;
  --shadow: 0 1px 0 rgba(28, 28, 30, .04), 0 30px 60px -36px rgba(28, 28, 30, .28);
  --display: "Readex Pro", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "Space Grotesk", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --gut: clamp(16px, 4vw, 56px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #111112; --paper-2: #161618; --card: #1C1C1F; --sunk: #19191B;
  --ink: #F2F1EE; --ink-2: #D6D5D1; --muted: #9C9B97; --faint: #67666A; --line: #2A2A2D; --line-2: #36363A;
  --amber-ink: #E2B26A; --amber-soft: #2D2416; --green-soft: #16302A;
  --app-bg: #18201E; --app-line: #2A3431; --app-muted: #8FA09C;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 30px 60px -36px rgba(0, 0, 0, .8);
  color-scheme: dark;
}
:root:lang(ar) { --body: "Plex Arabic", "Inter", sans-serif; --display: "Readex Pro", "Plex Arabic", sans-serif; }
:root:lang(ckb) { --body: "NRT", "Inter", sans-serif; --display: "Readex Pro", "NRT", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, .h1 { font-family: var(--display); font-weight: 500; margin: 0; letter-spacing: -.035em; line-height: 1.02; }
:root:is(:lang(ar), :lang(ckb)) :is(h1, h2, h3, .h1) { letter-spacing: 0; line-height: 1.25; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gut); }
.muted { color: var(--muted); }
.soft { color: var(--faint); }

/* ── small parts ───────────────────────────── */
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
:root:is(:lang(ar), :lang(ckb)) .kicker { letter-spacing: 0; font-family: var(--body); font-size: 14px; text-transform: none; }
.kicker .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; }
.kicker .num { color: var(--amber-ink); font-weight: 600; }
.kicker .slash { width: 18px; height: 1px; background: var(--line-2); transform: rotate(-55deg); }
.lede { font-size: clamp(16px, 1.25vw, 19px); color: var(--muted); max-width: 34em; line-height: 1.6; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding-inline: 26px; border-radius: 999px; font-weight: 550; font-size: 15px; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s; }
.btn:active { transform: scale(.98); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: var(--ink-2); }
.btn-line { border: 1px solid var(--line-2); background: var(--card); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 40px; padding-inline: 18px; font-size: 14px; }
.btn-lg { height: 60px; padding-inline: 34px; font-size: 16px; }
.arr { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
[dir="rtl"] .arr { transform: scaleX(-1); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.ctas.center { justify-content: center; }

/* ── nav ───────────────────────────────────── */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 50; height: 72px; display: flex; align-items: center; gap: 24px;
  padding-inline: var(--gut); transition: background-color .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent;
}
.nav.solid { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
.nav-logo { display: flex; align-items: center; }
.logo { height: 26px; color: var(--ink); display: block; }
.nav-links { display: flex; gap: 30px; margin-inline: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-end { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.langs { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); }
.langs button { height: 30px; min-width: 34px; padding-inline: 8px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); font-family: var(--body); }
.langs button[data-lang="en"] { font-family: var(--mono); letter-spacing: .04em; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; color: var(--ink); }
.theme svg { width: 17px; height: 17px; transition: transform .5s var(--ease); }
:root[data-theme="dark"] .theme svg { transform: rotate(180deg); }

/* ── hero ──────────────────────────────────── */
.hero { position: relative; height: 290vh; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0); background-size: 28px 28px; }
.hero-stick { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; flex-direction: column; overflow: hidden; }
.hero-stick::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 120px; background: linear-gradient(transparent, var(--paper)); pointer-events: none; }
.hero-grid { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 40px; padding-top: 72px; }
.hero-copy { position: relative; display: grid; }
.hero-text { grid-area: 1 / 1; transition: opacity .7s var(--ease), transform .7s var(--ease), filter .7s var(--ease); }
.hero-text.b { opacity: 0; transform: translateY(24px); pointer-events: none; }
.hero.closed .hero-text.a { opacity: 0; transform: translateY(-24px); pointer-events: none; filter: blur(4px); }
.hero.closed .hero-text.b { opacity: 1; transform: none; pointer-events: auto; }
.hero h1, .hero .h1 { font-size: clamp(46px, 6.6vw, 104px); margin-top: 22px; }
.hero .hero-text.b .h1 { font-size: clamp(40px, 5.2vw, 80px); }
.hero .lede { margin-top: 26px; }
.stage { position: relative; width: min(100%, 76vh); aspect-ratio: 1; justify-self: center; color: var(--ink); }
.orbit { width: 100%; height: 100%; overflow: visible; display: block; }
.orbit .ring { fill: none; stroke: currentColor; }
.orbit .node { fill: currentColor; }
#stem { transform-box: fill-box; transform-origin: 50% 100%; }
.pills { position: absolute; inset: 0; pointer-events: none; }
.pill {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  height: 34px; padding-inline: 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 550; box-shadow: 0 8px 22px -14px rgba(28, 28, 30, .35); will-change: transform, left, top;
}
.pill .soon { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
:root:is(:lang(ar), :lang(ckb)) .pill .soon { font-family: var(--body); letter-spacing: 0; text-transform: none; font-size: 11.5px; }
.pill.live { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.live .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.pill.live .soon { color: var(--amber); }
.hero-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 22px 28px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
:root:is(:lang(ar), :lang(ckb)) .hero-foot { font-family: var(--body); letter-spacing: 0; font-size: 13px; text-transform: none; }
:root:is(:lang(ar), :lang(ckb)) .hero h1 { font-size: clamp(40px, 5.4vw, 84px); }
:root:is(:lang(ar), :lang(ckb)) .hero .hero-text.b .h1 { font-size: clamp(34px, 4.4vw, 66px); }
.scroll-hint { display: flex; align-items: center; gap: 10px; }
.scroll-hint i { width: 1px; height: 22px; background: var(--line-2); position: relative; overflow: hidden; }
.scroll-hint i::after { content: ""; position: absolute; inset-inline: 0; top: -100%; height: 100%; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 100%; } }

/* ── sections ──────────────────────────────── */
.sec { padding-block: clamp(96px, 13vw, 180px); position: relative; }
.sec-alt { background: var(--paper-2); }
.sec-head { max-width: 860px; }
.sec-head h2 { font-size: clamp(36px, 4.6vw, 68px); margin-top: 22px; }
.sec-head .lede { margin-top: 22px; }
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

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

/* ── ERP demo ──────────────────────────────── */
.demo { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; align-items: start; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; position: sticky; top: 110px; }
.demo-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; cursor: pointer; color: var(--faint); font-weight: 550; transition: background-color .3s, color .3s; position: relative; overflow: hidden; }
.demo-steps li:hover { color: var(--muted); }
.demo-steps li .dn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; flex: none; transition: all .3s; }
.demo-steps li.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.demo-steps li.on .dn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.demo-steps li.done .dn { border-color: var(--amber); color: var(--amber-ink); }
.demo-steps li.on::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; height: 2px; background: var(--amber); width: 0; animation: fill var(--dur, 3600ms) linear forwards; }
.demo.paused .demo-steps li.on::after { animation: none; width: 0; }
@keyframes fill { to { width: 100%; } }

.window { border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(28,28,30,.03), 0 50px 100px -50px rgba(28, 28, 30, .35); overflow: hidden; }
.win-bar { height: 42px; display: flex; align-items: center; gap: 7px; padding-inline: 16px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.win-bar span { margin-inline: auto; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 4px 14px; border-radius: 8px; background: var(--sunk); transform: translateX(-20px); }
[dir="rtl"] .win-bar span { transform: translateX(20px); }
.app { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); background: var(--app-bg); min-height: 500px; }
.app-main { padding: 34px; display: flex; flex-direction: column; }
.app-q { font-family: var(--display); font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin-bottom: 22px; }
:root:is(:lang(ar), :lang(ckb)) .app-q { letter-spacing: 0; }
.app-search { height: 54px; border-radius: 16px; background: var(--card); border: 1.5px solid var(--ink); display: flex; align-items: center; gap: 12px; padding-inline: 18px; font-size: 16px; }
.app-search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.app-search .caret { width: 1.5px; height: 20px; background: var(--ink); animation: blink 1s steps(1) infinite; margin-inline-start: -8px; }
@keyframes blink { 50% { opacity: 0; } }
.rows { display: grid; gap: 8px; margin-top: 12px; }
.row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--card); border: 1.5px solid transparent; animation: rise .5s var(--ease) both; }
.row:nth-child(2) { animation-delay: .06s; } .row:nth-child(3) { animation-delay: .12s; } .row:nth-child(4) { animation-delay: .18s; }
.row.pick { border-color: var(--ink); }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--app-bg); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.row .meta { flex: 1; min-width: 0; }
.row .meta b { display: block; font-weight: 600; font-size: 15px; }
.row .meta span { font-size: 13px; color: var(--app-muted); }
.row .end { font-family: var(--mono); font-weight: 600; font-size: 14px; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 4px; background: var(--app-bg); border-radius: 12px; padding: 3px; }
.qty i { width: 28px; height: 28px; border-radius: 9px; background: var(--card); display: grid; place-items: center; font-style: normal; font-weight: 600; }
.qty b { min-width: 30px; text-align: center; font-family: var(--mono); }
.pays { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay { padding: 18px 16px; border-radius: 18px; background: var(--card); border: 1.5px solid transparent; animation: rise .5s var(--ease) both; }
.pay:nth-child(2) { animation-delay: .06s; } .pay:nth-child(3) { animation-delay: .12s; }
.pay b { display: block; font-weight: 600; } .pay span { font-size: 13px; color: var(--app-muted); }
.pay.pick { border-color: var(--ink); }
.pay .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--app-bg); display: grid; place-items: center; margin-bottom: 14px; }
.pay .ic svg { width: 18px; height: 18px; }
.say { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--green-soft); color: var(--green); font-weight: 550; animation: rise .5s .2s var(--ease) both; }
:root[data-theme="dark"] .say { color: #5fd3a8; }
.app-go { margin-top: auto; padding-top: 24px; }
.app-go span { display: flex; justify-content: center; align-items: center; height: 56px; border-radius: 16px; background: var(--ink); color: var(--paper); font-weight: 600; }
.okay { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; }
.okay svg { width: 96px; height: 96px; margin-bottom: 14px; }
.okay .dr { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .9s var(--ease) forwards; }
.okay .dc { fill: none; stroke: var(--green); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .5s .7s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.okay .lbl { color: var(--app-muted); font-size: 15px; animation: rise .5s .5s var(--ease) both; }
.okay .giant { font-family: var(--mono); font-weight: 600; font-size: clamp(36px, 4vw, 54px); letter-spacing: -.03em; line-height: 1; animation: rise .6s .6s var(--ease) both; }
.okay .giant small { font-size: .4em; color: var(--app-muted); letter-spacing: 0; }
.okay .sub { color: var(--app-muted); animation: rise .5s .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.receipt { margin: 18px; margin-inline-start: 0; padding: 26px 24px; border-radius: 22px; background: var(--card); display: flex; flex-direction: column; font-size: 14px; }
.rc-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 16px; border-bottom: 1px dashed var(--app-line); }
.rc-head b { font-family: var(--display); font-weight: 500; font-size: 17px; }
.rc-head span { font-family: var(--mono); font-size: 12px; color: var(--app-muted); }
.rc-who { padding-block: 14px; border-bottom: 1px dashed var(--app-line); color: var(--app-muted); min-height: 52px; }
.rc-who b { color: var(--ink); font-weight: 600; }
.rc-lines { padding-block: 10px; display: grid; gap: 8px; flex: 1; align-content: start; }
.rc-line { display: flex; justify-content: space-between; gap: 10px; animation: rise .4s var(--ease) both; }
.rc-line span:last-child { font-family: var(--mono); white-space: nowrap; }
.rc-line em { font-style: normal; color: var(--app-muted); }
.rc-empty { color: var(--faint); font-size: 13px; }
.rc-total { border-top: 1px solid var(--app-line); padding-top: 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rc-total span { color: var(--app-muted); }
.rc-total b { font-family: var(--mono); font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.rc-paid { margin-top: 10px; align-self: flex-start; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); animation: rise .4s var(--ease) both; }
:root[data-theme="dark"] .rc-paid { color: #5fd3a8; }

.facts { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.facts > div { padding-block: 28px 0; padding-inline-end: 28px; display: grid; gap: 6px; }
.facts > div + div { border-inline-start: 1px solid var(--line); padding-inline-start: 28px; }
.fig { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.03em; }
:root:is(:lang(ar), :lang(ckb)) .fig { letter-spacing: 0; }
.facts span { color: var(--muted); }

/* ── offline ───────────────────────────────── */
.switch { margin-top: 36px; display: inline-flex; align-items: center; gap: 14px; padding: 8px 20px 8px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
[dir="rtl"] .switch { padding: 8px 8px 8px 20px; }
.sw { width: 56px; height: 32px; border-radius: 999px; background: var(--ink); position: relative; transition: background-color .3s; }
.sw span { position: absolute; top: 4px; inset-inline-start: 28px; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); transition: inset-inline-start .35s var(--ease); }
.switch[aria-checked="false"] .sw { background: var(--line-2); }
.switch[aria-checked="false"] .sw span { inset-inline-start: 4px; }
.sw-label { font-weight: 550; }
.sw-label b { font-family: var(--mono); margin-inline-start: 6px; }
.switch[aria-checked="false"] .sw-label b { color: var(--muted); }

.net { display: grid; grid-template-columns: auto 1fr auto 1fr auto; align-items: start; padding: clamp(28px, 4vw, 48px) clamp(18px, 3vw, 40px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.node { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; width: 120px; }
.node b { font-size: 14px; font-weight: 600; }
.dev { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; background: var(--sunk); color: var(--ink); border: 1px solid var(--line); transition: opacity .4s; }
.dev svg { width: 44px; height: 44px; }
.dev-core { background: var(--paper); }
.dev-core svg { width: 30px; height: 40px; }
.tag { font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--green-soft); color: var(--green); white-space: nowrap; transition: background-color .3s, color .3s; min-height: 26px; }
:root[data-theme="dark"] .tag { color: #5fd3a8; }
.tag.wait { background: var(--amber-soft); color: var(--amber-ink); }
.tag.idle { background: var(--sunk); color: var(--muted); }
.link { position: relative; height: 2px; margin-top: 41px; background: var(--line-2); border-radius: 2px; overflow: visible; }
.link i { position: absolute; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); inset-inline-start: 0; opacity: 0; animation: travel 2.4s linear infinite; }
.link i:nth-child(2) { animation-delay: .8s; } .link i:nth-child(3) { animation-delay: 1.6s; }
.link + .node + .link i { animation-direction: normal; }
@keyframes travel { 0% { inset-inline-start: 0; opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { inset-inline-start: calc(100% - 8px); opacity: 0; } }
.net[data-online="0"] .link { background: repeating-linear-gradient(90deg, var(--line-2) 0 6px, transparent 6px 12px); }
.net[data-online="0"] .link i { animation: none; opacity: 0; }
.net[data-online="0"] .node-core .dev, .net[data-online="0"] .node:last-child .dev { opacity: .45; }

/* ── languages ─────────────────────────────── */
.tongues { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tongue { padding: 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; min-height: 290px; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.tongue:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tongue[lang="ckb"] { font-family: "NRT", sans-serif; }
.tongue[lang="ar"] { font-family: "Plex Arabic", sans-serif; }
.tongue[lang="en"] { font-family: "Inter", sans-serif; }
.tongue header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px dashed var(--line-2); font-weight: 600; }
.tongue .mini { font-family: var(--mono); font-size: 12px; color: var(--faint); font-weight: 400; }
.t-label { color: var(--muted); font-size: 14px; }
.t-num { font-family: var(--mono); font-weight: 600; font-size: clamp(32px, 3vw, 42px); letter-spacing: -.03em; direction: ltr; text-align: end; }
.tongue[lang="en"] .t-num { text-align: start; }
.t-num small { font-size: .42em; color: var(--muted); letter-spacing: 0; }
.t-words { margin-top: auto; padding: 14px 16px; border-radius: 14px; background: var(--sunk); color: var(--ink-2); font-size: 15px; line-height: 1.7; }

/* ── family ────────────────────────────────── */
.family { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fam { position: relative; padding: 28px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); min-height: 250px; display: flex; flex-direction: column; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s; }
.fam:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.fam .glyph { width: 52px; height: 52px; color: var(--ink); }
.fam h3 { font-size: 24px; margin-top: auto; padding-top: 28px; letter-spacing: -.02em; }
:root:is(:lang(ar), :lang(ckb)) .fam h3 { letter-spacing: 0; }
.fam p { color: var(--muted); margin-top: 8px; font-size: 15px; max-width: 26em; }
.fam .badge { position: absolute; top: 24px; inset-inline-end: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
:root:is(:lang(ar), :lang(ckb)) .fam .badge { font-family: var(--body); letter-spacing: 0; font-size: 12.5px; text-transform: none; }
.fam.live { grid-column: span 2; grid-row: span 2; background: var(--ink); color: var(--paper); border-color: var(--ink); min-height: 300px; }
.fam.live .glyph { color: var(--paper); }
.fam.live p { color: color-mix(in srgb, var(--paper) 68%, transparent); }
.fam.live .badge { border-color: transparent; background: var(--amber); color: #1C1C1E; }
.fam.live h3 { font-size: clamp(30px, 3vw, 42px); }
.fam.live .go { display: inline-flex; align-items: center; gap: 10px; margin-top: 22px; font-weight: 600; color: var(--amber); }
.fam.live .go .arr { width: 16px; }
.fam.live:hover .go .arr { transform: translateX(4px); }
[dir="rtl"] .fam.live:hover .go .arr { transform: scaleX(-1) translateX(4px); }
.fam.live .big-ring { position: absolute; inset-inline-end: -90px; bottom: -150px; width: 420px; height: 420px; color: color-mix(in srgb, var(--paper) 7%, transparent); pointer-events: none; transition: transform 1.2s var(--ease); }
.fam.live:hover .big-ring { transform: rotate(-12deg) scale(1.03); }

/* ── start ─────────────────────────────────── */
.steps { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding-block: 34px 0; padding-inline-end: 34px; }
.steps li + li { border-inline-start: 1px solid var(--line); padding-inline-start: 34px; }
.steps .big { font-family: var(--mono); font-size: 13px; color: var(--amber-ink); font-weight: 600; letter-spacing: .1em; }
.steps h3 { font-size: clamp(24px, 2.2vw, 30px); margin-top: 18px; letter-spacing: -.02em; }
.steps p { color: var(--muted); margin-top: 12px; max-width: 24em; }

/* ── closing ───────────────────────────────── */
.closing { padding-block: clamp(110px, 15vw, 210px); text-align: center; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 0); background-size: 28px 28px; border-top: 1px solid var(--line); }
.closing-in { display: flex; flex-direction: column; align-items: center; }
.closing-mark { width: 74px; height: 100px; color: var(--ink); margin-bottom: 40px; }
.closing-in h2 { font-size: clamp(40px, 6vw, 92px); max-width: 12em; }
.closing-in .lede { margin-top: 22px; }
.cm-ring { stroke-dasharray: 0 101; transform: rotate(-90deg); transform-origin: 34px 62px; }
.cm-stem { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.cm-dot { transform-box: fill-box; transform-origin: center; transform: scale(0); }
.closing-in.in .cm-ring { transition: stroke-dasharray 1.1s .2s var(--ease); stroke-dasharray: 101 0; }
.closing-in.in .cm-stem { transition: transform .7s 1.1s var(--ease); transform: scaleY(1); }
.closing-in.in .cm-dot { transition: transform .6s 1.6s cubic-bezier(.3, 1.6, .5, 1); transform: scale(1); }

/* ── footer ────────────────────────────────── */
.foot { border-top: 1px solid var(--line); padding-block: 36px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .logo { height: 22px; margin-inline-end: auto; }

/* ── responsive ────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .demo { grid-template-columns: 1fr; }
  .demo-steps { position: static; grid-template-columns: repeat(4, 1fr); }
  .demo-steps li { flex-direction: column; text-align: center; gap: 8px; font-size: 13px; padding: 12px 6px; }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 8px; padding-top: 96px; }
  .hero h1, .hero .h1 { font-size: clamp(38px, 10.5vw, 60px); margin-top: 14px; }
  .hero .hero-text.b .h1 { font-size: clamp(32px, 8.6vw, 50px); }
  .hero .lede { margin-top: 14px; font-size: 15px; }
  .ctas { margin-top: 22px; }
  .stage { width: min(100%, 44vh); align-self: center; }
  .pill { height: 28px; font-size: 11.5px; padding-inline: 10px; gap: 6px; }
  .pill .soon { display: none; }
  .hero-foot > span:not(.scroll-hint) { display: none; }
  .hero-foot { justify-content: center; }
  .app { grid-template-columns: 1fr; }
  .receipt { margin: 0 14px 14px; }
  .app-main { padding: 22px; }
  .app-q { font-size: 24px; }
  .pays { grid-template-columns: 1fr; }
  .tongues, .family, .facts, .steps { grid-template-columns: 1fr; }
  .fam.live { grid-column: auto; grid-row: auto; }
  .facts > div + div, .steps li + li { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--line); }
  .facts > div, .steps li { padding: 24px 0; }
  .net { grid-template-columns: 1fr; justify-items: center; gap: 0; }
  .link { width: 2px; height: 46px; margin: 10px 0; }
  .link i { inset-inline-start: -3px !important; animation-name: travelY; }
  @keyframes travelY { 0% { top: 0; opacity: 0; } 10%, 90% { opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .net[data-online="0"] .link { background: repeating-linear-gradient(180deg, var(--line-2) 0 6px, transparent 6px 12px); }
  .node { width: auto; }
}
@media (max-width: 560px) {
  .nav { gap: 8px; height: 64px; }
  .nav .btn-sm { display: none; }
  .logo { height: 22px; }
  .demo-steps { grid-template-columns: repeat(4, 1fr); gap: 2px; }
  .demo-steps li span:not(.dn) { display: none; }
  .demo-steps li { padding: 10px 4px; }
  .btn { height: 48px; padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint i::after, .link i { animation: none; }
}
