/* ALILOU DIGITAL LTD — Light SaaS / App Studio */
:root {
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-soft: #F1F5F9;
  --text: #0F172A;
  --muted: #64748B;
  --muted-dark: #94A3B8;
  --border: #E2E8F0;
  --primary: #2563EB;
  --accent: #7C3AED;
  --primary-soft: #EFF6FF;
  --accent-soft: #F5F3FF;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 4px 6px rgba(15, 23, 42, 0.04), 0 20px 48px rgba(15, 23, 42, 0.08);
  --gradient: linear-gradient(135deg, #2563EB, #7C3AED);
  --radius: 16px;
  --container: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Legacy aliases */
  --bg-elevated: var(--surface);
  --violet: var(--accent);
  --indigo: var(--primary);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.site { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }
.brand-logo {
  width: 40px; height: 40px; border-radius: 10px;
  object-fit: cover; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  border: 1px solid var(--border);
  background: var(--surface);
}
@media (min-width: 640px) {
  .brand-logo { width: 42px; height: 42px; border-radius: 11px; }
}
.brand-text { display: none; }
.brand-text strong { display: block; font-size: .9375rem; color: var(--text); }
.brand-text small { display: block; font-size: .625rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 640px) { .brand-text { display: block; } }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: .6rem; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  display: none; position: absolute; top: calc(100% + .5rem); right: 1rem;
  width: min(280px, calc(100% - 2rem));
  flex-direction: column; gap: .25rem;
  padding: .5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.nav.open { display: flex; }
.nav a { padding: .65rem .75rem; border-radius: 10px; color: var(--muted); font-size: .875rem; font-weight: 500; }
.nav a:hover, .nav a.active { background: var(--primary-soft); color: var(--primary); }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .navbar-inner { position: relative; }
  .nav {
    display: flex; position: static; width: auto; flex-direction: row;
    align-items: center; padding: 0; border: 0; background: transparent; box-shadow: none;
    gap: .15rem;
  }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.25rem; border-radius: 12px; font-size: .875rem; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; transition: .2s;
  line-height: 1.25; white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.btn-primary {
  background: var(--gradient); color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}
.btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28); }
.btn-ghost {
  border-color: var(--border); color: var(--text);
  background: var(--surface);
}
.btn-ghost:hover { border-color: #CBD5E1; background: var(--surface-soft); color: var(--primary); }
.btn-store {
  padding: .5rem .95rem; font-size: .8125rem; font-weight: 600;
  border-color: var(--border); background: var(--surface); color: var(--text);
  min-height: 2.25rem; border-radius: 10px;
}
.btn-store:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); transform: translateY(-1px); }
.btn-sm { padding: .55rem 1rem; font-size: .8125rem; min-height: 2.25rem; }
.store-buttons-sm .btn-store { padding: .45rem .8rem; font-size: .75rem; min-height: 2rem; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.5rem, 6vw, 3.5rem);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, rgba(37, 99, 235, 0.08), transparent 55%),
              radial-gradient(ellipse 60% 50% at 90% 10%, rgba(124, 58, 237, 0.06), transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.hero-content { position: relative; max-width: 620px; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin: 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.1; margin: .875rem 0 1.25rem; letter-spacing: -.03em; font-weight: 800; color: var(--text); }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: clamp(1rem, 2.5vw, 1.125rem); color: var(--muted); max-width: 540px; margin: 0; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.hero-actions .btn-primary { min-width: 10.5rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: .65rem 1.25rem; margin-top: 1.75rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hero-trust span { font-size: .8125rem; color: var(--muted); font-weight: 500; padding: .35rem .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }

.hero-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.hero-preview-label { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.25rem; }
.hero-preview .app-card-top { margin-bottom: 1rem; align-items: center; }
.hero-preview h3 { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.hero-preview h3 a:hover { color: var(--primary); }
.hero-preview .app-icon { width: 52px; height: 52px; border-radius: 14px; }
.hero-preview-desc { font-size: .9375rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.65; }
.hero-preview-badges { margin: 0 0 1.25rem !important; }
.hero-preview-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--surface-soft); border-block: 1px solid var(--border); }
.section-header { margin-bottom: 2.5rem; }
.section-header.center { text-align: center; }
.section-header h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); margin: .5rem 0 0; letter-spacing: -.02em; font-weight: 700; color: var(--text); }
.section-header p { color: var(--muted); max-width: 640px; margin-top: .75rem; font-size: 1.0625rem; }
.section-header.center p { margin-inline: auto; }

