/* ============ AQLO — Design Tokens ============ */
:root {
  /* Surfaces */
  --bg-primary: #0A0A0F;
  --bg-elevated: #12121A;
  --bg-deep: #050507;
  --bg-light: #FAFAF8;
  --bg-light-2: #F2F1ED;
  --surface: #FFFFFF;

  /* Brand */
  --brand: #25D366;
  --brand-glow: #00F5A0;
  --brand-deep: #064E3B;
  --accent: #FBBF24;       /* warm gold for offers/highlights */
  --warn: #FB7185;         /* coral for problem sections */

  /* Text */
  --text-on-dark: #FAFAF8;
  --text-on-dark-muted: #A1A1AA;
  --text-on-dark-dim: #52525B;
  --text-on-light: #0A0A0F;
  --text-on-light-muted: #52525B;
  --text-on-light-dim: #A1A1AA;

  /* Lines */
  --line-on-dark: rgba(250, 250, 248, 0.08);
  --line-on-dark-strong: rgba(250, 250, 248, 0.18);
  --line-on-light: rgba(10, 10, 15, 0.08);
  --line-on-light-strong: rgba(10, 10, 15, 0.16);

  /* Radii & shadows */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-pop: 0 40px 80px -20px rgba(0,0,0,0.5), 0 10px 20px -10px rgba(0,0,0,0.3);
  --shadow-glow-green: 0 0 0 1px rgba(37,211,102,0.3), 0 30px 60px -20px rgba(37,211,102,0.4);

  /* Type */
  --f-display: 'IBM Plex Sans Arabic', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'Inter', 'IBM Plex Sans Arabic', ui-sans-serif, system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Layout */
  --container: 1360px;
  --pad-x: clamp(20px, 4vw, 64px);
}

[lang="ar"] {
  --f-display: 'IBM Plex Sans Arabic', 'Inter', ui-sans-serif, system-ui, sans-serif;
  --f-body: 'IBM Plex Sans Arabic', 'Inter', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-on-dark);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  overflow-x: clip;
}

[dir="rtl"] body { letter-spacing: 0; }

/* Reset */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, svg { display: block; max-width: 100%; }
input, textarea { font: inherit; color: inherit; }

/* ====== Typography primitives ====== */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  display: inline-flex; align-items: center; gap: 8px;
}
[data-theme="light"] .eyebrow { color: var(--text-on-light-muted); }
.eyebrow::before {
  content: ''; width: 18px; height: 1px; background: currentColor; opacity: 0.5;
}

.display {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  text-wrap: balance;
}
[lang="ar"] .display { letter-spacing: -0.02em; line-height: 1.08; }

.h1 {
  font-family: var(--f-display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  text-wrap: balance;
}
[lang="ar"] .h1 { line-height: 1.15; letter-spacing: -0.015em; }

.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  text-wrap: balance;
}

.lede {
  font-size: clamp(1.05rem, 1.3vw, 1.2rem);
  color: var(--text-on-dark-muted);
  max-width: 52ch;
  line-height: 1.55;
}
[data-theme="light"] .lede { color: var(--text-on-light-muted); }

.mono { font-family: var(--f-mono); font-feature-settings: "tnum"; }

/* ====== Layout ====== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}

section { position: relative; }

/* ====== Buttons ====== */
.btn {
  --btn-bg: var(--brand);
  --btn-fg: #051B0F;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 22px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), box-shadow 0.4s;
  will-change: transform;
  isolation: isolate;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1);
  z-index: -1;
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { box-shadow: 0 0 0 6px rgba(37,211,102,0.12), 0 20px 40px -10px rgba(37,211,102,0.45); }
.btn .arr {
  width: 16px; height: 16px;
  transition: transform 0.3s;
}
[dir="rtl"] .btn .arr { transform: scaleX(-1); }
.btn:hover .arr { transform: translateX(3px); }
[dir="rtl"] .btn:hover .arr { transform: scaleX(-1) translateX(3px); }

.btn--ghost {
  background: transparent;
  color: var(--text-on-dark);
  border: 1px solid var(--line-on-dark-strong);
}
.btn--ghost::after { display: none; }
.btn--ghost:hover { border-color: var(--text-on-dark); box-shadow: none; }
[data-theme="light"] .btn--ghost { color: var(--text-on-light); border-color: var(--line-on-light-strong); }

.btn--sm { padding: 10px 16px; font-size: 13px; }

/* ====== Custom cursor ====== */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 8px; height: 8px;
  background: var(--brand);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition: width 0.2s, height 0.2s, background 0.2s;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s, height 0.25s, border-color 0.2s, background 0.2s;
  mix-blend-mode: difference;
}
.cursor-ring.is-link { width: 64px; height: 64px; background: rgba(37,211,102,0.15); border-color: rgba(37,211,102,0.8); }
body.cursor-off .cursor, body.cursor-off .cursor-ring { display: none; }

@media (pointer: coarse) {
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
}

