/* Daftar landing page (ar + en share this file). Logical properties throughout,
   so the same rules lay out right-to-left and left-to-right. */

:root {
  --paper: #fbf8f3;
  --paper-2: #f4efe6;
  --card: #ffffff;
  --ink: #1f1d1a;
  --ink-2: #4a463f;
  --muted: #7a7368;
  --line: #e8e1d5;
  --accent: #c37a4d;
  --accent-ink: #a65d31;
  --accent-soft: #f6e6da;
  --green: #2f7d5b;
  --shadow: 0 1px 2px rgba(31, 29, 26, .06), 0 12px 40px -12px rgba(31, 29, 26, .22);
  --radius: 18px;
  --font: 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'IBM Plex Sans Arabic', -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412; --paper-2: #1c1a17; --card: #201e1b; --ink: #f1ede6; --ink-2: #cfc8bc; --muted: #9a9286;
    --line: #2f2c27; --accent: #e29466; --accent-ink: #eeaa82; --accent-soft: #3a2a20; --green: #6fc79c;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 48px -12px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font);
  font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%;
}
[lang='en'] body { line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--accent-ink);
  background: var(--accent-soft); padding: 5px 12px; border-radius: 999px;
}
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--display); line-height: 1.25; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
[lang='en'] h1, [lang='en'] h2 { letter-spacing: -0.025em; }

/* ---- Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 12px; font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -6px rgba(195, 122, 77, .7); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-ghost { border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-small { height: 38px; padding: 0 14px; font-size: 15px; border-radius: 10px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: 12px; background: var(--ink); color: var(--paper); text-decoration: none; font-weight: 600; font-size: 15px; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: .75; line-height: 1.1; }
.store-badge span { line-height: 1.2; }
.store-badge.soon { opacity: .55; cursor: default; }

/* ---- Nav */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 85%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; text-decoration: none; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 24px; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .link { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 0 6px; }
.lang-switch { font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }

/* ---- Hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -20% -10% auto; height: 620px; z-index: -1;
  background: radial-gradient(closest-side, rgba(195, 122, 77, .18), transparent 70%) 50% 30% / 70% 80% no-repeat,
              radial-gradient(closest-side, rgba(214, 92, 107, .10), transparent 70%) 80% 10% / 40% 60% no-repeat;
}
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 700; margin: 22px auto 18px; max-width: 900px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 680px; margin: 0 auto 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--muted); display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: '✓'; color: var(--green); margin-inline-end: 6px; font-weight: 700; }

.showcase { position: relative; margin: 56px auto 0; max-width: 1080px; }
.browser { border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.browser-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: var(--paper-2); border-bottom: 1px solid var(--line); direction: ltr; }
.browser-bar i { width: 11px; height: 11px; border-radius: 50%; background: #e5ddd0; display: block; }
.browser-bar i:nth-child(1) { background: #ff6159; } .browser-bar i:nth-child(2) { background: #ffbd2e; } .browser-bar i:nth-child(3) { background: #28c941; }
.browser-bar .url { margin: 0 auto; font-size: 12px; color: var(--muted); background: var(--card); padding: 2px 14px; border-radius: 6px; font-family: ui-monospace, monospace; }
.phone {
  position: absolute; bottom: -40px; inset-inline-end: -28px; width: 230px; border-radius: 38px; padding: 9px;
  background: #1b1a18; box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, .06) inset;
}
.phone img { border-radius: 30px; }
[dir='rtl'] .phone { inset-inline-end: auto; inset-inline-start: -28px; }

/* ---- Proof strip */
.strip { padding: 96px 0 24px; }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip-item { padding: 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.strip-item b { display: block; font-size: 17px; margin-bottom: 4px; }
.strip-item p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.strip-item .ico { font-size: 22px; margin-bottom: 10px; display: block; }

/* ---- Feature rows */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 12px; }
.section-head p { color: var(--ink-2); margin: 0; font-size: 18px; }
.feature { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: center; margin-bottom: 104px; }
.feature:last-child { margin-bottom: 0; }
.feature.flip { grid-template-columns: 7fr 5fr; }
.feature.flip .feature-text { order: 2; }
.feature-text h3 { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 14px; }
.feature-text p { color: var(--ink-2); margin: 0 0 18px; }
.feature-text ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.feature-text li { display: flex; gap: 10px; align-items: baseline; color: var(--ink-2); font-size: 16px; }
.feature-text li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: translateY(-2px); }
.tag { font-size: 13px; font-weight: 600; color: var(--accent-ink); letter-spacing: .02em; }
.frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: var(--card); }
.frame.dark { border-color: #2a2825; }
kbd { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; background: var(--paper-2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; direction: ltr; unicode-bidi: isolate; }

/* Search demo */
.search-demo { background: var(--paper-2); border-radius: 22px; padding: 28px; border: 1px solid var(--line); }
.search-demo .frame { margin-bottom: 18px; }
.pairs { display: grid; gap: 10px; }
.pair { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); padding: 10px 16px; border-radius: 12px; font-size: 17px; }
.pair code { font-family: inherit; background: var(--accent-soft); color: var(--accent-ink); padding: 1px 8px; border-radius: 6px; }
.pair .arrow { color: var(--muted); }
.pair .note { margin-inline-start: auto; font-size: 13px; color: var(--muted); }

/* AI mock */
.ai-mock { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 22px; }
.ai-mock .ai-head { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 14px; }
.ai-mock .ai-head svg { color: var(--accent); }
.ai-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ai-actions span { padding: 9px 12px; border-radius: 10px; background: var(--paper-2); font-size: 15px; }
.ai-actions span.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.ai-out { margin-top: 14px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--line); font-size: 15.5px; color: var(--ink-2); line-height: 1.8; }
.ai-out b { color: var(--ink); }
.cursor { display: inline-block; width: 7px; height: 1.05em; background: var(--accent); vertical-align: text-bottom; margin-inline-start: 3px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- Cards grid */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card .ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); font-size: 22px; margin-bottom: 16px; }
.card h3 { font-size: 19px; margin-bottom: 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

/* ---- Templates */
.templates { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.tpl { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 16px; }
.tpl span { font-size: 19px; }

/* ---- FAQ */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 24px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); }

