/*
Theme Name: أقاليم المناهل
Theme URI: https://www.instagram.com/aqaleem_almanahel/
Author: أقاليم المناهل
Description: قالب أقاليم المناهل لعزل الفوم بالرياض. وضع داكن وفاتح، خدمات ببطاقات متراكبة، قسم ريلز وآراء عملاء يُداران من لوحة التحكم، وطلب معاينة عبر واتساب.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: aqaleem
*/

/* ===== Tokens ===== */
:root,
.hero, .fin, .ft, .reels-sec,
.hd:not(.scr):not(.solid),
body.menu-open .hd {
  --bg: #040f26; --bg2: #071b3f; --bg3: #0a2552;
  --acc: #3cc8ff; --acc2: #2b63c9; --acc3: #8fe0ff;
  --txt: #eaf1ff; --mute: #9db0d3; --h: #fff; --nt: #dbe6ff; --onacc: #031026;
  --line: rgba(255,255,255,.1); --line2: rgba(255,255,255,.35);
  --glass: rgba(255,255,255,.05); --stroke: rgba(255,255,255,.45);
}
:root {
  --mqbg: #071b3f; --hdbg: rgba(4,15,38,.82);
  --wa: #25d366; --r: 22px; --ease: cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f7fd; --bg2: #e7effa; --bg3: #d9e6f7;
  --acc: #1565c0; --acc3: #4aa3ff;
  --txt: #14233f; --mute: #4f6286; --h: #0a2a5e; --nt: #14233f; --onacc: #fff;
  --line: rgba(10,42,94,.14); --line2: rgba(10,42,94,.35);
  --glass: rgba(255,255,255,.78); --stroke: rgba(10,42,94,.45);
  --hdbg: rgba(255,255,255,.88); --mqbg: #e7effa;
  color-scheme: light;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg); color: var(--txt);
  font-family: "Tajawal", system-ui, Arial, sans-serif; font-size: 17px; line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 800; line-height: 1.2; color: var(--h); margin: 0 0 .4em; }
h2 { font-size: clamp(32px, 5vw, 62px); letter-spacing: -.015em; margin-bottom: 16px; }
h1 em, h2 em {
  font-style: normal; color: transparent;
  background: linear-gradient(90deg, var(--acc), var(--acc3)); -webkit-background-clip: text; background-clip: text;
}
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
svg { flex: 0 0 auto; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.w { width: min(1240px, 100% - 40px); margin-inline: auto; }
section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.sub { color: var(--mute); font-size: 18px; max-width: 56ch; }
.skip { position: absolute; inset-inline-start: -999px; top: 8px; z-index: 100; background: var(--acc); color: var(--onacc); padding: 8px 16px; border-radius: 10px; }
.skip:focus { inset-inline-start: 8px; }

/* ===== Buttons ===== */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  white-space: nowrap; padding: 16px 34px; border-radius: 999px;
  font: inherit; font-weight: 800; font-size: 18px; line-height: 1.4;
  background: var(--acc); color: var(--onacc); border: 2px solid var(--acc); cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s, background .2s;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(60,200,255,.45); }
