/* ==========================================================
   NextAura — design tokens
   ========================================================== */
:root {
  --bg: #070B1A;
  --bg-2: #0B1126;
  --surface: #10183A;
  --surface-2: #151F48;
  --line: rgba(160, 180, 255, 0.12);
  --line-2: rgba(160, 180, 255, 0.22);
  --text: #F2F5FF;
  --muted: #A3ADD1;
  --faint: #6F7AA3;
  --blue: #2F55E4;
  --blue-2: #5B7CFF;
  --blue-glow: rgba(70, 105, 255, 0.45);
  --lime: #C8F542;
  --lime-ink: #10170A;
  --warn: #FFB547;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: 240ms;

  color-scheme: dark;
}

/* Language switching */
html[lang="ar"] .en { display: none !important; }
html[lang="en"] .ar { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { letter-spacing: -0.005em; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.ico { width: 1.1em; height: 1.1em; flex: none; }
html[dir="rtl"] .ico-flip, html[dir="rtl"] .link-arrow .ico, html[dir="rtl"] .brand-card .ico, html[dir="rtl"] .btn .ico[data-dir] { transform: scaleX(-1); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: fixed; inset-inline-start: 16px; top: -60px; z-index: 1000;
  background: var(--lime); color: var(--lime-ink); padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip:focus { top: 16px; }

/* Grain overlay for depth */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .05;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================
   Loader
   ========================================================== */
.loader {
  position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center;
  background: var(--bg); transition: opacity .6s var(--ease-out), visibility .6s;
}
.loader-mark { width: 72px; height: 72px; color: var(--blue-2); }
.loader-mark path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.1s var(--ease-out) forwards; }
.loader-mark path + path { animation-delay: .35s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.is-loaded .loader { opacity: 0; visibility: hidden; }

/* ==========================================================
   Buttons
   ========================================================== */
.btn {
  --pad-y: 14px; --pad-x: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad-y) var(--pad-x); min-height: 48px;
  border-radius: 999px; border: 1px solid transparent; font-weight: 500; font-size: 16px; line-height: 1;
  cursor: pointer; white-space: nowrap; position: relative; isolation: isolate;
  transition: transform var(--dur) var(--ease-out), background var(--dur), border-color var(--dur), box-shadow var(--dur), color var(--dur);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn-sm { --pad-y: 10px; --pad-x: 16px; min-height: 42px; font-size: 15px; }
.btn-lg { --pad-y: 18px; --pad-x: 28px; min-height: 56px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 30px -10px var(--blue-glow); }
.btn-primary:hover { background: #3A61F5; box-shadow: 0 10px 40px -8px var(--blue-glow); }
.btn-lime { background: var(--lime); color: var(--lime-ink); box-shadow: 0 10px 40px -12px rgba(200, 245, 66, .55); }
.btn-lime:hover { background: #D6FF5C; box-shadow: 0 14px 50px -10px rgba(200, 245, 66, .7); }
.btn-ghost { background: rgba(255,255,255,.04); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(200, 245, 66, .5); }

/* ==========================================================
   Nav
   ========================================================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 100; padding: 14px var(--gutter); transition: transform .4s var(--ease-out); }
.nav-inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: rgba(10, 15, 36, .55); border: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background var(--dur), border-color var(--dur);
}
html[dir="rtl"] .nav-inner { padding: 10px 18px 10px 10px; }
.nav.scrolled .nav-inner { background: rgba(8, 12, 30, .82); border-color: var(--line-2); }
.nav.hide { transform: translateY(-120%); }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: var(--blue); display: grid; place-items: center; color: #fff; box-shadow: 0 6px 20px -6px var(--blue-glow); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-name { font-weight: 700; letter-spacing: .08em; font-size: 15px; display: flex; flex-direction: column; line-height: 1.1; }
.brand-name small { font-weight: 500; letter-spacing: 0; font-size: 11px; color: var(--muted); }

.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 10px 16px; border-radius: 999px; color: var(--muted); font-size: 15px; transition: color var(--dur), background var(--dur); }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.06); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-toggle {
  min-width: 48px; min-height: 42px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500;
  transition: border-color var(--dur), background var(--dur);
}
.lang-toggle:hover { border-color: var(--lime); background: rgba(200,245,66,.06); }

.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; inset-inline: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform var(--dur) var(--ease-out); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  max-width: var(--container); margin: 8px auto 0; padding: 12px; border-radius: var(--radius-lg);
  background: rgba(8, 12, 30, .95); border: 1px solid var(--line-2); backdrop-filter: blur(18px);
  display: grid; gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 16px; border-radius: 12px; font-size: 18px; }
.mobile-menu a:not(.btn):hover { background: rgba(255,255,255,.06); }
.mobile-menu .btn { margin-top: 6px; }

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh; display: flex; align-items: center;
  padding: 130px 0 90px; overflow: hidden;
  background:
    radial-gradient(60% 60% at 25% 45%, rgba(47, 85, 228, .28), transparent 70%),
    radial-gradient(40% 40% at 85% 10%, rgba(91, 124, 255, .12), transparent 70%),
    var(--bg);
}
html[dir="ltr"] .hero { background:
    radial-gradient(60% 60% at 75% 45%, rgba(47, 85, 228, .28), transparent 70%),
    radial-gradient(40% 40% at 15% 10%, rgba(91, 124, 255, .12), transparent 70%),
    var(--bg); }
.hero::before { /* grid floor */
  content: ""; position: absolute; inset: auto 0 0 0; height: 45%; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to top, #000 0%, transparent 90%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 90%);
  transform: perspective(600px) rotateX(55deg); transform-origin: bottom;
}
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 1s var(--ease-out); }
.hero3d-on #hero3d { opacity: 1; }
/* pre-rendered logo for phones (no WebGL) */
.hero-still { display: none; position: absolute; z-index: 1; pointer-events: none; left: 50%; width: min(345px, 88vw); height: auto;
  top: calc(165px - min(345px, 88vw) / 2); translate: -50% 0; animation: still-float 6s ease-in-out infinite; }
@keyframes still-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-10px) rotate(1.5deg); } }
.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(30% 30% at var(--mx, 30%) var(--my, 45%), rgba(200, 245, 66, .08), transparent 70%); }
.hero-content { position: relative; z-index: 2; pointer-events: none; }
.hero-content > * { pointer-events: auto; }
.hero-content > *:not(.hero-title) { max-width: 600px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid var(--line-2); font-size: 14px; color: var(--muted);
  margin-bottom: 28px; backdrop-filter: blur(6px);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(200,245,66,.6); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(200,245,66,0); } 100% { box-shadow: 0 0 0 0 rgba(200,245,66,0); } }

