/* ============================================================
   Erfan Rouhani — developer site design system
   Tokens from design reference (see design-reference/README.md)
   ============================================================ */
:root {
  --bg: #0A0F16;
  --surface: #101823;
  --surface-alt: #0D1420;
  --footer-bg: #080C12;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .14);
  --text: #E7EDF4;
  --text-2: #C4D2E0;
  --muted: #8DA2B8;
  --faint: #5C7189;
  --accent: #3DDC84;
  --accent-hover: #6FE8A6;
  --teal: #2BB8C9;
  --gold: #F5C842;
  --on-accent: #07110B;
  --grad: linear-gradient(135deg, #3DDC84, #2BB8C9);
  --font: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --shadow-card: 0 18px 44px rgba(0, 0, 0, .45);
  --shadow-glow: 0 12px 34px rgba(61, 220, 132, .35);
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
::selection { background: rgba(61, 220, 132, .3); }
img { max-width: 100%; }
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: 0 0 10px 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: var(--on-accent); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }

/* Scroll reveal (JS adds .reveal; no-JS pages stay visible) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Header ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 22, .85);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.site-header .bar { height: 68px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); flex: none; }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: var(--on-accent); letter-spacing: -.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 600; font-size: 16px; }
.brand-role { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .08em; }
.site-nav { display: flex; gap: 24px; margin-inline-start: auto; font-size: 14.5px; font-weight: 500; }
.site-nav a { color: var(--text-2); }
.site-nav a:hover { color: #fff; }
.lang-menu { position: relative; flex: none; }
.lang-menu summary {
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 8px;
  font-size: 13px; color: var(--text-2); font-family: var(--mono);
}
.lang-globe { width: 14px; height: 14px; flex: none; color: var(--muted); }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px;
  background: #131C29; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px;
  padding: 6px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  display: flex; flex-direction: column; gap: 2px; font-size: 13.5px;
}
.lang-list a, .lang-list span { padding: 8px 12px; border-radius: 6px; color: var(--text-2); }
.lang-list a:hover { background: rgba(255, 255, 255, .06); color: var(--text); }
.lang-list .active { color: var(--text); background: rgba(61, 220, 132, .1); }
.lang-list .soon { color: var(--faint); font-size: 12px; cursor: default; }
.btn-store {
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 14px;
  padding: 10px 18px; border-radius: 9px; flex: none; transition: background .2s ease;
}
.btn-store:hover { background: var(--accent-hover); color: var(--on-accent); }

/* ============ Buttons ============ */
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: 16px; padding: 14px 26px; border-radius: 11px;
  box-shadow: 0 8px 28px rgba(61, 220, 132, .25);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-ghost {
  display: inline-block; border: 1px solid rgba(255, 255, 255, .16); color: var(--text);
  font-weight: 500; font-size: 16px; padding: 14px 26px; border-radius: 11px;
  transition: border-color .25s ease, color .25s ease;
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, .35); color: #fff; }
.play-badge img { height: 60px; display: block; }

/* ============ Hero (home) ============ */
.hero { position: relative; overflow: hidden; }
.hero-bg, .hero-grid { position: absolute; inset: 0; pointer-events: none; }
.hero-bg { background: radial-gradient(900px 500px at 75% 10%, rgba(61, 220, 132, .09), transparent 60%), radial-gradient(700px 400px at 15% 90%, rgba(43, 184, 201, .07), transparent 60%); }
.hero-grid {
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 64px; align-items: center; padding-top: 88px; padding-bottom: 96px;
}
.hero-copy { animation: fadeUp .6s ease both; }
.hero-badge {
  font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--accent);
  margin-bottom: 20px; display: flex; align-items: center; gap: 10px; text-transform: uppercase;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; flex: none; }
