/* Noon, an AI content studio demo. A dark landing page plus a real, working
   studio: pick a content type, tone, and language, write a brief, and watch
   on-brand copy stream in. The generation is simulated from a local library of
   hand written outputs (no API), which is honest for a demo. One stylesheet,
   en (ltr) and ar (rtl) via logical properties. Reveals fail open. */

:root {
  --ink: #121014;
  --ink-2: #1A171C;
  --ink-3: #221D26;
  --ink-4: #2C2632;
  --coral: #FF6F5E;
  --coral-2: #FF8B6B;
  --coral-deep: #E0563F;
  --gold: #E8B45E;
  --cream: #F4F0EC;
  --cream-2: #C0B8B4;
  --muted: rgba(244, 240, 236, .58);
  --line: rgba(244, 240, 236, .11);
  --line-2: rgba(244, 240, 236, .06);
  --grad: linear-gradient(100deg, var(--coral), var(--gold));
  --display: "Cabinet Grotesk", ui-sans-serif, system-ui, sans-serif;
  --sans: "Switzer", ui-sans-serif, system-ui, sans-serif;
  --ar: "Cairo", "Switzer", sans-serif;
  /* motion: one entrance easing, one settle. durations stay short. */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --pad: clamp(20px, 5vw, 64px);
  --gut: clamp(48px, 6.2vw, 92px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ink); color: var(--cream); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
[dir="rtl"] body { font-family: var(--ar); line-height: 1.85; }
body.noscroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: var(--coral); color: var(--ink); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; letter-spacing: -.02em; line-height: 1.05; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: var(--ar); font-weight: 700; letter-spacing: 0; line-height: 1.28; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: var(--gut); }
.display { font-size: clamp(2.1rem, 5vw, 3.7rem); letter-spacing: -.03em; }
[dir="rtl"] .display { letter-spacing: 0; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); }
.lat { direction: ltr; unicode-bidi: isolate; }
.num { direction: ltr; unicode-bidi: isolate; font-feature-settings: "tnum" 1; }
.grad-txt { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tag { display: inline-flex; align-items: center; gap: .5em; font-size: .88rem; font-weight: 600; color: var(--coral); }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; font-family: var(--sans); font-weight: 600; font-size: 1rem; padding: .82em 1.6em; background: var(--grad); color: #1a120f; border-radius: 12px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), filter .3s; }
[dir="rtl"] .btn { font-family: var(--ar); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(255,111,94,.55); filter: brightness(1.05); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--cream); filter: none; }
.btn svg { width: 19px; height: 19px; }