/* ====== Noise overlay ====== */
.noise {
  position: fixed; inset: 0; pointer-events: none;
  opacity: 0.06;
  z-index: 1;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ====== Preloader ====== */
.preloader {
  position: fixed; inset: 0;
  background: var(--bg-primary);
  z-index: 10000;
  display: grid; place-items: center;
  transition: opacity 0.6s 0.2s cubic-bezier(.2,.8,.2,1), visibility 0.6s 0.6s;
}
.preloader.hide { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -0.04em;
  color: var(--text-on-dark);
  margin-bottom: 12px;
}
.preloader-logo .dot { color: var(--brand); }
.preloader-count {
  font-family: var(--f-mono);
  color: var(--text-on-dark-muted);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.preloader-bar {
  width: 220px; height: 1px;
  background: var(--line-on-dark);
  margin: 20px auto 10px;
  overflow: hidden;
}
.preloader-bar > i {
  display: block; height: 100%;
  background: var(--brand);
  transform: translateX(-100%);
}

/* ====== Announcement bar ====== */
.announce {
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line-on-dark);
  color: var(--text-on-dark-muted);
  font-size: 13px;
  overflow: hidden;
  height: 40px;
  display: flex; align-items: center;
  position: relative;
  z-index: 50;
}
.announce-track {
  display: flex;
  gap: 60px;
  white-space: nowrap;
  animation: marquee 45s linear infinite;
  will-change: transform;
}
[dir="rtl"] .announce-track { animation-name: marquee-rtl; }
.announce-track span {
  display: inline-flex; align-items: center; gap: 10px;
}
.announce-track .dot { color: var(--brand); }
.announce-track .gold { color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* ====== Nav ====== */
.nav {
  position: sticky; top: 0;
  z-index: 60;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(10, 10, 15, 0.55);
  border-bottom: 1px solid var(--line-on-dark);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1), background 0.4s;
}
.nav.hide { transform: translateY(-100%); }
[data-theme="light"] .nav { background: rgba(250, 250, 248, 0.7); border-bottom-color: var(--line-on-light); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.brand {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.03em;
  display: inline-flex; align-items: baseline; gap: 2px;
}
.brand .dot { color: var(--brand); }

.nav-links {
  display: flex; align-items: center; gap: 28px;
  font-size: 14px;
  color: var(--text-on-dark-muted);
}
[data-theme="light"] .nav-links { color: var(--text-on-light-muted); }
.nav-links a { position: relative; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-on-dark); }
[data-theme="light"] .nav-links a:hover { color: var(--text-on-light); }
.nav-links a::after {
  content: ''; position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
[dir="rtl"] .nav-links a::after { transform-origin: right; }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  display: inline-flex; gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-mono);
}
[data-theme="light"] .lang-toggle { border-color: var(--line-on-light-strong); }
.lang-toggle button {
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--text-on-dark-muted);
  transition: background 0.3s, color 0.3s;
}
[data-theme="light"] .lang-toggle button { color: var(--text-on-light-muted); }
.lang-toggle button.active {
  background: var(--text-on-dark);
  color: var(--bg-primary);
}
[data-theme="light"] .lang-toggle button.active {
  background: var(--text-on-light);
  color: var(--bg-light);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}

/* ====== Hero ====== */
.hero {
  position: relative;
  padding: clamp(60px, 10vh, 120px) 0 clamp(80px, 12vh, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -10%;
  z-index: -2;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(37,211,102,0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 85% 25%, rgba(99,102,241,0.14), transparent 60%),
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(251,191,36,0.08), transparent 60%);
  filter: blur(30px);
  animation: drift 25s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-3%, 2%) scale(1.05); }
}
.hero-grid-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line-on-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-on-dark) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  opacity: 0.7;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
  min-height: 80vh;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
}

.hero-copy { position: relative; }
.hero-eyebrow-row {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 999px;
  font-size: 12px;
  font-family: var(--f-mono);
  color: var(--text-on-dark-muted);
  background: rgba(250,250,248,0.03);
}
.badge .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 0 rgba(37,211,102,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.6); }
  50%      { box-shadow: 0 0 0 8px rgba(37,211,102,0); }
}