.hero h1 { font-size: 56px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin: 0 0 22px; }
.grad-text { background: linear-gradient(90deg, #3DDC84, #2BB8C9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); margin: 0 0 32px; max-width: 520px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* Spotlight */
.spotlight { position: relative; animation: fadeUp .6s .15s ease both; }
.spotlight-stage { position: relative; display: flex; justify-content: center; }
.phone-card {
  width: 100%; max-width: 290px; border-radius: 32px; background: #05080C;
  border: 1px solid var(--border-strong); box-shadow: 0 40px 90px rgba(0, 0, 0, .6);
  padding: 10px; position: relative; animation: floaty 7s ease-in-out infinite;
}
.phone-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 24px; display: block; }
.spotlight-info {
  position: absolute; bottom: -40px; left: 50%; transform: translateX(-50%);
  background: rgba(16, 24, 35, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; padding: 14px 18px;
  display: flex; align-items: center; gap: 14px; min-width: 300px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .55); color: var(--text);
  transition: border-color .25s ease;
}
.spotlight-info:hover { border-color: rgba(61, 220, 132, .5); color: var(--text); }
.spotlight-info img { width: 46px; height: 46px; border-radius: 12px; display: block; flex: none; }
.spotlight-meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.spotlight-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.spotlight-tag { font-size: 12.5px; color: var(--muted); }
.spotlight-stats { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.spotlight-stats .sub { color: var(--muted); }
.spotlight-arrow { margin-inline-start: auto; color: var(--accent); font-size: 18px; flex: none; }
.spotlight-dots { display: flex; justify-content: center; gap: 8px; margin-top: 64px; }
.spotlight-dots button {
  width: 8px; height: 8px; border-radius: 999px; border: none; cursor: pointer; padding: 0;
  background: rgba(255, 255, 255, .2); transition: all .3s ease;
}
.spotlight-dots button.active { width: 26px; background: var(--accent); }

/* ============ Stats strip ============ */
.stats-strip { border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); background: var(--surface-alt); }
.stats-strip .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 36px; padding-bottom: 36px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat b { font-size: 32px; font-weight: 700; color: var(--accent); }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ============ App grid ============ */
.section { padding-top: 88px; padding-bottom: 40px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.section-head h2, .section-title { font-size: 38px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 999px;
  color: var(--muted); border: 1px solid rgba(255, 255, 255, .12);
  background: none; cursor: pointer; transition: all .2s ease;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, .3); }
.chip.active { background: rgba(61, 220, 132, .14); color: var(--accent); border-color: rgba(61, 220, 132, .35); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.app-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; display: flex; flex-direction: column; gap: 14px; color: var(--text);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.app-card:hover { border-color: rgba(61, 220, 132, .45); color: var(--text); transform: translateY(-5px); box-shadow: var(--shadow-card); }
.app-card img { width: 56px; height: 56px; border-radius: 14px; }
.app-card-info { display: flex; flex-direction: column; gap: 5px; }
.app-card-name { font-size: 17px; font-weight: 600; }
.app-card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.app-card-meta { font-family: var(--mono); font-size: 11.5px; color: var(--gold); }
.app-card-meta .sub { color: var(--muted); }
.app-card.featured {
  grid-column: span 2; flex-direction: row; align-items: center; gap: 22px;
  background: linear-gradient(135deg, #101823, #0E1B1A); border-color: rgba(61, 220, 132, .3);
  position: relative; overflow: hidden;
}
.app-card.featured:hover { border-color: rgba(61, 220, 132, .6); transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0, 0, 0, .5); }
.app-card.featured img { width: 76px; height: 76px; border-radius: 18px; flex: none; }
.app-card.featured .app-card-name { font-size: 21px; }
.app-card.featured .app-card-desc { font-size: 14.5px; }
.featured-flag {
  position: absolute; top: 16px; right: 16px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; background: rgba(61, 220, 132, .15); color: var(--accent);
  padding: 5px 10px; border-radius: 999px;
}
.app-card .arrow { margin-inline-start: auto; color: var(--accent); font-size: 22px; flex: none; }
.app-card.hidden-by-filter { display: none; }

/* ============ About ============ */
.about-card {
  background: var(--surface-alt); border: 1px solid var(--border); border-radius: 22px;
  padding: 48px; display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center;
}
.about-card > img { width: 112px; height: 112px; border-radius: 50%; border: 2px solid rgba(61, 220, 132, .4); }
.about-card h2 { font-size: 30px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.about-card p { font-size: 16px; line-height: 1.65; color: var(--muted); margin: 0 0 20px; max-width: 720px; text-wrap: pretty; }
.trust-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.trust-chips span { font-family: var(--mono); font-size: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(61, 220, 132, .3); color: var(--accent); }

/* ============ Reviews ============ */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 26px; margin: 0; display: flex; flex-direction: column; gap: 14px;
}
.review-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.review-card blockquote { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.review-card figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-top: auto; }

/* ============ CTA panel ============ */
.cta-panel {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #0E2018, #0D1A26);
  border: 1px solid rgba(61, 220, 132, .3); border-radius: 24px; padding: 64px 48px;
}
.cta-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 50% 0%, rgba(61, 220, 132, .14), transparent 70%); }
.cta-panel > * { position: relative; }
.cta-panel h2 { font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 14px; }
.cta-panel p { font-size: 17px; color: var(--muted); margin: 0 0 30px; }
.cta-panel .play-badge img { height: 64px; margin: 0 auto; }

