/* Alqab Studios — black and white, laid out like 3uTools
   Palette: black, white and greys only. */
:root {
  --ink: #000000;
  --ink-soft: #2b2b2b;
  --muted: #6b6b6b;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --line: #e2e2e2;
  --dark: #000000;
  --dark-2: #1a1a1a;
  --dark-line: #2a2a2a;
  --dark-muted: #a3a3a3;
  --radius: 16px;
  --nav-h: 64px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(0, 0, 0, .3); }
a:hover { text-decoration-color: currentColor; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; }
.inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.inner.narrow { max-width: 780px; }

/* ---------- Top menu ---------- */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: var(--nav-h); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
.logo { color: var(--ink); font-weight: 700; font-size: 18px; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; }
.logo-word { font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.nav-links { display: flex; gap: 10px; justify-content: center; }
.nav-links a { position: relative; color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; text-decoration: none; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); font-weight: 600; }
.nav-links a.active::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -13px; height: 2px; background: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-size: 15px; font-weight: 600; border: 1.5px solid transparent; border-radius: 10px;
  padding: 11px 24px; cursor: pointer; text-decoration: none; transition: background .2s, color .2s, transform .15s; white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 1.2em; height: 1.2em; fill: currentColor; flex: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2b2b2b; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e9e9e9; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-xl { font-size: 18px; padding: 16px 44px; border-radius: 12px; }
.btn-sm { font-size: 14px; padding: 8px 18px; }
.btn-block { width: 100%; }
.btn.is-soon { background: var(--bg-alt); color: var(--muted); border-color: var(--line); cursor: default; transform: none; }

/* ---------- Pictures used in the PC Apps / Mobile Apps lists ---------- */
.product-main { flex: 1; width: 100%; }
.frame-shot img { display: block; width: 100%; height: auto; border-radius: 10px; }
.frame-pc { background: #fff; border-radius: 12px 12px 0 0; border: 1px solid #3a3a3a; border-bottom: 0; overflow: hidden; }
.frame-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #efefef; border-bottom: 1px solid #ddd; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #c8c8c8; }
.frame-bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.frame-pc img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.frame-phone { width: min(300px, 70vw); margin: 0 auto; background: #1f1f1f; border-radius: 46px 46px 0 0; padding: 12px 12px 0; }
.frame-phone img, .frame-phone .placeholder { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 36px 36px 0 0; }
.placeholder { display: grid; place-items: center; align-content: center; gap: 18px; background: linear-gradient(180deg, #fff, #f2f2f2); aspect-ratio: 16 / 10; }
.placeholder strong { font-size: clamp(20px, 3vw, 28px); letter-spacing: -0.01em; color: var(--ink); }

/* ---------- Tool page (inside PC Apps / Mobile Apps) ---------- */
.detail { flex: 1; width: 100%; padding: 28px 0 72px; }
.crumbs { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs span:last-child { color: var(--ink); font-weight: 500; }

.d-head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: 20px; }
.d-title h1 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; letter-spacing: -0.03em; }
.d-title p { color: var(--muted); font-size: 17px; margin-top: 4px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chips li { font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--bg-alt); border-radius: 999px; padding: 4px 12px; }
.chips li:first-child { background: var(--ink); color: #fff; border-color: var(--ink); }
.d-action { display: flex; flex-direction: column; align-items: stretch; gap: 8px; text-align: center; min-width: 230px; }
.d-note { font-size: 13px; color: var(--muted); }

.d-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.d-shots.single { grid-template-columns: 1fr; max-width: 900px; }
.d-thumbs { display: contents; }
.detail .ad-wrap { padding: 0; }
.shot { display: block; width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--bg-alt); cursor: zoom-in; font: inherit; color: inherit; transition: border-color .2s; }
.shot:hover { border-color: var(--ink); }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: auto; border-radius: 8px; filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .12)); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 64px 16px 24px; }
.lightbox img { display: block; width: auto; height: auto; max-width: min(1600px, 100%); max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); object-fit: contain; border-radius: 8px; }
.lightbox-tip { display: none; color: #a3a3a3; font-size: 13px; text-align: center; margin-top: 14px; }
@media (max-width: 680px) and (orientation: portrait) { .lightbox { align-content: center; } .lightbox-tip { display: block; } }
.lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }

