/* =====================================================================
   OstadTools — public site (home, tools, pricing, FAQ, blog, forum)
   Standalone, no framework: fast first paint. Light theme, RTL aware.
   ===================================================================== */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-024F, U+1E00-1EFF; }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 400; font-display: swap; src: url("../fonts/noto-sans-arabic-arabic-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 600; font-display: swap; src: url("../fonts/noto-sans-arabic-arabic-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Noto Sans Arabic"; font-weight: 700; font-display: swap; src: url("../fonts/noto-sans-arabic-arabic-700-normal.woff2") format("woff2"); }

:root {
  --ink: #141a33;
  --text: #2a3150;
  --muted: #5d6585;
  --subtle: #8a91ab;
  --bg: #ffffff;
  --bg-alt: #f6f7fc;
  --line: #e4e7f2;
  --primary: #3b5bdb;
  --primary-2: #4c6ef5;
  --primary-soft: #edf1ff;
  --accent: #f59f00;
  --accent-soft: #fff4db;
  --ok: #16a34a;
  --ko: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(20, 26, 51, .05), 0 10px 30px rgba(20, 26, 51, .07);
  --shadow-lg: 0 24px 60px rgba(30, 42, 90, .16);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Inter", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body.site { margin: 0; overflow-x: clip; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.rtl { font-size: 17px; line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-2); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.02em; }
.rtl h1, .rtl h2, .rtl h3 { letter-spacing: 0; line-height: 1.45; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.35rem); }
h3 { font-size: 1.12rem; }
.h4 { font-size: 1.1rem; } .h5 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.muted { color: var(--muted); } .xs { font-size: .85rem; } .center { text-align: center; } .mt { margin-top: 1.5rem; }
.skip { position: absolute; inset-inline-start: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; transform: translateY(-300%); }
.skip:focus { transform: none; }
:focus-visible { outline: 3px solid rgba(59, 91, 219, .45); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 1.5px solid transparent; border-radius: 12px; padding: .7em 1.2em; font-weight: 600; font-size: .97rem; cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s; white-space: nowrap; font-family: inherit; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .5em .95em; font-size: .9rem; border-radius: 10px; }
.btn-lg { padding: .9em 1.5em; font-size: 1.02rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(180deg, var(--primary-2), var(--primary)); color: #fff; box-shadow: 0 8px 20px rgba(59, 91, 219, .28); }
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(59, 91, 219, .36); }
.btn-ghost { color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--primary-soft); color: var(--primary); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { color: var(--primary); box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.link-arrow { font-weight: 600; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span { transform: translateX(4px); }
.rtl .link-arrow:hover span { transform: translateX(-4px); }
.input { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: .7em .9em; font: inherit; color: var(--ink); background: #fff; }
.input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59, 91, 219, .12); }
.stack { display: grid; gap: .75rem; }

/* ------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 20px rgba(20, 26, 51, .05); }
.header-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 1.2rem; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, #5c7cfa, #3b5bdb 60%, #364fc7); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(59, 91, 219, .35); }
.brand-mark svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.brand-name b { color: var(--primary); }
.main-nav { display: flex; gap: 4px; margin-inline-start: 12px; }
.main-nav a { color: var(--text); font-weight: 500; padding: .45em .8em; border-radius: 10px; }
.main-nav a:hover, .main-nav a.active { color: var(--primary); background: var(--primary-soft); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 1.5px solid var(--line); border-radius: 10px; padding: .42em .7em; font: inherit; font-weight: 600; font-size: .85rem; color: var(--ink); cursor: pointer; }
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.lang-menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; min-width: 150px; display: none; }
.lang-switch.open .lang-menu { display: grid; }
.lang-menu a { padding: .5em .8em; border-radius: 8px; color: var(--ink); }
.lang-menu a:hover, .lang-menu a.active { background: var(--primary-soft); color: var(--primary); }
.menu-btn { display: none; width: 42px; height: 40px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; padding: 0 10px; flex-direction: column; justify-content: center; gap: 4px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.site-flash { position: fixed; top: 80px; inset-inline-end: 16px; z-index: 60; display: grid; gap: 8px; }
.flash { background: #fff; border: 1px solid var(--line); border-inline-start: 4px solid var(--primary); padding: .7em 1em; border-radius: 12px; box-shadow: var(--shadow); max-width: 360px; animation: pop .4s var(--ease); }
.flash-danger { border-inline-start-color: var(--ko); } .flash-success { border-inline-start-color: var(--ok); }

.announce-bar { background: linear-gradient(90deg, var(--primary), #5f3dc4); color: #fff; font-size: .93rem; padding: .55em 0; text-align: center; }
.announce-bar.announce-offer { background: linear-gradient(90deg, #e8590c, var(--accent)); }
.announce-bar a { color: #fff; text-decoration: underline; }

/* ------------------------------------------------------------ hero */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.o1 { width: 520px; height: 520px; background: #dbe4ff; top: -180px; inset-inline-end: -120px; animation: drift 14s ease-in-out infinite alternate; }
.o2 { width: 380px; height: 380px; background: #fff0d1; bottom: -160px; inset-inline-start: -120px; animation: drift 18s ease-in-out infinite alternate-reverse; }
.grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(59, 91, 219, .10) 1px, transparent 1px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .88rem; color: var(--primary); background: var(--primary-soft); border: 1px solid #d5defd; padding: .4em .9em; border-radius: 999px; margin-bottom: 18px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.55rem); font-weight: 800; letter-spacing: -.035em; margin-bottom: .45em; }
.rtl .hero h1 { letter-spacing: 0; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); }
.hero h1 span { background: linear-gradient(90deg, var(--primary), #7048e8 60%, #e8590c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 22px; }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; }
.trust li { display: inline-flex; align-items: center; gap: 6px; }
.trust svg, .checks li::before { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.hero-visual { position: relative; }
.hv { width: 100%; height: auto; overflow: visible; font-family: var(--font); direction: ltr; }
.hv .sheet { animation: float 7s ease-in-out infinite; transform-box: fill-box; }
.hv .phone { animation: float 7s ease-in-out infinite reverse; }
.hv .mark { stroke-dasharray: 34; stroke-dashoffset: 34; animation: draw 9s var(--ease) infinite; }
.hv .hit, .hv .note, .hv .dot { opacity: 0; animation: appear 9s var(--ease) infinite; }
.hv .scanline { animation: scan 3s ease-in-out infinite; }
.hv .chip { opacity: 0; animation: chip 9s var(--ease) infinite; }
.hv .chip-domain { animation-delay: .4s; }
.hv .m0 { animation-delay: .2s } .hv .m1 { animation-delay: .7s } .hv .m2 { animation-delay: 1.2s } .hv .m3 { animation-delay: 1.7s } .hv .m4 { animation-delay: 2.2s }
.hv .h0, .hv .n0, .hv .d0 { animation-delay: 3s } .hv .h1, .hv .n1, .hv .d1 { animation-delay: 3.3s } .hv .h2, .hv .n2, .hv .d2 { animation-delay: 3.6s } .hv .h3, .hv .n3, .hv .d3 { animation-delay: 3.9s } .hv .h4, .hv .n4, .hv .d4 { animation-delay: 4.2s }

/* ------------------------------------------------------------ stats */
.stats-strip { padding: 10px 0 30px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .93rem; }

/* ------------------------------------------------------------ sections */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.section-head.row-head { display: flex; justify-content: space-between; align-items: baseline; max-width: none; text-align: start; }
.page-hero { padding: 56px 0 26px; background: linear-gradient(180deg, var(--primary-soft), #fff); }
.page-hero h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.8rem); font-weight: 800; }
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }

/* marquee */
.marquee { overflow: hidden; contain: paint; padding: 6px 0 34px; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 40s linear infinite; }
.rtl .marquee-track { animation-name: marquee-rtl; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.mchip { display: inline-flex; align-items: center; gap: 8px; padding: .55em 1em .55em .55em; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 600; color: var(--ink); white-space: nowrap; }
.rtl .mchip { padding: .55em .55em .55em 1em; }
.mchip em { font-style: normal; font-size: .75rem; color: var(--accent); background: var(--accent-soft); padding: .1em .5em; border-radius: 999px; }
.mchip-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--tc) 14%, #fff); color: var(--tc); }
.mchip-ico .icon, .tool-ico .icon, .thumb-icon .icon { width: 18px; height: 18px; stroke: currentColor; fill: none; }

/* tool cards */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.tool-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); display: flex; flex-direction: column; }
.tool-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.tool-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--tc) 10%, #fff); }
.tool-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tool-card:hover .tool-thumb img { transform: scale(1.04); }
.thumb-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--tc) 22%, #fff) 0%, color-mix(in srgb, var(--tc) 8%, #fff) 55%, #fff 100%); }
.thumb-art.big { position: relative; aspect-ratio: 16/9; border-radius: 24px; }
.thumb-art i { position: absolute; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--tc) 30%, transparent); }
.thumb-art i:nth-child(2) { width: 140px; height: 140px; animation: ring 4s ease-out infinite; }
.thumb-art i:nth-child(3) { width: 140px; height: 140px; animation: ring 4s ease-out 1.3s infinite; }
.thumb-art i:nth-child(4) { width: 140px; height: 140px; animation: ring 4s ease-out 2.6s infinite; }
.thumb-icon { position: relative; z-index: 1; width: 72px; height: 72px; border-radius: 22px; background: #fff; color: var(--tc); display: grid; place-items: center; box-shadow: 0 12px 28px color-mix(in srgb, var(--tc) 35%, transparent); }
.thumb-icon .icon { width: 34px; height: 34px; }
.tag { position: absolute; top: 12px; inset-inline-end: 12px; font-size: .75rem; font-weight: 700; padding: .25em .7em; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.tag.static { position: static; display: inline-block; }
.tag-soon { color: #b45309; background: var(--accent-soft); }
.tool-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tool-body h3 { display: flex; align-items: center; gap: 10px; }
.tool-body h3 a { color: var(--ink); }
.tool-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.tool-ico { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; color: var(--tc); background: color-mix(in srgb, var(--tc) 13%, #fff); }
.tool-ico.lg { width: 52px; height: 52px; border-radius: 16px; display: inline-grid; vertical-align: middle; margin-inline-end: 12px; }
.tool-ico.lg .icon { width: 26px; height: 26px; }
.tool-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.tool-hero-art img { border-radius: 24px; box-shadow: var(--shadow-lg); }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; inset-inline: 12%; height: 2px; background: linear-gradient(90deg, var(--primary-soft), var(--primary), var(--primary-soft)); }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); transition-delay: var(--d); }
.step-n { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--primary-2), #5f3dc4); margin-bottom: 14px; box-shadow: 0 8px 18px rgba(59, 91, 219, .3); }
.step p { color: var(--muted); font-size: .95rem; margin: 0; }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature.reverse .feature-copy { order: 2; }
.kicker { display: inline-block; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--primary); margin-bottom: 10px; }
.rtl .kicker { letter-spacing: 0; }
.feature-copy p { color: var(--muted); font-size: 1.05rem; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.checks li::before { content: ""; flex: none; margin-top: 4px; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; border-radius: 50%; }
.mock-window { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.mw-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.mw-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d8e6; }
.mw-body { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; padding: 18px; }
.mw-page { border: 1.5px solid var(--ink); border-radius: 8px; padding: 12px; display: grid; gap: 12px; }
.mw-row { display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.mw-row b { width: 42px; color: var(--primary); }
.mw-row span { width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; }
.mw-row span.on::after { content: "✕"; position: absolute; inset: -3px 0 0; text-align: center; font-weight: 700; color: #2b4cc9; font-size: 14px; }
.mw-row em { margin-inline-start: auto; font-style: normal; font-weight: 800; color: #e03131; border: 1px solid var(--line); border-radius: 6px; width: 26px; text-align: center; animation: blink-in 4s var(--ease) infinite; }
.mw-side { display: grid; gap: 10px; align-content: start; }
.mw-kpi { background: var(--primary-soft); border-radius: 12px; padding: 10px 12px; }
.mw-kpi small { display: block; color: var(--muted); }
.mw-kpi strong { font-size: 1.35rem; color: var(--ink); }
.mw-bar2 { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; }
.mw-bar2 span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #7048e8); border-radius: 99px; animation: grow 4s var(--ease) infinite; }
.mw-tag { display: flex; justify-content: space-between; font-size: .85rem; border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }
.mw-tag b { color: var(--ok); } .mw-tag b.n { color: var(--ko); }
.papers { position: relative; height: 360px; }
.paper { position: absolute; width: 62%; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: 18px; display: grid; gap: 10px; align-content: start; }
.paper.p1 { inset-inline-start: 0; top: 0; height: 330px; transform: rotate(-3deg); animation: float 8s ease-in-out infinite; }
.paper.p2 { inset-inline-end: 0; top: 40px; height: 300px; transform: rotate(3deg); animation: float 8s ease-in-out infinite reverse; }
.paper b { font-size: .85rem; color: var(--primary); }
.paper i { height: 8px; background: #e6e9f4; border-radius: 4px; }
.paper i.s { width: 60%; }
.paper .fig { height: 80px; border-radius: 8px; background: linear-gradient(135deg, #e7f5ff, #edf1ff); position: relative; }
.paper .fig::after { content: ""; position: absolute; inset: 18px 30%; border: 2px solid #4c6ef5; border-radius: 4px; transform: skewX(-15deg); }
.opts { display: flex; gap: 10px; }
.opts span { width: 18px; height: 18px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; }
.opts span.x::after { content: "✕"; position: absolute; inset: -3px 0 0; text-align: center; font-weight: 700; color: #2b4cc9; font-size: 14px; }
.about-box { padding: 40px 0 70px; }
.about-box .wrap { background: linear-gradient(135deg, var(--primary-soft), #f3f0ff); border: 1px solid #dbe2fd; border-radius: 24px; padding: 30px 34px; }
.about-box p { margin: 0; font-size: 1.04rem; }

/* packs */
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; align-items: stretch; }
.pack-card { position: relative; background: #fff; border: 1.5px solid var(--line); border-radius: 22px; padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.pack-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.pack-card.featured { border-color: var(--primary); box-shadow: 0 20px 50px rgba(59, 91, 219, .18); }
.pack-ribbon { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(-50%); background: linear-gradient(90deg, var(--primary), #7048e8); color: #fff; font-size: .78rem; font-weight: 700; padding: .3em .9em; border-radius: 999px; white-space: nowrap; }
.rtl .pack-ribbon { transform: translateX(50%); }
.pack-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--pc); background: color-mix(in srgb, var(--pc) 13%, #fff); padding: .3em .8em; border-radius: 999px; font-size: .9rem; }
.pack-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.pack-price { margin: 12px 0 6px; display: flex; align-items: baseline; gap: 6px; }
.pack-price strong { font-size: 2.3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.pack-price span { color: var(--muted); }
.pack-head p { color: var(--muted); font-size: .94rem; margin: 0; }
.pack-tools { flex: 1; }
.pack-tools ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.pack-tools li { display: flex; gap: 8px; align-items: center; font-size: .95rem; color: var(--ink); }
.pack-tools li.soon { color: var(--muted); }
.pack-tools li em { font-style: normal; font-size: .72rem; color: #b45309; background: var(--accent-soft); padding: .05em .45em; border-radius: 99px; }
.pack-tools svg { width: 18px; height: 18px; fill: none; stroke: var(--ok); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* faq */
.faq-list { display: grid; gap: 12px; margin-bottom: 20px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary i { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--primary-soft); position: relative; transition: transform .3s var(--ease); }
.faq-item summary i::before, .faq-item summary i::after { content: ""; position: absolute; inset: 12px 7px; height: 2px; background: var(--primary); border-radius: 2px; }
.faq-item summary i::after { transform: rotate(90deg); transition: transform .3s var(--ease); }
.faq-item[open] summary i::after { transform: rotate(0); }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p:last-child { margin: 0; }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease); }
.post-card:hover { transform: translateY(-4px); }
.post-cover { display: block; aspect-ratio: 16 / 9; background: var(--bg-alt); overflow: hidden; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.cover-art { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 20% 30%, #dbe4ff, transparent 50%), radial-gradient(circle at 80% 70%, #fff0d1, transparent 50%), #f3f5fd; }
.post-body { padding: 18px 20px 22px; }
.post-body time { font-size: .82rem; color: var(--subtle); }
.post-body h3 { margin: .3em 0 .5em; }
.post-body h3 a { color: var(--ink); }
.post-body p { color: var(--muted); font-size: .95rem; margin: 0; }
.article .prose { font-size: 1.06rem; }
.article-cover { border-radius: 20px; margin: 10px 0 24px; box-shadow: var(--shadow); }
.prose h2, .prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.3em; }
.prose li { margin: .35em 0; }

/* forum */
.forum-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px; align-items: start; }
.forum-cats { display: grid; gap: 14px; }
.forum-cat { display: grid; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); color: var(--ink); transition: border-color .2s, transform .2s; }
.forum-cat:hover { border-color: var(--primary); transform: translateY(-2px); }
.forum-cat span { color: var(--muted); font-size: .94rem; }
.forum-cat em { font-style: normal; font-size: .82rem; color: var(--primary); font-weight: 600; }
.forum-latest { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: sticky; top: 90px; }
.topic-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.topic-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; }
.topic-list li a { font-weight: 600; color: var(--ink); }
.topic-list li span { font-size: .82rem; color: var(--subtle); }
.topic-list.big li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 8px; }
.forum-post { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.forum-post.first { border-color: #d5defd; }
.forum-post.staff { border-inline-start: 4px solid var(--primary); }
.forum-post header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.forum-post header time { margin-inline-start: auto; color: var(--subtle); font-size: .82rem; }
.forum-post .tag { position: static; background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.reply-form { margin-top: 24px; }
.forum-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; background: linear-gradient(135deg, #fff, var(--bg-alt)); border: 1px solid var(--line); border-radius: 24px; padding: 34px; }
.topic-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.topic-mini li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; }
.topic-mini a { font-weight: 600; color: var(--ink); }
.topic-mini span { font-size: .8rem; color: var(--subtle); }
.pager { display: flex; gap: 6px; margin-top: 16px; }
.pager a { padding: .3em .7em; border: 1px solid var(--line); border-radius: 8px; }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* final CTA + footer */
.final-cta { padding: 70px 0; background: linear-gradient(120deg, #364fc7, #5f3dc4 55%, #862e9c); color: #fff; text-align: center; position: relative; overflow: hidden; }
.final-cta::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle, rgba(255, 255, 255, .14) 0, transparent 40%); animation: drift 16s linear infinite alternate; }
.final-cta .wrap { position: relative; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, .85); font-size: 1.08rem; }
.site-footer { background: #0f1430; color: #b7bdd6; padding: 56px 0 20px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand-name b { color: #91a7ff; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer a { display: block; color: #b7bdd6; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8b92b3; }
.foot-langs { display: flex; gap: 12px; margin-top: 8px; }
.foot-bottom { border-top: 1px solid #252b4d; margin-top: 36px; padding-top: 18px; font-size: .85rem; color: #8b92b3; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* keyframes */
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-10px) } }
@keyframes draw { 0%, 4% { stroke-dashoffset: 34 } 14%, 88% { stroke-dashoffset: 0 } 96%, 100% { stroke-dashoffset: 34 } }
@keyframes appear { 0%, 30% { opacity: 0 } 36%, 88% { opacity: 1 } 96%, 100% { opacity: 0 } }
@keyframes chip { 0%, 48% { opacity: 0; transform: translateY(10px) scale(.96) } 54%, 88% { opacity: 1; transform: none } 96%, 100% { opacity: 0 } }
@keyframes scan { 0% { transform: translateY(0) } 50% { transform: translateY(170px) } 100% { transform: translateY(0) } }
@keyframes marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
@keyframes marquee-rtl { from { transform: translateX(0) } to { transform: translateX(50%) } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .5) } 70% { box-shadow: 0 0 0 9px rgba(22, 163, 74, 0) } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0) } }
@keyframes drift { from { transform: translate(0, 0) } to { transform: translate(40px, 30px) } }
@keyframes ring { from { transform: scale(.6); opacity: .9 } to { transform: scale(2.2); opacity: 0 } }
@keyframes grow { 0% { width: 10% } 40%, 100% { width: 75% } }
@keyframes blink-in { 0%, 20% { opacity: 0 } 30%, 100% { opacity: 1 } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hv .mark { stroke-dashoffset: 0; } .hv .hit, .hv .note, .hv .dot, .hv .chip { opacity: 1; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .hero-in, .feature, .tool-hero-in, .forum-layout, .forum-cta { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
  .hero-visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps::before { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .forum-latest { position: static; }
  .main-nav { position: fixed; top: 70px; inset-inline: 0; flex-direction: column; background: #fff; padding: 12px 20px 20px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); margin: 0; transform: translateY(-120%); transition: transform .3s var(--ease); z-index: 40; }
  .main-nav a { padding: .8em 1em; }
  body.nav-open .main-nav { transform: none; }
  body.nav-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
  body.nav-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .menu-btn { display: flex; }
}
@media (max-width: 600px) {
  body.site { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hide-sm { display: none; }
  .hero { padding-top: 34px; }
  .section { padding: 54px 0; }
  .steps, .footer-grid { grid-template-columns: 1fr; }
  .stat strong { font-size: 1.6rem; }
  .header-in { gap: 10px; }
  .brand-name { font-size: 1.05rem; }
  .papers { height: 300px; }
  .paper { width: 70%; }
  .mw-body { grid-template-columns: 1fr; }
  .section-head.row-head { flex-direction: column; }
  .about-box .wrap { padding: 22px; border-radius: 18px; }
  .lang-btn span { display: none; }
}