.hero h1 { margin: 0 0 28px; }
.hero h1 .emph {
  position: relative;
  display: inline-block;
  color: var(--brand);
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-glow) 50%, var(--brand) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
.hero h1 .emph-underline {
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 10px;
  overflow: visible;
}
.hero h1 .emph-underline path {
  stroke: var(--brand);
  stroke-width: 2.5;
  fill: none;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: draw 1.2s 1.4s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.hero .lede { margin: 0 0 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 48px; }

.hero-trust {
  display: flex; gap: 32px; flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--line-on-dark);
}
.hero-trust-item .k {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-trust-item .v {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* --- Hero scene (phone + dashboard + floats) --- */
.scene {
  position: relative;
  aspect-ratio: 1 / 1;
  max-height: 640px;
  perspective: 1500px;
}
@media (max-width: 960px) { .scene { max-height: 520px; margin-top: 20px; } }

.scene-dash {
  position: absolute;
  inset: 0;
  transform: rotateX(4deg) rotateY(-12deg) translateZ(0);
  transform-style: preserve-3d;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--line-on-dark-strong);
  box-shadow: var(--shadow-pop);
}
[dir="rtl"] .scene-dash { transform: rotateX(4deg) rotateY(12deg); }

.scene-phone {
  position: absolute;
  right: -2%; bottom: -4%;
  width: 54%;
  aspect-ratio: 9 / 19;
  transform: rotateX(2deg) rotateY(-10deg) rotateZ(-2deg) translateZ(60px);
  transform-style: preserve-3d;
  will-change: transform;
}
[dir="rtl"] .scene-phone {
  right: auto; left: -2%;
  transform: rotateX(2deg) rotateY(10deg) rotateZ(2deg) translateZ(60px);
}

.phone-frame {
  width: 100%; height: 100%;
  background: #0A0A0F;
  border: 2px solid #1a1a24;
  border-radius: 38px;
  padding: 8px;
  box-shadow:
    0 60px 120px -30px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}
.phone-screen {
  width: 100%; height: 100%;
  border-radius: 30px;
  background: #075E54;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M10 10 L14 14 M24 20 L28 24 M16 28 L20 32' stroke='%23ffffff' stroke-opacity='0.05' stroke-width='1'/></svg>");
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.phone-header {
  background: #1F2C33;
  padding: 36px 14px 10px;
  display: flex; align-items: center; gap: 10px;
  color: #E9EDEF;
}
.phone-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--brand);
  color: #051B0F;
  display: grid; place-items: center;
  font-weight: 700; font-size: 13px;
  font-family: var(--f-display);
}
.phone-title { font-size: 13px; font-weight: 600; }
.phone-subtitle { font-size: 10px; color: #8696A0; font-family: var(--f-mono); }
.phone-body {
  flex: 1;
  padding: 12px;
  display: flex; flex-direction: column; gap: 6px;
  overflow: hidden;
  min-height: 0;
}
.bubble {
  max-width: 82%;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.35;
  color: #E9EDEF;
  position: relative;
  word-wrap: break-word;
  opacity: 0;
  transform: translateY(6px);
  animation: bubble-in 0.35s cubic-bezier(.2,.8,.2,1) forwards;
}
@keyframes bubble-in { to { opacity: 1; transform: translateY(0); } }
.bubble.in { background: #1F2C33; align-self: flex-start; border-top-left-radius: 3px; }
.bubble.out { background: #005C4B; align-self: flex-end; border-top-right-radius: 3px; }
[dir="rtl"] .bubble.in { border-top-left-radius: 10px; border-top-right-radius: 3px; }
[dir="rtl"] .bubble.out { border-top-right-radius: 10px; border-top-left-radius: 3px; }
.bubble .time { font-size: 8px; color: rgba(255,255,255,0.5); margin-inline-start: 8px; font-family: var(--f-mono); }
.bubble.typing { background: #1F2C33; align-self: flex-start; display: inline-flex; gap: 3px; padding: 10px 12px; }
.bubble.typing i { width: 5px; height: 5px; border-radius: 50%; background: #8696A0; animation: dot 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot {
  0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-2px); }
}

/* Dashboard interior (simplified but real looking) */
.dash-inner { color: var(--text-on-dark); padding: 18px; height: 100%; display: flex; flex-direction: column; gap: 14px; }
.dash-top { display: flex; align-items: center; justify-content: space-between; }
.dash-title { font-family: var(--f-display); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.dash-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; color: var(--brand); letter-spacing: 0.1em; }
.dash-live .d { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); animation: pulse 1.6s infinite; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dash-kpi { padding: 10px 12px; border: 1px solid var(--line-on-dark); border-radius: 10px; background: rgba(250,250,248,0.02); }
.dash-kpi .l { font-family: var(--f-mono); font-size: 9px; color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.dash-kpi .v { font-family: var(--f-display); font-size: 18px; font-weight: 700; margin-top: 2px; letter-spacing: -0.01em; }
.dash-kpi .d { font-family: var(--f-mono); font-size: 9px; color: var(--brand); margin-top: 2px; }
.dash-orders { flex: 1; border: 1px solid var(--line-on-dark); border-radius: 10px; padding: 10px; overflow: hidden; background: rgba(250,250,248,0.02); min-height: 0; }
.dash-order { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line-on-dark); font-size: 11px; }
.dash-order:last-child { border-bottom: 0; }
.dash-order .id { font-family: var(--f-mono); color: var(--text-on-dark-muted); font-size: 10px; }
.dash-order .who { font-weight: 500; }
.dash-order .amt { font-family: var(--f-mono); font-weight: 600; }
.dash-order .pill {
  font-family: var(--f-mono); font-size: 9px;
  padding: 3px 7px; border-radius: 999px;
  background: rgba(37,211,102,0.15); color: var(--brand-glow);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.dash-order .pill.pending { background: rgba(251,191,36,0.15); color: var(--accent); }
.dash-order .pill.cook    { background: rgba(99,102,241,0.15); color: #A5B4FC; }

/* Floating cards around hero */
.float {
  position: absolute;
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  font-size: 12px;
  display: flex; align-items: center; gap: 10px;
  z-index: 3;
  will-change: transform;
}
.float .icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.float .t { font-family: var(--f-display); font-weight: 600; font-size: 13px; }
.float .s { font-family: var(--f-mono); font-size: 10px; color: var(--text-on-dark-muted); margin-top: 1px; }

.float-1 { top: 8%; left: -4%; animation: float-a 6s ease-in-out infinite alternate; }
.float-2 { top: 38%; right: -6%; animation: float-b 7s ease-in-out infinite alternate; }
.float-3 { bottom: 12%; left: 2%; animation: float-c 8s ease-in-out infinite alternate; }
[dir="rtl"] .float-1 { left: auto; right: -4%; }
[dir="rtl"] .float-2 { right: auto; left: -6%; }
[dir="rtl"] .float-3 { left: auto; right: 2%; }

@keyframes float-a { to { transform: translateY(-12px) rotate(-1deg); } }
@keyframes float-b { to { transform: translateY(10px)  rotate(1.5deg); } }
@keyframes float-c { to { transform: translateY(-8px)  rotate(-1deg); } }

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10px;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.2em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .dot-tube {
  width: 18px; height: 28px;
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 999px;
  position: relative;
}
.scroll-hint .dot-tube i {
  position: absolute;
  top: 4px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; border-radius: 2px;
  background: var(--text-on-dark-muted);
  animation: tube 1.6s ease-in-out infinite;
}
@keyframes tube { 50% { top: 16px; opacity: 0.3; } }

/* ====== Utility: reveal on scroll ====== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.8s cubic-bezier(.2,.8,.2,1), transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }
.reveal.d5 { transition-delay: 0.4s; }

/* ====== Problem section ====== */
.problem {
  background: var(--bg-deep);
  padding: 140px 0 140px;
  overflow: hidden;
  isolation: isolate;
}
.problem::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 20%, rgba(251, 113, 133, 0.18), transparent 60%);
  z-index: -1;
  animation: drift 20s ease-in-out infinite alternate;
}

.problem .head { text-align: center; margin-bottom: 72px; }
.problem .display { margin: 20px 0 0; }
.problem .emph { color: var(--warn); }

.problem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 960px) { .problem-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .problem-grid { grid-template-columns: 1fr; } }

.problem-card {
  padding: 28px 24px;
  background: linear-gradient(180deg, rgba(250,250,248,0.04), rgba(250,250,248,0.01));
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), border-color 0.4s;
  position: relative;
  overflow: hidden;
}
.problem-card::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(251,113,133,0.2), transparent 60%);
  opacity: 0; transition: opacity 0.5s;
}
.problem-card:hover { transform: translateY(-6px); border-color: rgba(251,113,133,0.4); }
.problem-card:hover::after { opacity: 1; }
.problem-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(251, 113, 133, 0.1);
  color: var(--warn);
  display: grid; place-items: center;
  margin-bottom: 20px;
  border: 1px solid rgba(251, 113, 133, 0.2);
}
.problem-card h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.problem-card p {
  font-size: 14px; color: var(--text-on-dark-muted);
  margin: 0; line-height: 1.55;
}
.problem-stat {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--warn);
  margin-top: 14px;
  letter-spacing: 0.05em;
  padding-top: 14px;
  border-top: 1px solid var(--line-on-dark);
}

