/* =========================================================
   Odoo-inspired theme — RTL / Arabic
   ========================================================= */
:root {
  --purple: #714B67;
  --purple-600: #5E3F56;
  --purple-50: #F6F1F5;
  --teal: #017E84;
  --teal-400: #21B799;
  --pink: #E46E78;
  --yellow: #FBB130;
  --blue: #5B899E;

  --bg: #FFFFFF;
  --bg-soft: #F9F7F9;
  --surface: #FFFFFF;
  --text: #1F1B24;
  --muted: #6B6472;
  --border: #ECE6EB;
  --shadow: 0 10px 30px -12px rgba(113, 75, 103, .25);
  --shadow-lg: 0 30px 60px -20px rgba(113, 75, 103, .35);

  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --font: "Tajawal", system-ui, sans-serif;
  --hand: "Caveat", cursive;
}

:root[data-theme="dark"] {
  --bg: #16121A;
  --bg-soft: #1D1822;
  --surface: #231D29;
  --text: #F3EEF3;
  --muted: #A89FAE;
  --border: #342B3A;
  --purple-50: #2A2130;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background .4s, color .4s;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ---------- Utilities ---------- */
.u-teal { color: var(--teal); }
.u-yellow { color: var(--yellow); }
.gradient-text {
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--teal));
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shift 6s linear infinite;
}
@keyframes shift { to { background-position: -200% center; } }
.strike { position: relative; color: var(--purple); }
.strike::after {
  content: ""; position: absolute; inset-inline: -4px; top: 55%; height: 4px;
  background: var(--pink); border-radius: 4px; transform: scaleX(0); transform-origin: right;
  transition: transform .8s var(--ease) .3s;
}
.is-visible .strike::after, .reveal.is-visible .strike::after { transform: scaleX(1); }

/* Hand-drawn marker (Odoo signature) */
.marker { position: relative; display: inline-block; white-space: nowrap; z-index: 0; color: var(--purple); }
.marker svg {
  position: absolute; inset-inline: -2%; bottom: -8%; width: 104%; height: .45em; z-index: -1;
  stroke: var(--yellow); stroke-width: 14; opacity: .9;
  stroke-dasharray: 500; stroke-dashoffset: 500;
  transition: stroke-dashoffset 1.2s var(--ease) .4s;
}
.is-visible .marker svg, .marker.is-visible svg { stroke-dashoffset: 0; }
.marker--sm svg { stroke-width: 12; }
.marker--light { color: #fff; }
.marker--light svg { stroke: var(--yellow); opacity: .75; }

/* ---------- Scroll progress + cursor glow ---------- */
.scroll-progress {
  position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 200;
  background: linear-gradient(90deg, var(--teal), var(--purple), var(--pink));
  transform-origin: right; transform: scaleX(0);
}
.cursor-glow {
  position: fixed; width: 420px; height: 420px; border-radius: 50%; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(113, 75, 103, .10), transparent 65%);
  transform: translate(-50%, -50%); left: -500px; top: -500px; transition: opacity .3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.4em; border-radius: 12px; font-weight: 700; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .25s;
}
.btn--sm { padding: .5em 1.1em; font-size: .95rem; border-radius: 10px; }
.btn--lg { padding: 1em 1.8em; font-size: 1.1rem; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px -8px rgba(113, 75, 103, .7); }
.btn--primary:hover { background: var(--purple-600); box-shadow: 0 14px 30px -10px rgba(113, 75, 103, .8); }
.btn--ghost { background: var(--purple-50); color: var(--purple); }
:root[data-theme="dark"] .btn--ghost { color: #E7C9DE; }
.btn--ghost:hover { background: var(--border); }
.btn--white { background: #fff; color: var(--purple); }
.btn--outline-light { color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); }
.btn__shine {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .45) 50%, transparent 70%);
  transform: translateX(120%); animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(120%); } 100% { transform: translateX(-120%); } }