html.js .reveal { opacity: 0; transform: translateY(26px); }
html.js .reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
html.js .reveal.d2 { transition-delay: .09s; } html.js .reveal.d3 { transition-delay: .18s; } html.js .reveal.d4 { transition-delay: .27s; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------------------------------------------------------------- nav, a dev-tool bar: brand + links hug the left, command pill on the right */
.nav { position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 70; padding: 14px var(--pad); border-block-end: 1px solid transparent; transition: background .35s var(--ease-soft), padding .35s var(--ease-soft), border-color .35s; }
.nav.scrolled { background: rgba(18,16,20,.74); -webkit-backdrop-filter: blur(14px) saturate(150%); backdrop-filter: blur(14px) saturate(150%); padding-block: 9px; border-block-end-color: var(--line-2); }
.nav-inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 22px); max-width: 1320px; margin-inline: auto; }
.brand { display: inline-flex; align-items: center; gap: 9px; flex: none; position: relative; }
.nav .brand { z-index: 80; } /* keep header brand above the mobile menu overlay, not the footer one */
.brand .mark { width: 30px; height: 30px; flex: none; } .brand .mark svg { width: 100%; height: 100%; display: block; }
.brand-en { font-family: var(--display); font-weight: 800; font-size: 1.24rem; letter-spacing: -.01em; }
[dir="rtl"] .brand-en { font-family: var(--ar); font-weight: 700; }
.nav-sep { width: 1px; height: 20px; background: var(--line); flex: none; }
.nav-links { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 38px); flex: 1; }
.nav-links > a { font-size: .94rem; font-weight: 500; color: var(--cream); opacity: .8; transition: opacity .25s, color .25s; }
.nav-links > a:first-of-type { margin-inline-start: auto; }
.nav-links > a:hover { opacity: 1; color: var(--coral); }
.nav-cta { margin-inline-start: auto; display: inline-flex; align-items: center; gap: clamp(14px, 1.6vw, 22px); }
.lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; opacity: .8; transition: opacity .25s, color .25s; }
.lang:hover { opacity: 1; color: var(--coral); }
.lang .globe { width: 16px; height: 16px; } .lang .globe svg { width: 100%; height: 100%; display: block; }
.cmd { display: inline-flex; align-items: center; gap: 10px; padding: .5em .55em .5em 1em; border-radius: 11px; background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: .9rem; color: var(--cream); transition: background .25s, box-shadow .25s; }
.cmd:hover { background: var(--ink-4); box-shadow: inset 0 0 0 1px rgba(255,111,94,.6); }
.cmd kbd { font-family: var(--sans); font-size: .72rem; font-weight: 700; color: var(--coral); background: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px 2px; line-height: 1; }
[dir="rtl"] .cmd { font-family: var(--ar); }
.nav-toggle { display: none; position: relative; z-index: 80; width: 42px; height: 42px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; margin-inline-start: auto; }
.nav-toggle span { width: 22px; height: 2px; background: var(--cream); transition: transform .4s var(--ease), opacity .3s; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- hero, type-first then the studio shown wide and product-led */
.hero { padding-block: clamp(116px, 16vh, 168px) clamp(42px, 6vw, 78px); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset-block-start: -22%; inset-inline-start: -8%; width: 56vw; height: 56vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, rgba(255,111,94,.18), transparent 62%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset-block-start: 2%; inset-inline-end: -10%; width: 46vw; height: 46vw; max-width: 560px; max-height: 560px; background: radial-gradient(circle, rgba(232,180,94,.12), transparent 64%); pointer-events: none; }
.hero > .wrap { position: relative; z-index: 1; }
.hero-top { display: grid; grid-template-columns: 1.42fr 1fr; gap: clamp(30px, 4.5vw, 64px); align-items: end; margin-block-end: clamp(30px, 4.5vw, 52px); }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: .84rem; font-weight: 600; color: var(--cream-2); padding: .5em .95em; border-radius: 100px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(255,111,94,.5); } 70% { box-shadow: 0 0 0 7px rgba(255,111,94,0); } 100% { box-shadow: 0 0 0 0 rgba(255,111,94,0); } }
@media (prefers-reduced-motion: reduce) { .status .pulse { animation: none; } }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.7rem); letter-spacing: -.04em; line-height: 1.04; margin-block-start: 22px; max-width: 17ch; text-wrap: balance; }
.hero h1 .grad-txt { white-space: nowrap; }
[dir="rtl"] .hero h1 { letter-spacing: 0; line-height: 1.18; max-width: 20ch; }
[dir="rtl"] .hero h1 .grad-txt { white-space: normal; }
.hero-side { padding-block-end: 4px; }
.hero-side .lead { max-width: 42ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 22px; }
.hero-stats { display: flex; gap: clamp(20px, 3vw, 36px); margin-block-start: 28px; flex-wrap: wrap; }
.hero-stats .hs { display: flex; flex-direction: column; gap: 2px; }
.hero-stats .hn { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.hero-stats .hl { font-size: .82rem; color: var(--muted); }
.hero-studio { position: relative; }
.hero-studio::before { content: ""; position: absolute; inset-block-start: 8%; inset-inline: 4%; height: 60%; background: radial-gradient(ellipse at 50% 0, rgba(255,111,94,.16), transparent 70%); filter: blur(30px); pointer-events: none; z-index: -1; }
.studio-cap { display: inline-flex; align-items: center; gap: 9px; font-size: .86rem; color: var(--muted); margin-block-end: 14px; }
.studio-cap .dotlive { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.hero-studio .panel { border-radius: 20px; }

/* studio preview panel (hero) + the live studio block share these */
.panel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 50px 90px -50px rgba(0,0,0,.8); }
.panel-bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; border-block-end: 1px solid var(--line-2); }
.panel-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--ink-4); }
.panel-bar .ttl { margin-inline-start: 10px; font-size: .82rem; color: var(--muted); font-weight: 600; }
[dir="rtl"] .panel-bar .ttl { margin-inline-start: 0; margin-inline-end: 10px; }