/* Cards & grids */
.grid-2 { display: grid; gap: 1.5rem; }
.grid-3 { display: grid; gap: 1.5rem; }
.grid-4 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 1.5rem;
  box-shadow: var(--shadow); transition: .2s;
}
.card:hover { border-color: #CBD5E1; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 1rem; font-size: 1rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.card p { margin: 0; font-size: .9375rem; color: var(--muted); line-height: 1.65; }

/* App cards */
.app-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 1.625rem;
  box-shadow: var(--shadow); transition: .2s; height: 100%;
  display: flex; flex-direction: column; gap: 0;
}
.app-card:hover { border-color: #CBD5E1; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.app-card-top { display: flex; gap: 1rem; align-items: center; }
.app-card-meta { min-width: 0; flex: 1; }
.app-card-meta h3 { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; }
.app-card-meta h3 a:hover { color: var(--primary); }
.app-card-subtitle { font-size: .875rem; margin: .25rem 0 0; line-height: 1.45; }
.app-card .badges { margin-top: .65rem; margin-bottom: 0; }
.app-card-desc { margin: .875rem 0 1rem; font-size: .9375rem; color: var(--muted); line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.app-card-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--border); }
.app-icon { width: 56px; height: 56px; border-radius: 16px; object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; box-shadow: var(--shadow); }
.app-icon-placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  color: var(--primary);
}
.app-icon-placeholder svg { width: 24px; height: 24px; }