.d-block { margin-top: 40px; }
.d-block h2 { font-size: 22px; letter-spacing: -.015em; margin-bottom: 16px; }
.d-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.d-feature { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; font-weight: 600; font-size: 16px; }
.d-feature svg { width: 40px; height: 40px; padding: 9px; border-radius: 10px; background: var(--ink); fill: #fff; flex: none; }
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.d-two .d-block { background: var(--bg-alt); border-radius: 16px; padding: 24px 26px; }
.steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: step; display: flex; align-items: center; gap: 12px; font-size: 16px; }
.steps li::before { content: counter(step); width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; }
.req-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.req-list li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-soft); }
.req-list svg { width: 18px; height: 18px; fill: var(--ink); flex: none; margin-top: 2px; }

.app-icon { width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: var(--ink); font-weight: 600; font-size: 22px; overflow: hidden; flex: none; }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon.big { width: 88px; height: 88px; border-radius: 20px; font-size: 38px; box-shadow: 0 10px 24px rgba(0, 0, 0, .18); }
.app-icon.huge { width: 120px; height: 120px; border-radius: 27px; font-size: 54px; }

/* ---------- PC Apps / Mobile Apps lists ---------- */
.page { flex: 1; width: 100%; max-width: 1200px; margin: 0 auto; padding: 64px 24px 72px; }
.page-head { margin-bottom: 8px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.035em; }
.page-sub { color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); margin-top: 10px; }
.product-list { display: flex; flex-direction: column; gap: 24px; }
.product-row { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 52px; border: 1px solid var(--line); border-radius: 20px; padding: 44px; overflow: hidden; transition: border-color .2s; }
.product-row:hover { border-color: #bdbdbd; }
.product-row:nth-child(even) .row-visual { order: 2; }
.row-visual { display: block; background: var(--bg-alt); border-radius: 14px; padding: 24px; text-decoration: none; }
.row-visual .frame-shot img { border-radius: 8px; box-shadow: none; filter: drop-shadow(0 12px 26px rgba(0, 0, 0, .14)); }
.row-visual .frame-pc { border-radius: 10px; border: 1px solid #d4d4d4; }
.row-visual .frame-phone { width: min(200px, 56vw); border-radius: 34px; padding: 9px; border: 0; background: var(--ink); }
.row-visual .frame-phone img, .row-visual .frame-phone .placeholder { border-radius: 26px; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); white-space: pre-wrap; letter-spacing: .01em; }
.row-text h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.08; letter-spacing: -0.025em; margin-top: 8px; }
.row-text h2 a { color: inherit; text-decoration: none; }
.row-text .tagline { font-size: clamp(18px, 2vw, 21px); margin-top: 8px; }
.row-text .desc { color: var(--muted); font-size: 16px; margin-top: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.empty { text-align: center; color: var(--muted); padding: 72px 20px; }
.empty p + p { margin-top: 8px; }

/* ---------- About ---------- */
.about { max-width: 860px; }
.about h1 { font-size: clamp(42px, 6.4vw, 72px); line-height: 1.03; letter-spacing: -0.035em; }
.about .lead { font-size: clamp(19px, 2.4vw, 24px); color: var(--ink-soft); margin-top: 18px; line-height: 1.45; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.points div { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.points h2 { font-size: 19px; margin-bottom: 6px; }
.points p { color: var(--muted); }
.contact { margin-top: 44px; font-size: 17px; }

/* ---------- Ads ---------- */
.ad-wrap { max-width: 1200px; margin: 36px auto; padding: 0 24px; text-align: center; }
.page .ad-wrap { padding: 0; }
.ad-placeholder { border: 1px dashed #c4c4c4; border-radius: 12px; color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 30px 12px; background: var(--bg-alt); }

/* ---------- Footer (one compact row) ---------- */
.footer { background: var(--dark); color: var(--dark-muted); font-size: 14px; }
.footer a { color: var(--dark-muted); text-decoration: none; }
.footer a:hover { color: #fff; }
.footer .logo { color: #fff; font-size: 16px; }
.footer .logo-word { font-size: 18px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 22px 24px; display: flex; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; flex: 1; }
.footer-copy { font-size: 13px; white-space: nowrap; }

/* ---------- Empty list ---------- */
.empty-state { text-align: center; padding: 72px 20px 88px; }
.empty-icon { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 16px; background: var(--bg-alt); display: grid; place-items: center; }
.empty-icon svg { width: 30px; height: 30px; fill: var(--ink); }
.empty-state h2 { font-size: 24px; letter-spacing: -.015em; }
.empty-state p { color: var(--muted); margin: 8px 0 24px; }

/* ---------- Legal ---------- */
.legal { max-width: 760px; }
.legal h1 { font-size: 44px; letter-spacing: -.02em; margin-bottom: 8px; }
.legal h2 { font-size: 21px; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 10px; }
.legal ul { padding-left: 20px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .nav-inner { gap: 20px; }
  .d-head { grid-template-columns: auto 1fr; }
  .d-action { grid-column: 1 / -1; }
  .d-features { grid-template-columns: 1fr 1fr; }
  .product-row { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  .product-row:nth-child(even) .row-visual { order: 0; }
}

/* ---------- Phone ---------- */
@media (max-width: 680px) {
  :root { --nav-h: 104px; }
  html { scroll-padding-top: 116px; }
  .inner, .nav-inner { padding-left: 16px; padding-right: 16px; }
  .nav-inner { height: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
  .nav-links { order: 3; width: 100%; flex: none; justify-content: space-between; gap: 0; }
  .nav-links a { flex: 1; text-align: center; padding: 12px 2px 14px; font-size: 14px; }
  .nav-links a.active::after { left: 18%; right: 18%; bottom: 0; }
  .detail { padding-top: 18px; }
  .crumbs { margin-bottom: 18px; }
  .d-head { padding: 20px; gap: 16px; }
  .app-icon.big { width: 64px; height: 64px; border-radius: 15px; font-size: 28px; }
  .d-action { min-width: 0; }
  .btn-xl { width: 100%; }
  .d-shots { grid-template-columns: 1fr; }
  .shot { padding: 10px; }
  .d-two, .points { grid-template-columns: 1fr; }
  .d-features { gap: 10px; }
  .d-feature { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; font-size: 15px; }
  .d-feature svg { width: 34px; height: 34px; padding: 7px; }
  .d-block { margin-top: 32px; }
  .page { padding: 40px 16px 56px; }
  .product-row { padding: 18px; border-radius: 16px; }
  .row-visual { padding: 14px; }
  .ad-wrap { padding: 0 16px; }
  .footer-inner { flex-direction: column; text-align: center; padding: 20px 16px; gap: 10px; }
  .footer-links { justify-content: center; gap: 4px 16px; }
}

/* ---------- Home page: just the banner ---------- */
.home-main { display: flex; flex-direction: column; }
.home-main .ab { flex: 1; display: flex; align-items: center; }
.home-main .ab-inner { width: 100%; min-height: calc(100vh - var(--nav-h) - 70px); }
.d-two:has(> .d-block[hidden]) { grid-template-columns: 1fr; }

/* Phone screenshots: tall pictures side by side, not stretched to full width */
.frame-phone img { aspect-ratio: auto; }
.d-shots.portrait { grid-template-columns: repeat(auto-fill, minmax(150px, 280px)); justify-content: start; }
.d-shots.portrait .shot { padding: 14px; }
.d-shots.portrait .shot img { border-radius: 14px; }
@media (max-width: 680px) { .d-shots.portrait { grid-template-columns: 1fr 1fr; } .d-shots.portrait .shot { padding: 8px; } }
.lightbox.tall img { height: min(88vh, 900px); height: min(calc(100dvh - 120px), 900px); width: auto; }
.cover { display: grid; place-items: center; }
.cover img { display: block; width: min(320px, 100%); aspect-ratio: 1; object-fit: cover; border-radius: 22%; box-shadow: 0 18px 40px rgba(0, 0, 0, .22); }

/* Contact page */
.contact-card { max-width: 560px; margin: 36px auto 0; text-align: center; padding: 40px 28px; border: 1px solid var(--line, #e5e5ea); border-radius: 22px; background: #fff; }
.contact-icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 16px; background: var(--ink); display: grid; place-items: center; }
.contact-icon svg { width: 28px; height: 28px; fill: #fff; }
.contact-label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-big { display: inline-block; font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; margin-bottom: 22px; }
.contact-big:hover { text-decoration: underline; }
.contact-card .contact-btn { display: flex; width: max-content; margin: 0 auto 12px; }
.contact-card .muted { color: var(--muted); font-size: 14px; }
.contact-tips { max-width: 560px; margin: 32px auto 0; }
.contact-tips h2 { font-size: 19px; margin-bottom: 10px; }
.legal-date { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
@media (max-width: 680px) {
  .contact-card { padding: 28px 18px; }
  .contact-big { font-size: 18px; }
  .contact-card .contact-btn { width: 100%; }
  .nav-links a { font-size: 13px; }
}