/* ---------- Top bar ---------- */
.topbar { background: var(--purple); color: #fff; font-size: .9rem; }
.topbar__inner { display: flex; align-items: center; justify-content: center; gap: .8rem; padding: .5rem 0; flex-wrap: wrap; text-align: center; }
.topbar__pill { background: var(--yellow); color: #3a2a00; font-weight: 800; padding: 0 .6em; border-radius: 99px; font-size: .8rem; }
.topbar__link { font-weight: 700; opacity: .9; }
.topbar__link:hover { opacity: 1; text-decoration: underline; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--border); box-shadow: 0 6px 24px -18px rgba(0, 0, 0, .3); }
.header__inner { display: flex; align-items: center; gap: 2rem; height: 72px; }
.header__actions { display: flex; align-items: center; gap: .8rem; margin-inline-start: auto; }

.logo { direction: ltr; display: inline-flex; font-weight: 800; font-size: 2rem; letter-spacing: -1px; line-height: 1; }
.logo span { display: inline-block; transition: transform .4s var(--ease); }
.logo__o { color: var(--muted); }
.logo__d { color: var(--purple); }
.logo:hover span:nth-child(1) { transform: translateY(-4px); }
.logo:hover span:nth-child(2) { transform: translateY(-6px) rotate(-8deg); }
.logo:hover span:nth-child(3) { transform: translateY(-4px); transition-delay: .05s; }
.logo:hover span:nth-child(4) { transform: translateY(-2px); transition-delay: .1s; }
.logo--sm { font-size: 1.6rem; }
.logo--light .logo__o { color: #bdb3c2; }
.logo--light .logo__d { color: #fff; }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: .3em;
  padding: .5em .8em; border-radius: 10px; font-weight: 500; color: var(--text);
  transition: background .2s, color .2s;
}
.nav__link:hover { background: var(--purple-50); color: var(--purple); }
:root[data-theme="dark"] .nav__link:hover { color: #E7C9DE; }
.chev { transition: transform .3s; }
.has-mega:hover .chev, .has-mega.is-open .chev { transform: rotate(180deg); }

.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 12px); right: -40px; width: min(760px, 92vw);
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 1.2rem; opacity: 0; visibility: hidden; transform: translateY(10px) scale(.98);
  transition: all .3s var(--ease);
}
.mega::before { content: ""; position: absolute; top: -14px; inset-inline: 0; height: 14px; }
.has-mega:hover .mega, .has-mega.is-open .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; }
.mega__app { display: flex; align-items: center; gap: .6rem; padding: .5rem; border-radius: 12px; font-size: .95rem; transition: background .2s, transform .2s; }
.mega__app:hover { background: var(--bg-soft); transform: translateX(-3px); }
.mega__app .app-ico { width: 34px; height: 34px; border-radius: 10px; font-size: 1rem; }
.mega__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--muted); font-size: .95rem; }

.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; color: var(--muted); transition: background .2s, color .2s, transform .4s var(--ease); }
.icon-btn:hover { background: var(--purple-50); color: var(--purple); transform: rotate(20deg); }
.i-sun { display: none; }
:root[data-theme="dark"] .i-sun { display: block; }
:root[data-theme="dark"] .i-moon { display: none; }

.burger { display: none; width: 42px; height: 42px; border-radius: 12px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- App icon tile ---------- */
.app-ico {
  --c: var(--purple);
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c));
  color: #fff; font-size: 1.7rem;
  box-shadow: 0 8px 18px -8px var(--c), inset 0 1px 0 rgba(255, 255, 255, .35);
}

