/* Alqab Studios — home page banner (white background, black text).
   Used on the website and in banner.html for embedding. Text and pictures come from the newest tool. */
.ab { --ab-ink: #000; --ab-muted: #5f5f5f; --ab-line: #e4e4e4; position: relative; overflow: hidden; background: #fff; color: var(--ab-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
.ab *, .ab *::before, .ab *::after { box-sizing: border-box; margin: 0; padding: 0; }
.ab::before { content: ""; position: absolute; inset: 0; background: radial-gradient(900px 480px at 78% 55%, #f1f1f1 0%, rgba(255, 255, 255, 0) 70%); pointer-events: none; }
.ab-inner { position: relative; max-width: 1200px; margin: 0 auto; padding: 64px 24px; display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: 32px; min-height: 520px; }

/* Text side */
.ab-brand { display: flex; align-items: center; gap: 18px; }
.ab-icon { width: 84px; height: 84px; border-radius: 20px; overflow: hidden; flex: none; background: #000; color: #fff; display: grid; place-items: center; font-size: 36px; font-weight: 700; box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.ab-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-name { font-size: clamp(30px, 3.5vw, 46px); white-space: nowrap; font-weight: 800; line-height: 1; letter-spacing: -.03em; text-transform: uppercase; }
.ab-sub { font-size: clamp(17px, 2vw, 24px); color: var(--ab-muted); margin-top: 8px; letter-spacing: -.01em; }
.ab-tagline { font-size: clamp(22px, 2.8vw, 34px); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; margin-top: 30px; max-width: 560px; }
.ab-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; margin-top: 24px; max-width: 540px; }
.ab-features li { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 500; color: #1d1d1d; }
.ab-features svg { width: 20px; height: 20px; flex: none; background: #000; fill: #fff; border-radius: 50%; padding: 3px; }
.ab-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.ab-btn { display: inline-flex; align-items: center; gap: 9px; background: #000; color: #fff; font-size: 16px; font-weight: 600; padding: 14px 28px; border-radius: 12px; text-decoration: none; transition: background .2s, transform .15s; }
.ab-btn:hover { background: #2b2b2b; }
.ab-btn:active { transform: scale(.98); }
.ab-btn svg { width: 19px; height: 19px; fill: currentColor; }
.ab-btn.is-soon { background: #efefef; color: #777; cursor: default; }
.ab-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ab-ink); border: 1.5px solid #000; border-radius: 999px; padding: 9px 16px; }
.ab-pill svg { width: 16px; height: 16px; fill: currentColor; }

/* Picture side: 3D scene */
.ab-scene { position: relative; height: 440px; perspective: 1400px; }
.ab-stage { position: absolute; inset: 0; transition: transform .25s ease-out; }
.ab-floor { position: absolute; left: 10%; right: 6%; bottom: 14px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .22), rgba(0, 0, 0, 0)); filter: blur(4px); }
.ab-orbit { position: absolute; z-index: 1; left: -4%; right: -2%; top: 40%; height: 52%; border: 3px solid #000; border-radius: 50%; transform: perspective(900px) rotateX(70deg) rotateZ(-12deg); }
.ab-orbit::after { content: ""; position: absolute; top: -9px; left: 50%; width: 14px; height: 14px; border-radius: 50%; background: #000; animation: ab-orbit-dot 7s linear infinite; offset-path: none; }

/* Phone, drawn in CSS (no brand logo) */
.ab-phone { position: absolute; z-index: 2; left: 4%; top: 2%; width: 25%; aspect-ratio: 9 / 19; border-radius: 30px; transform: perspective(900px) rotateY(22deg) rotateZ(-9deg);
  background: linear-gradient(140deg, #5b5b5e 0%, #2c2c2e 38%, #161617 100%); box-shadow: inset 0 0 0 2px #6a6a6d, inset 0 0 0 5px #1a1a1b, 0 24px 40px rgba(0, 0, 0, .22); animation: ab-float 6s ease-in-out infinite; }
.ab-phone::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%); }
.ab-cams { position: absolute; left: 12%; top: 5%; display: grid; grid-template-columns: auto auto; gap: 6px 8px; align-items: center; }
.ab-cams i { display: block; width: 26px; height: 26px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #4a4a4f 0 18%, #0d0d0f 28% 58%, #2c2c2f 60% 72%, #8a8a8e 74% 80%, #3a3a3d 82%); box-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.ab-cams i:nth-child(2) { width: 12px; height: 12px; background: #e9e9e9; box-shadow: 0 0 0 2px #3a3a3d; justify-self: center; }
.ab-cams i:nth-child(4) { width: 14px; height: 14px; }

/* App window with the real screenshot (no laptop) */
.ab-window { position: absolute; z-index: 3; right: 3%; top: 16%; width: 72%; transform: perspective(1200px) rotateY(-14deg) rotateX(4deg); border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 30px 50px -10px rgba(0, 0, 0, .28); animation: ab-float 6s ease-in-out -2s infinite; }
.ab-window img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Gear and wrench, drawn in SVG */
.ab-gear { position: absolute; z-index: 4; right: 0; bottom: 6%; width: 21%; filter: drop-shadow(10px 18px 18px rgba(0, 0, 0, .3)); animation: ab-float 5s ease-in-out -1s infinite; }
.ab-gear svg { display: block; width: 100%; height: auto; overflow: visible; }
.ab-gear .cog { transform-origin: 50px 50px; animation: ab-spin 14s linear infinite; }

@keyframes ab-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes ab-spin { to { transform: rotate(360deg); } }
@keyframes ab-orbit-dot { 0% { left: 50%; top: -9px; } 25% { left: calc(100% - 7px); top: 45%; } 50% { left: 50%; top: calc(100% - 5px); } 75% { left: -7px; top: 45%; } 100% { left: 50%; top: -9px; } }

/* Simple version: flat screenshot, no motion */
.ab.simple .ab-scene { perspective: none; height: auto; }
.ab.simple .ab-stage { position: static; }
.ab.simple .ab-window { position: static; width: 100%; transform: none; animation: none; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 24px 60px rgba(0, 0, 0, .16); }
.ab.simple .ab-phone, .ab.simple .ab-gear, .ab.simple .ab-orbit, .ab.simple .ab-floor { display: none; }

@media (prefers-reduced-motion: reduce) { .ab *, .ab *::after { animation: none !important; } .ab-stage { transition: none; } }

@media (max-width: 900px) {
  .ab-inner { grid-template-columns: 1fr; padding: 44px 20px 36px; gap: 20px; min-height: 0; }
  .ab-scene { height: min(78vw, 440px); }
  .ab.simple .ab-scene { height: auto; }
}
@media (max-width: 520px) {
  .ab-name { white-space: normal; font-size: clamp(26px, 8vw, 34px); }
  .ab-brand { gap: 14px; }
  .ab-icon { width: 62px; height: 62px; border-radius: 15px; }
  .ab-tagline { margin-top: 22px; }
  .ab-features { grid-template-columns: 1fr; gap: 9px; }
  .ab-actions { margin-top: 24px; }
  .ab-btn { width: 100%; justify-content: center; }
  .ab-cams i { width: 20px; height: 20px; }
  .ab-cams i:nth-child(2) { width: 8px; height: 8px; }
  .ab-cams i:nth-child(4) { width: 10px; height: 10px; }
  .ab-phone { border-radius: 24px; }
}