/* ---------------------------------------------------------------- studio app */
.studio { display: grid; grid-template-columns: 1.05fr 1.25fr; gap: 0; }
@media (max-width: 760px) { .studio { grid-template-columns: 1fr; } }
.composer { padding: clamp(18px, 2.4vw, 26px); border-inline-end: 1px solid var(--line-2); }
[dir="rtl"] .composer { border-inline-end: 0; border-inline-start: 1px solid var(--line-2); }
@media (max-width: 760px) { .composer { border-inline-end: 0; border-block-end: 1px solid var(--line-2); } }
.field { margin-block-end: 18px; }
.field > .flabel { font-size: .8rem; font-weight: 600; color: var(--cream-2); margin-block-end: 9px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: .5em 1em; border-radius: 100px; background: var(--ink-3); color: var(--cream-2); font-size: .86rem; font-weight: 500; transition: background .2s, color .2s, box-shadow .2s; }
.chip[aria-pressed="true"] { background: var(--coral); color: #1a120f; font-weight: 600; }
.chip:not([aria-pressed="true"]):hover { background: var(--ink-4); color: var(--cream); }
.brief { width: 100%; min-height: 92px; resize: vertical; background: var(--ink); color: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; font: inherit; font-size: .95rem; line-height: 1.5; }
[dir="rtl"] .brief { font-family: var(--ar); }
.brief:focus { outline: none; border-color: var(--coral); }
.brief::placeholder { color: var(--muted); }
.gen-row { display: flex; align-items: center; gap: 12px; margin-block-start: 4px; }
.gen-row .btn { flex: none; }
.gen-row .hint { font-size: .78rem; color: var(--muted); }

.output { padding: clamp(18px, 2.4vw, 26px); display: flex; flex-direction: column; gap: 14px; min-height: 320px; max-height: 560px; overflow-y: auto; }
.out-empty { margin: auto; text-align: center; color: var(--muted); max-width: 30ch; }
.out-empty .ei { width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 15px; background: var(--ink-3); display: grid; place-items: center; color: var(--coral); } .out-empty .ei svg { width: 27px; height: 27px; }
.thinking { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .9rem; padding: 6px 2px; }
.thinking .orb { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); animation: pulse 1.1s var(--ease) infinite; }
@keyframes pulse { 0%,100% { transform: scale(.7); opacity: .6; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .thinking .orb { animation: none; } }

.vcard { background: var(--ink); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; opacity: 0; transform: translateY(10px); }
.vcard.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }
.vcard .vhead { display: flex; align-items: center; gap: 8px; margin-block-end: 10px; }
.vcard .vt { font-size: .72rem; font-weight: 600; color: var(--gold); letter-spacing: .04em; }
.vcard .vbody { font-size: 1.02rem; line-height: 1.55; white-space: pre-wrap; }
.vcard.ar-body .vbody { font-family: var(--ar); direction: rtl; text-align: right; }
.vcard .vbody .caret { display: inline-block; width: 2px; height: 1.05em; background: var(--coral); vertical-align: text-bottom; animation: blink .9s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.vcard .vacts { display: flex; gap: 8px; margin-block-start: 13px; }
.vacts button { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; color: var(--cream-2); padding: .4em .8em; border-radius: 8px; background: var(--ink-3); transition: background .2s, color .2s; }
.vacts button:hover { background: var(--ink-4); color: var(--cream); }
.vacts button svg { width: 15px; height: 15px; }
.vacts button.done { color: var(--coral); }

/* full studio page chrome */
.studio-page { min-height: 100vh; display: grid; grid-template-columns: 68px 1fr; }
[dir="rtl"] .studio-page { grid-template-columns: 1fr 68px; }
.rail { background: var(--ink-2); border-inline-end: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0; }
[dir="rtl"] .rail { border-inline-end: 0; border-inline-start: 1px solid var(--line-2); order: 2; }
.rail .rbrand { width: 40px; height: 40px; margin-block-end: 14px; } .rail .rbrand svg { width: 100%; height: 100%; }
.rail a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); transition: background .2s, color .2s; position: relative; }
.rail a svg { width: 22px; height: 22px; }
.rail a.active { background: var(--ink-4); color: var(--coral); }
.rail a:hover { color: var(--cream); }
.rail .rspace { margin-block-start: auto; }
.studio-main { display: flex; flex-direction: column; min-width: 0; }
.studio-top { display: flex; align-items: center; gap: 14px; padding: 16px clamp(18px, 3vw, 34px); border-block-end: 1px solid var(--line-2); }
.studio-top h1 { font-size: 1.4rem; } .studio-top .sub { font-size: .85rem; color: var(--muted); }
.studio-top .end { margin-inline-start: auto; display: flex; align-items: center; gap: 12px; }
[dir="rtl"] .studio-top .end { margin-inline-start: 0; margin-inline-end: auto; }
.brand-chip { display: inline-flex; align-items: center; gap: 8px; padding: .5em 1em; border-radius: 100px; background: var(--ink-2); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; }
.brand-chip .sw { width: 14px; height: 14px; border-radius: 4px; background: var(--grad); }
.studio-body { flex: 1; padding: clamp(18px, 3vw, 34px); display: grid; grid-template-columns: 360px 1fr; gap: clamp(18px, 2.4vw, 30px); align-items: start; }
@media (max-width: 900px) { .studio-body { grid-template-columns: 1fr; } .studio-page, [dir="rtl"] .studio-page { grid-template-columns: 1fr; } .rail { flex-direction: row; border-inline-end: 0; border-block-end: 1px solid var(--line-2); } [dir="rtl"] .rail { order: 0; border-inline-start: 0; } .rail .rspace { margin: 0; } }
.panel-block { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; }
.panel-block .pb-head { padding: 15px 18px; border-block-end: 1px solid var(--line-2); font-weight: 600; font-size: .95rem; }