/* App-page CTA variant */
.cta-panel.row { display: flex; align-items: center; gap: 36px; flex-wrap: wrap; text-align: left; padding: 56px 48px; }
.cta-panel.row img.cta-icon { width: 72px; height: 72px; border-radius: 18px; }
.cta-panel.row .cta-copy { flex: 1; min-width: 280px; }
.cta-panel.row h2 { font-size: 32px; margin: 0 0 8px; }
.cta-panel.row p { font-size: 16px; margin: 0; }

/* ============ Footer ============ */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .07); background: var(--footer-bg); margin-top: 88px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 13.5px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-col .head { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--faint); margin-bottom: 4px; text-transform: uppercase; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-brand .line { display: flex; align-items: center; gap: 10px; }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 8px; font-size: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; color: var(--faint); margin: 0; max-width: 280px; }
.footer-brand .copyright { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.footer-legal { padding-bottom: 28px; }
.footer-legal p { font-family: var(--mono); font-size: 10.5px; color: #3D4E61; margin: 6px 0 0; }

/* Slim footer (app + guide pages) */
.site-footer.slim { margin-top: 0; }
.site-footer.slim .row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 36px; padding-bottom: 36px; }
.site-footer.slim nav { display: flex; gap: 20px; font-size: 13.5px; margin-inline-start: auto; flex-wrap: wrap; }
.site-footer.slim nav a { color: var(--muted); }
.site-footer.slim nav a:hover { color: var(--accent); }
.site-footer.slim .copyright { font-family: var(--mono); font-size: 10.5px; color: #3D4E61; width: 100%; }

/* ============ App landing page ============ */
.breadcrumb { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin-bottom: 24px; }
.breadcrumb a { color: var(--faint); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .current { color: var(--muted); }

.app-hero { position: relative; overflow: hidden; }
.app-hero-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(900px 500px at 20% 0%, rgba(61, 220, 132, .1), transparent 60%), radial-gradient(700px 400px at 90% 80%, rgba(43, 184, 201, .07), transparent 60%); }
.app-hero-inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.app-hero-copy { animation: fadeUp .6s ease both; }
.app-identity { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.app-identity img { width: 84px; height: 84px; border-radius: 20px; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); flex: none; }
.app-identity h1 { font-size: 40px; line-height: 1.05; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; }
.app-identity .keywords { font-size: 16px; color: var(--muted); margin: 0; }
.app-hook { font-size: 19px; line-height: 1.6; color: var(--text-2); margin: 0 0 26px; max-width: 540px; text-wrap: pretty; }
.app-hook strong { color: #fff; }
.stat-row { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; font-family: var(--mono); font-size: 13px; }
.stat-row .r { color: var(--gold); }
.stat-row .v { color: var(--text); }
.stat-row .l { color: var(--muted); }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.trust-line { font-family: var(--mono); font-size: 11.5px; color: var(--faint); margin: 22px 0 0; }
.app-hero-shots { display: flex; justify-content: center; gap: 16px; animation: fadeUp .6s .15s ease both; min-width: 0; }
.tilt-card {
  flex: 1 1 0; min-width: 0; max-width: 240px; border-radius: 26px; background: #05080C;
  border: 1px solid var(--border-strong); box-shadow: 0 30px 70px rgba(0, 0, 0, .55); padding: 8px;
}
.tilt-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 19px; display: block; }
.tilt-card.left { transform: rotate(-2deg); }
.tilt-card.right { transform: rotate(2deg) translateY(20px); }

.trust-strip { border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); background: var(--surface-alt); }
.trust-strip .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; font-size: 14px; padding-top: 30px; padding-bottom: 30px; }
.trust-item { display: flex; align-items: center; gap: 12px; }
.trust-item .tick {
  width: 34px; height: 34px; border-radius: 9px; background: rgba(61, 220, 132, .12);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 16px; flex: none;
}
.trust-item span:last-child { color: var(--text-2); }