.hero-title { font-size: clamp(44px, 7.4vw, 104px); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 26px; }
html[lang="ar"] .hero-title { line-height: 1.22; letter-spacing: 0; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .line > span { display: inline-block; }
.accent {
  background: linear-gradient(100deg, var(--blue-2) 0%, #8FA6FF 40%, var(--lime) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); margin-bottom: 34px; line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-chips { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.hero-chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero-chips .ico { color: var(--lime); }

.scroll-cue { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; width: 28px; height: 46px; border: 1.5px solid var(--line-2); border-radius: 20px; }
.scroll-cue span { position: absolute; top: 9px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--lime); animation: cue 1.8s var(--ease-out) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* ==========================================================
   Marquee
   ========================================================== */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: var(--bg-2); direction: ltr; }
.marquee-track { display: flex; align-items: center; gap: 28px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-size: clamp(24px, 3.4vw, 42px); font-weight: 600; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(200, 210, 255, .35); }
.marquee span:nth-of-type(4n+1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee i { font-style: normal; color: var(--lime); font-size: 26px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================
   Sections
   ========================================================== */
.section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.kicker { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin-bottom: 18px; text-transform: uppercase; letter-spacing: .08em; }
html[lang="ar"] .kicker { letter-spacing: 0; }
.kicker .num { font-family: var(--mono); color: var(--lime); font-size: 13px; padding: 4px 10px; border: 1px solid rgba(200,245,66,.35); border-radius: 999px; }
.section h2 { font-size: clamp(36px, 5.6vw, 72px); font-weight: 600; letter-spacing: -0.02em; }
html[lang="ar"] .section h2, html[lang="ar"] .final-cta h2 { letter-spacing: 0; line-height: 1.3; }
h2 em, .final-cta h2 em { font-style: normal; color: var(--blue-2); }
.lead { margin-top: 20px; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); max-width: 620px; }

/* ==========================================================
   Bento services
   ========================================================== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(280px, auto); gap: 18px; }
.card {
  --gx: 50%; --gy: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 28px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  transition: border-color var(--dur), transform .5s var(--ease-out);
  transform-style: preserve-3d;
}
.card::before { /* cursor glow */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur);
  background: radial-gradient(400px circle at var(--gx) var(--gy), rgba(91, 124, 255, .18), transparent 45%);
}
.card:hover { border-color: var(--line-2); }
.card:hover::before { opacity: 1; }
.card-xl { grid-column: span 2; grid-row: span 2; }
.card-tall { grid-column: span 2; grid-row: span 1; }
.card-wide { grid-column: span 2; }
.card h3 { font-size: clamp(21px, 2vw, 26px); position: relative; }
.card p { color: var(--muted); font-size: 15.5px; position: relative; }
.card-num { font-family: var(--mono); font-size: 12px; color: var(--faint); position: relative; }
.tags { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.tags li { font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

.card-visual { flex: 1; position: relative; min-height: 110px; margin-bottom: 14px; }

/* visual: browser */
.vis-browser { border-radius: 16px; border: 1px solid var(--line-2); background: #0D1433; overflow: hidden; min-height: 260px; transform: translateZ(30px); }
.vb-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); direction: ltr; }
.vb-bar i { width: 9px; height: 9px; border-radius: 50%; background: #2A3566; }
.vb-bar i:first-child { background: #FF6B6B; } .vb-bar i:nth-child(2) { background: var(--warn); } .vb-bar i:nth-child(3) { background: var(--lime); }
.vb-bar span { margin-inline-start: 10px; font-family: var(--mono); font-size: 11px; color: var(--faint); padding: 3px 12px; background: rgba(255,255,255,.04); border-radius: 6px; flex: 1; max-width: 220px; }
.vb-body { padding: 26px; position: relative; height: calc(100% - 38px); }
.vb-body b { display: block; height: 14px; border-radius: 7px; background: rgba(242,245,255,.85); width: 48%; margin-bottom: 12px; }
.vb-body b.w60 { width: 36%; background: var(--blue-2); }
.vb-body b.w40 { width: 26%; height: 8px; background: rgba(163,173,209,.4); }
.vb-body em { display: block; width: 110px; height: 34px; border-radius: 999px; background: var(--lime); margin-top: 22px; }
.vb-orb { position: absolute; inset-inline-end: 8%; top: 50%; translate: 0 -50%; width: min(34%, 150px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff 0%, #9DB1FF 18%, var(--blue) 55%, #0B1550 100%); box-shadow: 0 30px 60px -10px var(--blue-glow); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }

/* visual: phone */
.vis-app { display: grid; place-items: center; }
.phone { width: 110px; height: 150px; border-radius: 22px 22px 0 0; border: 1.5px solid var(--line-2); border-bottom: 0; padding: 18px 12px 0; background: #0D1433; align-self: end; transform: translateY(28px); }
.ph-notch { width: 34px; height: 6px; border-radius: 3px; background: #2A3566; margin: -8px auto 12px; }
.phone b { display: block; height: 8px; border-radius: 4px; background: rgba(242,245,255,.8); width: 80%; margin-bottom: 7px; }
.phone b.w60 { width: 50%; background: var(--blue-2); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.ph-grid i { height: 34px; border-radius: 8px; background: rgba(91,124,255,.22); }
.ph-grid i:first-child { background: var(--lime); }

/* visual: chart */
.vis-chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; direction: ltr; }
.vis-chart i { flex: 1; height: var(--h); border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--blue-2), rgba(47,85,228,.15)); transform-origin: bottom; }
.vis-chart i:last-child { background: linear-gradient(180deg, var(--lime), rgba(200,245,66,.15)); }

/* visual: design swatches */
.vis-design { display: flex; align-items: center; justify-content: center; min-height: 110px; }
.vis-design i { width: 72px; height: 72px; border-radius: 50%; margin-inline: -12px; mix-blend-mode: screen; transition: transform .6s var(--ease-out); }
.vis-design i:nth-child(1) { background: var(--blue); }
.vis-design i:nth-child(2) { background: var(--lime); opacity: .85; }
.vis-design i:nth-child(3) { background: #8FA6FF; opacity: .8; }
.card:hover .vis-design i:nth-child(1) { transform: translateX(-14px); }
.card:hover .vis-design i:nth-child(3) { transform: translateX(14px); }

/* visual: video */
.vis-video { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.play { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); position: relative; margin-inline: auto; box-shadow: 0 0 0 10px rgba(47,85,228,.18); }
.play::after { content: ""; position: absolute; left: 21px; top: 16px; border-left: 16px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.timeline { display: flex; gap: 4px; direction: ltr; }
.timeline i { height: 18px; border-radius: 4px; background: rgba(91,124,255,.3); flex: 2; }
.timeline i:nth-child(2) { flex: 1; background: rgba(200,245,66,.55); }
.timeline i:nth-child(3) { flex: 3; }
.timeline i:nth-child(4) { flex: 1.5; background: rgba(143,166,255,.45); }

/* visual: motion */
.vis-motion { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 110px; }
.vis-motion i { width: 22px; height: 22px; border-radius: 6px; background: var(--blue-2); animation: bounce 1.6s var(--ease-out) infinite; }
.vis-motion i:nth-child(2) { animation-delay: .15s; background: var(--lime); border-radius: 50%; }
.vis-motion i:nth-child(3) { animation-delay: .3s; background: #8FA6FF; transform: rotate(45deg); }
@keyframes bounce { 0%, 100% { translate: 0 0; } 40% { translate: 0 -26px; } 60% { translate: 0 0; } }

/* ==========================================================
   Work
   ========================================================== */
.section-work { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 30%, var(--bg-2) 70%, var(--bg) 100%); }
.project { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; margin-bottom: clamp(80px, 10vw, 140px); }
.project-flip { grid-template-columns: 1fr 1.25fr; }
.project-flip .project-media { order: 2; }
.project-media { position: relative; }
.browser-frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); background: #0D1433; box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02); }
.browser-frame img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.phone-shot { position: absolute; width: 26%; inset-inline-end: -4%; bottom: -12%; border-radius: 22px; border: 4px solid #1A2350; box-shadow: 0 30px 60px -20px rgba(0,0,0,.9); aspect-ratio: 390/700; object-fit: cover; object-position: top; }
.project-type { font-family: var(--mono); font-size: 13px; color: var(--lime); margin-bottom: 14px; }
html[lang="ar"] .project-type { font-family: var(--font); }
.project-info h3 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 16px; letter-spacing: -0.01em; }
.project-info > p:not(.project-type):not(.fine) { color: var(--muted); }
.feature-list { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 10px; }
.feature-list .ico { color: var(--lime); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; padding: 12px 0; border-bottom: 1.5px solid var(--lime); transition: gap var(--dur) var(--ease-out); }
.link-arrow:hover { gap: 14px; }
.fine { font-size: 13px; color: var(--faint); margin-top: 10px; }

.feature-grid { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feature-grid li { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-size: 14px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }
.feature-grid strong { color: var(--text); font-weight: 600; font-size: 15px; }

/* real app screenshots with tabs */
.app-shots { background: #0F141B; }
.as-stage { position: relative; aspect-ratio: 16 / 10; background: #0F141B; }
.as-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transform: scale(1.015); transition: opacity .6s var(--ease-out), transform .9s var(--ease-out); }
.as-stage img.on { opacity: 1; transform: none; }
.as-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.as-tabs button { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--muted); font-size: 14px; cursor: pointer; transition: color var(--dur), border-color var(--dur), background var(--dur); }
.as-tabs button:hover { color: var(--text); border-color: rgba(200,245,66,.45); }
.as-tabs button[aria-pressed="true"] { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }
.mock-note { font-size: 12px; color: var(--faint); margin-top: 12px; text-align: center; }

/* brands */
.brands { border-top: 1px solid var(--line); padding-top: 48px; }
.brands-title { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.brand-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.brand-card { display: flex; align-items: center; gap: 18px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: border-color var(--dur), transform var(--dur) var(--ease-out); }
.brand-card:hover { border-color: var(--line-2); transform: translateY(-3px); }
.brand-card .ico { margin-inline-start: auto; color: var(--muted); transition: color var(--dur), transform var(--dur); }
.brand-card:hover .ico { color: var(--lime); }
.bc-logo { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-weight: 700; flex: none; font-size: 15px; }
.bc-robo { background: linear-gradient(135deg, #FFB547, #FF6B3D); color: #1A0D00; }
.bc-nafs { background: #0A0A0A; color: #fff; border: 1px solid #333; font-size: 12px; letter-spacing: .12em; }
.bc-text { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); }
.bc-text strong { color: var(--text); font-size: 17px; }

/* ==========================================================
   Process
   ========================================================== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; counter-reset: s; }
.steps::before { content: ""; position: absolute; top: 34px; inset-inline: 0; height: 1px; background: var(--line-2); }
.steps::after { content: ""; position: absolute; top: 34px; inset-inline-start: 0; height: 1px; width: calc(var(--progress, 0) * 100%); background: linear-gradient(90deg, var(--blue-2), var(--lime)); box-shadow: 0 0 12px var(--lime); }
html[dir="rtl"] .steps::after { background: linear-gradient(270deg, var(--blue-2), var(--lime)); }
.step { position: relative; padding-top: 74px; }
.step-num { position: absolute; top: 12px; inset-inline-start: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; background: var(--bg); border: 1px solid var(--line-2); z-index: 1; transition: background .4s, color .4s, border-color .4s; }
.step.on .step-num { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }
.step h3 { font-size: 22px; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* ==========================================================
   Brief builder
   ========================================================== */
.section-brief { background: radial-gradient(50% 60% at 50% 0%, rgba(47,85,228,.18), transparent 70%), var(--bg); }
.brief-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.brief-intro { position: sticky; top: 120px; }
.brief-alt { display: grid; gap: 10px; margin-top: 32px; }
.contact-line { display: inline-flex; align-items: center; gap: 12px; color: var(--muted); padding: 8px 0; font-size: 16px; width: fit-content; transition: color var(--dur); }
.contact-line:hover { color: var(--text); }
.contact-line .ico { color: var(--lime); }

.brief { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%); border: 1px solid var(--line-2); display: grid; gap: 22px; box-shadow: 0 40px 120px -40px rgba(47,85,228,.45); }
.brief fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.brief legend, .field label { font-weight: 500; margin-bottom: 12px; display: block; font-size: 15px; }
.brief legend small { color: var(--faint); font-weight: 400; font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip, .seg label { position: relative; cursor: pointer; }
.chip input, .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span, .seg label > span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 999px; font-size: 15px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,.02); transition: all var(--dur) var(--ease-out);
}
.chip:hover > span, .seg label:hover > span { border-color: rgba(200,245,66,.5); }
.chip input:checked + span { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); font-weight: 500; }
.chip input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--line); }
.seg label > span { width: 100%; justify-content: center; border-color: transparent; border-radius: 12px; text-align: center; font-size: 14px; padding: 8px 6px; line-height: 1.3; }
.seg input:checked + span { background: var(--blue); color: #fff; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: rgba(0,0,0,.25);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 13px 16px; min-height: 50px; resize: vertical;
  transition: border-color var(--dur), background var(--dur);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-2); background: rgba(0,0,0,.35); box-shadow: 0 0 0 3px rgba(91,124,255,.2); }
.preview { border-radius: 16px; padding: 16px; background: #0B1F17; border: 1px solid rgba(37, 211, 102, .25); }
.preview-label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #6EE7A0; margin-bottom: 8px; }
.preview p { white-space: pre-line; font-size: 14.5px; color: #DDF5E7; line-height: 1.7; }

/* ==========================================================
   FAQ
   ========================================================== */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color var(--dur), background var(--dur); }
.faq details[open] { border-color: var(--line-2); background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 500; font-size: 17px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; color: var(--lime); flex: none; transition: transform var(--dur) var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 22px; color: var(--muted); }

/* ==========================================================
   Final CTA + footer
   ========================================================== */
.final-cta { position: relative; padding: clamp(100px, 14vw, 180px) 0; text-align: center; overflow: hidden;
  background: radial-gradient(60% 70% at 50% 100%, rgba(47,85,228,.45), transparent 70%), var(--bg); }
.final-cta .container { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-mark { position: absolute; width: min(70vw, 560px); height: min(70vw, 560px); top: 50%; left: 50%; translate: -50% -50%; color: rgba(91,124,255,.08); pointer-events: none; }
.final-cta h2 { font-size: clamp(40px, 7vw, 92px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 40px; position: relative; }
.final-cta .hero-cta { justify-content: center; position: relative; }

.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.footer-tag { color: var(--muted); font-size: 14px; text-align: center; }
.footer-links { display: flex; gap: 8px; }
.footer-links a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); transition: all var(--dur); }
.footer-links a:hover { color: var(--lime-ink); background: var(--lime); border-color: var(--lime); }
.footer-links .ico { width: 20px; height: 20px; }
.copy { grid-column: 1 / -1; color: var(--faint); font-size: 13px; text-align: center; border-top: 1px solid var(--line); padding-top: 24px; }

.wa-float {
  position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transform: scale(0); transition: transform .4s var(--ease-out);
}
.wa-float.show { transform: scale(1); }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25D366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* Reveal defaults (JS adds .js) */
.js .reveal { opacity: 0; transform: translateY(36px); }

/* ==========================================================
   Cinematic scroll (canvas frame scrub)
   ========================================================== */
.cine { position: relative; background: var(--bg); }
.js .cine { height: 520vh; }
.cine-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; align-items: center; }
.cine-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.cine-shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(7,11,26,0) 18%, rgba(7,11,26,0) 72%, var(--bg) 100%),
    linear-gradient(var(--shade-dir, 270deg), rgba(7,11,26,.88) 0%, rgba(7,11,26,.35) 34%, rgba(7,11,26,0) 55%); }
html[dir="ltr"] .cine-shade { --shade-dir: 90deg; }
.cine-copy { position: relative; z-index: 1; width: 100%; max-width: none; min-height: 40vh; }
.cine-line { position: absolute; inset-inline-start: clamp(24px, 6vw, 110px); top: 50%; translate: 0 -50%; max-width: min(440px, 31vw);
  font-size: clamp(30px, 3.6vw, 54px); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; opacity: 0; will-change: opacity, transform; }
.cine-line small { display: block; margin-top: 14px; font-size: clamp(16px, 1.4vw, 19px); font-weight: 400; line-height: 1.6; color: var(--muted); letter-spacing: 0; }
.cine-line:last-child small { color: var(--lime); }
.cine-progress { position: absolute; bottom: 36px; left: 50%; translate: -50% 0; width: 120px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; z-index: 1; }
.cine-progress i { position: absolute; inset: 0; background: var(--lime); transform-origin: left; transform: scaleX(var(--p, 0)); }
/* no JS / reduced motion: a single still with the copy stacked */
.cine.is-static, html:not(.js) .cine { height: auto; }
.cine.is-static .cine-stage, html:not(.js) .cine-stage { position: relative; height: auto; min-height: 80vh; padding: 120px 0; }
.cine.is-static .cine-copy, html:not(.js) .cine-copy { display: grid; gap: 36px; min-height: 0; }
.cine.is-static .cine-line, html:not(.js) .cine-line { position: static; translate: none; opacity: 1; max-width: 520px; margin-inline-start: 0; }
.cine.is-static .cine-progress { display: none; }

/* ==========================================================
   Video & motion reels
   ========================================================== */
.section-reels { background: radial-gradient(60% 50% at 80% 30%, rgba(47,85,228,.12), transparent 70%), var(--bg); }
.reels-grid { display: grid; grid-template-columns: 1.62fr 1fr; grid-template-rows: auto auto; gap: clamp(14px, 2vw, 22px); }
.reel { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-lg); overflow: hidden; background: #050814; cursor: pointer; text-align: start; color: var(--text); isolation: isolate;
  box-shadow: 0 30px 80px -40px rgba(0,0,0,.9); transition: border-color var(--dur), transform .5s var(--ease-out); }
.reel-noble, .reel-gdme { aspect-ratio: 16 / 9; }
.reel-tall { grid-column: 2; grid-row: 1 / span 2; min-height: 100%; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.reel::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,8,20,0) 45%, rgba(5,8,20,.88) 100%); }
.reel:hover { border-color: rgba(200,245,66,.5); }
.reel:hover video { transform: scale(1.03); }
.reel:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.reel-info { position: absolute; inset-inline: 22px; bottom: 20px; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.reel-type { font-family: var(--mono); font-size: 12px; color: var(--lime); letter-spacing: .02em; }
.reel-info strong { font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; line-height: 1.3; }
.reel-play { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 12px; border-radius: 999px;
  font-size: 13px; background: rgba(7,11,26,.55); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background var(--dur), color var(--dur); }
.reel-play .ico { width: 16px; height: 16px; }
.reel:hover .reel-play, .reel:focus-visible .reel-play { background: var(--lime); color: var(--lime-ink); border-color: var(--lime); }

/* lightbox */
.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; color: var(--text); }
.lightbox::backdrop { background: rgba(3,5,12,.86); backdrop-filter: blur(6px); }
.lightbox video { display: block; width: 100%; max-height: 86vh; border-radius: 18px; background: #000; }
.lightbox.is-vertical { max-width: min(460px, 92vw); }
.lb-close { position: absolute; top: -54px; inset-inline-end: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); cursor: pointer; font-size: 14px; }
.lb-close:hover { border-color: var(--lime); }
html.modal-open { overflow: hidden; }

