/* Static landing pages (fa.html at "/", en.html at "/en/"). Brand colours follow docs/BRANDING.md. */
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 400; font-display: swap; src: url(/landing/fonts/vazirmatn-arabic-400-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 700; font-display: swap; src: url(/landing/fonts/vazirmatn-arabic-700-normal.woff2) format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 400; font-display: swap; src: url(/landing/fonts/vazirmatn-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Vazirmatn; font-style: normal; font-weight: 700; font-display: swap; src: url(/landing/fonts/vazirmatn-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand-blue: #0069FE;
  --brand-cyan: #00A4FE;
  --brand-navy: #07182B;
  --page: #f5f7fb;
  --surface: #ffffff;
  --line: #e0e4eb;
  --text: #252c38;
  --muted: #5d6879;
  --soft: #eaf2ff;
  --focus: #00A4FE;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --page: #11151d; --surface: #1a1e27; --line: #343b49; --text: #e7ebf3; --muted: #aab4c5; --soft: #17253d; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: Vazirmatn, system-ui, sans-serif; line-height: 1.75; color: var(--text); background: var(--page); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 16px; top: -48px; padding: 8px 14px; border-radius: 8px; background: var(--surface); color: var(--text); z-index: 10; }
.skip:focus { top: 12px; }

/* Header and hero share the navy brand surface. */
.hero { position: relative; overflow: hidden; color: #fff; background: var(--brand-navy); }
/* Header: a fixed glass bar. One capsule holds the section links and the language switch; the
   sign-in button sits beside it as the single call to action. */
.site-bar { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease; border-bottom: 1px solid transparent; }
.site-bar.scrolled { background: rgb(7 24 43 / 0.9); border-bottom-color: rgb(255 255 255 / 0.08); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%); }
.site-header { display: flex; align-items: center; gap: 12px; min-height: 76px; }
.site-header .logo { display: inline-flex; margin-inline-end: auto; }
.site-header .logo img { height: 44px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 10px; }
.nav-capsule { position: relative; display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 999px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12), inset 0 1px 0 rgb(255 255 255 / 0.14), 0 10px 30px rgb(0 0 0 / 0.25);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.nav-link { position: relative; display: none; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px;
  color: rgb(255 255 255 / 0.72); text-decoration: none; font-size: 0.93rem; transition: color 0.2s ease, background-color 0.2s ease; }
@media (min-width: 760px) { .nav-link { display: inline-flex; } }
.nav-link:hover { color: #fff; background: rgb(255 255 255 / 0.07); }
.nav-link[aria-current="true"], .nav-link[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 0.1); }
.nav-link::after { content: ""; position: absolute; inset-inline: 50%; bottom: 3px; height: 2px; border-radius: 2px; opacity: 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--brand-cyan)); box-shadow: 0 0 10px var(--brand-cyan); transition: inset 0.3s ease, opacity 0.3s ease; }
.nav-link[aria-current="true"]::after, .nav-link[aria-current="page"]::after { inset-inline: 30%; opacity: 1; }
.nav-sep { display: none; width: 1px; height: 20px; margin-inline: 6px; background: rgb(255 255 255 / 0.16); }
@media (min-width: 760px) { .nav-sep { display: block; } }
.lang-toggle { display: flex; padding: 2px; border-radius: 999px; background: rgb(0 0 0 / 0.22); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.lang-toggle a, .lang-toggle span { display: grid; place-items: center; min-width: 38px; height: 30px; padding: 0 10px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-decoration: none; color: rgb(255 255 255 / 0.55); transition: color 0.2s ease, background-color 0.2s ease; }
.lang-toggle a:hover { color: #fff; }
.lang-toggle [aria-current="true"] { color: var(--brand-navy); background: linear-gradient(180deg, #fff, #d9ecff); box-shadow: 0 0 14px rgb(0 164 254 / 0.45); }
.nav-cta { position: relative; isolation: isolate; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px 0 20px; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 0.95rem; text-decoration: none;
  background: linear-gradient(135deg, var(--brand-blue), #1f8bff 55%, var(--brand-cyan));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 8px 24px rgb(0 105 254 / 0.45), 0 0 0 1px rgb(255 255 255 / 0.08);
  transition: box-shadow 0.25s ease, transform 0.25s ease; }
[dir="rtl"] .nav-cta { padding: 0 20px 0 18px; }
.nav-cta::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; padding: 2px; opacity: 0.8;
  background: conic-gradient(from var(--spin, 0deg), transparent 0 70%, rgb(255 255 255 / 0.9) 80%, transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cta-spin 4s linear infinite; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes cta-spin { to { --spin: 360deg; } }
.nav-cta svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
[dir="rtl"] .nav-cta svg { transform: scaleX(-1); }
.nav-cta:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35), 0 12px 32px rgb(0 164 254 / 0.55), 0 0 0 1px rgb(255 255 255 / 0.14); }
.nav-cta:hover svg { transform: translateX(3px); }
[dir="rtl"] .nav-cta:hover svg { transform: scaleX(-1) translateX(3px); }
@media (max-width: 420px) { .site-header .logo img { height: 38px; } .nav-cta { height: 40px; padding-inline: 16px; } .nav-cta svg { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .site-bar, .nav-link, .nav-link::after, .nav-cta, .nav-cta svg { transition: none; }
  .nav-cta::before { animation: none; }
  .nav-cta:hover { transform: none; }
}
section.block { scroll-margin-top: 76px; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 1px solid transparent; transition: transform 0.15s ease, background-color 0.15s ease; }
.button:hover { transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) { .button { transition: none; } .button:hover { transform: none; } }
.button.primary { background: var(--brand-blue); color: #fff; }
.button.primary:hover { background: #0a5ddf; }
.button.ghost { color: #fff; border-color: rgb(255 255 255 / 0.4); }
.button.ghost:hover { background: rgb(255 255 255 / 0.08); }

.hero-body { position: relative; z-index: 1; display: grid; gap: 40px; align-items: center; padding-block: 124px 72px; }
@media (min-width: 900px) { .hero-body { grid-template-columns: 1.15fr 0.85fr; padding-block: 148px 104px; } }
.eyebrow { margin: 0 0 12px; color: var(--brand-cyan); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }
.hero h1 { margin: 0; font-size: clamp(2rem, 5.2vw, 3.4rem); line-height: 1.3; font-weight: 700; text-wrap: balance; }
[lang="en"] .hero h1 { line-height: 1.15; letter-spacing: -0.01em; }
.hero .lead { margin: 20px 0 0; max-width: 36em; font-size: 1.1rem; color: rgb(255 255 255 / 0.8); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { margin: 16px 0 0; font-size: 0.9rem; color: rgb(255 255 255 / 0.62); }

/* Illustrative panel: lists what the workspace tracks, without invented balances. */
.preview { position: relative; margin: 0; padding: 22px; border-radius: 20px; background: rgb(255 255 255 / 0.06); border: 1px solid rgb(255 255 255 / 0.14);
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.35); backdrop-filter: blur(6px); }
.preview-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 14px; font-size: 0.95rem; color: rgb(255 255 255 / 0.75); }
.preview-title span:last-child { font-size: 0.8rem; padding: 2px 10px; border-radius: 999px; background: rgb(0 164 254 / 0.18); color: #bfe6ff; }
.preview ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.preview li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: rgb(255 255 255 / 0.05); }
.preview li b { font-weight: 700; }
.preview li small { display: block; color: rgb(255 255 255 / 0.6); font-size: 0.82rem; line-height: 1.5; }
.dot { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.dot svg { width: 18px; height: 18px; }
.dot.gold { background: rgb(234 179 8 / 0.2); color: #fcd34d; }
.dot.fx { background: rgb(0 164 254 / 0.2); color: #7dd3fc; }
.dot.stock { background: rgb(34 197 94 / 0.18); color: #86efac; }
.dot.loan { background: rgb(244 114 182 / 0.18); color: #f9a8d4; }

/* Sections */
section.block, article.block { padding-block: 72px; }
section.block.alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head h2 { margin: 0; font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.4; text-wrap: balance; }
.section-head p { margin: 12px 0 0; color: var(--muted); font-size: 1.05rem; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.alt .card { background: var(--page); }
.card h3 { margin: 14px 0 6px; font-size: 1.1rem; line-height: 1.5; }
.card p { margin: 0; color: var(--muted); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--soft); color: var(--brand-blue); }
@media (prefers-color-scheme: dark) { .icon { color: var(--brand-cyan); } }
.icon svg { width: 22px; height: 22px; }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.alt .checks li { background: var(--page); }
.checks svg { width: 22px; height: 22px; margin-top: 4px; color: var(--brand-blue); }
@media (prefers-color-scheme: dark) { .checks svg { color: var(--brand-cyan); } }
.checks b { display: block; }
.checks span { color: var(--muted); }

.notice { margin-top: 28px; padding: 16px 18px; border-radius: 14px; border: 1px dashed var(--line); color: var(--muted); font-size: 0.95rem; }

.cta { text-align: center; color: #fff; background: linear-gradient(120deg, var(--brand-navy), #0b2a52 60%, #0b3f7a); }
.cta h2 { margin: 0; font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.4; }
.cta p { margin: 12px auto 0; max-width: 34em; color: rgb(255 255 255 / 0.78); }
.cta .actions { justify-content: center; }

.site-footer { padding-block: 32px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-footer img { height: 36px; width: auto; display: block; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-inline-start: auto; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer .logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .site-footer .logo-light { display: none; } .site-footer .logo-dark { display: block; } }

/* ---- Motion and light. Everything below is decorative and switches off under reduced motion. ---- */

/* Hero: drifting brand light over a faint grid, with a glowing horizon line. */
.hero-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-fx::before { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 56px 56px; background-position: calc(50% + var(--px, 0px)) var(--py, 0px);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 20%, transparent 75%); }
.hero-fx::after { content: ""; position: absolute; inset: auto 0 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgb(0 164 254 / 0.8) 30%, rgb(255 255 255 / 0.9) 50%, rgb(0 105 254 / 0.8) 70%, transparent);
  box-shadow: 0 0 24px 2px rgb(0 164 254 / 0.55); }
/* Pointer-reactive grid: lines light up around the cursor, and the grid drifts against the pointer
   for depth (both driven by --mx/--my and --px/--py from site.js). */
.grid-glow { position: absolute; inset: 0; opacity: 0; transition: opacity 0.5s ease;
  background-image: linear-gradient(rgb(0 164 254 / 0.6) 1px, transparent 1px), linear-gradient(90deg, rgb(0 164 254 / 0.6) 1px, transparent 1px),
    radial-gradient(280px circle at var(--mx, -999px) var(--my, -999px), rgb(0 105 254 / 0.22), transparent 70%);
  background-size: 56px 56px, 56px 56px, 100% 100%;
  background-position: calc(50% + var(--px, 0px)) var(--py, 0px), calc(50% + var(--px, 0px)) var(--py, 0px), 0 0;
  -webkit-mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%);
  mask-image: radial-gradient(240px circle at var(--mx, -999px) var(--my, -999px), #000, transparent 72%); }
.hero.pointer .grid-glow { opacity: 1; }
.orb { position: absolute; border-radius: 50%; filter: blur(40px); will-change: transform; }
.orb-a { width: 58vmax; height: 58vmax; top: -26vmax; inset-inline-end: -14vmax; opacity: 0.7;
  background: radial-gradient(closest-side, rgb(0 105 254 / 0.75), transparent); animation: drift-a 22s ease-in-out infinite alternate; }
.orb-b { width: 44vmax; height: 44vmax; bottom: -24vmax; inset-inline-start: -12vmax; opacity: 0.6;
  background: radial-gradient(closest-side, rgb(0 164 254 / 0.55), transparent); animation: drift-b 27s ease-in-out infinite alternate; }
.orb-c { width: 24vmax; height: 24vmax; top: 34%; inset-inline-start: 42%; opacity: 0.45;
  background: radial-gradient(closest-side, rgb(120 190 255 / 0.6), transparent); animation: drift-c 19s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-8vmax, 6vmax, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(10vmax, -5vmax, 0) scale(0.92); } }
@keyframes drift-c { 0% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-12vmax, -4vmax, 0) scale(1.3); } 100% { transform: translate3d(6vmax, 5vmax, 0) scale(0.9); } }

/* The second headline line carries a slow light sweep. */
.hero h1 .accent { background: linear-gradient(100deg, #ffffff 0%, #ffffff 35%, #8fd3ff 48%, var(--brand-cyan) 52%, #ffffff 65%, #ffffff 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 7s ease-in-out infinite; }
@keyframes shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0% 0; } }

/* Hero entrance */
.hero-body > div > * { animation: rise 0.8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-body > div > :nth-child(2) { animation-delay: 0.08s; }
.hero-body > div > :nth-child(3) { animation-delay: 0.16s; }
.hero-body > div > :nth-child(4) { animation-delay: 0.24s; }
.hero-body > div > :nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Preview panel: floats gently, rows arrive one by one, the tag shows a live pulse. */
.preview { animation: float 8s ease-in-out 1.2s infinite; }
.preview::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgb(0 164 254 / 0.7), transparent 35%, transparent 65%, rgb(0 105 254 / 0.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes float { 50% { transform: translateY(-10px); } }
.preview li { animation: rise 0.7s cubic-bezier(.2, .7, .2, 1) both; transition: background-color 0.25s ease, transform 0.25s ease; }
.preview li:nth-child(1) { animation-delay: 0.35s; }
.preview li:nth-child(2) { animation-delay: 0.47s; }
.preview li:nth-child(3) { animation-delay: 0.59s; }
.preview li:nth-child(4) { animation-delay: 0.71s; }
.preview li:hover { background: rgb(255 255 255 / 0.09); transform: translateX(4px); }
[dir="rtl"] .preview li:hover { transform: translateX(-4px); }
.preview-title span:last-child { display: inline-flex; align-items: center; gap: 7px; }
.preview-title span:last-child::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgb(52 211 153 / 0.6); animation: live 2s ease-out infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgb(52 211 153 / 0); } 100% { box-shadow: 0 0 0 0 rgb(52 211 153 / 0); } }
.hero .button.primary { box-shadow: 0 10px 30px rgb(0 105 254 / 0.45), inset 0 1px 0 rgb(255 255 255 / 0.3); }

/* Cards and checklist rows: the edge lights up where the pointer is (set by site.js). */
.card, .checks li { position: relative; isolation: isolate; transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card::before, .checks li::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0;
  background: radial-gradient(260px circle at var(--x, 50%) var(--y, 0%), var(--brand-cyan), var(--brand-blue) 35%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; transition: opacity 0.3s ease; }
.card::after, .checks li::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(340px circle at var(--x, 50%) var(--y, 0%), rgb(0 164 254 / 0.11), transparent 65%); transition: opacity 0.3s ease; }
.card:hover::before, .card:hover::after, .checks li:hover::before, .checks li:hover::after { opacity: 1; }
.card:hover { transform: translateY(-4px); border-color: transparent; box-shadow: 0 22px 48px rgb(0 105 254 / 0.14); }
.checks li:hover { border-color: transparent; box-shadow: 0 14px 36px rgb(0 105 254 / 0.1); }
.icon { transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease; }
.card:hover .icon { color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); box-shadow: 0 8px 22px rgb(0 164 254 / 0.45); transform: scale(1.06); }
@media (prefers-color-scheme: dark) { .card:hover, .checks li:hover { box-shadow: 0 22px 48px rgb(0 0 0 / 0.45), 0 0 40px rgb(0 105 254 / 0.12); } }

/* Scroll reveal: site.js adds .reveal only to content below the fold, so nothing is hidden without JS. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1), transform 0.8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in, .checks li.reveal.in { transition: opacity 0.8s cubic-bezier(.2, .7, .2, 1) var(--delay, 0s), transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }

/* Closing call to action: a slowly flowing gradient with the same horizon light. */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--brand-navy), #0b2a52 35%, #0b3f7a 55%, #0a2448 75%, var(--brand-navy));
  background-size: 260% 260%; animation: flow 18s ease-in-out infinite; }
.cta::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgb(0 164 254 / 0.8), transparent); box-shadow: 0 0 24px 2px rgb(0 164 254 / 0.45); }
.cta .wrap { position: relative; }
@keyframes flow { 50% { background-position: 100% 50%; } }

@media (prefers-reduced-motion: reduce) {
  .orb, .hero h1 .accent, .hero-body > div > *, .preview, .preview li, .preview-title span:last-child::before, .cta { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card:hover, .preview li:hover, .card:hover .icon { transform: none; }
}

/* ---- Inner pages: legal pages and the blog ---- */
.hero-compact .page-head { position: relative; z-index: 1; padding-block: 132px 56px; max-width: 46rem; }
@media (min-width: 900px) { .hero-compact .page-head { padding-block: 156px 72px; } }
.page-head h1 { margin: 0; font-size: clamp(1.8rem, 4.4vw, 2.8rem); line-height: 1.35; text-wrap: balance; }
.page-meta { margin: 14px 0 0; color: rgb(255 255 255 / 0.72); font-size: 1rem; }
.hero-404 .page-head { padding-block: 168px 120px; }
.hero-404 .actions { margin-top: 28px; }

.prose { max-width: 46rem; font-size: 1.06rem; line-height: 2; }
[lang="en"] .prose { line-height: 1.8; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2.2em 0 0.6em; font-size: 1.35rem; line-height: 1.5; }
.prose h3 { margin: 1.8em 0 0.5em; font-size: 1.12rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--brand-blue); }
.prose a { color: var(--brand-blue); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { .prose a, .prose li::marker { color: var(--brand-cyan); } }
.prose strong { font-weight: 700; }
.prose em { color: var(--muted); }
.prose blockquote { margin: 1.4em 0; padding: 12px 18px; border-inline-start: 3px solid var(--brand-blue); background: var(--soft); border-radius: 0 12px 12px 0; }
[dir="rtl"] .prose blockquote { border-radius: 12px 0 0 12px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose-lead { font-size: 1.15rem; color: var(--muted); }
.post-back { margin-top: 2.5em; }

/* FAQ accordion */
.faq { display: grid; gap: 12px; }
.faq-item { border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: border-color 0.25s ease, box-shadow 0.25s ease; }
.faq-item[open] { border-color: color-mix(in srgb, var(--brand-blue) 45%, var(--line)); box-shadow: 0 14px 34px rgb(0 105 254 / 0.1); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--soft); color: var(--brand-blue); transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease; }
.faq-icon svg { width: 16px; height: 16px; }
.faq-item[open] .faq-icon { transform: rotate(45deg); color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); }
.faq-item p { margin: 0; padding: 0 18px 18px; color: var(--muted); }
.faq-item a { color: var(--brand-blue); }
@media (prefers-color-scheme: dark) { .faq-icon, .faq-item a { color: var(--brand-cyan); } }

/* Blog index */
.post-list { display: grid; gap: 16px; }
@media (min-width: 760px) { .post-list { grid-template-columns: repeat(2, 1fr); } }
.post-card { display: flex; flex-direction: column; }
.post-card h2 { margin: 6px 0 8px; font-size: 1.25rem; line-height: 1.5; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::before { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.post-meta { margin: 0; color: var(--muted); font-size: 0.9rem; }
.post-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 14px; color: var(--brand-blue); font-weight: 700; font-size: 0.95rem; }
.post-more svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
[dir="rtl"] .post-more svg { transform: scaleX(-1); }
.post-card:hover .post-more svg { transform: translateX(3px); }
[dir="rtl"] .post-card:hover .post-more svg { transform: scaleX(-1) translateX(3px); }
@media (prefers-color-scheme: dark) { .post-more { color: var(--brand-cyan); } }

.footer-note { flex-basis: 100%; margin: 0; font-size: 0.85rem; }

/* Lighter effects on small screens and when the device asks to save data: no drifting blur layers. */
@media (max-width: 760px), (prefers-reduced-data: reduce) {
  .orb { animation: none; filter: blur(28px); }
  .orb-c { display: none; }
  .preview { animation: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .cta { animation: none; }
}

/* Product showcase: a glass browser frame with section tabs, and the phone view overlapping it. */
.showcase { overflow: hidden; }
.tour-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.tour-tabs button { min-height: 38px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease; }
.tour-tabs button:hover { color: var(--text); }
.tour-tabs button[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); box-shadow: 0 6px 18px rgb(0 105 254 / 0.35); }
.tour-stage { position: relative; padding-inline-end: 0; }
@media (min-width: 900px) { .tour-stage { padding-inline-end: 120px; padding-bottom: 40px; } }
.browser { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 40px 90px -30px rgb(7 24 43 / 0.45), 0 0 0 1px rgb(0 105 254 / 0.06); }
.browser::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(140deg, rgb(0 164 254 / 0.6), transparent 30%, transparent 70%, rgb(0 105 254 / 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: var(--page); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.browser-bar em { margin-inline-start: 12px; padding: 2px 14px; border-radius: 999px; background: var(--surface); color: var(--muted); font-style: normal; font-size: 0.8rem; direction: ltr; }
.tour-panel { margin: 0; }
.tour-panel img { display: block; width: 100%; height: auto; }
.tour-panel:not([hidden]) img { animation: tour-in 0.5s ease both; }
@keyframes tour-in { from { opacity: 0; transform: scale(0.99); } }
.phone { display: none; }
@media (min-width: 900px) {
  .phone { display: block; position: absolute; inset-inline-end: 0; bottom: 0; width: 230px; padding: 8px; border-radius: 34px; background: #0b1424;
    box-shadow: 0 30px 70px -20px rgb(7 24 43 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.12), 0 0 40px rgb(0 105 254 / 0.25); }
  .phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 18; object-fit: cover; object-position: top; border-radius: 26px; }
}
@media (max-width: 899px) {
  /* Small screens show the phone view on its own: the desktop frame would be too small to read. */
  .tour-tabs, .browser { display: none; }
  .phone { display: block; width: min(300px, 80%); margin-inline: auto; padding: 8px; border-radius: 34px; background: #0b1424;
    box-shadow: 0 30px 70px -20px rgb(7 24 43 / 0.6), inset 0 0 0 1px rgb(255 255 255 / 0.12); }
  .phone img { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 26px; }
}
@media (prefers-reduced-motion: reduce) { .tour-panel:not([hidden]) img { animation: none; } }

/* Blog pagination */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 36px; }
.pager ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pager a, .pager-gap { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.pager ol a { border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.pager ol a:hover { border-color: var(--brand-blue); box-shadow: 0 6px 16px rgb(0 105 254 / 0.15); }
.pager ol a[aria-current="page"] { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--brand-blue), var(--brand-cyan)); box-shadow: 0 8px 20px rgb(0 105 254 / 0.35); }
.pager-gap { color: var(--muted); min-width: 24px; padding: 0; }
.pager-step { color: var(--brand-blue); }
.pager-step:hover { background: var(--soft); }
@media (prefers-color-scheme: dark) { .pager-step { color: var(--brand-cyan); } }