/* Screenshot gallery */
.gallery-section { padding: 80px 0 72px; overflow: hidden; }
.gallery-head { padding-bottom: 32px; }
.gallery-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.gallery {
  display: flex; gap: 18px; overflow-x: auto;
  padding: 8px max(24px, calc((100vw - 1200px) / 2 + 24px)) 24px;
  scrollbar-width: thin; scroll-snap-type: x proximity;
}
.gallery img {
  height: 400px; width: auto; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .1);
  flex: none; scroll-snap-align: center; transition: transform .25s ease;
}
.gallery img:hover { transform: translateY(-6px); }

/* How it works */
.how-section { padding-top: 16px; padding-bottom: 80px; }
.how-head { text-align: center; margin-bottom: 44px; }
.how-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 30px; display: flex; flex-direction: column; gap: 12px; transition: border-color .25s ease;
}
.step:hover { border-color: rgba(61, 220, 132, .35); }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.step h3 { font-size: 20px; font-weight: 600; margin: 0; }
.step p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 18px; }
.feature { background: var(--surface-alt); border: 1px solid rgba(255, 255, 255, .06); border-radius: 16px; padding: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 10px; }
.feature svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.feature p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* Guides */
.guides-section { background: var(--surface-alt); border-top: 1px solid rgba(255, 255, 255, .07); border-bottom: 1px solid rgba(255, 255, 255, .07); }
.guides-section .inner { padding-top: 72px; padding-bottom: 72px; }
.guides-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.guides-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.guide-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 24px; display: flex; flex-direction: column; gap: 10px; color: var(--text);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.guide-card:hover { border-color: rgba(61, 220, 132, .5); color: var(--text); transform: translateY(-5px); box-shadow: var(--shadow-card); }
.guide-card .kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.guide-card .title { font-size: 16.5px; font-weight: 600; line-height: 1.35; }
.guide-card .more { font-size: 13px; color: var(--muted); margin-top: auto; }

/* FAQ */
.faq-section { max-width: 860px; margin: 0 auto; padding: 80px 24px; }
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-head h2 { font-size: 36px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 24px; }
.faq-list summary {
  cursor: pointer; font-size: 16.5px; font-weight: 600; padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-list summary::after { content: "＋"; color: var(--accent); flex: none; }
.faq-list details[open] summary::after { content: "－"; }
.faq-list details p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; padding-bottom: 20px; }

/* Sticky install bar */
.install-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(10, 15, 22, .94); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid rgba(61, 220, 132, .35); box-shadow: 0 -12px 40px rgba(0, 0, 0, .4);
  transform: translateY(100%); transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.install-bar.show { transform: none; }