/* library list (studio page) */
.lib { display: flex; flex-direction: column; }
.lib-item { display: flex; gap: 12px; align-items: flex-start; padding: 13px 18px; border-block-end: 1px solid var(--line-2); text-align: start; width: 100%; transition: background .2s; }
.lib-item:hover { background: var(--ink-3); }
.lib-item:last-child { border-block-end: 0; }
.lib-item .li-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--ink-3); display: grid; place-items: center; color: var(--coral); flex: none; } .lib-item .li-ic svg { width: 16px; height: 16px; }
.lib-item > span:last-child { min-width: 0; }
.lib-item .li-t { display: block; font-size: .9rem; font-weight: 600; } .lib-item .li-s { display: block; font-size: .78rem; color: var(--muted); }

/* ---------------------------------------------------------------- marketing sections */
/* section label, a path-style "/ name" that nods to the command theme */
.sidx { display: inline-block; font-size: .82rem; font-weight: 600; color: var(--coral); margin-block-end: 16px; }
.sidx::before { content: "/ "; opacity: .55; }
.statement { max-width: 24ch; margin-block-end: clamp(34px, 5vw, 56px); }
.statement.wide { max-width: 30ch; }
.statement h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.035em; line-height: 1.04; }
[dir="rtl"] .statement h2 { letter-spacing: 0; line-height: 1.24; }
.statement p { color: var(--muted); margin-block: 16px 0; max-width: 46ch; font-size: 1.05rem; }