/* ---------- Hero (dark aurora universe) ---------- */
.hero {
  --hbg: #140B14;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100vh; display: flex; align-items: center;
  padding: calc(72px + 3rem) 0 9rem; margin-top: -72px;
  background: var(--hbg); color: #F6EEF4;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.aurora { position: absolute; border-radius: 50%; filter: blur(90px); mix-blend-mode: screen; animation: aurora 18s ease-in-out infinite; }
.aurora--1 { width: 60vw; height: 60vw; max-width: 820px; max-height: 820px; background: radial-gradient(circle, #714B67 0%, transparent 65%); top: -25%; right: -15%; opacity: .9; }
.aurora--2 { width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, #017E84 0%, transparent 65%); bottom: -30%; left: -10%; opacity: .75; animation-delay: -6s; }
.aurora--3 { width: 35vw; height: 35vw; max-width: 500px; max-height: 500px; background: radial-gradient(circle, #E46E78 0%, transparent 65%); top: 30%; left: 30%; opacity: .45; animation-delay: -12s; }
@keyframes aurora { 0%, 100% { transform: translate(0, 0) scale(1) rotate(0); } 33% { transform: translate(6%, -8%) scale(1.15) rotate(20deg); } 66% { transform: translate(-6%, 6%) scale(.9) rotate(-15deg); } }
.stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .8; }
.hero__grain { position: absolute; inset: -50%; opacity: .07; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite; }
@keyframes grain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } }
.hero__spot { position: absolute; width: 700px; height: 700px; border-radius: 50%; pointer-events: none; transform: translate(-50%, -50%); left: 50%; top: 40%;
  background: radial-gradient(circle, rgba(255, 255, 255, .07), transparent 60%); transition: left .4s var(--ease), top .4s var(--ease); }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 90px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; pointer-events: none; }

.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6em; padding: .45em 1.1em; border-radius: 99px; font-weight: 500; font-size: .95rem;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(10px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: #3DE0B8; box-shadow: 0 0 0 0 rgba(61, 224, 184, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(61, 224, 184, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 224, 184, 0); } }

.hero__title { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 900; line-height: 1.25; margin: 1.3rem 0 1rem; letter-spacing: -.5px; }
.hero__title .line { display: block; }
.hero__title .marker { color: #fff; }
.hero__title .marker svg { stroke: var(--yellow); opacity: 1; }

.rotator { position: relative; display: inline-grid; vertical-align: bottom; overflow: hidden; padding: 0 .05em .12em; }
.rotator__word {
  grid-area: 1 / 1; white-space: nowrap;
  background: linear-gradient(90deg, #3DE0B8, #7FD3F2 45%, #F5A3C7 90%); -webkit-background-clip: text; background-clip: text; color: transparent;
  transform: translateY(110%); opacity: 0;
  transition: transform .7s var(--ease), opacity .5s;
}
.rotator__word.is-active { transform: none; opacity: 1; }
.rotator__word.is-leaving { transform: translateY(-110%); opacity: 0; }

.hero__sub { font-size: clamp(1.15rem, 2vw, 1.45rem); color: #CDBFCA; margin: 0 0 2rem; }
.hl { color: #fff; font-weight: 700; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.hero .hero__ctas { justify-content: flex-start; }

.btn--glow { color: #fff; background: linear-gradient(135deg, #8E5E82, var(--purple) 50%, #5A3752); box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 14px 40px -10px rgba(228, 110, 120, .6), 0 0 60px -10px rgba(113, 75, 103, .9); }
.btn--glow:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset, 0 20px 50px -10px rgba(228, 110, 120, .8), 0 0 80px -10px rgba(113, 75, 103, 1); }
.btn--glass { color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgba(255, 255, 255, .15); }
.play { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--purple); font-size: .8rem; }
.play svg { fill: currentColor; transform: scaleX(-1); }

.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.price-chip { display: inline-flex; align-items: center; gap: .8rem; padding: .6rem 1.1rem; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.price__num { font-size: 2rem; font-weight: 900; color: #3DE0B8; direction: ltr; line-height: 1; }
.price__num small { font-size: .45em; font-weight: 700; color: #CDBFCA; margin-inline-end: .2em; }
.price__txt { color: #CDBFCA; font-size: .9rem; line-height: 1.3; text-align: right; }
.avatars { display: flex; align-items: center; }
.avatars span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--c); border: 2px solid var(--hbg); margin-inline-start: -10px; }
.avatars span:first-child { margin-inline-start: 0; }
.avatars small { margin-inline-start: .8rem; color: #CDBFCA; }
.avatars b { color: #fff; }

/* Universe */
.universe { position: relative; aspect-ratio: 1; width: 100%; max-width: 560px; margin-inline: auto; perspective: 1200px; }
.universe__tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s var(--ease); }
.ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16); transform: translate(-50%, -50%); }
.ring--1 { width: 44%; height: 44%; }
.ring--2 { width: 72%; height: 72%; border-style: solid; border-color: rgba(255, 255, 255, .08); }
.ring--3 { width: 100%; height: 100%; }
.ring--2::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 70%, rgba(61, 224, 184, .7), transparent 80%);
  -webkit-mask: radial-gradient(circle, transparent calc(70.5% - 2px), #000 calc(70.5% - 1px)); mask: radial-gradient(circle, transparent calc(70.5% - 2px), #000 calc(70.5% - 1px)); animation: spin 6s linear infinite; }
.ring__spin { position: absolute; inset: 0; animation: spin var(--dur) linear infinite; }
.ring--1 .ring__spin { --dur: 26s; }
.ring--2 .ring__spin { --dur: 40s; }
.ring--3 .ring__spin { --dur: 60s; }
.ring--1 .ring__spin, .ring--3 .ring__spin { animation-direction: reverse; }
.planet { position: absolute; width: 0; height: 0; }
.planet > .app-ico { position: absolute; left: 0; top: 0; translate: -50% -50%; animation: spin var(--dur) linear infinite reverse;
  box-shadow: 0 10px 30px -6px var(--c), 0 0 0 1px rgba(255,255,255,.15) inset; transition: scale .3s var(--ease); }
.ring--1 .planet > .app-ico, .ring--3 .planet > .app-ico { animation-direction: normal; }
.planet > .app-ico:hover { scale: 1.2; }
.ring--1 .app-ico { width: 46px; height: 46px; border-radius: 14px; font-size: 1.2rem; }
.ring--2 .app-ico { width: 54px; height: 54px; border-radius: 16px; font-size: 1.4rem; }
.ring--3 .app-ico { width: 50px; height: 50px; border-radius: 15px; font-size: 1.3rem; }

.core { position: absolute; top: 50%; left: 50%; width: 26%; aspect-ratio: 1; transform: translate(-50%, -50%) translateZ(40px); border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #9A6A8E, var(--purple) 55%, #3E2438); box-shadow: 0 0 80px 10px rgba(113, 75, 103, .7), inset 0 2px 10px rgba(255, 255, 255, .3); }
.core__pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); animation: ripple 3s ease-out infinite; }
.core__pulse--2 { animation-delay: 1.5s; }
@keyframes ripple { from { transform: scale(1); opacity: .8; } to { transform: scale(2.4); opacity: 0; } }
.logo--core { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.logo--core .logo__o { color: #EBD9E6; }

.toasts { position: absolute; inset: 0; pointer-events: none; }
.toast {
  position: absolute; display: flex; align-items: center; gap: .7rem; padding: .65rem .9rem; border-radius: 14px; min-width: 210px;
  background: rgba(30, 18, 30, .62); border: 1px solid rgba(255, 255, 255, .15); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .6); font-size: .88rem; color: #F6EEF4;
  opacity: 0; transform: translateY(16px) scale(.9); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast .app-ico { width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; }
.toast b { display: block; font-weight: 700; color: #fff; line-height: 1.3; }
.toast small { color: #CDBFCA; }
.toast__ok { margin-inline-start: auto; color: #3DE0B8; font-weight: 900; }
.toast--1 { top: 4%; right: -4%; }
.toast--2 { bottom: 8%; left: -6%; }
.toast--3 { top: 52%; right: -12%; }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; translate: -50% 0; width: 28px; height: 46px; border-radius: 99px; border: 2px solid rgba(255, 255, 255, .35); }
.scroll-cue span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* Header over dark hero */
.header.on-dark { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: transparent; box-shadow: none; }
.header.on-dark .nav__link, .header.on-dark .icon-btn { color: #F6EEF4; }
.header.on-dark .nav__link:hover, .header.on-dark .icon-btn:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.header.on-dark .logo__o { color: #CDBFCA; }
.header.on-dark .logo__d { color: #fff; }
.header.on-dark .burger span { background: #fff; }
.header.on-dark .header__actions .btn--primary { background: #fff; color: var(--purple); box-shadow: none; }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--border); background: var(--bg-soft); overflow: hidden; padding: 1rem 0; }
.marquee__track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; color: var(--muted); font-size: 1.1rem; white-space: nowrap; }
.marquee__item::before { content: "✦"; color: var(--yellow); }
@keyframes marquee { to { transform: translateX(50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(4rem, 9vw, 7rem) 0; }
.section--tint { background: var(--bg-soft); }
.section--dark { background: #1E1522; color: #F3EEF3; }
.section--dark .section__lead, .section--dark .checks li { color: #C9BDCC; }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.eyebrow { display: inline-block; font-family: var(--hand); font-size: 1.6rem; color: var(--teal); transform: rotate(-3deg); }
.eyebrow--light { color: var(--yellow); }
.section__title { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 900; line-height: 1.25; margin: .3rem 0 1rem; }
.section__lead { color: var(--muted); font-size: 1.15rem; margin: 0; }

/* ---------- Tabs ---------- */
.tabs {
  position: relative; display: flex; gap: .3rem; justify-content: center; flex-wrap: wrap;
  margin: 0 auto 2.5rem; padding: .35rem; width: fit-content; max-width: 100%;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 16px;
}
.tab { position: relative; z-index: 1; padding: .55em 1.1em; border-radius: 12px; font-weight: 700; color: var(--muted); transition: color .3s; }
.tab.is-active { color: #fff; }
.tab__indicator { position: absolute; z-index: 0; border-radius: 12px; background: var(--purple); box-shadow: 0 6px 16px -6px var(--purple); transition: all .45s var(--ease); }

/* ---------- Apps grid ---------- */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1rem; }
.app-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: .8rem; text-align: center;
  padding: 1.6rem 1rem 1.3rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, opacity .35s;
}
.app-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 60%);
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--c) 40%, var(--border)); }
.app-card:hover::before { opacity: 1; }
.app-card .app-ico { transition: transform .5s var(--ease); }
.app-card:hover .app-ico { transform: scale(1.1) rotate(-8deg); }
.app-card h3 { margin: 0; font-size: 1.05rem; font-weight: 700; position: relative; }
.app-card p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.5; position: relative; }
.app-card.is-hidden { display: none; }
.app-card.pop { animation: pop .5s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.94); } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.split--rev .split__text { order: 2; }

.toggle-world { display: inline-flex; align-items: center; gap: 1rem; margin-top: 2rem; padding: .6rem 1.2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; box-shadow: var(--shadow); }
.tw-label { font-weight: 700; color: var(--muted); transition: color .3s; }
.tw-label.is-on { color: var(--purple); }
.switch { width: 58px; height: 32px; border-radius: 99px; background: var(--pink); position: relative; transition: background .3s; }
.switch span { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .4s var(--ease); }
.switch[aria-checked="true"] { background: var(--teal); }
.switch[aria-checked="true"] span { transform: translateX(-26px); }

.world { position: relative; aspect-ratio: 1; max-width: 480px; width: 100%; margin-inline: auto; }
.world__lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.world__lines line { stroke: var(--teal); stroke-width: 1.5; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; opacity: 0; transition: opacity .6s; }
.world.is-unified .world__lines line { opacity: .55; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.world__core {
  position: absolute; top: 50%; left: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow-lg), 0 0 0 12px color-mix(in srgb, var(--purple) 8%, transparent);
  z-index: 2; transition: transform .6s var(--ease), opacity .6s;
}
.world:not(.is-unified) .world__core { transform: scale(0); opacity: 0; }
.world.is-unified .world__core { animation: coreGlow 3s ease-in-out infinite; }
@keyframes coreGlow { 50% { box-shadow: var(--shadow-lg), 0 0 0 22px color-mix(in srgb, var(--purple) 5%, transparent); } }
.world__node { position: absolute; top: 50%; left: 50%; margin: -32px 0 0 -32px; transition: transform .9s var(--ease); z-index: 1; }
.world__node .app-ico { width: 64px; height: 64px; }
.world:not(.is-unified) .world__node .app-ico { filter: grayscale(.7); animation: shake .5s ease-in-out infinite; }
@keyframes shake { 25% { rotate: -6deg; } 75% { rotate: 6deg; } }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature {
  position: relative; overflow: hidden; padding: 2.2rem; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
  transition: box-shadow .3s, transform .2s; transform-style: preserve-3d;
}
.feature:hover { box-shadow: var(--shadow-lg); }
.feature__icon { --c: var(--purple); width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); margin-bottom: 1.2rem; }
.feature h3 { font-size: 1.35rem; margin: 0 0 .5rem; }
.feature p { margin: 0; color: var(--muted); }
.feature__num { position: absolute; bottom: -18px; left: 12px; font-size: 6rem; font-weight: 900; color: var(--border); line-height: 1; z-index: -0; opacity: .6; transition: transform .5s var(--ease), color .3s; }
.feature:hover .feature__num { transform: translateY(-10px); color: color-mix(in srgb, var(--purple) 20%, var(--border)); }

/* ---------- Checks ---------- */
.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .8rem; }
.checks li { display: flex; align-items: center; gap: .8rem; font-weight: 500; }
.checks li::before { content: "✓"; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--teal); color: #fff; font-size: .8rem; font-weight: 900; flex-shrink: 0; }

/* ---------- Dashboard mock ---------- */
.mock { background: #fff; color: #1F1B24; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); transform: perspective(1400px) rotateY(8deg) rotateX(4deg); transition: transform .6s var(--ease); }
.mock:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.mock__bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: var(--purple); color: #fff; font-weight: 700; font-size: .9rem; }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.mock__bar span { margin-inline-start: auto; }
.mock__body { padding: 1.2rem; display: grid; gap: 1rem; background: #F9F7F9; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.kpi { background: #fff; border-radius: 12px; padding: .8rem; border: 1px solid #ECE6EB; }
.kpi small { color: #6B6472; display: block; }
.kpi b { font-size: 1.4rem; font-weight: 900; direction: ltr; display: inline-block; }
.kpi em { display: block; font-style: normal; font-size: .8rem; color: var(--teal-400); font-weight: 700; }
.chart { height: 120px; display: flex; align-items: flex-end; gap: 6px; background: #fff; border-radius: 12px; padding: .8rem; border: 1px solid #ECE6EB; }
.chart i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(to top, var(--purple), #A97C9C); height: 0; transition: height 1s var(--ease); }
.chart i:nth-child(3n) { background: linear-gradient(to top, var(--teal), var(--teal-400)); }
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.kcol { background: #fff; border-radius: 12px; padding: .6rem; border: 1px solid #ECE6EB; display: grid; gap: .4rem; align-content: start; min-height: 110px; }
.kcol small { color: #6B6472; font-weight: 700; }
.kcard { background: #F6F1F5; border-inline-start: 3px solid var(--purple); border-radius: 8px; padding: .4rem .5rem; font-size: .8rem; font-weight: 500; }
.kcard--move { border-color: var(--yellow); animation: kmove 4s ease-in-out infinite; }
@keyframes kmove { 0%, 20% { transform: none; } 45%, 70% { transform: translateX(-110%) rotate(-2deg); box-shadow: 0 10px 20px -8px rgba(0,0,0,.3); } 95%, 100% { transform: none; } }

/* ---------- AI ---------- */
.ai {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
  padding: clamp(2rem, 5vw, 4rem); border-radius: 32px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.ai__glow { position: absolute; width: 500px; height: 500px; left: -150px; top: -150px; border-radius: 50%; background: conic-gradient(from 0deg, var(--purple), var(--teal), var(--pink), var(--yellow), var(--purple)); filter: blur(90px); opacity: .22; animation: spin 16s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ai__text, .ai__chat { position: relative; }
.ai__chat { display: grid; gap: .8rem; padding: 1.2rem; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--border); }
.bubble { padding: .8rem 1rem; border-radius: 16px; max-width: 90%; font-weight: 500; }
.bubble--me { justify-self: start; background: var(--purple); color: #fff; border-bottom-right-radius: 4px; }
.bubble--ai { justify-self: end; background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 4px; min-height: 5.5em; display: flex; gap: .5rem; align-items: flex-start; }
.ai-dot { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; margin-top: 2px; background: conic-gradient(var(--purple), var(--teal), var(--pink), var(--purple)); animation: spin 3s linear infinite; }
.caret { color: var(--purple); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai__input { display: flex; align-items: center; justify-content: space-between; padding: .5rem .5rem .5rem 1rem; padding-inline-start: 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.ai__input button { width: 38px; height: 38px; border-radius: 10px; background: var(--purple); color: #fff; display: grid; place-items: center; }
.ai__input button svg { transform: scaleX(-1); }

/* ---------- Quote & stats ---------- */
.quote { margin: 0 auto 4rem; max-width: 900px; text-align: center; }
.quote__mark { width: 64px; height: 64px; fill: var(--yellow); stroke: none; margin-bottom: 1rem; }
.quote blockquote { margin: 0; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.35; }
.quote figcaption { margin-top: 1.5rem; display: grid; gap: .2rem; }
.quote figcaption b { font-size: 1.15rem; direction: ltr; }
.quote figcaption span { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.stat { text-align: center; padding: 2rem 1rem; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s var(--ease), box-shadow .3s; }
.stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; color: var(--purple); line-height: 1.2; }
:root[data-theme="dark"] .stat b { color: #E7C9DE; }
.stat:nth-child(2) b { color: var(--teal); }
.stat:nth-child(3) b { color: var(--pink); }
.stat span { color: var(--muted); font-weight: 500; }

/* ---------- Testimonial ---------- */
.testimonial {
  max-width: 900px; margin-inline: auto; padding: clamp(2rem, 5vw, 3.5rem); border-radius: 32px; text-align: center;
  background: linear-gradient(135deg, var(--purple-50), var(--surface)); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.testimonial__compare { display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-bottom: 2rem; }
.cmp { padding: .8rem 1.6rem; border-radius: 16px; display: grid; }
.cmp small { color: var(--muted); font-weight: 700; }
.cmp b { font-size: 1.7rem; font-weight: 900; }
.cmp--before { background: color-mix(in srgb, var(--pink) 14%, transparent); }
.cmp--before b { color: var(--pink); text-decoration: line-through; text-decoration-thickness: 3px; }
.cmp--after { background: color-mix(in srgb, var(--teal) 14%, transparent); }
.cmp--after b { color: var(--teal); }
.cmp__arrow { width: 60px; height: 24px; stroke: var(--muted); }
.testimonial blockquote { margin: 0 0 2rem; font-size: clamp(1.2rem, 2.4vw, 1.6rem); font-weight: 700; line-height: 1.6; }
.author { display: inline-flex; align-items: center; gap: 1rem; text-align: right; }
.author b { display: block; direction: ltr; text-align: right; }
.author small { color: var(--muted); }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--purple), var(--teal)); direction: ltr; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: clamp(4rem, 9vw, 7rem) 0; background: linear-gradient(135deg, var(--purple) 0%, #4E3047 60%, #2F1D2B 100%); color: #fff; text-align: center; }
.cta__bg .blob--1 { background: var(--teal); opacity: .35; top: -150px; right: -120px; }
.cta__bg .blob--2 { background: var(--pink); opacity: .3; bottom: -150px; left: -100px; }
.cta__inner { position: relative; }
.cta h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 900; margin: 0 0 1rem; line-height: 1.25; }
.cta p { font-size: 1.2rem; opacity: .85; margin: 0 0 2.2rem; }

/* ---------- Footer ---------- */
.footer { background: #1E1522; color: #C9BDCC; padding: 4rem 0 1.5rem; }
.footer__grid { display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 2rem; }
.footer__brand p { max-width: 320px; margin: 1rem 0; }
.footer__col { display: grid; gap: .6rem; align-content: start; }
.footer__col h4 { color: #fff; margin: 0 0 .4rem; font-size: 1.05rem; }
.footer__col a { transition: color .2s, transform .2s; width: fit-content; }
.footer__col a:hover { color: #fff; transform: translateX(-4px); }
.socials { display: flex; gap: .6rem; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: rgba(255, 255, 255, .06); transition: background .2s, transform .3s var(--ease); }
.socials a:hover { background: var(--purple); color: #fff; transform: translateY(-4px); }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .9rem; }
.to-top { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: var(--purple); color: #fff; transition: transform .3s var(--ease); }
.to-top:hover { transform: translateY(-4px); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .hero .hero__ctas, .hero__trust { justify-content: center; }
  .universe { max-width: 460px; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .burger { display: flex; }
  .nav {
    position: fixed; top: 72px; inset-inline: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: .2rem;
    padding: 1rem 16px; background: var(--bg); overflow-y: auto;
    transform: translateX(100%); transition: transform .4s var(--ease);
  }
  .nav.is-open { transform: none; }
  .nav__link { font-size: 1.15rem; padding: .8em 1em; justify-content: space-between; width: 100%; }
  .mega { position: static; width: 100%; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; padding: .6rem; }
  .has-mega.is-open .mega { display: block; }
  .has-mega:hover .mega { display: none; }
  .has-mega.is-open:hover .mega { display: block; }
  .mega__grid { grid-template-columns: repeat(2, 1fr); }
  .mega__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .hide-sm { display: none; }
  .split, .ai { grid-template-columns: 1fr; gap: 2.5rem; }
  .split--rev .split__text { order: 0; }
  .features { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .mock { transform: none; }
}
@media (max-width: 600px) {
  .topbar__inner > span:nth-child(2) { display: none; }
  .ring--1 .app-ico, .ring--2 .app-ico, .ring--3 .app-ico { width: 36px; height: 36px; border-radius: 11px; font-size: 1rem; }
  .toast { min-width: 0; font-size: .72rem; padding: .45rem .6rem; gap: .4rem; }
  .toast .app-ico { width: 26px; height: 26px; }
  .toast--1 { right: 0; } .toast--2 { left: 0; } .toast--3 { display: none; }
  .scroll-cue { display: none; }
  .hero__ctas .btn { width: 100%; }
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr 1fr; gap: .8rem; }
  .stat { padding: 1.4rem .6rem; }
  .testimonial__compare { gap: .6rem; }
  .cmp { padding: .6rem 1rem; }
  .cmp b { font-size: 1.3rem; }
  .cmp__arrow { width: 36px; }
  .kpi b { font-size: 1.1rem; }
  .footer__bottom { flex-direction: row; }
  .tab { padding: .45em .8em; font-size: .9rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .rotator__word:not(.is-active) { display: none; }
  .marker svg { stroke-dashoffset: 0; }
}