.install-bar .row { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.install-bar img { width: 42px; height: 42px; border-radius: 11px; }
.install-bar .meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.install-bar .name { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.install-bar .sub { font-family: var(--mono); font-size: 11px; color: var(--gold); }
.install-bar .sub .d { color: var(--muted); }
.install-bar .btn {
  margin-inline-start: auto; background: var(--accent); color: var(--on-accent); font-weight: 600;
  font-size: 14.5px; padding: 11px 22px; border-radius: 10px; flex: none; transition: all .2s ease;
}
.install-bar .btn:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: 0 6px 20px rgba(61, 220, 132, .35); }

/* ============ Guide article page ============ */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; z-index: 70; width: 0;
  background: linear-gradient(90deg, #3DDC84, #2BB8C9); box-shadow: 0 0 12px rgba(61, 220, 132, .5);
}
.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 80px; }
.article-meta { font-family: var(--mono); font-size: 11.5px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.article-meta .cat { color: var(--accent); text-transform: uppercase; }
article h1 { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; margin: 0 0 24px; text-wrap: pretty; }
.quick-answer {
  background: linear-gradient(135deg, #0E2018, #0D1A26); border: 1px solid rgba(61, 220, 132, .35);
  border-radius: 16px; padding: 24px 26px; margin-bottom: 36px;
}
.quick-answer .label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); margin-bottom: 10px; }
.quick-answer p { font-size: 16px; line-height: 1.65; color: var(--text); margin: 0; }
.article-intro { font-size: 16.5px; line-height: 1.75; color: var(--text-2); margin: 0 0 28px; text-wrap: pretty; }
article h2.step-h {
  font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 14px;
  display: flex; align-items: baseline; gap: 14px; scroll-margin-top: 90px;
}
article h2.step-h .n { font-family: var(--mono); font-size: 15px; color: var(--accent); flex: none; }
article h2.plain-h { font-size: 26px; font-weight: 700; letter-spacing: -.01em; margin: 36px 0 18px; }
.article-body p { font-size: 16px; line-height: 1.75; color: var(--muted); margin: 0 0 16px; }
.article-body strong { color: var(--text); }
.article-body ul, .article-body ol { font-size: 16px; line-height: 1.9; color: var(--muted); margin: 0 0 24px; padding-left: 22px; }
.article-figure { margin: 0 0 24px; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.article-figure img { display: block; width: 100%; max-height: 420px; object-fit: contain; background: #05080C; }
.article-figure figcaption { font-family: var(--mono); font-size: 11.5px; color: var(--faint); padding: 12px 16px; background: var(--surface-alt); }
.app-cta-card {
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px;
  padding: 26px; margin: 8px 0 24px; display: flex; gap: 20px; align-items: flex-start;
}
.app-cta-card img { width: 54px; height: 54px; border-radius: 14px; flex: none; }
.app-cta-card .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--accent); margin-bottom: 6px; text-transform: uppercase; }
.app-cta-card p { font-size: 15px; line-height: 1.65; color: var(--text-2); margin: 0 0 12px; }
.app-cta-card a.go { font-weight: 600; font-size: 14.5px; }
.related-qs { display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.related-qs details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; }
.related-qs summary { cursor: pointer; font-size: 15.5px; font-weight: 600; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; }
.related-qs summary::after { content: "＋"; color: var(--accent); flex: none; }
.related-qs details[open] summary::after { content: "－"; }
.related-qs details p { font-size: 14.5px; line-height: 1.65; color: var(--muted); margin: 0; padding-bottom: 18px; }
.related-guides { border-top: 1px solid var(--border); padding-top: 28px; }
.related-guides .label { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--accent); margin-bottom: 16px; text-transform: uppercase; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.related-grid a {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px; font-size: 15px; font-weight: 600; color: var(--text); line-height: 1.4;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.related-grid a:hover { border-color: rgba(61, 220, 132, .5); color: var(--text); transform: translateY(-4px); box-shadow: 0 14px 36px rgba(0, 0, 0, .45); }

/* Sidebar */
.article-sidebar { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.sidebar-install {
  background: linear-gradient(160deg, #0E2018, #101823); border: 1px solid rgba(61, 220, 132, .35);
  border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.sidebar-install img { width: 60px; height: 60px; border-radius: 15px; }
.sidebar-install .name { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.sidebar-install .rating { font-family: var(--mono); font-size: 11.5px; color: var(--gold); }
.sidebar-install .rating .sub { color: var(--muted); }
.sidebar-install p { font-size: 13.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.sidebar-install .btn {
  background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 15px;
  padding: 13px 0; border-radius: 10px; text-align: center; transition: all .2s ease;
}
.sidebar-install .btn:hover { background: var(--accent-hover); color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(61, 220, 132, .35); }
.sidebar-install .note { font-family: var(--mono); font-size: 10.5px; color: var(--faint); text-align: center; }
.sidebar-toc { background: var(--surface-alt); border: 1px solid rgba(255, 255, 255, .07); border-radius: 16px; padding: 20px 22px; }
.sidebar-toc .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; color: var(--faint); margin-bottom: 12px; text-transform: uppercase; }
.sidebar-toc nav { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.sidebar-toc a { color: var(--muted); }
.sidebar-toc a:hover { color: var(--accent); }

/* Description accordion on app pages */
.store-desc { max-width: 860px; margin: 0 auto; padding: 0 24px 80px; }
.store-desc details { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 16px; padding: 0 26px; }
.store-desc summary { cursor: pointer; font-size: 16px; font-weight: 600; padding: 20px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.store-desc summary::after { content: "＋"; color: var(--accent); }
.store-desc details[open] summary::after { content: "－"; }
.store-desc .body { padding-bottom: 24px; font-size: 14.5px; line-height: 1.7; color: var(--muted); white-space: pre-line; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .hero-inner, .app-hero-inner { grid-template-columns: 1fr; gap: 72px; padding-top: 56px; padding-bottom: 72px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .app-card.featured { grid-column: span 2; }
  .guides-grid, .guides-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .sidebar-toc { display: none; }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 720px) {
  .site-nav { display: none; }
  .hero h1 { font-size: 36px; }
  .app-identity h1 { font-size: 30px; }
  article h1 { font-size: 32px; }
  .stats-strip .row, .trust-strip .row { grid-template-columns: repeat(2, 1fr); }
  .app-grid, .guides-grid, .guides-grid.cols-3, .steps, .features, .reviews-grid, .related-grid { grid-template-columns: 1fr; }
  .app-card.featured { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .app-card.featured .arrow { display: none; }
  .about-card { grid-template-columns: 1fr; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-head h2, .section-title, .gallery-head h2, .how-head h2, .faq-head h2 { font-size: 28px; }
  .cta-panel { padding: 48px 24px; }
  .cta-panel h2 { font-size: 30px; }
  .gallery img { height: 320px; }
  .app-hero-shots .tilt-card.right { display: none; }
  .install-bar .sub { display: none; }
}

/* ============ RTL (Arabic) ============ */
[dir="rtl"] .skip-link { left: auto; right: -9999px; border-radius: 0 0 0 10px; }
[dir="rtl"] .skip-link:focus { right: 0; }
[dir="rtl"] .lang-list { right: auto; left: 0; }
[dir="rtl"] .hero-badge, [dir="rtl"] .eyebrow { letter-spacing: 0; }
[dir="rtl"] .spotlight-arrow, [dir="rtl"] .app-card .arrow { transform: scaleX(-1); }
[dir="rtl"] .article-meta a[style], [dir="rtl"] .breadcrumb { direction: rtl; }
/* Keep Latin brand mark, mono stats and Play badge visually LTR inside RTL */
[dir="rtl"] .brand-role, [dir="rtl"] .spotlight-stats, [dir="rtl"] .app-card-meta,
[dir="rtl"] .stat-row, [dir="rtl"] .sidebar-install .rating, [dir="rtl"] .install-bar .sub,
[dir="rtl"] .review-stars { direction: ltr; }
[dir="rtl"] .stat-row { justify-content: flex-start; }
[dir="rtl"] .article-figure figcaption { direction: rtl; }

/* ============ Trademark / non-affiliation notice ============ */
.trademark-note {
  max-width: 860px; margin: 0 auto; padding: 18px 24px 0;
  font-family: var(--mono); font-size: 11px; line-height: 1.6; color: var(--faint);
  text-align: center;
}
.article-body .trademark-note { text-align: left; padding: 20px 0 0; border-top: 1px solid var(--border); margin-top: 28px; }