/* a showcase output card, the studio's own look reused as static proof */
.ocard { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 44px 84px -54px rgba(0,0,0,.85); }
.ocard-bar { display: flex; align-items: center; gap: 9px; padding: 12px 16px; border-block-end: 1px solid var(--line-2); }
.ocard-bar .odot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.ocard-bar .ovt { font-size: .74rem; font-weight: 600; color: var(--gold); letter-spacing: .04em; }
[dir="rtl"] .ocard-bar .ovt { letter-spacing: 0; }
.ocard-body { padding: 18px 20px; font-size: 1.05rem; line-height: 1.55; white-space: pre-wrap; }
.ocard-body.lg { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -.01em; padding-block: 26px 28px; }
[dir="rtl"] .ocard-body.lg { font-family: var(--ar); letter-spacing: 0; }
.ocard.ar-card { font-family: var(--ar); }
.ocard.ar-card .ocard-body { text-align: right; line-height: 1.85; }
.oacts { display: flex; gap: 8px; padding: 0 20px 18px; }
.oacts span { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; color: var(--cream-2); padding: .4em .8em; border-radius: 8px; background: var(--ink-3); }
.oacts span svg { width: 15px; height: 15px; }

/* output rows, alternating sides with deliberately different card widths */
.orows { display: grid; gap: clamp(34px, 5vw, 70px); }
.orow { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 76px); align-items: center; }
.orow.narrow { grid-template-columns: .82fr 1.18fr; }
.orow:nth-child(even) .orow-card { order: 1; }
.orow-card .ocard.tight { max-width: 380px; }
.orow-card .ocard.slim { max-width: 340px; }
.orow:nth-child(even) .orow-card .ocard { margin-inline-start: auto; }
.orow-copy h3 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.025em; line-height: 1.08; font-family: var(--display); }
[dir="rtl"] .orow-copy h3 { font-family: var(--ar); letter-spacing: 0; line-height: 1.3; }
.orow-copy p { color: var(--muted); margin-block: 15px 0; max-width: 42ch; font-size: 1.04rem; }

/* what it writes, a type-forward editorial list */
.typelist { border-block-start: 1px solid var(--line-2); }
.tl-item { display: grid; grid-template-columns: minmax(0, .42fr) 1fr auto; align-items: baseline; gap: clamp(16px, 3vw, 44px); padding-block: clamp(20px, 2.6vw, 30px); border-block-end: 1px solid var(--line-2); transition: padding-inline-start .3s var(--ease); }
.tl-item:hover { padding-inline-start: 10px; }
.tl-item .tname { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.4rem); letter-spacing: -.02em; transition: color .25s; }
[dir="rtl"] .tl-item .tname { font-family: var(--ar); font-weight: 700; letter-spacing: 0; }
.tl-item:hover .tname { color: var(--coral); }
.tl-item .tex { color: var(--muted); font-size: 1.02rem; }
.tl-item .tlen { font-size: .82rem; color: var(--gold); font-weight: 600; white-space: nowrap; }

/* bilingual showcase, offset cards */
.bil { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.bil-copy .display { margin-block: 14px 0; } .bil-copy p { color: var(--muted); margin-block: 18px 0; max-width: 44ch; }
.bil-cards { display: grid; gap: 16px; }
.bil-cards .ocard.ar-card { margin-inline-start: clamp(20px, 5vw, 52px); }

/* how it works, a connected band with a wider first cell */
.flow { display: grid; grid-template-columns: 1.25fr 1fr 1fr; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: var(--ink-2); }
.fstep { padding: clamp(24px, 3vw, 36px); border-inline-end: 1px solid var(--line-2); }
.fstep:last-child { border-inline-end: 0; }
.fstep .fn { font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--coral); display: block; margin-block-end: 12px; }
.fstep h3 { font-size: 1.18rem; margin-block-end: 7px; }
.fstep p { color: var(--muted); margin: 0; font-size: .96rem; max-width: 30ch; }