/* ==========================================================
   Aura layer: cursor, light, grid spotlight, sparkles, progress, curtain
   ========================================================== */
.scroll-line { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 1001; pointer-events: none; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--blue-2), var(--lime)); }
html[dir="rtl"] .scroll-line { transform-origin: right; background: linear-gradient(270deg, var(--blue-2), var(--lime)); }

html.has-cursor, html.has-cursor * { cursor: none !important; }
html.has-cursor input:not([type="checkbox"]):not([type="radio"]), html.has-cursor textarea { cursor: text !important; }
.cursor-dot, .cursor-ring, .aura-light, .aura-grid, .aura-sparks { position: fixed; top: 0; left: 0; pointer-events: none; opacity: 0; transition: opacity .35s; }
.cursor-on .cursor-dot, .cursor-on .cursor-ring, .cursor-on .aura-light, .cursor-on .aura-grid, .cursor-on .aura-sparks { opacity: 1; }
.cursor-dot { z-index: 10001; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--lime); }
.cursor-ring { z-index: 10000; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.7); mix-blend-mode: difference;
  display: grid; place-items: center; transition: opacity .35s, background-color .25s, border-color .25s; will-change: transform; }
.cursor-ring.is-link { background: #fff; border-color: #fff; }
.cursor-ring.is-label { mix-blend-mode: normal; background: var(--lime); border-color: var(--lime); }
.cursor-ring.is-text { opacity: 0 !important; }
.cursor-ring.is-down { border-color: var(--lime); }
.cursor-label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--lime-ink); white-space: nowrap; }
.aura-light { z-index: 5; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(70,105,255,.16) 0%, rgba(91,124,255,.08) 30%, rgba(200,245,66,.03) 48%, transparent 68%); }
.aura-grid { z-index: 4; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen;
  background-image: linear-gradient(var(--grid-c, rgba(140,165,255,.16)) 1px, transparent 1px), linear-gradient(90deg, var(--grid-c, rgba(140,165,255,.16)) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(240px circle at var(--gx, -999px) var(--gy, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%);
          mask-image: radial-gradient(240px circle at var(--gx, -999px) var(--gy, -999px), #000 0%, rgba(0,0,0,.35) 45%, transparent 75%); }
.aura-sparks { z-index: 6; width: 100vw; height: 100vh; }

.curtain { position: fixed; inset: 0; z-index: 9000; display: grid; place-items: center; pointer-events: none; transform: translateY(101%);
  background: radial-gradient(60% 60% at 50% 50%, #1d3bb8 0%, var(--blue) 40%, #0a1240 100%); }
.curtain-mark { width: 84px; height: 84px; color: #fff; }
.curtain.cover { transform: none; }
.curtain.cover.lift { transform: translateY(-101%); transition: transform .8s cubic-bezier(.7,0,.2,1) .15s; }
.page-out .curtain { transform: none !important; transition: transform .5s cubic-bezier(.7,0,.3,1) !important; }

/* ==========================================================
   Robo — assistant robot (assets/js/assistant.js)
   ========================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bot { position: fixed; z-index: 95; bottom: 20px; inset-inline-end: 20px; --tx: 0px; --ty: 0px; }
.bot-fab { position: relative; display: block; width: 74px; height: 70px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 30px; animation: bot-bob 4.2s ease-in-out infinite; transition: transform .25s var(--ease-out); }
.bot-fab::before { content: ""; position: absolute; left: 14%; right: 14%; bottom: -8px; height: 12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,6,30,.55), transparent); animation: bot-shadow 4.2s ease-in-out infinite; }
.bot-fab:hover { transform: scale(1.08) rotate(-4deg); }
.bot-fab:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; }
.bot-fab .bot-face { width: 100%; height: 100%; overflow: visible; }
@keyframes bot-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes bot-shadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.8); opacity: .6; } }
.bot-face .bot-eye path { fill: none; stroke: #3FE0FF; stroke-width: 7; stroke-linecap: round; }
.bot-face .bot-eye path.halo { stroke: rgba(63,224,255,.22); stroke-width: 15; }
.bot-eye { transform-box: fill-box; transform-origin: center; transition: transform 90ms ease; }
.bot.blink .bot-eye { transform: scaleY(.15); }
.bot-ant { fill: #3FE0FF; animation: rm-pulse 1.8s ease-in-out infinite; }
.bot-ant-halo { fill: rgba(63,224,255,.25); }
.bot.is-talking .bot-fab { animation: bot-talk .6s ease-in-out 2; }
@keyframes bot-talk { 0%, 100% { rotate: 0deg; } 30% { rotate: -9deg; } 70% { rotate: 7deg; } }
@keyframes rm-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.bot-dot { position: absolute; top: 6px; inset-inline-end: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--bg); }

.bot-tip { position: absolute; bottom: 84px; inset-inline-end: 0; display: flex; align-items: flex-start; gap: 2px; width: max-content; max-width: min(270px, calc(100vw - 40px));
  background: #fff; color: #0B1B4D; border-radius: 18px; box-shadow: 0 18px 40px -14px rgba(0,8,40,.6); }
.bot-tip[hidden] { display: none; }
.bot-tip::after { content: ""; position: absolute; bottom: -7px; inset-inline-end: 28px; width: 16px; height: 16px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
.bot-tip.pop { animation: bot-pop .45s var(--ease-out); transform-origin: bottom right; }
@keyframes bot-pop { from { transform: scale(.6) translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.bot-tip-text { flex: 1; text-align: start; padding: 12px 4px 12px 16px; background: none; border: 0; color: inherit; font-size: 14.5px; font-weight: 500; line-height: 1.5; cursor: pointer; }
html[dir="rtl"] .bot-tip-text { padding: 12px 16px 12px 4px; }
.bot-tip-x { flex: none; width: 32px; height: 32px; margin: 6px; border-radius: 50%; border: 0; background: #EEF3FF; color: #4A5A86; font-size: 12px; cursor: pointer; }

.bot-panel { position: absolute; bottom: 88px; inset-inline-end: 0; width: 380px; height: min(600px, calc(100vh - 130px)); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 24px; background: #0D1433; border: 1px solid var(--line-2); color: var(--text);
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.85), 0 0 0 1px rgba(255,255,255,.02); transform-origin: bottom right;
  opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .22s var(--ease-out), transform .22s var(--ease-out); }
html[dir="rtl"] .bot-panel, html[dir="rtl"] .bot-tip.pop { transform-origin: bottom left; }
.bot.is-open .bot-panel { opacity: 1; transform: none; }
.bot-panel[hidden] { display: none; }
.bot-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; background: linear-gradient(135deg, rgba(47,85,228,.35), rgba(47,85,228,.08)); border-bottom: 1px solid var(--line); }
.bot-avatar { width: 46px; height: 44px; flex: none; }
.bot-avatar svg { width: 100%; height: 100%; overflow: visible; }
.bot-id { flex: 1; min-width: 0; line-height: 1.3; }
.bot-id strong { display: block; font-size: 17px; }
.bot-id small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.bot-live { width: 8px; height: 8px; border-radius: 50%; background: #25D366; box-shadow: 0 0 0 3px rgba(37,211,102,.2); }
.bot-hbtn { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; font-size: 13px; }
.bot-hbtn:hover { border-color: var(--lime); }
.bot-hbtn[aria-label="WhatsApp"] { color: #25D366; }
.bot-log { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
.msg-bot { align-self: flex-start; background: rgba(255,255,255,.06); border: 1px solid var(--line); border-end-start-radius: 6px; }
.msg-me { align-self: flex-end; background: var(--blue); color: #fff; border-end-end-radius: 6px; }
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; white-space: normal; }
.msg-act { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 500; border: 1px solid rgba(200,245,66,.45); color: var(--lime); transition: background var(--dur), color var(--dur); }
.msg-act:hover { background: var(--lime); color: var(--lime-ink); }
.msg-act.is-wa { border-color: rgba(37,211,102,.55); color: #4be38a; }
.msg-act.is-wa:hover { background: #25D366; color: #04210f; }
.msg.typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bot-dots 1s infinite ease-in-out; }
.msg.typing i:nth-child(2) { animation-delay: .15s; } .msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bot-dots { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }
.bot-chips { display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line); }
.bot-chips::-webkit-scrollbar { display: none; }
.chip-q { flex: none; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); color: var(--text); font-size: 13px; cursor: pointer; white-space: nowrap; }
.chip-q:hover { border-color: var(--blue-2); background: rgba(91,124,255,.12); }
.bot-form { display: flex; gap: 8px; padding: 10px 12px 6px; }
.bot-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); color: var(--text); font: inherit; font-size: 16px; }
.bot-form input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(91,124,255,.25); }
.bot-send { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--lime); color: var(--lime-ink); display: grid; place-items: center; cursor: pointer; }
.bot-send svg { width: 20px; height: 20px; }
html[dir="rtl"] .bot-send svg { transform: scaleX(-1); }
.bot-note { padding: 0 12px 10px; text-align: center; font-size: 11px; color: var(--faint); }

/* travelling with you between pages: rides above the transition curtain */
.bot.is-leaving, .bot.is-arriving { z-index: 9500; }
.bot.is-leaving .bot-fab, .bot.is-arriving .bot-fab { animation: none; }
.bot.is-leaving { transition: transform .5s cubic-bezier(.6,0,.2,1); transform: translate(var(--tx), var(--ty)) scale(1.7); }
.bot.is-arriving { transform: translate(var(--tx), var(--ty)) scale(1.7); }
.bot.is-arriving.is-landing { transition: transform .9s cubic-bezier(.3,0,.1,1) .25s; transform: none; }
.bot.is-leaving .bot-panel, .bot.is-arriving .bot-panel { visibility: hidden; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-xl { grid-column: span 2; grid-row: span 1; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps::before, .steps::after { display: none; }
  .project, .project-flip { grid-template-columns: 1fr; }
  .project-flip .project-media { order: 0; }
  .project-media:has(.phone-shot) { margin-bottom: 15%; }
  .brief-wrap, .faq-wrap { grid-template-columns: 1fr; }
  .brief-intro { position: static; }
}
@media (max-width: 860px) {
  .nav-links, .nav-actions > .btn { display: none; }
  .menu-btn { display: block; }
  .hero { align-items: flex-start; padding-top: 280px; padding-bottom: 72px; }
  .eyebrow { font-size: 13px; padding: 7px 14px; }
  .hero::before { height: 30%; }
  .hero-content > *:not(.hero-title) { max-width: none; }
  #hero3d { display: none; }
  .hero-still { display: block; }
  /* cinematic: copy sits at the bottom over a scrim */
  .js .cine { height: 400vh; }
  .cine-stage { align-items: flex-end; }
  .cine-shade { background: linear-gradient(180deg, var(--bg) 0%, rgba(7,11,26,0) 16%, rgba(7,11,26,0) 48%, rgba(7,11,26,.92) 80%, var(--bg) 100%); }
  .cine-copy { min-height: 0; height: 40vh; }
  .cine-line { top: auto; bottom: 72px; translate: none; max-width: none; inset-inline-end: var(--gutter); font-size: clamp(28px, 8vw, 40px); }
  .cine.is-static .cine-copy { height: auto; }
  /* reels stack */
  .reels-grid { grid-template-columns: 1fr; }
  .reel-tall { grid-column: auto; grid-row: auto; aspect-ratio: 9 / 16; min-height: 0; width: min(100%, 380px); justify-self: center; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .card-xl, .card-tall, .card-wide { grid-column: auto; }
  .vis-browser { min-height: 200px; }
  .steps { grid-template-columns: 1fr; }
  .brand-cards { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 100%; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; }
  .phone-shot { width: 30%; inset-inline-end: -2%; }
  .seg label > span { font-size: 13px; }
  .scroll-cue { display: none; }
  .wa-float { width: 56px; height: 56px; bottom: 16px; inset-inline-end: 16px; }
  .bot { bottom: 14px; inset-inline-end: 12px; }
  .bot-fab { width: 62px; height: 59px; }
  .bot-tip { bottom: 72px; }
  .bot-panel { position: fixed; inset-inline: 8px; bottom: 82px; width: auto; height: min(72vh, 560px); }
}

/* Touch devices: drop effects that cost a lot on phone GPUs */
@media (pointer: coarse) {
  body::after { display: none; }
  .eyebrow, .reel-play, .btn-ghost, .rm-chips li { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-inner, .mobile-menu { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); background: rgba(8, 12, 30, .86); }
  .reel video { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