.btn:active { transform: scale(.97); }
.btn svg { width: 21px; height: 21px; }
.btn.ghost { background: var(--glass); color: var(--h); border-color: var(--line2); backdrop-filter: blur(6px); }
.btn.ghost:hover { background: var(--h); color: var(--bg); box-shadow: none; }
.btn.ring { box-shadow: 0 0 0 6px rgba(60,200,255,.12); }
.cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* ===== Header ===== */
.hd { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background .35s, backdrop-filter .35s, border-color .35s; }
.hd.solid, .hd.scr { background: var(--hdbg); backdrop-filter: blur(14px); border-color: var(--line); }
.hd .w { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; transition: min-height .3s var(--ease); }
.hd.scr .w { min-height: 66px; }
.logo { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; color: var(--h); line-height: 1.2; }
.logo small { display: block; font-size: 12px; font-weight: 400; color: var(--mute); }
.logo-mark { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; color: #0a2a5e; }
.logo-mark svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; }
.custom-logo-link img { width: 46px; height: auto; background: #fff; border-radius: 12px; padding: 5px; display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.nav a { position: relative; font-weight: 700; color: var(--nt); padding: 6px 0; }
.nav a::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; background: var(--acc); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav a:hover::after, .nav .current-menu-item > a::after { transform: scaleX(1); }
.hd-actions { display: flex; align-items: center; gap: 12px; }
.hd-actions .btn { padding: 10px 24px; font-size: 16px; }
.tgl, .burger {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: var(--h);
  transition: transform .3s var(--ease), background .2s;
}
.tgl:hover { transform: rotate(18deg); }
.tgl svg { width: 22px; height: 22px; }
.tgl .moon, :root[data-theme="light"] .tgl .sun { display: none; }
:root[data-theme="light"] .tgl .moon { display: block; }
.burger { display: none; position: relative; z-index: 80; }
.burger i { position: absolute; inset-inline: 13px; height: 2px; border-radius: 2px; background: var(--h); transition: transform .45s var(--ease), opacity .2s, top .45s var(--ease); }
.burger i:nth-child(1) { top: 16px; }
.burger i:nth-child(2) { top: 23px; inset-inline: 13px 21px; }
.burger i:nth-child(3) { top: 30px; }
.burger[aria-expanded="true"] i:nth-child(1) { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { top: 23px; transform: rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  min-height: 100dvh; padding: 110px 0 130px; display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(900px 500px at 85% 10%, rgba(43,99,201,.35), transparent 60%), var(--bg);
}
.hero-img { position: absolute; inset: 0 auto 0 0; width: 64%; z-index: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; opacity: .9;
  -webkit-mask-image: linear-gradient(to right, #000 50%, transparent 98%); mask-image: linear-gradient(to right, #000 50%, transparent 98%); }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg) 4%, transparent 40%); }
.hero-img.ph { background: radial-gradient(600px 420px at 35% 55%, rgba(60,200,255,.16), transparent 70%); }
.hero .w { position: relative; z-index: 2; }
.hero-t { max-width: 780px; }
.hero h1 { font-size: clamp(38px, min(5.4vw, 10vh), 88px); letter-spacing: -.02em; }
.hero h1 span { display: block; overflow: hidden; padding: .08em 0 .2em; margin: -.08em 0 -.2em; }
.hero h1 b { display: block; font-weight: 800; }
.hero p { color: #c3d2ee; font-size: 19px; max-width: 42ch; margin-bottom: 28px; }
.chip {
  position: absolute; z-index: 3; left: 5%; bottom: 21%;
  display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-radius: 18px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 20px 50px rgba(0,0,0,.35);
  animation: fl 6s ease-in-out infinite;
}
.chip b { font-size: 32px; font-weight: 800; color: #fff; line-height: 1; }
.chip span { font-size: 14px; color: var(--mute); line-height: 1.4; }
.waves { position: absolute; inset: auto 0 -1px; height: 130px; z-index: 2; pointer-events: none; overflow: hidden; }
.waves svg { position: absolute; bottom: 0; left: 0; width: 200%; height: 100%; animation: wv 14s linear infinite; }
.waves path { fill: var(--mqbg); }
.waves svg + svg { animation-duration: 22s; animation-direction: reverse; opacity: .55; }

/* ===== Marquee ===== */
.mq { padding: 26px 0; background: var(--mqbg); border-block: 1px solid var(--line); overflow: hidden; }
.mq .tr { display: flex; width: max-content; animation: mq 38s linear infinite; }
.mq span {
  font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; padding-inline: 28px; white-space: nowrap; line-height: 1.5;
  color: transparent; -webkit-text-stroke: 1.5px var(--stroke);
}
.mq span:nth-child(2n) { color: var(--acc); -webkit-text-stroke: 0; }

/* ===== Stats ===== */
.stats { background: linear-gradient(180deg, var(--bg2), var(--bg)); text-align: center; }
.stats .g { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 20px; }
.stats b {
  display: block; font-size: clamp(46px, 7vw, 96px); font-weight: 800; line-height: 1.1; direction: ltr;
  color: transparent; background: linear-gradient(180deg, var(--h), var(--acc3)); -webkit-background-clip: text; background-clip: text;
}
.stats span { color: var(--mute); font-size: 17px; }

/* ===== Section heads ===== */
.head { margin-bottom: clamp(36px, 5vw, 64px); }
.rv-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.rv-head .head { margin-bottom: 0; }

/* ===== Services (stacking cards) ===== */
.stack { display: grid; gap: 28px; }
.sc {
  position: sticky; top: calc(96px + var(--i) * 18px);
  display: grid; grid-template-columns: 1fr 1fr; min-height: min(460px, 72vh);
  border-radius: 30px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--bg3), var(--bg2));
  box-shadow: 0 -20px 50px rgba(0,0,0,.4);
}
:root[data-theme="light"] .sc { box-shadow: 0 -10px 40px rgba(10,42,94,.12); }
.sc .tx { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.sc h3 { font-size: clamp(30px, 4vw, 52px); margin: 0; }
.sc p { color: var(--mute); font-size: 19px; max-width: 40ch; margin: 0; }
.go { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--acc); margin-top: 8px; transition: gap .3s var(--ease); }
.go svg { width: 18px; height: 18px; }
.sc:hover .go, .art:hover .go { gap: 18px; }
.viz { position: relative; overflow: hidden; background: linear-gradient(160deg, #0a2552, #041230); }
.sc:nth-child(2) .viz { background: radial-gradient(circle at 30% 30%, rgba(60,200,255,.3), transparent 60%), linear-gradient(200deg, #12408a, #061a3d); }
.sc:nth-child(3) .viz { background: radial-gradient(circle at 70% 70%, rgba(60,200,255,.3), transparent 60%), linear-gradient(120deg, #0a2d63, #041230); }
.sc:nth-child(4) .viz { background: radial-gradient(circle at 50% 20%, rgba(143,224,255,.35), transparent 60%), linear-gradient(160deg, #103d80, #06214d); }
.viz img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viz .big { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(143,224,255,.55); }
.viz .big svg { width: 38%; height: 38%; fill: none; stroke: currentColor; stroke-width: 1; stroke-linecap: round; stroke-linejoin: round; }
.viz .ico {
  position: absolute; top: 18px; inset-inline-start: 18px; z-index: 2;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); color: var(--acc);
  box-shadow: 0 20px 40px rgba(0,0,0,.25);
}
.viz .ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== Reels ===== */
.reels-sec { background: var(--bg); color: var(--txt); }
.rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 28px; scrollbar-width: thin; scrollbar-color: var(--acc2) transparent; }
.reel {
  position: relative; flex: 0 0 250px; aspect-ratio: 9 / 16; overflow: hidden; scroll-snap-align: start;
  padding: 0; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font: inherit; text-align: start;
  background: linear-gradient(160deg, var(--bg3), var(--bg2)); color: #fff;
  transition: transform .35s var(--ease), border-color .3s;
}
.reel:hover { transform: translateY(-6px); border-color: rgba(60,200,255,.5); }
.reel img, .reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,15,38,.85), transparent 50%); }
.reel-play {
  position: absolute; top: 50%; left: 50%; z-index: 1; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(10px);
  box-shadow: 0 0 0 8px rgba(60,200,255,.12); transition: transform .3s var(--ease), background .3s;
}
.reel-play::before { content: ""; position: absolute; top: 50%; left: 50%; margin: -10px 0 0 -5px; border-style: solid; border-width: 10px 0 10px 17px; border-color: transparent transparent transparent #fff; }
.reel:hover .reel-play { transform: scale(1.1); background: var(--acc); }
.reel-title { position: absolute; inset-inline: 18px; bottom: 18px; z-index: 1; font-weight: 800; font-size: 18px; line-height: 1.5; }
.rail-nav { display: flex; gap: 10px; }
.rail-nav button { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; cursor: pointer; border: 1px solid var(--line); background: var(--glass); color: var(--h); transition: background .25s, color .25s; }
.rail-nav button:hover { background: var(--acc); color: var(--onacc); border-color: var(--acc); }
.rail-nav svg { width: 20px; height: 20px; }
.note-admin { padding: 18px 22px; border-radius: var(--r); border: 1px dashed var(--line2); color: var(--mute); }
.note-admin a { color: var(--acc); font-weight: 700; }
.reel-modal { padding: 0; border: 0; border-radius: 22px; background: #000; width: min(420px, 92vw); overflow: visible; }
.reel-modal::backdrop { background: rgba(4,15,38,.88); backdrop-filter: blur(6px); }
.reel-modal video { display: block; width: 100%; max-height: 86vh; border-radius: 22px; }
.reel-close { position: absolute; top: -16px; inset-inline-start: -16px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: #fff; color: #040f26; font-size: 18px; font-weight: 800; }

/* ===== Why ===== */
.why { background: var(--bg2); overflow: hidden; }
.why .w { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.why-img { position: relative; }
.why-img::before { content: ""; position: absolute; inset: -14px; border-radius: 38px; border: 1px solid rgba(60,200,255,.4); transform: rotate(-3deg); pointer-events: none; }
.why-img img, .why-img .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 30px; box-shadow: 0 40px 80px rgba(0,0,0,.5); display: block; }
:root[data-theme="light"] .why-img img, :root[data-theme="light"] .why-img .ph { box-shadow: 0 30px 60px rgba(10,42,94,.2); }
.why-img .ph { display: grid; place-items: center; color: rgba(143,224,255,.6); background: radial-gradient(circle at 30% 25%, rgba(60,200,255,.3), transparent 60%), linear-gradient(160deg, #12408a, #061a3d); }
.why-img .ph svg { width: 40%; height: 40%; fill: none; stroke: currentColor; stroke-width: 1; }
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.feat div { position: relative; overflow: hidden; padding: 26px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s; }
.feat div:hover { transform: translateY(-4px); border-color: rgba(60,200,255,.5); }
.feat h3 { font-size: 21px; margin-bottom: 6px; }
.feat p { color: var(--mute); font-size: 15px; margin: 0; }

/* ===== Steps ===== */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; counter-reset: s; margin: 0; padding: 0; list-style: none; }
.steps::before { content: ""; position: absolute; inset-inline: 0; top: 30px; height: 2px; background: linear-gradient(to left, var(--acc), rgba(60,200,255,.05)); transform-origin: right; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.steps.in::before, .no-js .steps::before { transform: scaleX(1); }
.st { position: relative; counter-increment: s; }
.st::before {
  content: counter(s); position: relative; z-index: 1; display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 22px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--acc); color: var(--acc); font-weight: 800; font-size: 24px;
  box-shadow: 0 0 0 8px var(--bg), 0 0 30px rgba(60,200,255,.35);
}
.st h3 { font-size: 22px; margin-bottom: 8px; }
.st p { color: var(--mute); font-size: 16px; margin: 0; }

/* ===== Testimonials ===== */
.rate { display: flex; align-items: center; gap: 14px; }
.rate b { font-size: clamp(48px, 6vw, 80px); font-weight: 800; line-height: 1; direction: ltr;
  color: transparent; background: linear-gradient(180deg, var(--acc3), var(--acc)); -webkit-background-clip: text; background-clip: text; }
.rate span { color: var(--mute); font-size: 15px; line-height: 1.5; }
.q { position: relative; flex: 0 0 min(420px, 86%); scroll-snap-align: start; display: flex; flex-direction: column; gap: 18px; padding: 32px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); transition: transform .35s var(--ease), border-color .3s; }
.q:hover { transform: translateY(-4px); border-color: rgba(60,200,255,.5); }
.q::before { content: "”"; position: absolute; top: 4px; inset-inline-end: 24px; font-size: 80px; line-height: 1; font-weight: 800; color: var(--acc); opacity: .35; }
.q .tag { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--acc); background: rgba(60,200,255,.12); border: 1px solid rgba(60,200,255,.3); padding: 2px 12px; border-radius: 999px; }
.q blockquote { margin: 0; color: var(--txt); font-size: 17px; flex: 1; }
.q footer { border-top: 1px solid var(--line); padding-top: 16px; }
.q footer b { display: block; color: var(--h); }
.q footer small { color: var(--mute); }

/* ===== Clients ===== */
.clients { background: var(--bg2); }
.cg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cl { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 16px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); transition: transform .3s var(--ease), border-color .3s; }
.cl:hover { transform: translateY(-4px); border-color: rgba(60,200,255,.5); }
.ci { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 10px; border-radius: 20px; background: rgba(60,200,255,.1); border: 1px solid rgba(60,200,255,.25); color: var(--acc); transition: transform .4s var(--ease), background .3s; }
.cl:hover .ci { transform: translateY(-4px) rotate(-4deg); background: rgba(60,200,255,.2); }
.ci svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.cl b { color: var(--h); font-size: 19px; }
.cl small { color: var(--mute); font-size: 14px; }

/* ===== Articles ===== */
.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.art { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s, box-shadow .3s; }
.art:hover { transform: translateY(-6px); border-color: rgba(60,200,255,.5); box-shadow: 0 24px 50px -24px rgba(0,0,0,.5); }
.art .th { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: linear-gradient(160deg, var(--bg3), var(--bg2)); }
.art .th img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.art:hover .th img { transform: scale(1.05); }
.art .ph { display: grid; place-items: center; height: 100%; color: var(--acc); }
.art .ph svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.art .bd { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 22px; }
.art time { font-size: 14px; color: var(--acc); }
.art h3 { font-size: 20px; margin: 0; }
.art p { color: var(--mute); font-size: 16px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.art .go { margin-top: auto; padding-top: 6px; }

/* ===== Final CTA ===== */
.fin { background: linear-gradient(180deg, var(--bg), #06214d); overflow: hidden; color: var(--txt); }
.fin::before { content: ""; position: absolute; width: 900px; height: 900px; border-radius: 50%; inset-inline-end: -300px; top: -300px; background: radial-gradient(circle, rgba(60,200,255,.22), transparent 65%); pointer-events: none; }
.fin .w { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.fin p { color: #c3d2ee; margin-bottom: 14px; }
.call { text-align: center; padding: clamp(28px, 4vw, 48px); border-radius: 32px; background: var(--glass); border: 1px solid rgba(60,200,255,.4); backdrop-filter: blur(14px); box-shadow: 0 0 80px rgba(60,200,255,.15); }
.call small { color: var(--mute); font-size: 17px; }
.call .num { display: block; margin: 8px 0 26px; font-size: clamp(34px, 4.4vw, 60px); font-weight: 800; direction: ltr; color: #fff; letter-spacing: .02em; white-space: nowrap; }
.call .cta { justify-content: center; }

/* ===== Footer ===== */
.ft { position: relative; background: var(--bg); color: var(--mute); padding: 64px 0 28px; }
.ft::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--acc), transparent); opacity: .5; }
.ft a { color: #fff; }
.ft a:hover { color: var(--acc); }
.ft .g { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.ft h3 { font-size: 18px; margin-bottom: 12px; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin-bottom: 6px; }
.ft .ct a { display: flex; align-items: center; gap: 10px; }
.ft .ct svg { width: 20px; height: 20px; color: var(--acc); }
.ft-bot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 22px; font-size: 14px; }
.soc { display: flex; gap: 10px; }
.soc a { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); color: var(--nt); transition: transform .3s var(--ease), background .25s, color .25s; }
.soc a:hover { transform: translateY(-3px); background: var(--acc); color: var(--onacc); }
.soc svg { width: 20px; height: 20px; }

/* ===== Mobile dock ===== */
.bar { display: none; }

/* ===== Inner pages ===== */
.page-hero { padding: 150px 0 60px; background: radial-gradient(700px 400px at 85% 0%, rgba(43,99,201,.35), transparent 60%), var(--bg2); }
.page-hero h1 { font-size: clamp(32px, 5vw, 60px); margin: 0; }
.page-hero time { color: var(--acc); font-weight: 700; }
.narrow { max-width: 820px; }
.entry { font-size: 18px; }
.entry h2 { font-size: clamp(26px, 3vw, 36px); margin-top: 1.4em; }
.entry h3 { font-size: 24px; margin-top: 1.4em; }
.entry a { color: var(--acc); text-decoration: underline; text-underline-offset: 4px; }
.entry img { border-radius: var(--r); }
.entry ul, .entry ol { padding-inline-start: 1.4em; }
.entry-thumb { width: 100%; border-radius: var(--r); margin-bottom: 32px; }
.cta-box { margin-top: 48px; padding: 32px; border-radius: var(--r); background: var(--glass); border: 1px solid rgba(60,200,255,.4); box-shadow: 0 0 60px rgba(60,200,255,.1); }
.cta-box h2 { font-size: 28px; margin-top: 0; }
.pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 40px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); }
.pagination .current { background: var(--acc); color: var(--onacc); border-color: var(--acc); }

/* ===== Reveal ===== */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero h1 b { transform: translateY(105%); animation: up .9s var(--ease) forwards; }
.js .hero h1 span:nth-child(2) b { animation-delay: .12s; }
.js .hero h1 span:nth-child(3) b { animation-delay: .24s; }
.js .hero p, .js .hero .cta { opacity: 0; animation: fade .9s .5s var(--ease) forwards; }
.js .hero .cta { animation-delay: .65s; }

@keyframes up { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fl { 50% { transform: translateY(-10px); } }
@keyframes wv { to { transform: translateX(-50%); } }
@keyframes mq { to { transform: translateX(50%); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .hero h1 b, .js .hero p, .js .hero .cta { opacity: 1; transform: none; }
  .steps::before { transform: scaleX(1); }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .burger { display: grid; }
  .hd-actions .btn { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; justify-content: center;
    padding: 100px 28px 40px; background: var(--bg);
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  body.menu-open .nav { opacity: 1; visibility: visible; }
  body.menu-open { overflow: hidden; }
  .nav ul { flex-direction: column; gap: 6px; }
  .nav a { display: block; font-size: 28px; padding: 10px 0; }
  .nav a::after { display: none; }
  .why .w, .fin .w { grid-template-columns: 1fr; }
  .why-img { max-width: 460px; }
  .cg { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hd .w { min-height: 70px; }
  .logo { font-size: 18px; }
  .hero { min-height: 0; padding: 0 0 110px; flex-direction: column; align-items: stretch; }
  .hero-img { position: relative; width: 100%; height: 46vh; }
  .hero-img img { -webkit-mask-image: none; mask-image: none; }
  .hero-img.ph { height: 110px; }
  .hero-img::after { background: linear-gradient(0deg, var(--bg) 2%, transparent 22%); }
  .hero .w { margin-top: -12px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); }
  .hero .cta .btn { flex: 1; padding-inline: 18px; }
  .chip { display: none; }
  .waves { height: 70px; }
  .stats .g { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .sc { grid-template-columns: 1fr; position: relative; top: auto; min-height: 0; }
  .sc .viz { order: -1; aspect-ratio: 16 / 10; }
  .sc p { font-size: 17px; }
  .feat { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before { inset-inline: 30px auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(to bottom, var(--acc), rgba(60,200,255,.05)); transform-origin: top; transform: scaleY(0); }
  .steps.in::before { transform: scaleY(1); }
  .st { padding-inline-start: 84px; min-height: 62px; }
  .st::before { position: absolute; inset-inline-start: 0; top: 0; margin: 0; }
  .reel { flex-basis: 64vw; }
  .rail-nav { display: none; }
  .arts { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; }
  .art { flex: 0 0 82%; scroll-snap-align: start; }
  .cg { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ft .g { grid-template-columns: 1fr; gap: 28px; }
  .ft { padding-bottom: 110px; }
  .bar {
    position: fixed; bottom: 14px; left: 50%; z-index: 60; transform: translateX(-50%);
    display: flex; gap: 8px; width: calc(100vw - 24px); max-width: 520px; padding: 8px; border-radius: 22px;
    background: rgba(4,15,38,.82); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px);
    box-shadow: 0 16px 40px rgba(0,0,0,.4);
    transition: width .5s var(--ease), padding .4s var(--ease), border-radius .4s;
  }
  .bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 10px; border-radius: 16px; font-weight: 800; transition: flex .5s var(--ease), padding .4s var(--ease), gap .4s; }
  .bar svg { width: 21px; height: 21px; }
  .bar .c { background: linear-gradient(135deg, #6fd8ff, #3cc8ff); color: #031026; box-shadow: 0 8px 20px rgba(60,200,255,.35); }
  .bar .m { background: rgba(37,211,102,.14); border: 1px solid rgba(37,211,102,.55); color: #fff; }
  .bar .m svg { color: #3be07f; }
  .bar a span { display: inline-block; max-width: 120px; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--ease), opacity .3s; }
  .bar.mini { width: 136px; padding: 6px; gap: 6px; border-radius: 999px; }
  .bar.mini a { flex: 0 0 56px; padding: 13px 0; gap: 0; border-radius: 999px; }
  .bar.mini a span { max-width: 0; opacity: 0; }
}