/* ---- CTA band + footer */
.cta-band { margin: 40px auto 96px; max-width: 1080px; border-radius: 28px; padding: 64px 32px; text-align: center; color: #fff;
  background: radial-gradient(120% 140% at 20% 0%, #e0956a 0%, #c37a4d 40%, #8d4a2b 100%); position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 12px; }
.cta-band p { margin: 0 auto 28px; max-width: 560px; opacity: .92; font-size: 18px; }
.cta-band .btn-primary { background: #fff; color: #8d4a2b; box-shadow: none; }
.cta-band .btn-primary:hover { background: #fbf1ea; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; margin-inline-start: auto; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--ink); }

/* ---- Reveal on scroll (only when JS runs; content is visible without it) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } .cursor { animation: none; } }

/* ---- Responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 28px; margin-bottom: 72px; }
  .feature.flip .feature-text { order: 0; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .phone { width: 170px; border-radius: 28px; padding: 7px; inset-inline-end: -8px; bottom: -30px; }
  [dir='rtl'] .phone { inset-inline-start: -8px; }
  .phone img { border-radius: 22px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .nav-in { gap: 12px; height: 60px; }
  .nav-cta .link, .lang-switch.hide-sm { display: none; }
  .hero { padding: 44px 0 24px; }
  .hero-ctas .btn, .hero-ctas .store-badge { width: 100%; }
  .grid3, .strip-grid { grid-template-columns: 1fr; }
  .phone { width: 120px; border-radius: 22px; padding: 5px; bottom: -24px; }
  .phone img { border-radius: 17px; }
  .section { padding: 72px 0; }
  .strip { padding: 64px 0 8px; }
  .cta-band { border-radius: 0; margin: 24px -16px 64px; padding: 48px 20px; }
  .ai-actions { grid-template-columns: 1fr; }
  .pair { flex-wrap: wrap; }
  .pair .note { margin-inline-start: 0; width: 100%; }
}

/* ---- Free */
.free-box { max-width: 620px; margin: 0 auto; background: var(--card); border: 2px solid var(--accent); border-radius: 24px; padding: 32px; text-align: center; }
.free-box ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 12px; text-align: start; }
.free-box li { display: flex; gap: 10px; color: var(--ink-2); }
.free-box li::before { content: '✓'; color: var(--green); font-weight: 700; flex: none; }
.small-note { font-size: 14px; margin: 16px 0 0; }
