/* SAMS website. Tokens follow the app's design system: purple brand, neutral surfaces. */
:root {
  --brand: #673de6; --brand-ink: #5227c4; --brand-soft: #efe9fd; --brand-2: #3b7cf6;
  --dark: #1c1030; --dark-2: #2f1c63; --dark-3: #4d2fb0;
  --amber: #ffb43a; --amber-ink: #2a1a00;
  --ink: #1d1d1d; --ink-2: #3b3850; --muted: #5b5870;
  --paper: #ffffff; --tint: #f7f5ff; --line: #e6e2f3;
  --ok: #157347;
  --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(28,16,48,.06), 0 8px 24px rgba(28,16,48,.08);
  --shadow-lg: 0 24px 60px rgba(28,16,48,.22);
  --ease: cubic-bezier(.22,.8,.3,1);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
[dir='rtl'] { --font: 'Cairo', 'DM Sans', system-ui, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--paper); text-rendering: optimizeLegibility; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); }
h1, h2, h3, h4 { line-height: 1.18; margin: 0; letter-spacing: -.015em; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }
.i { width: 20px; height: 20px; flex: none; }
[dir='rtl'] .arr { transform: scaleX(-1); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15.5px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(103,61,230,.35); }
.btn--primary:hover { background: var(--brand-ink); box-shadow: 0 10px 26px rgba(103,61,230,.45); }
.btn--ghost { background: transparent; color: var(--brand-ink); border-color: #cdc3f2; }
.btn--ghost:hover { background: var(--brand-soft); border-color: var(--brand); }
.btn--accent { background: var(--amber); color: var(--amber-ink); box-shadow: 0 8px 24px rgba(255,180,58,.35); }
.btn--accent:hover { background: #ffc35f; }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.38); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.2); border-color: #fff; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.nav.is-stuck { border-color: var(--line); box-shadow: 0 4px 20px rgba(28,16,48,.06); }
.nav__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 21px; }
.brand img { border-radius: 9px; }
.brand b { letter-spacing: .02em; }
.brand--light { color: #fff; }
.nav__links { display: flex; gap: 6px; margin-inline-start: 12px; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 8px 12px; border-radius: 10px; transition: background .15s, color .15s; }
.nav__links a:hover { background: var(--brand-soft); color: var(--brand-ink); }
.nav__mobile { display: none; }
.nav__act { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.nav__login { color: var(--ink-2); font-weight: 600; text-decoration: none; padding: 8px 10px; font-size: 15.5px; }
.nav__login:hover { color: var(--brand-ink); }
.lang { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 10px; }
.lang:hover { background: var(--brand-soft); }
.lang .i { width: 18px; height: 18px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 55%, var(--dark-3) 100%); padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero__glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(80px); opacity: .55; }
.hero__glow--a { width: 460px; height: 460px; background: #7c4dff; inset-block-start: -140px; inset-inline-end: -100px; }
.hero__glow--b { width: 380px; height: 380px; background: #2f7cff; inset-block-end: -160px; inset-inline-start: 20%; opacity: .35; }
.hero__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6.6fr); align-items: center; gap: clamp(28px, 4vw, 56px); }
.kicker { display: inline-block; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #cfc3ff; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.16); padding: 6px 14px; border-radius: 999px; }
[dir='rtl'] .kicker { letter-spacing: 0; text-transform: none; }
.hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; margin-block: 20px 18px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffd27a, #ffb43a 50%, #ff9a5a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: #e2dcf7; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__cta--c { justify-content: center; }
.hero__note { margin-top: 14px; font-size: 14.5px; color: #cfc6ee; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.chips li { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: #efeaff; }
.chips .i { color: #7ff0b4; width: 18px; height: 18px; }
.hero__art { position: relative; padding-block-end: 44px; }
.frame { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(28,16,48,.12); }
.frame__bar { display: flex; gap: 6px; padding: 10px 14px; background: #f3f1fa; border-bottom: 1px solid var(--line); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d2cde6; }
.frame img { width: 100%; }
.frame--hero { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: center; animation: heroIn 1s var(--ease) both; }
[dir='rtl'] .frame--hero { transform: perspective(1600px) rotateY(7deg) rotateX(2deg); }
@keyframes heroIn { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.phone { border-radius: 30px; padding: 9px; background: #14101f; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); overflow: hidden; width: min(230px, 100%); }
.phone img { border-radius: 22px; width: 100%; aspect-ratio: 430 / 560; object-fit: cover; object-position: top; background: #fff; }
.phone--hero { position: absolute; inset-inline-end: -14px; inset-block-end: 0; width: 176px; animation: heroIn 1.1s .25s var(--ease) both; }
.float { position: absolute; display: flex; align-items: center; gap: 12px; background: #fff; color: var(--ink); padding: 11px 16px 11px 12px; border-radius: 16px; box-shadow: var(--shadow-lg); animation: bob 5s ease-in-out infinite; }
[dir='rtl'] .float { padding: 11px 12px 11px 16px; }
.float b { display: block; font-size: 14.5px; line-height: 1.25; }
.float small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.float__ic { width: 38px; height: 38px; border-radius: 11px; background: #e4f6ec; color: var(--ok); display: grid; place-items: center; flex: none; }
.float__ic--w { background: #fff1d6; color: #9a5b00; }
.float--a { inset-inline-end: 4%; inset-block-start: -20px; }
.float--b { inset-inline-start: 6%; inset-block-end: 2px; animation-delay: -2.4s; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }

/* Stats */
.stats { background: var(--dark); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.stats__in { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 26px 16px; text-align: center; border-inline-end: 1px solid rgba(255,255,255,.1); }
.stat:last-child { border-inline-end: 0; }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--amber); line-height: 1.15; }
.stat span { color: #cfc6ee; font-size: 14.5px; }

/* Sections */
.sect { padding: clamp(56px, 8vw, 104px) 0; }
.sect--tint { background: var(--tint); }
.sect--dark { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #fff; }
.head { text-align: center; max-width: 720px; margin: 0 auto clamp(32px, 5vw, 56px); }
.head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.head--light p { color: #d9d0f5; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px 24px; transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s; }
.why:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cdc3f2; }
.why__ic, .sec__ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--brand-soft); color: var(--brand-ink); margin-bottom: 18px; flex: none; }
.why__ic .i, .sec__ic .i { width: 26px; height: 26px; }
.why h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why p, .sec p { color: var(--muted); font-size: 15.5px; }

/* Feature blocks */
.feat { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; margin-top: clamp(48px, 7vw, 96px); }
.feat:first-of-type { margin-top: 0; }
.feat--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feat--flip .feat__text { order: 2; }
.feat--flip .feat__shot { order: 1; }
.feat--portal { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.feat--portal .feat__shot { display: flex; justify-content: center; }
.feat--portal .phone { width: 260px; }
.feat__text h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 800; margin: 14px 0; }
.feat__text > p { color: var(--muted); font-size: 1.08rem; }
.tag { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--brand-ink); background: var(--brand-soft); padding: 5px 12px; border-radius: 999px; }
[dir='rtl'] .tag { letter-spacing: 0; text-transform: none; font-size: 14px; }
.tag--dark { color: #dccfff; background: rgba(255,255,255,.12); }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 11px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: 15.5px; }
.ticks .tick { color: var(--ok); background: #e4f6ec; border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }
.sect--dark .tick { background: rgba(127,240,180,.16); color: #7ff0b4; }
.feat__shot .frame { transition: transform .5s var(--ease); }
.feat__shot .frame:hover { transform: translateY(-6px); }

/* Modules */
.mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mod { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.mod:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdc3f2; }
.mod__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.mod--pro .mod__ic { background: #eaf1ff; color: #1d4ed8; }
.mod--ent .mod__ic { background: #fff1d6; color: #8a5200; }
.mod__n { font-weight: 700; font-size: 16px; line-height: 1.3; }
.mod__t { font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* Deploy + security */
.dep { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); padding: 34px; backdrop-filter: blur(8px); }
.dep__ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: rgba(255,255,255,.14); color: #fff; margin-bottom: 18px; }
.dep__ic .i { width: 28px; height: 28px; }
.dep h3 { font-size: 1.6rem; margin: 14px 0 0; }
.grid2--sec { gap: 20px; }
.sec { display: flex; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.sec .sec__ic { margin: 0; }
.sec h3 { font-size: 1.15rem; margin-bottom: 6px; }

/* Pricing */
.controls { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.seg { display: inline-flex; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; }
.seg button { font: inherit; font-weight: 700; font-size: 14.5px; min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); cursor: pointer; transition: background .2s, color .2s; }
.seg button small { font-weight: 600; color: var(--ok); margin-inline-start: 4px; }
.seg button:hover { background: var(--brand-soft); }
.seg button[aria-pressed='true'] { background: var(--brand); color: #fff; }
.seg button[aria-pressed='true'] small { color: #d6f7e6; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px; transition: transform .25s var(--ease), box-shadow .25s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan--pop { border-color: var(--brand); box-shadow: 0 16px 44px rgba(103,61,230,.2); }
.plan__flag { position: absolute; top: -14px; inset-inline-start: 50%; translate: -50% 0; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 16px; border-radius: 999px; white-space: nowrap; }
[dir='rtl'] .plan__flag { translate: 50% 0; }
.plan h3 { font-size: 1.4rem; }
.plan__d { color: var(--muted); font-size: 15px; margin-top: 4px; min-height: 1.6em; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.plan__price b { font-size: 3rem; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.plan__price .cur { font-weight: 700; color: var(--ink-2); font-size: 1.05rem; }
.plan__per { color: var(--muted); font-size: 14.5px; }
.plan__min { color: var(--muted); font-size: 14px; margin-top: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan__min b { color: var(--ink); }
.plan .ticks { margin-bottom: 26px; flex: 1; }
.plan .ticks li { font-size: 15px; }
.calc { margin-top: 30px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 28px; display: grid; grid-template-columns: 1fr; gap: 16px; }
.calc h3 { font-size: 1.25rem; }
.calc__row { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.calc__row label { font-weight: 600; }
.calc__row output { min-width: 4ch; text-align: center; font-weight: 800; font-size: 1.4rem; color: var(--brand-ink); }
input[type=range] { width: 100%; accent-color: var(--brand); height: 28px; }
.calc__res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.res { background: var(--tint); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.res span { display: block; font-size: 14px; color: var(--muted); font-weight: 600; }
.res b { display: block; font-size: 1.5rem; font-weight: 800; margin-top: 2px; }
.res small { color: var(--muted); font-size: 12.5px; }
.res--best { background: var(--brand-soft); border-color: #cdc3f2; }
.fine { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 16px; }

/* Get started */
.path { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 34px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.path h3 { font-size: 1.6rem; }
.path p { color: var(--muted); flex: 1; }
.flow { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.flow li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.flow b { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; }

/* Demo form */
.demo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.demo__side h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 800; }
.demo__side > p { margin: 14px 0 0; color: var(--muted); font-size: 1.1rem; }
.wa { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; font-weight: 700; color: #0b6b3a; text-decoration: none; padding: 12px 18px; border-radius: 999px; background: #dff6ea; }
.wa[hidden] { display: none; }
.form { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; color: var(--ink); min-height: 48px; padding: 10px 14px; border: 1.5px solid #d3cde8; border-radius: 12px; background: #fff; width: 100%; transition: border-color .15s, box-shadow .15s; }
.form textarea { resize: vertical; min-height: 88px; }
.form input:hover, .form select:hover, .form textarea:hover { border-color: #a99bdc; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(103,61,230,.18); }
.form .is-bad { border-color: #c62828; }
.radios { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.radios legend { font-weight: 600; font-size: 14.5px; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.radios label { display: flex; grid-template-columns: none; align-items: center; gap: 10px; padding: 12px 14px; border: 1.5px solid #d3cde8; border-radius: 12px; cursor: pointer; font-weight: 600; }
.radios label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.radios input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); flex: none; }
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.msg { min-height: 1.4em; font-weight: 600; font-size: 15px; text-align: center; }
.msg.ok { color: var(--ok); }
.msg.bad { color: #b3261e; }
.form.is-sent > :not(.msg) { display: none; }
.form.is-sent .msg { font-size: 1.15rem; padding: 30px 8px; }

/* FAQ */
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 4px; font-weight: 700; font-size: 1.1rem; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 1.3rem; font-weight: 700; transition: transform .25s var(--ease), background .2s; }
.qa[open] summary::after { content: '−'; background: var(--brand); color: #fff; }
.qa p { padding: 0 4px 22px; color: var(--muted); font-size: 1.04rem; max-width: 46em; }
.qa summary:hover { color: var(--brand-ink); }

/* Final CTA + footer */
.final { background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 55%, var(--dark-3) 100%); color: #fff; text-align: center; padding: clamp(56px, 8vw, 96px) 0; }
.final h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 800; }
.final p { margin-top: 12px; color: #dccfff; font-size: 1.15rem; }
.foot { background: #130b22; color: #cfc6ee; padding-top: 56px; font-size: 15px; }
.foot__in { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; }
.foot p { margin-top: 12px; max-width: 26em; }
.foot h4 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.foot a:not(.brand) { display: block; color: #cfc6ee; text-decoration: none; padding: 5px 0; }
.foot a:not(.brand):hover { color: #fff; text-decoration: underline; }
.foot__end { border-top: 1px solid rgba(255,255,255,.1); margin-top: 40px; padding: 20px 0 28px; color: #9d93bd; }

/* Reveal on scroll */
.js .reveal { opacity: 0; translate: 0 26px; transition: opacity .7s var(--ease), translate .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (max-width: 1040px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 640px; margin-inline: auto; width: 100%; margin-top: 36px; }
  .grid4, .mods { grid-template-columns: repeat(2, 1fr); }
  .nav__login, .nav__demo { display: none; }
}
@media (max-width: 900px) {
  .burger { display: inline-flex; }
  .nav__trial { display: none; }
  .nav__links { position: absolute; inset-inline: 0; top: 100%; flex-direction: column; gap: 2px; padding: 14px 16px 20px; margin: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(28,16,48,.1); display: none; }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 10px; font-size: 17px; }
  .nav__mobile { display: grid; gap: 10px; margin-top: 10px; }
  .nav__mobile .btn { color: inherit; padding: 0 22px; }
  .nav__mobile .btn--primary { color: #fff; }
  .nav__links .nav__mobile .btn--ghost { color: var(--brand-ink); }
  .feat, .feat--flip, .feat--portal, .demo, .grid2 { grid-template-columns: 1fr; }
  .feat--flip .feat__text, .feat--flip .feat__shot { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .flow { grid-template-columns: repeat(2, 1fr); }
  .foot__in { grid-template-columns: 1fr 1fr; }
  .calc__res { grid-template-columns: 1fr; }
  .stats__in { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-inline-end: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .grid4, .mods, .form__grid { grid-template-columns: 1fr; }
  .mods { grid-template-columns: repeat(2, 1fr); }
  .hero__cta .btn { width: 100%; }
  .phone--hero { width: 132px; inset-inline-end: -6px; }
  .float--a { inset-inline-start: -8px; }
  .float small { display: none; }
  .frame--hero, [dir='rtl'] .frame--hero { transform: none; }
  .calc__row { grid-template-columns: 1fr auto; }
  .calc__row label { grid-column: 1 / -1; }
  .foot__in { grid-template-columns: 1fr; }
  .plan__price b { font-size: 2.6rem; }
}

/* ===== Motion ===== */
:root { interpolate-size: allow-keywords; }

/* Scroll progress under the nav */
.nav::after { content: ''; position: absolute; inset-inline: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--amber)); transform-origin: left center; transform: scaleX(var(--p, 0)); pointer-events: none; }
[dir='rtl'] .nav::after { transform-origin: right center; }

/* Hero: words rise in one by one, gradient word shimmers, glows drift */
.js .hero h1 .w { display: inline-block; opacity: 0; translate: 0 .55em; rotate: 2deg; animation: wordIn .8s var(--ease) forwards; animation-delay: calc(.15s + var(--i) * .07s); }
@keyframes wordIn { to { opacity: 1; translate: 0 0; rotate: 0deg; } }
.js .hero .kicker, .js .hero .lead, .js .hero__cta, .js .hero__note, .js .chips { opacity: 0; translate: 0 18px; animation: wordIn .8s var(--ease) forwards; }
.js .hero .kicker { animation-delay: .05s; }
.js .hero .lead { animation-delay: .55s; }
.js .hero__cta { animation-delay: .7s; }
.js .hero__note { animation-delay: .8s; }
.js .chips { animation-delay: .9s; }
.hero h1 em { background-size: 220% 100%; animation: shimmer 5s linear infinite; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: -220% 0; } }
.hero__glow--a { animation: drift 14s ease-in-out infinite alternate; }
.hero__glow--b { animation: drift 18s ease-in-out -6s infinite alternate-reverse; }
@keyframes drift { from { translate: 0 0; scale: 1; } to { translate: -60px 50px; scale: 1.18; } }
.hero::before { animation: dots 30s linear infinite; }
@keyframes dots { to { background-position: 26px 26px; } }

/* Each word of the gradient phrase carries the shimmer itself, since clipped text can't pass through inline-block children */
.hero h1 em, .hero h1 em .w { color: transparent; }
.js .hero h1 em .w { animation: wordIn .8s var(--ease) forwards, shimmer 5s linear infinite; animation-delay: calc(.15s + var(--i) * .07s), 0s; }
.js .hero h1 em { animation: none; }

/* Hero art follows the pointer (set by site.js) */
.frame--hero { transform: perspective(1600px) rotateY(calc(-7deg + var(--px, 0) * 5deg)) rotateX(calc(2deg + var(--py, 0) * -4deg)); transition: transform .25s ease-out; }
[dir='rtl'] .frame--hero { transform: perspective(1600px) rotateY(calc(7deg + var(--px, 0) * 5deg)) rotateX(calc(2deg + var(--py, 0) * -4deg)); }
.phone--hero { transform: translate(calc(var(--px, 0) * -18px), calc(var(--py, 0) * -12px)); transition: transform .3s ease-out; }
.float { transform: translate(calc(var(--px, 0) * 22px), calc(var(--py, 0) * 14px)); transition: transform .35s ease-out; }
.float--a { animation: pop .7s 1.1s var(--ease) both, bob 5s 1.8s ease-in-out infinite; }
.float--b { animation: pop .7s 1.4s var(--ease) both, bob 5s 2.1s ease-in-out infinite; }
@keyframes pop { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
.float__ic { animation: ping 2.8s ease-out infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(21,115,71,.35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(21,115,71,0); } }
.float__ic--w { animation-name: pingw; }
@keyframes pingw { 0% { box-shadow: 0 0 0 0 rgba(154,91,0,.35); } 70%, 100% { box-shadow: 0 0 0 12px rgba(154,91,0,0); } }

/* Buttons: light sweep, arrow nudge, gentle attention pulse on the main call */
.btn--primary, .btn--accent { position: relative; overflow: hidden; }
.btn--primary::after, .btn--accent::after { content: ''; position: absolute; inset-block: 0; inset-inline-start: -60%; width: 40%; background: linear-gradient(105deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); }
.btn--primary:hover::after, .btn--accent:hover::after { animation: sweep .8s var(--ease); }
@keyframes sweep { to { inset-inline-start: 130%; } }
.btn .arr { transition: translate .25s var(--ease); }
.btn:hover .arr { translate: 5px 0; }
[dir='rtl'] .btn:hover .arr { translate: -5px 0; }
.hero .btn--accent { animation: glow 3.2s ease-in-out 2s infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 8px 24px rgba(255,180,58,.35); } 50% { box-shadow: 0 8px 40px rgba(255,180,58,.75); } }

/* Ticker of modules */
.ticker { overflow: hidden; background: var(--dark); border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0 6px; }
.ticker li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; color: #e5dcff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); padding: 7px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; }
.ticker .i { width: 17px; height: 17px; color: var(--amber); }
@keyframes marquee { to { transform: translateX(-50%); } }
[dir='rtl'] .ticker__track { animation-name: marquee-rtl; }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* Stats */
.stat b { display: inline-block; transition: transform .3s var(--ease); }
.stat:hover b { transform: scale(1.08); }

/* Section titles get an underline that draws in */
.head h2 { position: relative; display: inline-block; padding-bottom: 14px; }
.head h2::after { content: ''; position: absolute; inset-inline-start: 50%; bottom: 0; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand), var(--amber)); translate: -50% 0; scale: 0 1; transition: scale .8s .25s var(--ease); }
[dir='rtl'] .head h2::after { translate: 50% 0; }
.head.in h2::after { scale: 1 1; }
.demo__side h2 { position: static; }

/* "Why" cards: icon strokes draw themselves, icon tile tilts on hover */
.js .why .why__ic path, .js .why .why__ic circle, .js .why .why__ic rect { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .why.in .why__ic path, .js .why.in .why__ic circle, .js .why.in .why__ic rect { animation: draw 1.2s .3s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.why__ic, .mod__ic, .sec__ic, .dep__ic { transition: transform .35s var(--ease), background .25s, color .25s; }
.why:hover .why__ic, .mod:hover .mod__ic, .sec:hover .sec__ic { transform: rotate(-8deg) scale(1.12); background: var(--brand); color: #fff; }
.dep { transition: transform .3s var(--ease), background .3s, border-color .3s; }
.dep:hover { transform: translateY(-6px); background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.34); }
.dep:hover .dep__ic { animation: floaty 1.6s ease-in-out infinite; }
@keyframes floaty { 50% { translate: 0 -6px; } }

/* Feature blocks: screenshot wipes in, list items follow, gentle scroll parallax */
.js .feat__shot .frame, .js .feat__shot .phone { clip-path: inset(0 0 100% 0 round 14px); transition: clip-path 1.1s .1s var(--ease), transform .5s var(--ease); }
.js .feat.in .feat__shot .frame { clip-path: inset(0 0 0 0 round 14px); }
.js .feat.in .feat__shot .phone { clip-path: inset(0 0 0 0 round 30px); }
.js .feat__shot .frame img { scale: 1.12; transition: scale 1.6s .1s var(--ease); }
.js .feat.in .feat__shot .frame img { scale: 1; }
.feat__shot .frame, .feat__shot .phone { translate: 0 calc(var(--par, 0) * 1px); }
.js .feat .ticks li { opacity: 0; translate: -14px 0; transition: opacity .6s var(--ease), translate .6s var(--ease); transition-delay: calc(.35s + var(--k, 0) * .09s); }
[dir='rtl'] .js .feat .ticks li { translate: 14px 0; }
.js .feat.in .ticks li { opacity: 1; translate: 0 0; }

/* Module tiles cascade in */
.js .mod { scale: .92; }
.js .mod.in { scale: 1; }

/* Pricing: cards lift, price digits tween (site.js), popular card breathes */
.plan--pop { animation: breathe 4.5s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 22px 60px rgba(103,61,230,.34); } }
.plan__flag { animation: flag 3s ease-in-out infinite; }
@keyframes flag { 50% { translate: -50% -3px; } }
[dir='rtl'] .plan__flag { animation-name: flag-rtl; }
@keyframes flag-rtl { 50% { translate: 50% -3px; } }
.res { transition: transform .25s var(--ease), background .25s; }
.res:hover { transform: translateY(-3px); }
.seg button { transition: background .25s var(--ease), color .25s, transform .15s; }
.seg button:active { transform: scale(.94); }
input[type=range]::-webkit-slider-thumb { transition: transform .15s; }
input[type=range]:active::-webkit-slider-thumb { transform: scale(1.25); }

/* Steps */
.js .flow b { scale: 0; transition: scale .5s var(--ease); transition-delay: calc(var(--k, 0) * .16s + .2s); }
.js .flow.in b { scale: 1; }
.flow li:last-child b { animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(103,61,230,.45); } 70%, 100% { box-shadow: 0 0 0 14px rgba(103,61,230,0); } }
.path { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #cdc3f2; }

/* Form and FAQ */
.form input:focus, .form select:focus, .form textarea:focus { transform: translateY(-1px); }
.form.is-sent .msg { animation: wordIn .7s var(--ease) both; }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size .35s var(--ease), content-visibility .35s allow-discrete; }
.qa[open]::details-content { block-size: auto; }
.qa summary::after { transition: transform .35s var(--ease), background .2s; }
.qa[open] summary::after { transform: rotate(180deg); }

/* Final call to action */
.final { position: relative; overflow: hidden; isolation: isolate; }
.orb { position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb--a { width: 340px; height: 340px; background: #7c4dff; inset-inline-start: -80px; inset-block-start: -100px; animation: drift 12s ease-in-out infinite alternate; }
.orb--b { width: 300px; height: 300px; background: #2f7cff; inset-inline-end: -60px; inset-block-end: -120px; animation: drift 16s ease-in-out -5s infinite alternate-reverse; }
.final h2 { background: linear-gradient(90deg, #fff 30%, #ffd27a 50%, #fff 70%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; translate: 0 0; }
  .js .hero h1 .w, .js .hero .kicker, .js .hero .lead, .js .hero__cta, .js .hero__note, .js .chips { opacity: 1; translate: 0 0; rotate: 0deg; }
  .js .feat__shot .frame, .js .feat__shot .phone { clip-path: none; }
  .js .feat__shot .frame img { scale: 1; }
  .js .feat .ticks li { opacity: 1; translate: 0 0; }
  .js .flow b, .js .mod { scale: 1; }
  .js .why .why__ic path, .js .why .why__ic circle, .js .why .why__ic rect { stroke-dashoffset: 0; }
  .head h2::after { scale: 1 1; }
  .nav::after { display: none; }
}
