/* =========================================================
   NebulaContent — Marketing Site Stylesheet
   Design tokens, layout, components, sections, animations
   ========================================================= */

/* -------- Tokens: dark (default) -------- */
:root,
:root[data-theme="dark"] {
  --bg: #07091a;
  --bg-elev: #0c1130;
  --surface: rgba(255,255,255,.04);
  --surface-2: rgba(255,255,255,.06);
  --border: rgba(255,255,255,.08);
  --border-strong: rgba(255,255,255,.16);
  --text: #e8ecff;
  --text-muted: #aab1d6;
  --text-dim: #6b7299;
  --primary: #7c5cff;
  --primary-2: #22d3ee;
  --accent: #f0abfc;
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --grad: linear-gradient(135deg,#7c5cff 0%,#22d3ee 50%,#f0abfc 100%);
  --grad-soft: linear-gradient(135deg,rgba(124,92,255,.18),rgba(34,211,238,.16) 50%,rgba(240,171,252,.14));
  --shadow-1: 0 1px 2px rgba(0,0,0,.4),0 8px 28px rgba(7,9,26,.6);
  --shadow-2: 0 24px 60px -12px rgba(7,9,26,.85),0 8px 24px rgba(124,92,255,.18);
  --ring: 0 0 0 1px rgba(255,255,255,.08), 0 0 0 4px rgba(124,92,255,.15);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1240px;
}

/* -------- Tokens: light -------- */
:root[data-theme="light"] {
  --bg: #f6f7fb;
  --bg-elev: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2f4fb;
  --border: rgba(15,23,42,.08);
  --border-strong: rgba(15,23,42,.18);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --primary: #6d3bff;
  --primary-2: #0ea5e9;
  --accent: #c026d3;
  --grad: linear-gradient(135deg,#6d3bff 0%,#0ea5e9 50%,#c026d3 100%);
  --grad-soft: linear-gradient(135deg,rgba(109,59,255,.10),rgba(14,165,233,.10) 50%,rgba(192,38,211,.08));
  --shadow-1: 0 1px 2px rgba(15,23,42,.06),0 6px 22px rgba(15,23,42,.08);
  --shadow-2: 0 24px 60px -16px rgba(15,23,42,.18),0 8px 24px rgba(109,59,255,.12);
}

/* -------- Reset -------- */
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter','Noto Sans SC','Noto Sans JP','Noto Sans KR','Noto Naskh Arabic',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  font-feature-settings: 'cv02','cv03','cv04','cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { margin: 0; letter-spacing: -.02em; line-height: 1.15; font-weight: 700; }
p { margin: 0; }

/* -------- Layout -------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: 96px 0; }
section + section { padding-top: 0; }
[dir="rtl"] body { font-family: 'Noto Naskh Arabic','Inter',sans-serif; }

/* -------- Aurora background -------- */
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.aurora__blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  animation: drift 22s ease-in-out infinite;
}
.aurora__blob--1 { width: 540px; height: 540px; left: -120px; top: -160px;
  background: radial-gradient(circle at 30% 30%,#7c5cff,transparent 60%); }
.aurora__blob--2 { width: 600px; height: 600px; right: -180px; top: 10%;
  background: radial-gradient(circle at 70% 30%,#22d3ee,transparent 60%); animation-delay: -8s; }
.aurora__blob--3 { width: 540px; height: 540px; left: 30%; bottom: -200px;
  background: radial-gradient(circle at 50% 50%,#f0abfc,transparent 60%); animation-delay: -14s; }
[data-theme="light"] .aurora__blob { opacity: .35; }
.aurora__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%,black 30%,transparent 75%);
}
[data-theme="light"] .aurora__grid {
  background-image:
    linear-gradient(rgba(15,23,42,.04) 1px,transparent 1px),
    linear-gradient(90deg,rgba(15,23,42,.04) 1px,transparent 1px);
}
@keyframes drift {
  0%,100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(40px,-30px,0) scale(1.08); }
}

/* -------- Buttons / chips -------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px;
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  transition: transform .2s ease, box-shadow .25s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: 14px 22px; font-size: 15px; border-radius: 12px; }
.btn--primary {
  color: #fff; background: var(--grad); background-size: 200% 200%;
  box-shadow: 0 8px 22px -6px rgba(124,92,255,.55), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn--primary:hover { background-position: 100% 0%; box-shadow: 0 14px 30px -8px rgba(124,92,255,.65); }
.btn--ghost { color: var(--text); background: transparent; border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface); }
.btn--glass {
  color: var(--text); background: var(--surface-2); border-color: var(--border-strong); backdrop-filter: blur(12px);
}
.btn--glass:hover { background: var(--surface); }

.iconbtn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 13px; font-weight: 500;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.iconbtn:hover { color: var(--text); border-color: var(--border-strong); }
.iconbtn--square { width: 38px; padding: 0; justify-content: center; }
#themeBtn #iconSun { display: none; }
[data-theme="dark"] #themeBtn #iconMoon { display: none; }
[data-theme="dark"] #themeBtn #iconSun { display: block; }
[data-theme="light"] #themeBtn #iconSun { display: none; }
[data-theme="light"] #themeBtn #iconMoon { display: block; }

/* -------- Annc bar -------- */
.annc {
  position: relative; z-index: 30;
  background: linear-gradient(90deg,rgba(124,92,255,.18),rgba(34,211,238,.18));
  border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text);
}
.annc__inner { display: flex; align-items: center; gap: 12px; padding: 10px 24px; }
.annc__tag {
  background: var(--grad); color: #fff; padding: 2px 8px; border-radius: 999px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
}
.annc__text { color: var(--text-muted); flex: 1; }
.annc__link { color: var(--text); font-weight: 600; }
.annc__link::after { content: " →"; }
.annc__close {
  background: transparent; border: 0; color: var(--text-muted);
  font-size: 18px; line-height: 1; padding: 4px 8px; border-radius: 6px;
}
.annc__close:hover { background: var(--surface); color: var(--text); }

/* -------- Header -------- */
.header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.header.is-scrolled { border-color: var(--border); }
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__logo { display: inline-flex; }
.brand__name { font-size: 17px; letter-spacing: -.01em; }
.brand__accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav { display: flex; gap: 6px; flex: 1; justify-content: center; }
.nav a {
  position: relative;
  padding: 8px 14px; border-radius: 8px;
  color: var(--text-muted); font-size: 14px; font-weight: 500;
  transition: color .2s ease, background .2s ease;
}
.nav a:hover { color: var(--text); background: var(--surface); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.dropdown { position: relative; }
.dropdown__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 180px; padding: 8px;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(-4px) scale(.98); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.dropdown.open .dropdown__menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.dropdown__menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px; border-radius: 8px; border: 0; background: transparent;
  color: var(--text-muted); font-size: 13px; text-align: start;
}
.dropdown__menu button:hover { background: var(--surface); color: var(--text); }
.dropdown__menu button.active { color: var(--text); background: var(--surface-2); }
.dropdown__menu button .flag { font-size: 16px; }

.mobonly { display: none; }
.mobnav {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  padding: 12px 24px 18px;
}
.mobnav.open { display: block; }
.mobnav a {
  display: block; padding: 10px 8px; color: var(--text-muted);
  font-size: 15px; border-radius: 8px;
}
.mobnav a:hover { background: var(--surface); color: var(--text); }

/* -------- Generic UI helpers -------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted); font-size: 12px; font-weight: 500;
}
.pill__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 0 4px rgba(124,92,255,.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(124,92,255,.18); }
  50% { box-shadow: 0 0 0 8px rgba(124,92,255,.04); }
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-bg { background: var(--grad); }

.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 14px;
}
.sec__head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.sec__title { font-size: clamp(28px,3.4vw,44px); }
.sec__sub { margin-top: 16px; color: var(--text-muted); font-size: 17px; }

.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2,1fr); }
.grid--3 { grid-template-columns: repeat(3,1fr); }
.grid--4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 1024px) {
  .grid--3,.grid--4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 640px) {
  .grid--2,.grid--3,.grid--4 { grid-template-columns: 1fr; }
}

/* -------- HERO -------- */
.hero { padding: 80px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 1024px) { .hero__inner { grid-template-columns: 1fr; gap: 40px; } }
.hero__title {
  margin-top: 22px;
  font-size: clamp(36px,5vw,68px);
  font-weight: 800;
  letter-spacing: -.035em;
}
.hero__title .grad { display: inline-block; }
.hero__sub {
  margin-top: 20px; font-size: 18px; color: var(--text-muted);
  max-width: 560px;
}
.hero__ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero__meta {
  display: flex; gap: 32px; margin-top: 36px;
  padding-top: 28px; border-top: 1px solid var(--border);
}
.hero__meta div { display: flex; flex-direction: column; }
.hero__meta strong { font-size: 22px; font-weight: 700; }
.hero__meta span { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.hero__visual { position: relative; min-height: 460px; }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); }
.orb--a { width: 280px; height: 280px; background: rgba(124,92,255,.45); top: -40px; left: -20px; }
.orb--b { width: 260px; height: 260px; background: rgba(34,211,238,.4); right: -20px; bottom: -20px; }
[data-theme="light"] .orb--a { background: rgba(109,59,255,.20); }
[data-theme="light"] .orb--b { background: rgba(14,165,233,.22); }

/* -------- Studio mockup -------- */
.studio {
  position: relative; z-index: 1;
  border-radius: 16px; overflow: hidden;
  background: var(--bg-elev); border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform .4s ease;
}
.hero__visual:hover .studio { transform: perspective(1400px) rotateY(-2deg) rotateX(0deg); }
.studio__chrome {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.studio__chrome span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.studio__chrome span:nth-child(1) { background: #ff5f57; }
.studio__chrome span:nth-child(2) { background: #febc2e; }
.studio__chrome span:nth-child(3) { background: #28c840; }
.studio__url {
  margin-inline-start: 12px; flex: 1;
  font-family: 'JetBrains Mono',monospace; font-size: 11px;
  color: var(--text-dim); text-align: center;
}
.studio__body { display: grid; grid-template-columns: 160px 1fr; min-height: 360px; }
.studio__side { padding: 14px; border-inline-end: 1px solid var(--border); background: var(--surface); }
.studio__brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; padding: 4px 8px; }
.studio__brand .dot { width: 12px; height: 12px; border-radius: 4px; }
.studio__side ul { margin-top: 14px; }
.studio__side li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 12px; color: var(--text-muted); margin-bottom: 2px;
}
.studio__side li i {
  width: 16px; height: 16px; border-radius: 4px; background: var(--surface-2);
}
.studio__side li.active { color: var(--text); background: var(--surface-2); }
.studio__side li.active i { background: var(--grad); }
.studio__main { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.studio__row { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 10px 12px;
}
.kpi span { display: block; font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: .08em; }
.kpi strong { display: block; font-size: 18px; margin-top: 2px; }
.kpi em { font-style: normal; font-size: 11px; }
.kpi em.up { color: var(--success); }
.studio__chart {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px;
}
.studio__chart svg { width: 100%; height: 110px; }
.studio__legend { display: flex; gap: 14px; margin-top: 6px; font-size: 11px; color: var(--text-dim); }
.studio__legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-inline-end: 6px; }
.studio__row .card { grid-column: span 1; }
.studio__row { grid-template-columns: 1fr 1.2fr; }
.studio__row:nth-child(3) { grid-template-columns: repeat(3,1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px;
  font-size: 12px;
}
.card__head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 6px; }
.card p { color: var(--text-muted); font-size: 11px; }
.bar { margin-top: 8px; height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.chips span {
  padding: 2px 6px; border-radius: 4px; font-size: 10px;
  background: var(--surface-2); color: var(--text-muted);
}

/* floating tiles */
.float {
  position: absolute; z-index: 2;
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 12px; padding: 10px 14px;
  box-shadow: var(--shadow-2);
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  animation: floaty 6s ease-in-out infinite;
}
.float b { display: block; font-size: 13px; }
.float small { color: var(--text-muted); font-size: 11px; }
.float__ic { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--grad-soft); font-size: 16px; }
.float--a { top: 8%; right: -8px; animation-delay: -2s; }
.float--b { bottom: 18%; left: -28px; animation-delay: -4s; }
.float--c { bottom: -4%; right: 8%; animation-delay: -1s; }
@keyframes floaty {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* -------- Trust bar -------- */
.trust { padding: 60px 0; }
.trust__title { text-align: center; color: var(--text-dim); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.trust__row {
  margin-top: 30px;
  display: grid; grid-template-columns: repeat(8,1fr); gap: 12px;
  align-items: center;
}
.trust__row svg { width: 100%; height: 28px; opacity: .6; transition: opacity .2s ease; color: var(--text-muted); }
.trust__row a:hover svg { opacity: 1; color: var(--text); }
@media (max-width: 1024px) { .trust__row { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 640px) { .trust__row { grid-template-columns: repeat(2,1fr); } }

/* -------- AI Pipeline -------- */
.pipeline {}
.pipe {
  display: grid;
  grid-template-columns: repeat(7,1fr);
  gap: 12px;
  align-items: stretch;
}
@media (max-width: 1100px) { .pipe { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 720px) { .pipe { grid-template-columns: repeat(2,1fr); } }
.pipe__step {
  position: relative;
  padding: 22px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.pipe__step:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.pipe__num {
  position: absolute; top: 12px; right: 12px;
  font-family: 'JetBrains Mono',monospace; font-size: 11px; color: var(--text-dim);
}
.pipe__ic {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  margin-bottom: 14px;
  color: var(--primary);
}
.pipe__ic svg { width: 22px; height: 22px; }
.pipe__name { font-weight: 700; font-size: 15px; }
.pipe__desc { margin-top: 6px; font-size: 12.5px; color: var(--text-muted); }
.pipe__arrow {
  position: absolute;
  inset-inline-end: -10px; top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  display: grid; place-items: center;
  color: var(--text-dim); z-index: 2;
  pointer-events: none;
}
.pipe__step:last-child .pipe__arrow { display: none; }
@media (max-width: 1100px) { .pipe__arrow { display: none; } }

/* -------- Features grid -------- */
.feat {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
  overflow: hidden;
}
.feat::before {
  content: ""; position: absolute; inset: -1px;
  background: var(--grad);
  border-radius: inherit;
  opacity: 0; transition: opacity .25s ease;
  z-index: -1;
}
.feat:hover { transform: translateY(-4px); border-color: transparent; }
.feat:hover::before { opacity: .25; }
.feat__ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  color: var(--primary);
  margin-bottom: 16px;
}
.feat__ic svg { width: 22px; height: 22px; }
.feat__title { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat__desc { color: var(--text-muted); font-size: 14px; }
.feat__tag {
  display: inline-block; margin-top: 14px;
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 999px;
  background: var(--grad-soft); color: var(--primary);
}

/* -------- Product modules -------- */
.module {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center;
  padding: 64px 0;
}
.module + .module { border-top: 1px solid var(--border); }
.module--alt { direction: rtl; }
.module--alt > * { direction: ltr; }
[dir="rtl"] .module--alt { direction: ltr; }
[dir="rtl"] .module--alt > * { direction: rtl; }
@media (max-width: 1024px) { .module { grid-template-columns: 1fr; gap: 32px; } }

.module__copy h3 { font-size: clamp(24px,2.6vw,32px); margin-bottom: 14px; }
.module__copy p { color: var(--text-muted); font-size: 16px; margin-bottom: 18px; }
.module__copy ul { display: grid; gap: 10px; }
.module__copy li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--text-muted);
}
.module__copy li svg { flex: 0 0 18px; color: var(--primary); margin-top: 2px; }
.module__copy .pill { margin-bottom: 16px; }

.module__visual {
  position: relative; min-height: 360px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  overflow: hidden;
}
.module__visual::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 200px at 0% 0%,rgba(124,92,255,.18),transparent 60%),
    radial-gradient(500px 200px at 100% 100%,rgba(34,211,238,.18),transparent 60%);
  pointer-events: none;
}
.mvis { position: relative; z-index: 1; display: grid; gap: 12px; }
.mvis__panel {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px;
  box-shadow: var(--shadow-1);
}
.mvis__row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.mvis__row + .mvis__row { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.mvis__row b { font-weight: 600; }
.mvis__row .pct { font-family: 'JetBrains Mono',monospace; color: var(--success); }
.mvis__bar { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.mvis__bar i { display: block; height: 100%; background: var(--grad); }
.mvis__title { font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.mvis__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mvis__chip {
  padding: 4px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; color: var(--text-muted);
}
.mvis__big {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 10px;
}
.mvis__cell {
  padding: 10px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  text-align: center;
}
.mvis__cell strong { display: block; font-size: 22px; }
.mvis__cell span { font-size: 11px; color: var(--text-muted); }
.mvis__list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; font-size: 13px;
}
.mvis__list li + li { border-top: 1px dashed var(--border); }
.mvis__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px;
}

/* -------- Industries -------- */
.ind {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.ind:hover { transform: translateY(-4px); background: var(--surface-2); border-color: var(--border-strong); }
.ind__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ind__ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--grad-soft);
}
.ind__title { font-weight: 700; font-size: 17px; }
.ind__desc { color: var(--text-muted); font-size: 14px; min-height: 60px; }
.ind__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.ind__tags span {
  padding: 3px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--text-muted); font-size: 11px;
  border: 1px solid var(--border);
}

/* -------- Architecture diagram -------- */
.arch__wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.arch__layer + .arch__layer { margin-top: 16px; }
.arch__row { display: grid; grid-template-columns: 130px 1fr; gap: 18px; align-items: stretch; }
.arch__name {
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
  padding: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}
.arch__name b { font-size: 13px; }
.arch__name span { font-size: 11px; color: var(--text-muted); }
.arch__cells { display: grid; grid-template-columns: repeat(6,1fr); gap: 10px; }
@media (max-width: 900px) {
  .arch__row { grid-template-columns: 1fr; }
  .arch__cells { grid-template-columns: repeat(3,1fr); }
}
.arch__cell {
  padding: 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  transition: transform .2s ease, background .2s ease;
}
.arch__cell:hover { transform: translateY(-2px); background: var(--bg-elev); }
.arch__cell .ic {
  width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--surface); color: var(--primary);
}
.arch__cell .ic svg { width: 16px; height: 16px; }
.arch__cell b { font-size: 12px; font-weight: 600; }
.arch__cell span { color: var(--text-muted); font-size: 11px; }

/* -------- Metrics -------- */
.metrics__row {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 18px;
}
@media (max-width: 900px) { .metrics__row { grid-template-columns: repeat(2,1fr); } }
.metric {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  text-align: center;
}
.metric strong {
  display: block;
  font-size: clamp(34px,3.4vw,46px); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.02em;
}
.metric span { display: block; color: var(--text-muted); margin-top: 6px; font-size: 14px; }

/* -------- Quotes -------- */
.quote {
  padding: 26px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 18px;
  position: relative;
  transition: border-color .25s ease, background .25s ease;
}
.quote:hover { border-color: var(--border-strong); background: var(--surface-2); }
.quote::before {
  content: "“"; position: absolute; top: 6px; right: 18px;
  font-family: Georgia,serif; font-size: 80px; line-height: 1;
  color: var(--primary); opacity: .15;
}
.quote__body { font-size: 15px; color: var(--text); }
.quote__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.quote__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: grid; place-items: center; font-weight: 700;
}
.quote__who b { display: block; font-size: 14px; }
.quote__who span { font-size: 12px; color: var(--text-muted); }

/* -------- Pricing -------- */
.toggle { display: inline-flex; align-items: center; gap: 12px; margin-top: 20px; }
.toggle .save {
  font-style: normal; font-size: 11px; font-weight: 700;
  background: var(--grad-soft); color: var(--primary);
  padding: 3px 8px; border-radius: 999px;
}
.switch { position: relative; display: inline-block; width: 44px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--surface-2); border-radius: 999px; border: 1px solid var(--border);
  transition: background .2s ease;
}
.switch span::before {
  content: ""; position: absolute;
  width: 18px; height: 18px; left: 2px; top: 2px;
  background: var(--grad); border-radius: 50%; transition: transform .25s ease;
}
.switch input:checked + span::before { transform: translateX(20px); }

.plan {
  padding: 28px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 16px;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan--featured { background: var(--grad-soft); border-color: transparent; outline: 1px solid rgba(124,92,255,.3); }
.plan__badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
}
.plan__name { font-weight: 700; font-size: 16px; }
.plan__desc { color: var(--text-muted); font-size: 13px; min-height: 36px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.plan__price strong { font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.plan__price span { color: var(--text-muted); font-size: 13px; }
.plan__cta { margin-top: 4px; }
.plan ul { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.plan li {
  display: flex; gap: 8px; align-items: flex-start;
  font-size: 13px; color: var(--text-muted);
}
.plan li svg { flex: 0 0 16px; color: var(--primary); margin-top: 2px; }
.plan li b { color: var(--text); font-weight: 600; }

/* -------- Integrations -------- */
.integ__grid {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 12px;
}
@media (max-width: 1024px) { .integ__grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 640px) { .integ__grid { grid-template-columns: repeat(2,1fr); } }
.integ__cell {
  padding: 18px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.integ__cell:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.integ__cell .badge {
  width: 44px; height: 44px; border-radius: 12px; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}

/* -------- Security -------- */
.sec__row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center;
}
@media (max-width: 900px) { .sec__row { grid-template-columns: 1fr; } }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px;
}
.ticks li svg { flex: 0 0 22px; color: var(--success); margin-top: 2px; }
.ticks li b { display: block; font-weight: 700; margin-bottom: 4px; }
.ticks li span { color: var(--text-muted); font-size: 13px; }
.badges { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.badge-card {
  padding: 22px 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 8px; align-items: center; text-align: center;
}
.badge-card .seal {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 11px;
}
.badge-card b { font-size: 13px; }
.badge-card span { font-size: 11px; color: var(--text-muted); }

/* -------- FAQ -------- */
.faq__list { max-width: 880px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 18px 22px;
  transition: background .2s ease, border-color .2s ease;
}
.faq__item:hover { border-color: var(--border-strong); background: var(--surface-2); }
.faq__q {
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  font-weight: 600; font-size: 15px; list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ""; width: 18px; height: 18px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23888' d='M19 13H5v-2h14z'/><path fill='%23888' d='M11 5h2v14h-2z'/></svg>") center/contain no-repeat;
  transition: transform .2s ease;
}
.faq__item[open] .faq__q::after {
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23888' d='M19 13H5v-2h14z'/></svg>") center/contain no-repeat;
}
.faq__a { margin-top: 12px; color: var(--text-muted); font-size: 14px; }

/* -------- Final CTA -------- */
.cta { padding: 80px 0 96px; }
.cta__inner {
  position: relative;
  padding: 64px 32px;
  border-radius: 24px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}
.cta__bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 240px at 0% 0%,rgba(124,92,255,.25),transparent 60%),
    radial-gradient(600px 240px at 100% 100%,rgba(34,211,238,.25),transparent 60%);
  pointer-events: none;
}
.cta__inner h2 {
  font-size: clamp(28px,3.4vw,42px); position: relative;
  background: linear-gradient(180deg,var(--text),var(--text-muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta__inner p {
  margin: 16px auto 28px; max-width: 580px; color: var(--text-muted); font-size: 16px; position: relative;
}
.cta__btns { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; position: relative; }
.cta__inner small { display: block; margin-top: 18px; color: var(--text-dim); font-size: 12px; position: relative; }

/* -------- Footer -------- */
.footer { padding: 64px 0 28px; border-top: 1px solid var(--border); margin-top: 30px; }
.footer__inner {
  display: grid; grid-template-columns: 1.4fr repeat(4,1fr); gap: 32px;
}
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__inner { grid-template-columns: 1fr; } }
.fcol h4 { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.fcol a { display: block; padding: 6px 0; color: var(--text-muted); font-size: 14px; }
.fcol a:hover { color: var(--text); }
.foot__brand-block p { color: var(--text-muted); font-size: 14px; margin-top: 12px; max-width: 320px; }
.foot__social { display: flex; gap: 8px; margin-top: 18px; }
.foot__social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  display: grid; place-items: center; color: var(--text-muted);
  transition: color .2s ease, background .2s ease;
}
.foot__social a:hover { color: var(--text); background: var(--surface-2); }
.footer__bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  color: var(--text-muted); font-size: 13px;
}
.footer__brand { display: flex; align-items: center; gap: 10px; }
.footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--text); }

/* -------- Reveal-on-scroll -------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* -------- Responsive nav -------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .mobonly { display: inline-flex; }
}
@media (max-width: 720px) {
  .annc__inner { font-size: 12px; }
  .annc__text { display: none; }
  .header__inner { gap: 8px; }
  .btn--ghost { display: none; }
  section { padding: 64px 0; }
  .hero { padding-top: 40px; }
  .float--a, .float--b, .float--c { display: none; }
}

/* -------- RTL adjustments -------- */
[dir="rtl"] .annc__link::after { content: " ←"; }
[dir="rtl"] .studio { transform: perspective(1400px) rotateY(6deg) rotateX(2deg); }
[dir="rtl"] .pipe__arrow svg { transform: scaleX(-1); }