/* pricing, one large featured plan plus two compact ones, not three equal boxes */
.plans { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(16px, 2vw, 22px); align-items: stretch; }
.plans-side { display: grid; grid-template-rows: 1fr 1fr; gap: clamp(16px, 2vw, 22px); }
.plan { background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 18px; padding: clamp(22px, 2.4vw, 28px); display: flex; flex-direction: column; }
.plan .pn { font-weight: 600; font-size: 1.02rem; }
.plan .pp { font-family: var(--display); font-weight: 800; font-size: 2.1rem; margin-block: 8px 0; } .plan .pp .per { font-size: .88rem; font-weight: 500; color: var(--muted); font-family: var(--sans); }
.plan ul { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 9px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; color: var(--cream-2); }
.plan li svg { width: 17px; height: 17px; color: var(--coral); flex: none; margin-block-start: 2px; }
.plan .btn, .plan .btn--ghost { margin-block-start: auto; }
.plan-feat { border-color: rgba(255,111,94,.55); background: linear-gradient(165deg, rgba(255,111,94,.1), var(--ink-2) 52%); padding: clamp(28px, 3.4vw, 42px); }
.plan-feat .plan-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.plan-feat .pp { font-size: clamp(2.6rem, 4vw, 3.4rem); }
.plan-feat .ptag { font-size: .74rem; font-weight: 700; color: var(--coral); background: var(--ink); border: 1px solid rgba(255,111,94,.4); border-radius: 100px; padding: .4em .8em; white-space: nowrap; }
.plan-feat .pdesc { color: var(--muted); margin-block: 14px 0; max-width: 36ch; font-size: .98rem; }
.plan-feat ul { margin-block-start: 20px; grid-template-columns: 1fr 1fr; gap: 11px 18px; }

/* quote, large and left-aligned */
.quote { max-width: 56ch; margin: 0; }
.quote .qt { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.28; letter-spacing: -.02em; margin: 0; }
[dir="rtl"] .quote .qt { font-family: var(--ar); font-weight: 700; letter-spacing: 0; line-height: 1.6; }
.quote .by { margin-block-start: 24px; display: inline-flex; align-items: center; gap: 12px; }
.quote .by .av { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #1a120f; display: grid; place-items: center; font-weight: 800; flex: none; }
.quote .by .nm { font-weight: 600; } .quote .by .rl { font-size: .85rem; color: var(--muted); margin-inline-start: 9px; }

/* ---------------------------------------------------------------- footer, a CTA band over a compact two-group layout */
.footer { border-block-start: 1px solid var(--line-2); padding-block: clamp(44px, 5vw, 68px) 26px; }
.foot-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-block-end: clamp(40px, 5vw, 60px); border-block-end: 1px solid var(--line-2); }
.foot-cta h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); letter-spacing: -.035em; line-height: 1.02; max-width: 16ch; }
[dir="rtl"] .foot-cta h2 { letter-spacing: 0; line-height: 1.2; }
.cmd--lg { padding: .85em .85em .85em 1.5em; font-size: 1.02rem; border-radius: 13px; }
.cmd--lg kbd { font-size: .82rem; padding: 4px 10px 3px; }
.foot-main { display: flex; justify-content: space-between; gap: clamp(32px, 5vw, 80px); flex-wrap: wrap; padding-block: clamp(34px, 4vw, 52px); }
.foot-brand { max-width: 34ch; }
.footer-blurb { color: var(--muted); margin: 16px 0 18px; font-size: .95rem; }
.socials { display: flex; gap: 11px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--cream); transition: background .3s, color .3s, border-color .3s; }
.socials a:hover { background: var(--coral); color: var(--ink); border-color: var(--coral); } .socials svg { width: 18px; height: 18px; }
.foot-nav { display: flex; gap: clamp(40px, 6vw, 88px); }
.foot-col h5 { font-size: .92rem; font-weight: 700; color: var(--coral); margin: 0 0 14px; }
.foot-col a { display: block; color: var(--muted); font-size: .94rem; padding-block: 5px; transition: color .3s; } .foot-col a:hover { color: var(--cream); }
.footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block-start: 24px; border-block-start: 1px solid var(--line-2); font-size: .84rem; color: var(--muted); }
.credit { display: inline-flex; align-items: center; gap: 12px; }
.credit-label { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
[dir="rtl"] .credit-label { letter-spacing: 0; text-transform: none; font-size: .9rem; font-family: var(--ar); }
.wlogo { display: inline-flex; align-items: center; gap: 11px; opacity: .9; transition: opacity .4s; } .wlogo:hover { opacity: 1; }
.wlogo-mark { height: 38px; width: auto; display: block; } .wlogo-word { height: 26px; width: auto; display: block; }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,7,9,.74); backdrop-filter: blur(4px); }
.modal-card { position: relative; background: var(--ink-2); border: 1px solid var(--line); max-width: 440px; width: 100%; padding: clamp(28px, 4vw, 42px); border-radius: 20px; text-align: center; }
.modal-card .mk { width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px; background: var(--ink-3); color: var(--coral); display: grid; place-items: center; } .modal-card .mk svg { width: 26px; height: 26px; }
.modal-card h3 { font-size: 1.4rem; } .modal-card p { color: var(--muted); margin: 12px 0 0; }
.modal-close { margin-block-start: 22px; }