/* transition to solution */
.transition-band {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-primary) 50%, var(--brand-deep) 100%);
  text-align: center;
  position: relative; overflow: hidden;
}
.transition-band .display {
  background: linear-gradient(180deg, var(--warn) 0%, var(--text-on-dark) 50%, var(--brand-glow) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== Solution / cinematic ====== */
.solution {
  background: var(--bg-primary);
  padding: 140px 0;
  position: relative;
}
.solution-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
@media (max-width: 960px) { .solution-grid { grid-template-columns: 1fr; } }

.solution-head h2 { margin: 16px 0 24px; }
.solution-list { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; }
.solution-list li {
  display: grid; grid-template-columns: 32px 1fr; gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line-on-dark);
}
.solution-list li:last-child { border-bottom: 1px solid var(--line-on-dark); }
.solution-list .n {
  font-family: var(--f-mono); font-size: 12px;
  color: var(--brand); padding-top: 2px;
}
.solution-list .t { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.solution-list .d { font-size: 14px; color: var(--text-on-dark-muted); margin-top: 4px; }

.solution-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, #0F1B15, #1A0F1B);
  border: 1px solid var(--line-on-dark-strong);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 32px;
}
.solution-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(37,211,102,0.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(0,245,160,0.15), transparent 50%);
  filter: blur(20px);
}
.solution-bubble {
  position: relative; z-index: 2;
  max-width: 380px; width: 100%;
  padding: 24px 28px;
  background: rgba(10,10,15,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 22px;
}
.solution-bubble .label {
  font-family: var(--f-mono); font-size: 10px;
  color: var(--brand); letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 10px;
}
.solution-bubble .msg {
  font-family: var(--f-display);
  font-size: 20px; font-weight: 500;
  line-height: 1.3; letter-spacing: -0.01em;
}

/* ====== Features — horizontal-ish bento ====== */
.features {
  background: var(--bg-light);
  color: var(--text-on-light);
  padding: 140px 0;
}
.features .eyebrow { color: var(--text-on-light-muted); }
.features h2 { color: var(--text-on-light); max-width: 20ch; }
.features p.lede { color: var(--text-on-light-muted); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 64px;
}
.f-card {
  background: var(--surface);
  border: 1px solid var(--line-on-light);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s;
}
.f-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -20px rgba(10,10,15,0.15);
}
.f-card h3 {
  font-family: var(--f-display);
  font-size: 22px; font-weight: 600; letter-spacing: -0.015em;
  margin: 0 0 10px;
}
.f-card p {
  color: var(--text-on-light-muted);
  font-size: 14px;
  margin: 0;
}
.f-card .tag {
  display: inline-block;
  font-family: var(--f-mono); font-size: 11px;
  color: var(--brand); background: rgba(37,211,102,0.12);
  padding: 4px 10px; border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

/* bento placement */
.f-1 { grid-column: span 7; grid-row: span 2; min-height: 400px; }
.f-2 { grid-column: span 5; min-height: 240px; }
.f-3 { grid-column: span 5; min-height: 240px; }
.f-4 { grid-column: span 4; min-height: 260px; }
.f-5 { grid-column: span 4; min-height: 260px; }
.f-6 { grid-column: span 4; min-height: 260px; background: var(--bg-primary); color: var(--text-on-dark); border-color: transparent; }
.f-6 h3 { color: var(--text-on-dark); }
.f-6 p { color: var(--text-on-dark-muted); }
@media (max-width: 960px) {
  .f-1, .f-2, .f-3, .f-4, .f-5, .f-6 { grid-column: span 12; }
  .f-1 { min-height: 340px; }
}

/* f-1 feature visual — whatsapp bot preview */
.f-1-visual {
  margin-top: 24px;
  display: flex; gap: 8px; flex-direction: column;
  max-width: 400px;
}
.f-1-visual .b {
  padding: 8px 12px; border-radius: 12px; font-size: 13px;
  max-width: 80%;
}
.f-1-visual .b.in  { background: #EFF0F3; color: #0A0A0F; align-self: flex-start; border-bottom-left-radius: 4px; }
.f-1-visual .b.out { background: var(--brand); color: #051B0F; align-self: flex-end; border-bottom-right-radius: 4px; }
[dir="rtl"] .f-1-visual .b.in  { border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; }
[dir="rtl"] .f-1-visual .b.out { border-bottom-right-radius: 12px; border-bottom-left-radius: 4px; }

/* f-2 menu visual */
.f-2-visual { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; }
.f-2-visual .chip { padding: 8px 12px; border: 1px solid var(--line-on-light); border-radius: 999px; font-size: 12px; font-family: var(--f-mono); }
.f-2-visual .chip.on { background: #0A0A0F; color: #FAFAF8; border-color: #0A0A0F; }

/* f-3 print visual */
.f-3-visual {
  margin-top: 20px;
  background: #FFF;
  border: 1px dashed var(--line-on-light-strong);
  border-radius: 10px;
  padding: 14px;
  font-family: var(--f-mono); font-size: 11px;
  color: #0A0A0F;
  display: grid; gap: 4px;
}

/* f-6 dark: dashboard mini */
.f-6-visual { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.f-6-visual .cell { padding: 12px; border: 1px solid var(--line-on-dark); border-radius: 10px; background: rgba(250,250,248,0.02); }
.f-6-visual .cell .l { font-family: var(--f-mono); font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-on-dark-muted); }
.f-6-visual .cell .v { font-family: var(--f-display); font-size: 22px; font-weight: 700; margin-top: 4px; }

/* ====== Demo ====== */
.demo {
  background: var(--bg-primary);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.demo::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 20% 30%, rgba(37,211,102,0.1), transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 70%, rgba(99,102,241,0.1), transparent 60%);
  z-index: 0;
}
.demo-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; align-items: stretch;
  margin-top: 64px;
}
@media (max-width: 960px) { .demo-grid { grid-template-columns: 1fr; } }

.demo-head { text-align: center; }
.demo-head h2 { margin: 16px auto 20px; max-width: 20ch; }
.demo-head .lede { margin: 0 auto; }

.chat {
  background: #0B141A;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-xl);
  overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 520px;
  box-shadow: var(--shadow-pop);
}
.chat-head {
  padding: 16px 20px;
  background: #1F2C33;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.3);
}
.chat-head .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #051B0F;
  font-family: var(--f-display); font-weight: 700;
  display: grid; place-items: center;
}
.chat-head .title { color: #E9EDEF; font-weight: 600; font-size: 15px; }
.chat-head .sub { color: #8696A0; font-size: 12px; font-family: var(--f-mono); }
.chat-body {
  flex: 1; padding: 18px;
  display: flex; flex-direction: column; gap: 8px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'><path d='M10 10 L14 14 M24 20 L28 24 M16 28 L20 32' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/></svg>");
  background-color: #0B141A;
  overflow-y: auto;
}
.chat-body .bubble { font-size: 13px; padding: 9px 12px; max-width: 78%; }
.chat-input {
  padding: 12px; background: #1F2C33;
  display: flex; align-items: center; gap: 10px;
  border-top: 1px solid rgba(0,0,0,0.3);
}
.chat-input input {
  flex: 1; background: #2A3942;
  border: 0; border-radius: 999px;
  padding: 10px 16px; color: #E9EDEF;
  outline: none; font-size: 13px;
}
.chat-input input::placeholder { color: #8696A0; }
.chat-input .send {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--brand); color: #051B0F;
  display: grid; place-items: center;
}
.chat-quicks { display: flex; gap: 8px; padding: 8px 12px 0; flex-wrap: wrap; }
.chat-quick {
  font-size: 11px; padding: 6px 10px;
  background: rgba(37,211,102,0.1); color: var(--brand-glow);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: 999px;
  font-family: var(--f-mono);
  transition: background 0.2s;
}
.chat-quick:hover { background: rgba(37,211,102,0.2); }

.dashpreview {
  background: var(--bg-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 520px;
  position: relative;
  overflow: hidden;
}
.dashpreview-top { display: flex; justify-content: space-between; align-items: center; }
.dashpreview-title { font-family: var(--f-display); font-weight: 600; font-size: 17px; }
.dashpreview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dashpreview-kpi {
  padding: 14px; border: 1px solid var(--line-on-dark);
  border-radius: 12px;
  background: rgba(250,250,248,0.02);
}
.dashpreview-kpi .l { font-family: var(--f-mono); font-size: 10px; color: var(--text-on-dark-muted); text-transform: uppercase; letter-spacing: 0.1em; }
.dashpreview-kpi .v { font-family: var(--f-display); font-size: 24px; font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; }
.dashpreview-kpi .v .delta { font-size: 11px; font-family: var(--f-mono); color: var(--brand); margin-inline-start: 6px; font-weight: 500; letter-spacing: 0; }

.dashpreview-orders { flex: 1; border: 1px solid var(--line-on-dark); border-radius: 12px; padding: 14px; overflow: hidden; background: rgba(250,250,248,0.02); display: flex; flex-direction: column; gap: 8px; }
.orderlist-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.orderlist-title { font-family: var(--f-mono); font-size: 11px; color: var(--text-on-dark-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.orderlist-count { font-family: var(--f-mono); font-size: 11px; color: var(--brand); }
.orderrow {
  display: grid;
  grid-template-columns: 56px 1fr auto auto;
  gap: 12px; align-items: center;
  padding: 10px 8px;
  border-top: 1px solid var(--line-on-dark);
  font-size: 13px;
  transition: background 0.3s;
}
.orderrow.new { animation: new-order-in 0.6s cubic-bezier(.2,.8,.2,1); background: rgba(37,211,102,0.08); }
@keyframes new-order-in {
  from { opacity: 0; transform: translateY(-10px); background: rgba(37,211,102,0.25); }
  to   { opacity: 1; transform: none; background: rgba(37,211,102,0.08); }
}
.orderrow .id { font-family: var(--f-mono); color: var(--text-on-dark-muted); font-size: 11px; }
.orderrow .who { font-weight: 500; }
.orderrow .who .small { color: var(--text-on-dark-muted); font-size: 11px; font-family: var(--f-mono); margin-inline-start: 8px; }
.orderrow .amt { font-family: var(--f-mono); font-weight: 600; }
.pill {
  font-family: var(--f-mono); font-size: 10px;
  padding: 4px 9px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.1em;
}
.pill.new { background: rgba(37,211,102,0.15); color: var(--brand-glow); }
.pill.pending { background: rgba(251,191,36,0.15); color: var(--accent); }
.pill.cook { background: rgba(99,102,241,0.15); color: #A5B4FC; }

/* ====== Stats ====== */
.stats {
  background: var(--bg-deep);
  padding: 140px 0;
  position: relative;
  overflow: hidden;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
  border-top: 1px solid var(--line-on-dark);
  border-bottom: 1px solid var(--line-on-dark);
}
@media (max-width: 860px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 48px 32px;
  border-inline-start: 1px solid var(--line-on-dark);
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.stat:first-child { border-inline-start: 0; }
@media (max-width: 860px) {
  .stat:nth-child(2n+1) { border-inline-start: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-on-dark); }
}
.stat .l { font-family: var(--f-mono); font-size: 11px; color: var(--text-on-dark-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.stat .v {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4rem);
  letter-spacing: -0.04em; line-height: 1;
  margin: 16px 0 8px;
}
.stat .v .unit { font-size: 0.5em; color: var(--text-on-dark-muted); font-weight: 500; letter-spacing: 0; margin-inline-start: 4px; }
.stat .d { font-size: 14px; color: var(--text-on-dark-muted); line-height: 1.5; }

/* sparkline */
.spark {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 40px;
  pointer-events: none;
  opacity: 0.4;
}

/* ====== Testimonials ====== */
.testimonials { padding: 140px 0; background: var(--bg-primary); }
.testi-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}
@media (max-width: 960px) { .testi-grid { grid-template-columns: 1fr; } }

.testi {
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.testi.feature { min-height: 420px; grid-row: span 2; background: linear-gradient(160deg, #0F1B15, var(--bg-elevated)); }
@media (max-width: 960px) { .testi.feature { grid-row: auto; min-height: 320px; } }

.testi .quote {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1.4vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}
.testi.feature .quote {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 600;
}
.testi .person { display: flex; align-items: center; gap: 12px; margin-top: 28px; }
.testi .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #051B0F; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; }
.testi .name { font-weight: 600; font-size: 14px; }
.testi .role { color: var(--text-on-dark-muted); font-size: 12px; font-family: var(--f-mono); }

/* ====== Comparison ====== */
.compare { padding: 140px 0; background: var(--bg-light); color: var(--text-on-light); }
.compare .eyebrow { color: var(--text-on-light-muted); }
.compare .h1 { color: var(--text-on-light); }
.compare table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 56px;
  font-size: 15px;
}
.compare th, .compare td {
  text-align: start;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-on-light);
  vertical-align: middle;
}
.compare thead th {
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-on-light-muted); font-weight: 500;
}
.compare thead th.aqlo {
  color: var(--brand-deep);
  background: rgba(37,211,102,0.08);
  font-weight: 700;
  font-family: var(--f-display);
  font-size: 14px;
  letter-spacing: -0.01em;
  text-transform: none;
  border-radius: 12px 12px 0 0;
}
.compare td.aqlo {
  background: rgba(37,211,102,0.05);
  color: var(--brand-deep);
  font-weight: 500;
}
.compare tbody tr { transition: background 0.3s; }
.compare tbody tr:hover { background: rgba(10,10,15,0.02); }
.compare tbody tr:hover td.aqlo { background: rgba(37,211,102,0.12); }
.compare td.label { font-weight: 600; }
.compare .icon-ok, .compare .icon-no {
  width: 22px; height: 22px;
  border-radius: 50%;
  display: inline-grid; place-items: center;
  vertical-align: middle;
  margin-inline-end: 8px;
}
.compare .icon-ok { background: rgba(37,211,102,0.15); color: var(--brand-deep); }
.compare .icon-no { background: rgba(251,113,133,0.15); color: #9F1239; }

/* ====== Pricing ====== */
.pricing { padding: 140px 0; background: var(--bg-primary); position: relative; overflow: hidden; }
.pricing-head { text-align: center; }
.pricing-head h2 { margin: 16px auto 20px; max-width: 16ch; }

.billing-toggle {
  display: inline-flex; padding: 4px; gap: 2px;
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 999px;
  margin: 32px 0 56px;
  position: relative;
  font-family: var(--f-mono); font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.billing-toggle button {
  position: relative; z-index: 2;
  padding: 10px 22px; border-radius: 999px;
  color: var(--text-on-dark-muted);
  transition: color 0.3s;
}
.billing-toggle button.active { color: #051B0F; }
.billing-toggle .slider-pill {
  position: absolute; top: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  background: var(--brand);
  border-radius: 999px;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.billing-toggle .slider-pill.right { transform: translateX(calc(100% + 4px)); }
[dir="rtl"] .billing-toggle .slider-pill.right { transform: translateX(calc(-100% - 4px)); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px; align-items: stretch;
}
@media (max-width: 960px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  padding: 36px 32px;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-lg);
  background: var(--bg-elevated);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1);
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  background: linear-gradient(180deg, rgba(37,211,102,0.08), var(--bg-elevated) 40%);
  border-color: var(--brand);
  transform: translateY(-16px);
  box-shadow: var(--shadow-glow-green);
}
.price-card.featured:hover { transform: translateY(-20px); }
@media (max-width: 960px) {
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
}

.price-badge {
  position: absolute; top: 16px; inset-inline-end: 16px;
  padding: 4px 10px;
  background: var(--accent); color: #3C2400;
  font-family: var(--f-mono); font-size: 10px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.price-name { font-family: var(--f-display); font-size: 14px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--brand); }
.price-card.featured .price-name { color: var(--brand-glow); }
.price-desc { color: var(--text-on-dark-muted); font-size: 14px; margin: 8px 0 28px; min-height: 3em; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.price-amount .v { font-family: var(--f-display); font-weight: 700; font-size: 64px; letter-spacing: -0.04em; line-height: 1; }
.price-amount .u { font-family: var(--f-mono); font-size: 14px; color: var(--text-on-dark-muted); letter-spacing: 0.05em; }
.price-strike {
  font-family: var(--f-mono); font-size: 13px;
  color: var(--text-on-dark-dim);
  text-decoration: line-through;
  margin-bottom: 24px;
  min-height: 1em;
}
.price-strike em { color: var(--accent); font-style: normal; margin-inline-start: 6px; }
.price-cta { margin-bottom: 28px; }
.price-cta .btn { width: 100%; justify-content: center; }
.price-card:not(.featured) .btn { background: transparent; color: var(--text-on-dark); border: 1px solid var(--line-on-dark-strong); }
.price-card:not(.featured) .btn::after { display: none; }
.price-card:not(.featured) .btn:hover { border-color: var(--text-on-dark); box-shadow: none; }

.price-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: 14px; flex: 1; }
.price-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; color: var(--text-on-dark-muted); line-height: 1.45; }
.price-list li.yes { color: var(--text-on-dark); }
.price-list li .check {
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(37,211,102,0.15); color: var(--brand-glow);
  display: grid; place-items: center;
  margin-top: 2px;
}

/* ====== ROI Calculator ====== */
.roi {
  padding: 140px 0;
  background: var(--bg-light);
  color: var(--text-on-light);
}
.roi .eyebrow { color: var(--text-on-light-muted); }
.roi h2 { color: var(--text-on-light); max-width: 20ch; }
.roi-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  margin-top: 56px;
}
@media (max-width: 960px) { .roi-grid { grid-template-columns: 1fr; } }

.roi-controls { display: grid; gap: 36px; }
.roi-control label { display: block; margin-bottom: 12px; }
.roi-control .name { font-family: var(--f-display); font-size: 16px; font-weight: 600; }
.roi-control .value { font-family: var(--f-mono); font-size: 14px; color: var(--brand-deep); background: rgba(37,211,102,0.1); padding: 3px 10px; border-radius: 999px; }
.roi-control .top { display: flex; justify-content: space-between; align-items: baseline; }
.roi-control .sub { font-size: 13px; color: var(--text-on-light-muted); margin-top: 6px; }
.roi-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 2px;
  background: var(--line-on-light-strong);
  border-radius: 999px;
  outline: none;
  margin-top: 16px;
}
.roi-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand);
  border: 4px solid #FFF;
  box-shadow: 0 0 0 1px var(--brand), 0 4px 12px rgba(37,211,102,0.4);
  cursor: grab;
  transition: transform 0.2s;
}
.roi-range::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.roi-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--brand); border: 4px solid #FFF;
  cursor: grab;
}

.roi-result {
  background: var(--bg-primary);
  color: var(--text-on-dark);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative; overflow: hidden;
}
.roi-result::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(37,211,102,0.2), transparent 60%);
  pointer-events: none;
}
.roi-result .l { font-family: var(--f-mono); font-size: 12px; color: var(--text-on-dark-muted); letter-spacing: 0.1em; text-transform: uppercase; position: relative; }
.roi-result .big {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(3rem, 6vw, 5rem);
  letter-spacing: -0.04em; line-height: 1;
  margin: 16px 0;
  background: linear-gradient(100deg, var(--brand-glow), var(--brand));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.roi-result .sub { position: relative; color: var(--text-on-dark-muted); font-size: 15px; max-width: 36ch; line-height: 1.5; }
.roi-breakdown {
  position: relative;
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.roi-breakdown .item {
  padding: 16px; border: 1px solid var(--line-on-dark);
  border-radius: 12px;
}
.roi-breakdown .item .k { font-family: var(--f-mono); font-size: 10px; color: var(--text-on-dark-muted); letter-spacing: 0.1em; text-transform: uppercase; }
.roi-breakdown .item .v { font-family: var(--f-display); font-size: 22px; font-weight: 700; margin-top: 4px; letter-spacing: -0.01em; }

/* ====== FAQ ====== */
.faq { padding: 140px 0; background: var(--bg-primary); }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-tabs { display: flex; flex-direction: column; gap: 4px; }
.faq-tab {
  text-align: start;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--f-mono); font-size: 12px;
  color: var(--text-on-dark-muted);
  letter-spacing: 0.05em;
  transition: background 0.25s, color 0.25s;
}
.faq-tab.active { background: rgba(250,250,248,0.06); color: var(--text-on-dark); }
.faq-list { border-top: 1px solid var(--line-on-dark); }
.faq-item { border-bottom: 1px solid var(--line-on-dark); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px;
  text-align: start;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  letter-spacing: -0.01em;
  transition: color 0.3s;
}
.faq-q:hover { color: var(--brand); }
.faq-q .sign {
  width: 28px; height: 28px; border: 1px solid var(--line-on-dark-strong);
  border-radius: 50%; position: relative; flex-shrink: 0;
  transition: border-color 0.3s, background 0.3s;
}
.faq-q .sign::before, .faq-q .sign::after {
  content: ''; position: absolute; background: currentColor; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.faq-q .sign::before { width: 10px; height: 1px; }
.faq-q .sign::after  { width: 1px; height: 10px; }
.faq-item.open .faq-q .sign { background: var(--brand); border-color: var(--brand); color: #051B0F; }
.faq-item.open .faq-q .sign::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(.2,.8,.2,1);
  color: var(--text-on-dark-muted);
  font-size: 15px; line-height: 1.6;
}
.faq-a > div { padding: 0 4px 24px; max-width: 62ch; }

/* ====== Final CTA — aurora shader ====== */
.final-cta {
  height: 100vh;
  min-height: 600px;
  position: relative;
  overflow: hidden;
  background: #000;
  display: grid; place-items: center;
}
.aurora {
  position: absolute; inset: -20%;
  z-index: 0;
}
.aurora .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.8;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora .b1 { width: 50%; aspect-ratio: 1; top: 10%; left: 10%; background: radial-gradient(circle, #25D366 0%, transparent 70%); animation: aurora1 14s ease-in-out infinite alternate; }
.aurora .b2 { width: 45%; aspect-ratio: 1; top: 30%; right: 5%; background: radial-gradient(circle, #00F5A0 0%, transparent 70%); animation: aurora2 18s ease-in-out infinite alternate; }
.aurora .b3 { width: 40%; aspect-ratio: 1; bottom: 5%; left: 30%; background: radial-gradient(circle, #6366F1 0%, transparent 70%); animation: aurora3 22s ease-in-out infinite alternate; }
.aurora .b4 { width: 30%; aspect-ratio: 1; top: 50%; left: 50%; background: radial-gradient(circle, #FBBF24 0%, transparent 70%); animation: aurora4 20s ease-in-out infinite alternate; opacity: 0.5; }
@keyframes aurora1 { to { transform: translate(20%, 30%) scale(1.2); } }
@keyframes aurora2 { to { transform: translate(-30%, 20%) scale(1.3); } }
@keyframes aurora3 { to { transform: translate(15%, -25%) scale(1.1); } }
@keyframes aurora4 { to { transform: translate(-40%, -30%) scale(1.4); } }

.final-cta-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.12;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.final-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--pad-x);
  max-width: 1100px;
}
.final-cta .display {
  font-size: clamp(3.5rem, 11vw, 9rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  margin: 0 0 36px;
}
.final-cta .display .line { display: block; overflow: hidden; }
.final-cta .display .line span { display: block; }

.final-cta .sub {
  font-size: clamp(1.1rem, 1.4vw, 1.25rem);
  color: rgba(250,250,248,0.75);
  max-width: 44ch;
  margin: 0 auto 44px;
}
.final-cta .btn {
  --btn-bg: #FAFAF8; --btn-fg: #0A0A0F;
  padding: 22px 32px;
  font-size: 17px;
}
.final-cta .sub-note {
  margin-top: 20px;
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(250,250,248,0.5);
}

/* ====== Footer ====== */
footer.foot {
  background: #000;
  color: var(--text-on-dark);
  padding: 100px 0 32px;
  position: relative;
  border-top: 1px solid var(--line-on-dark);
}
.foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--line-on-dark);
}
@media (max-width: 860px) { .foot-top { grid-template-columns: 1fr 1fr; } }

.foot-col h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-on-dark-muted); margin: 0 0 18px; font-weight: 500; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.foot-col ul a { color: var(--text-on-dark-muted); transition: color 0.2s; position: relative; }
.foot-col ul a:hover { color: var(--text-on-dark); }

.foot-brand { font-family: var(--f-display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 14px; }
.foot-brand .dot { color: var(--brand); }
.foot-pitch { color: var(--text-on-dark-muted); font-size: 14px; max-width: 30ch; line-height: 1.55; }
.newsletter { margin-top: 22px; display: flex; gap: 8px; max-width: 340px; }
.newsletter input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
}
.newsletter input:focus { border-color: var(--text-on-dark); }
.newsletter button {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #051B0F;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s;
}
.newsletter button:hover { background: var(--brand-glow); }

.foot-bottom {
  padding-top: 40px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 12px; color: var(--text-on-dark-muted); font-family: var(--f-mono);
  letter-spacing: 0.05em;
}
.foot-bottom .made { font-family: var(--f-mono); }
.foot-bottom .heart { color: var(--warn); }

.foot-big-wordmark {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(6rem, 22vw, 20rem);
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-align: center;
  margin: 0 0 48px;
  background: linear-gradient(180deg, rgba(250,250,248,0.12), rgba(250,250,248,0.02));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
}
.foot-big-wordmark .dot { background: linear-gradient(180deg, var(--brand), rgba(37,211,102,0.1)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* ====== Floating Whatsapp button ====== */
.fab {
  position: fixed;
  bottom: 24px; inset-inline-end: 24px;
  z-index: 40;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--brand); color: #051B0F;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -5px rgba(37,211,102,0.5);
  transition: transform 0.3s;
}
.fab::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.3;
  animation: pulse-fab 2s infinite;
  z-index: -1;
}
@keyframes pulse-fab { 0%,100% { transform: scale(1); opacity: 0.3; } 50% { transform: scale(1.3); opacity: 0; } }
.fab:hover { transform: scale(1.1); }

/* ====== Tweaks panel ====== */
.tweaks {
  position: fixed;
  bottom: 24px; inset-inline-start: 24px;
  z-index: 70;
  width: 280px;
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line-on-dark-strong);
  border-radius: var(--r-lg);
  padding: 20px;
  color: var(--text-on-dark);
  font-family: var(--f-body);
  font-size: 13px;
  transform: translateY(calc(100% + 40px));
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
  opacity: 0;
}
.tweaks.open { transform: translateY(0); opacity: 1; }
.tweaks h4 { margin: 0 0 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-on-dark-muted); }
.tweaks-row { margin-bottom: 14px; }
.tweaks-row .lbl { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--text-on-dark-muted); margin-bottom: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.tweaks-row .opts { display: flex; gap: 6px; flex-wrap: wrap; }
.tweaks-row .opts button {
  padding: 6px 10px;
  border: 1px solid var(--line-on-dark-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--text-on-dark-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--f-mono);
}
.tweaks-row .opts button.active { background: var(--brand); color: #051B0F; border-color: var(--brand); }
.tweaks-row .swatches { display: flex; gap: 8px; }
.tweaks-row .sw { width: 24px; height: 24px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s; }
.tweaks-row .sw:hover { transform: scale(1.15); }
.tweaks-row .sw.active { border-color: var(--text-on-dark); }

/* accent theming — dynamic via JS */
[data-accent="green"] { --brand: #25D366; --brand-glow: #00F5A0; --brand-deep: #064E3B; }
[data-accent="indigo"] { --brand: #6366F1; --brand-glow: #A5B4FC; --brand-deep: #1E1B4B; }
[data-accent="coral"] { --brand: #FB7185; --brand-glow: #FDA4AF; --brand-deep: #881337; }
[data-accent="gold"] { --brand: #FBBF24; --brand-glow: #FDE68A; --brand-deep: #78350F; }

/* font pairing */
[data-font="plex"] { --f-display: 'IBM Plex Sans Arabic', 'Inter', sans-serif; --f-body: 'Inter', 'IBM Plex Sans Arabic', sans-serif; }
[data-font="tajawal"] { --f-display: 'Tajawal', 'Plus Jakarta Sans', sans-serif; --f-body: 'Plus Jakarta Sans', 'Tajawal', sans-serif; }
[data-font="rubik"] { --f-display: 'Rubik', 'Inter', sans-serif; --f-body: 'Inter', 'Rubik', sans-serif; }

/* Reveals when triggered from JS */
.magnetic { transition: transform 0.3s cubic-bezier(.2,.8,.2,1); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