.badges { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.badge { font-size: .6875rem; font-weight: 600; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--border); line-height: 1.2; }
.badge-muted { color: var(--muted); background: var(--surface-soft); }
.badge-ios { color: #1D4ED8; border-color: #BFDBFE; background: #EFF6FF; }
.badge-android { color: #15803D; border-color: #BBF7D0; background: #F0FDF4; }
.badge-web { color: #6D28D9; border-color: #DDD6FE; background: #F5F3FF; }

.store-buttons { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Stats */
.stats-bar {
  padding: 2.5rem 0;
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; text-align: center; }
.stat-value {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label { font-size: .8125rem; color: var(--muted); margin-top: .25rem; font-weight: 500; }
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* CTA */
.cta {
  position: relative; overflow: hidden; border-radius: 24px;
  border: 1px solid #BFDBFE;
  background: linear-gradient(135deg, #EFF6FF, #F5F3FF);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.cta h2 { margin: 0 0 .75rem; font-size: 1.75rem; font-weight: 700; color: var(--text); }
.cta p { color: var(--muted); max-width: 560px; margin: 0 0 1.5rem; font-size: 1.0625rem; }

/* Latest app highlight */
.latest-app {
  border: 1px solid #BFDBFE; border-radius: 24px;
  background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.latest-app-inner { display: grid; gap: 2rem; padding: 2rem; }
.latest-app-inner-single { max-width: 760px; }
@media (min-width: 900px) {
  .latest-app-inner { grid-template-columns: 1.15fr .85fr; padding: 2.5rem; align-items: center; }
  .latest-app-inner-single { grid-template-columns: 1fr; max-width: none; }
}
.latest-app-title { margin: 0; font-size: 1.5rem; font-weight: 800; line-height: 1.2; color: var(--text); }
.latest-app-desc { margin: 1.125rem 0 0; font-size: 1rem; color: var(--muted); line-height: 1.65; max-width: 52ch; }
.latest-app-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.5rem; }
.latest-app-screenshot {
  display: flex; justify-content: center; align-items: center;
  padding: .5rem;
}
.latest-app-screenshot img {
  max-height: 360px; width: auto; max-width: 100%;
  border-radius: 20px; border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.screenshot-placeholder {
  aspect-ratio: 9/16; max-height: 360px; margin-inline: auto;
  border: 1px dashed var(--border); border-radius: var(--radius);
  background: var(--surface-soft);
  display: grid; place-items: center; color: var(--muted); font-size: .875rem;
}

/* Filters */
.filters {
  display: flex; flex-direction: column; gap: .75rem;
  padding: 1rem; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); margin-bottom: 2rem; box-shadow: var(--shadow);
}
@media (min-width: 768px) { .filters { flex-direction: row; align-items: center; } }
.filters input, .filters select {
  flex: 1; padding: .7rem 1rem; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit;
}
.filters input::placeholder { color: var(--muted-dark); }
.filters input:focus, .filters select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

/* App detail gallery */
.gallery-main {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface-soft); overflow: hidden; min-height: 280px;
  display: grid; place-items: center; box-shadow: var(--shadow);
}
.gallery-main img { max-height: 480px; width: auto; max-width: 100%; margin: auto; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .75rem; padding-bottom: .25rem; }
.gallery-thumbs button {
  border: 2px solid var(--border); border-radius: 10px; padding: 0; background: var(--surface); cursor: pointer; opacity: .7; flex-shrink: 0;
}
.gallery-thumbs button.active, .gallery-thumbs button:hover { opacity: 1; border-color: var(--primary); }
.gallery-thumbs img { width: 48px; height: 80px; object-fit: cover; border-radius: 8px; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.feature-list li { display: flex; gap: .6rem; color: var(--muted); font-size: .9375rem; }
.feature-list li::before { content: "✓"; color: var(--primary); font-weight: 700; }
.tag-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; }
.tag {
  font-size: .8125rem; padding: .35rem .75rem; border-radius: 999px;
  background: var(--surface-soft); color: var(--muted); font-weight: 500; line-height: 1.2;
}
.tag-link { text-decoration: none; border: 1px solid var(--border); transition: .2s; color: #475569; }
.tag-link:hover { background: var(--primary-soft); border-color: #BFDBFE; color: var(--primary); }

.back-link { color: var(--muted); font-size: .875rem; font-weight: 500; }
.back-link:hover { color: var(--primary); }

/* Links page */
.links-page { max-width: 480px; margin: 0 auto; padding: 3rem 1rem 4rem; text-align: center; }
.links-logo {
  width: 80px; height: 80px; border-radius: 24px; margin: 0 auto 1rem;
  background: var(--gradient); display: grid; place-items: center;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.25);
}
.links-page h1 { font-size: 1.5rem; font-weight: 800; margin: 0; }
.link-stack { display: grid; gap: .75rem; margin-top: 2rem; }
.link-btn {
  display: flex; align-items: center; justify-content: center; gap: .75rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: .9375rem; transition: .2s;
  box-shadow: var(--shadow);
}
.link-btn:hover { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); transform: translateY(-1px); }
.latest-link-card {
  text-align: left; margin-top: 2rem; padding: 1.25rem;
  border: 1px solid #BFDBFE; border-radius: var(--radius);
  background: var(--primary-soft); box-shadow: var(--shadow);
}

/* Footer */
.footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: auto; padding: 2.25rem 0 0; }
.footer-grid { display: grid; gap: 1.5rem; padding-bottom: 1.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer .brand-row { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.footer .brand-logo { width: 38px; height: 38px; border-radius: 10px; }
.footer .brand-row strong { display: block; font-size: .9375rem; }
.footer .brand-row .muted { display: block; font-size: .75rem; }
.footer h4 { font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 1rem; font-weight: 700; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: .6rem; }
.footer-bottom {
  display: flex; flex-direction: column; gap: .5rem; align-items: center;
  border-top: 1px solid var(--border); padding: 1.5rem 0; font-size: .8125rem; color: var(--muted);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }
.link-accent { color: var(--primary); font-size: .9375rem; font-weight: 600; }
.link-accent:hover { color: var(--accent); }
.muted { color: var(--muted); }
.footer-brand p { color: var(--muted); font-size: .9375rem; max-width: 420px; line-height: 1.65; margin: 0 0 1rem; }
.footer-email {
  display: inline-block; color: var(--primary); font-size: .9375rem; font-weight: 600;
}
.footer-email:hover { color: var(--accent); }
.footer a { color: #475569; font-size: .9375rem; font-weight: 500; line-height: 1.5; }
.footer a:hover { color: var(--primary); }

/* Legal / contact / pages */
.page-content { padding: 3rem 0 4rem; }
.page-content h1, .page-content h2 { color: var(--text); }
.prose { max-width: 720px; }
.prose h2 { margin-top: 2rem; font-size: 1.25rem; font-weight: 700; color: var(--text); }
.prose p, .prose li { color: var(--muted); font-size: .9375rem; line-height: 1.7; }

.empty-state {
  text-align: center; padding: 3rem 1.5rem;
  border: 1px dashed var(--border); border-radius: var(--radius);
  color: var(--muted); background: var(--surface);
}

.hidden { display: none !important; }

/* Blog listing */
.blog-grid { margin-top: 1rem; }
.blog-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); overflow: hidden;
  box-shadow: var(--shadow); transition: .2s;
}
.blog-card:hover { border-color: #CBD5E1; box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.blog-card-cover {
  display: block; overflow: hidden;
  background: var(--surface-soft); max-height: 160px;
}
.blog-card-cover img {
  width: 100%; height: 160px; object-fit: cover; transition: transform .3s;
}
.blog-card:hover .blog-card-cover img { transform: scale(1.03); }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.375rem; gap: .875rem; }
.blog-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8125rem; }
.blog-card-date { font-size: .8125rem; color: var(--muted-dark); }
.blog-card h3 { margin: 0; font-size: 1.125rem; line-height: 1.4; font-weight: 700; }
.blog-card h3 a:hover { color: var(--primary); }
.blog-card-excerpt {
  margin: 0; flex: 1; font-size: .9375rem; color: var(--muted); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .btn-ghost { align-self: flex-start; margin-top: .25rem; }

/* Blog article */
.blog-article {
  max-width: 780px;
  margin-inline: auto;
}
.blog-article-header h1 { font-size: clamp(1.75rem, 4vw, 2.375rem); line-height: 1.2; margin: .75rem 0; font-weight: 800; color: var(--text); }

.blog-post-thumbnail-wrap {
  width: 200px;
  max-width: 200px;
  margin: 24px auto 32px;
}
.blog-post-thumbnail-img {
  display: block;
  width: 200px !important;
  height: 200px !important;
  max-width: 200px !important;
  max-height: 200px !important;
  object-fit: cover;
  border-radius: 24px;
  margin: 0 auto;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
@media (max-width: 640px) {
  .blog-post-thumbnail-wrap { width: 180px; max-width: 180px; }
  .blog-post-thumbnail-img {
    width: 180px !important; height: 180px !important;
    max-width: 180px !important; max-height: 180px !important;
  }
}

.article-content {
  max-width: 780px;
  font-size: 1.0625rem; line-height: 1.8; color: #334155;
}
.article-content > *:first-child { margin-top: 0; }
.article-content > *:last-child { margin-bottom: 0; }
.article-content h2 {
  margin: 2.25rem 0 1rem; font-size: 1.5rem; line-height: 1.3; color: var(--text); font-weight: 700;
}
.article-content h3 {
  margin: 1.75rem 0 .75rem; font-size: 1.25rem; line-height: 1.35; color: var(--text); font-weight: 700;
}
.article-content h4 {
  margin: 1.5rem 0 .5rem; font-size: 1.0625rem; line-height: 1.4; color: var(--text); font-weight: 600;
}
.article-content p { margin: 0 0 1.25rem; }
.article-content ul, .article-content ol { margin: 0 0 1.25rem; padding-left: 1.5rem; }
.article-content li { margin-bottom: .5rem; }
.article-content li > ul, .article-content li > ol { margin-top: .5rem; margin-bottom: 0; }
.article-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.article-content a:hover { color: var(--accent); }
.article-content blockquote {
  margin: 1.5rem 0; padding: 1rem 1.25rem;
  border-left: 3px solid var(--primary);
  background: var(--primary-soft); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--muted); font-style: italic;
}
.article-content strong, .article-content b { color: var(--text); font-weight: 600; }
.article-content em, .article-content i { font-style: italic; }

.blog-app-cta {
  margin-top: 2.5rem; padding: 1.75rem;
  border: 1px solid #BFDBFE; border-radius: var(--radius);
  background: linear-gradient(135deg, #FFFFFF, #F8FAFC);
  box-shadow: var(--shadow);
}
.blog-app-cta .eyebrow { margin-bottom: .75rem; display: block; }
.blog-app-cta h3 a:hover { color: var(--primary); }
.blog-app-cta-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}
.blog-app-cta-prominent {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 2rem;
  border-color: #93C5FD;
  background: linear-gradient(135deg, #EFF6FF, #FFFFFF);
  box-shadow: var(--shadow-lg);
}
.blog-app-cta-prominent .eyebrow { font-size: .75rem; }
.blog-app-cta-lead {
  margin: -.35rem 0 1rem;
  color: var(--muted);
  font-size: .9375rem;
}
.blog-app-cta-prominent .blog-app-cta-actions { margin-top: 1.25rem; gap: .75rem; }

.home-trust .trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .home-trust .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .home-trust .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.trust-card h3 { font-size: .9375rem; margin-bottom: .35rem; }
.trust-card p { font-size: .8125rem; margin: 0; }

.support-apps-grid { margin-top: .5rem; }
.support-app-card .app-card-top { align-items: flex-start; }
.support-app-links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .875rem;
  margin-top: .875rem;
  padding-top: .875rem;
  border-top: 1px solid var(--border);
  font-size: .8125rem;
}

.press-facts-section { margin-top: 2.5rem; }
.press-facts-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .press-facts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .press-facts-grid { grid-template-columns: repeat(4, 1fr); }
}
.press-fact-card p { margin: 0; font-size: .875rem; line-height: 1.55; }

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  margin-top: .75rem;
}
.support-apps-list {
  display: grid;
  gap: .75rem;
  max-width: 640px;
}
.support-app-item {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.support-app-item:hover {
  border-color: #BFDBFE;
  box-shadow: var(--shadow);
}
.support-app-item strong { display: block; font-size: .9375rem; }
.support-app-item small { display: block; margin-top: .15rem; }

.press-brand-card {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.press-brand-logo {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
}
.press-app-card .app-card-top { align-items: flex-start; }

.section-footer-link { margin-top: 1.25rem; text-align: center; }

/* Homepage blog grid — 1 or 2 posts */
.blog-grid-home { display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .blog-grid-home:not(.blog-grid-single):not(.blog-grid-double) { grid-template-columns: repeat(3, 1fr); }
  .blog-grid-home.blog-grid-double { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin-inline: auto; }
}
.blog-grid-home.blog-grid-single { max-width: 480px; margin-inline: auto; }
.blog-grid-single .blog-card { border-color: #BFDBFE; box-shadow: var(--shadow-lg); }
.blog-grid-single .blog-card-body { padding: 1.5rem; gap: 1rem; }
.blog-grid-single .blog-card h3 { font-size: 1.25rem; line-height: 1.35; }
.blog-grid-single .blog-card-excerpt {
  -webkit-line-clamp: 4; font-size: 1rem; line-height: 1.65;
}
.blog-grid-single .blog-card-cover,
.blog-grid-single .blog-card-cover img { max-height: 180px; height: 180px; }

/* Blog article readability */
.blog-article-header {
  margin: 1.5rem 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.blog-article-excerpt { font-size: 1.125rem; color: var(--muted); margin: 0; line-height: 1.7; max-width: 68ch; }
.article-content { font-size: 1.0625rem; line-height: 1.85; color: #334155; }
.article-content p { margin: 0 0 1.35rem; }
.article-content li { line-height: 1.7; margin-bottom: .6rem; }

/* Mobile polish */
@media (max-width: 767px) {
  .hero-grid { gap: 2rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; min-width: 9rem; }
  .hero-preview { padding: 1.25rem; }
  .hero-trust span { font-size: .75rem; }
  .section { padding: 3rem 0; }
  .section-header { margin-bottom: 2rem; }
  .app-card { padding: 1.25rem; }
  .latest-app-inner { padding: 1.5rem; }
  .latest-app-title { font-size: 1.35rem; }
  .cta { padding: 1.75rem; }
  .cta h2 { font-size: 1.5rem; }
  .footer { padding-top: 2.5rem; }
  .blog-card-body { padding: 1.125rem; }
  .nav .btn-primary { width: 100%; justify-content: center; margin-top: .25rem; }
}

/* Hero decorative blobs */
.hero-blobs {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.hero-blob {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.45;
}
.hero-blob-1 {
  width: 420px; height: 420px; top: -120px; left: -80px;
  background: rgba(37, 99, 235, 0.18);
}
.hero-blob-2 {
  width: 360px; height: 360px; top: 40px; right: -100px;
  background: rgba(124, 58, 237, 0.14);
}
.hero-grid { position: relative; z-index: 1; }

/* Fade-up reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1; transform: none; transition: none;
  }
  .card:hover, .app-card:hover, .blog-card:hover, .btn-primary:hover, .link-btn:hover {
    transform: none;
  }
}

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 1.25rem; font-size: .8125rem; }
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  list-style: none; padding: 0; margin: 0; color: var(--muted);
}
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumbs li + li::before {
  content: "/"; color: var(--muted-dark); font-weight: 400;
}
.breadcrumbs a { color: var(--muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs [aria-current="page"] { color: var(--text); font-weight: 600; }

/* App detail polish */
.app-detail .app-detail-section {
  margin-top: 2.25rem;
  max-width: 720px;
}
.app-detail .app-detail-section-header {
  margin-bottom: 1rem;
}
.app-detail .app-detail-section-header h2 {
  margin-bottom: .35rem;
}
.app-detail .app-detail-section-header p {
  margin: 0;
  font-size: .9375rem;
  color: var(--muted);
}
.app-detail .app-detail-related,
.app-detail .app-detail-related-apps {
  max-width: none;
}
.app-detail-header { display: grid; gap: 2rem; margin-top: 1.5rem; max-width: none; }
@media (min-width: 900px) {
  .app-detail-header { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
.app-detail-title { margin: 0; font-size: 2rem; font-weight: 800; line-height: 1.15; }
.app-detail-lead { margin-top: 1.25rem; font-size: 1.0625rem; line-height: 1.65; color: var(--text); }
.app-detail-actions { margin-top: 1.25rem; }
.app-detail-links { margin-top: .875rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.app-detail-about-section h2,
.app-detail-features-section h2 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
}
.app-detail-about-copy {
  color: var(--text);
  line-height: 1.75;
}
.app-detail-about-copy p {
  margin: 0 0 1rem;
}
.app-detail-about-copy p:last-child {
  margin-bottom: 0;
}
.app-detail-disclaimer {
  margin-top: 1.125rem;
  padding: .875rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.55;
}
.app-detail-disclaimer p { margin: 0; }
.app-detail-features { max-width: 720px; }
.app-detail-features-section .feature-list {
  gap: .75rem;
  margin-top: .25rem;
}
.app-detail-meta-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .app-detail-meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.app-detail-meta-block .eyebrow {
  margin: 0 0 .4rem;
}
.app-detail-meta-value {
  margin: 0;
  color: var(--muted);
  font-size: .9375rem;
  line-height: 1.55;
}
.app-detail-meta-block .tag-list {
  margin-top: .15rem;
}
.app-detail-meta-block .tag-link {
  font-size: .8125rem;
  padding: .3rem .65rem;
}
.app-detail-faq .faq-section {
  margin-top: 0;
}
.app-detail-faq .faq-section > h2 {
  margin: 0 0 1rem;
  font-size: 1.375rem;
}
.app-related-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .app-related-grid:not(.app-related-grid-single):not(.app-related-grid-double) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-related-grid.app-related-grid-double {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 880px;
  }
}
.app-related-grid.app-related-grid-single {
  max-width: 420px;
}
.app-detail-about-section + .app-detail-cta { margin-top: 2rem; }
.app-detail-header + .app-detail-section,
.app-detail-header + .app-detail-cta {
  margin-top: 2.25rem;
}
.app-detail-cta + .app-detail-section {
  margin-top: 2.25rem;
}

/* App Store primary CTA */
.btn-appstore-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 1rem 1.75rem; border-radius: 14px;
  font-size: 1rem; font-weight: 700; line-height: 1.25;
  color: #fff; text-align: center;
  background: linear-gradient(135deg, #2563EB 0%, #7C3AED 100%);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space: normal;
  max-width: 100%;
}
.btn-appstore-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 99, 235, 0.38);
  color: #fff;
}
.btn-appstore-primary:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.btn-appstore-primary--compact {
  padding: .65rem 1rem;
  font-size: .8125rem;
  border-radius: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-store-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .55rem 1rem; border-radius: 10px;
  font-size: .8125rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  transition: .2s;
}
.btn-store-secondary:hover {
  border-color: #CBD5E1; color: var(--text); background: var(--surface-soft);
}

.store-buttons-hero {
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
}
.store-buttons-hero .btn-appstore-primary {
  width: min(100%, 22rem);
  min-height: 3.25rem;
}
.store-buttons-primary {
  display: flex; flex-direction: column; align-items: flex-start; gap: .65rem;
}
.store-buttons-primary .btn-appstore-primary {
  width: min(100%, 20rem);
}
.store-buttons-secondary {
  display: flex; flex-wrap: wrap; gap: .5rem;
}
.store-coming-soon {
  margin: 0; font-size: .9375rem; font-weight: 600; color: var(--muted);
  padding: .75rem 1rem; border: 1px dashed var(--border); border-radius: 12px;
  background: var(--surface-soft);
}

.app-detail-cta {
  margin-top: 0;
  margin-bottom: 0;
  max-width: 720px;
}
.app-detail-cta-inner {
  max-width: none;
  padding: 1.375rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--primary-soft) 100%);
  box-shadow: var(--shadow);
  text-align: start;
}
.app-detail-cta-inner h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 3vw, 1.375rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.app-detail-cta .store-buttons-primary .btn-appstore-primary {
  width: min(100%, 26rem);
  min-height: 3.375rem;
  font-size: 1.03125rem;
}

.mobile-download-bar {
  display: none;
}
@media (max-width: 767px) {
  body.has-mobile-download-bar .main {
    padding-bottom: 5.75rem;
  }
  body.has-mobile-download-bar .footer {
    padding-bottom: 1rem;
  }
  .mobile-download-bar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: .65rem .85rem calc(.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.1);
    backdrop-filter: blur(12px);
  }
  .mobile-download-bar-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; max-width: var(--container); margin-inline: auto;
  }
  .mobile-download-bar-meta {
    display: flex; align-items: center; gap: .65rem;
    min-width: 0; flex: 1;
  }
  .mobile-download-bar-meta .app-icon {
    width: 40px; height: 40px; border-radius: 10px;
  }
  .mobile-download-bar-name {
    font-size: .875rem; font-weight: 700; color: var(--text);
    line-height: 1.25;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .app-detail .app-detail-section { margin-top: 1.625rem; }
  .app-detail-header { gap: 1.5rem; margin-top: 1rem; }
  .app-detail-header + .app-detail-section,
  .app-detail-header + .app-detail-cta,
  .app-detail-cta + .app-detail-section {
    margin-top: 1.625rem;
  }
  .app-detail-title { font-size: 1.625rem; }
  .app-detail-cta-inner { padding: 1.125rem 1rem; }
}

/* FAQ */
.faq-section { margin-top: 2.5rem; }
.faq-section h2 { margin-bottom: 1rem; font-size: 1.375rem; }
.faq-list { display: grid; gap: .75rem; max-width: 720px; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); padding: 0 1rem; box-shadow: var(--shadow);
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--text);
  padding: 1rem 0; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--primary); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 0 1rem; color: var(--muted); line-height: 1.65; font-size: .9375rem; }

/* Homepage — compact section rhythm */
.home-hero {
  padding: 4rem 0 3rem;
}
.home-hero .hero-grid { gap: 2rem; }
@media (min-width: 960px) { .home-hero .hero-grid { gap: 2.25rem; } }
.home-hero .hero h1 { margin: .625rem 0 .875rem; }
.home-hero .hero-actions { margin-top: 1.25rem; }
.home-hero .hero-trust { margin-top: 1.125rem; padding-top: .875rem; }
.home-hero .hero-preview { padding: 1.25rem; }
.home-hero .hero-preview-label { margin-bottom: .875rem; }
.home-hero .hero-preview-desc { margin-bottom: .75rem; }
.home-hero .hero-preview-badges { margin-bottom: .875rem !important; }

.home-stats {
  padding: 1.25rem 0;
  border-block: 1px solid var(--border);
}
.home-stats + .home-section { padding-top: 2.75rem; }

.home-section.section { padding: 3rem 0; }
.home-section .section-header { margin-bottom: 1.75rem; }
.home-section .section-header p { margin-top: .5rem; font-size: 1rem; }
.home-section .grid-3,
.home-section .grid-4 { gap: 1.25rem; }
.home-section .app-card { padding: 1.25rem; }
.home-section .app-card-desc { margin: .625rem 0 .75rem; }
.home-section .app-card-actions { padding-top: .625rem; }
.home-section .card { padding: 1.25rem; }
.home-section .card-icon { margin-bottom: .75rem; }
.home-section .blog-grid { margin-top: 0; }
.home-section .blog-card-body { padding: 1.125rem; gap: .75rem; }

.home-section .latest-app-inner { padding: 1.375rem; gap: 1.25rem; }
@media (min-width: 900px) {
  .home-section .latest-app-inner { padding: 1.5rem 1.75rem; gap: 1.5rem; }
}
.home-section .latest-app-desc { margin-top: .75rem; }
.home-section .latest-app-actions { margin-top: .875rem; }
.home-section .latest-app-screenshot img { max-height: 280px; }

.home-section .cta { padding: 1.75rem 1.5rem; }
.home-section .cta h2 { font-size: 1.5rem; margin-bottom: .5rem; }
.home-section .cta p { margin-bottom: 1rem; font-size: 1rem; }

@media (max-width: 767px) {
  .home-hero { padding: 2.25rem 0; }
  .home-stats { padding: 1rem 0; }
  .home-stats + .home-section { padding-top: 2rem; }
  .home-section.section { padding: 2.25rem 0; }
  .home-section .section-header { margin-bottom: 1.5rem; }
  .home-section .latest-app-inner { padding: 1.125rem; }
  .home-section .latest-app-screenshot img { max-height: 240px; }
  .home-section .cta { padding: 1.375rem 1.125rem; }
  .footer { padding-top: 2rem; }
}

/* Language switcher */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: .25rem .45rem;
  border-radius: 999px;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
}
.lang-switch:hover { color: var(--text); background: var(--surface-soft); }
.lang-switch.active { color: #fff; background: var(--gradient); }
.navbar .lang-switcher { margin-inline: .25rem; }
.footer-brand .lang-switcher { margin-top: 1rem; }

/* RTL support (Arabic) */
[dir="rtl"] body { text-align: start; }
[dir="rtl"] .navbar-inner,
[dir="rtl"] .nav,
[dir="rtl"] .hero-actions,
[dir="rtl"] .app-card-actions,
[dir="rtl"] .store-buttons-hero,
[dir="rtl"] .store-buttons-primary,
[dir="rtl"] .store-buttons-secondary,
[dir="rtl"] .mobile-download-bar-inner { direction: rtl; }
[dir="rtl"] .mobile-download-bar-meta { flex-direction: row-reverse; }
[dir="rtl"] .app-detail-cta-inner { text-align: start; }
[dir="rtl"] .filters,
[dir="rtl"] .store-buttons,
[dir="rtl"] .footer-grid,
[dir="rtl"] .breadcrumbs ol,
[dir="rtl"] .tag-list,
[dir="rtl"] .latest-app-actions,
[dir="rtl"] .hero-preview-actions { direction: rtl; }
[dir="rtl"] .section-header,
[dir="rtl"] .page-content,
[dir="rtl"] .article-content,
[dir="rtl"] .blog-card-body,
[dir="rtl"] .app-detail-about-copy,
[dir="rtl"] .app-detail-disclaimer,
[dir="rtl"] .feature-list,
[dir="rtl"] .faq-item p { text-align: start; }
[dir="rtl"] .breadcrumbs li + li::before { content: "‹"; margin-inline: .35rem; }
[dir="rtl"] .nav-toggle { margin-inline-start: auto; margin-inline-end: 0; }
[dir="rtl"] .brand { flex-direction: row-reverse; }
[dir="rtl"] .app-card-top,
[dir="rtl"] .blog-card-meta,
[dir="rtl"] .footer-brand .brand-row { flex-direction: row-reverse; }
[dir="rtl"] .grid-2,
[dir="rtl"] .grid-3,
[dir="rtl"] .grid-4,
[dir="rtl"] .stats-grid,
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .feature-list { padding-inline-start: 1.25rem; padding-inline-end: 0; }
[dir="rtl"] .card ul { padding-inline-start: 1rem; padding-inline-end: 0; }