.skip { position: absolute; inset-inline-start: -999px; top: 8px; background: var(--coral); color: var(--ink); padding: 10px 16px; z-index: 200; border-radius: 8px; } .skip:focus { inset-inline-start: 12px; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .hero-top { grid-template-columns: 1fr; gap: clamp(22px, 4vw, 30px); align-items: start; margin-block-end: 30px; }
  .hero-side .lead { max-width: 56ch; }
}
@media (max-width: 1000px) {
  .flow { grid-template-columns: 1fr; }
  .fstep { border-inline-end: 0; border-block-end: 1px solid var(--line-2); }
  .fstep:last-child { border-block-end: 0; }
  .plans { grid-template-columns: 1fr; }
  .plans-side { grid-template-rows: auto; grid-template-columns: 1fr 1fr; }
  .bil { grid-template-columns: 1fr; }
  .bil-cards .ocard.ar-card { margin-inline-start: 0; }
}
@media (max-width: 860px) {
  body { font-size: 16px; }
  .nav-toggle { display: flex; }
  .nav-sep { display: none; }
  .nav-links { position: fixed; inset: 0; z-index: 65; flex-direction: column; align-items: center; justify-content: center; gap: 26px; background: rgba(18,16,20,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateX(100%); transition: transform .5s var(--ease); pointer-events: none; }
  [dir="rtl"] .nav-links { transform: translateX(-100%); }
  body.menu-open .nav-links { transform: none; pointer-events: auto; }
  /* scrolled adds backdrop-filter to .nav, which makes it the containing block
     for the fixed menu and collapses it into the header. drop it while open. */
  body.menu-open .nav { background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-links > a { font-size: 1.35rem; opacity: 1; }
  .nav-links > a:first-of-type { margin-inline-start: 0; }
  .nav-cta { margin-inline-start: 0; flex-direction: column; align-items: center; gap: 16px; margin-block-start: 14px; }
  .nav-cta .cmd { font-size: 1rem; padding: .7em .75em .7em 1.3em; }
  .orow, .orow.narrow { grid-template-columns: 1fr; gap: 22px; }
  .orow:nth-child(even) .orow-card { order: -1; }
  .orow-card .ocard, .orow:nth-child(even) .orow-card .ocard { margin-inline: 0; max-width: none; }
  .tl-item { grid-template-columns: 1fr; gap: 6px; }
  .tl-item .tlen { margin-block-start: 4px; }
  .plans-side { grid-template-columns: 1fr; }
  .plan-feat ul { grid-template-columns: 1fr; }
  .foot-main { flex-direction: column; gap: 30px; }
  .foot-cta { flex-direction: column; align-items: flex-start; gap: 22px; }
}
