/* ============ Hilal Reader — Marketing site ============ */
/* Light tech palette with brand purple accent. Mobile first. */

:root {
  --bg: #FAFAFE;
  --surface: #FFFFFF;
  --surface-2: #F4F4FB;
  --ink-900: #0F0A1F;
  --ink-700: #1F1738;
  --ink-500: #524B66;
  --ink-400: #6D6783;
  --ink-300: #9690A8;
  --border: #ECE9F5;
  --border-strong: #DCD6EC;

  --brand-50:  #F4EEFF;
  --brand-100: #E5D8FF;
  --brand-200: #C9ADFF;
  --brand-400: #8B5CF6;
  --brand-500: #7C3AED;
  --brand-600: #6D28D9;
  --brand-700: #5B21B6;

  --accent: #06B6D4;        /* cyan, tech accent */
  --accent-soft: #CFFAFE;

  --shadow-sm: 0 1px 2px rgba(31, 23, 56, .06), 0 1px 1px rgba(31, 23, 56, .04);
  --shadow-md: 0 6px 18px rgba(91, 33, 182, .08), 0 2px 6px rgba(31, 23, 56, .05);
  --shadow-lg: 0 24px 48px rgba(91, 33, 182, .14), 0 4px 12px rgba(31, 23, 56, .06);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --container: 1180px;

  --grad-brand: linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  --grad-soft: linear-gradient(135deg, #F4EEFF 0%, #E0F7FA 100%);
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; transition: color .15s; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink-900); letter-spacing: -.02em; line-height: 1.18; margin: 0; }
h1 { font-weight: 800; font-size: clamp(2rem, 1.4rem + 3.4vw, 3.4rem); }
h2 { font-weight: 700; font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
h3 { font-weight: 700; font-size: 1.125rem; }
p { margin: 0 0 .8em; color: var(--ink-500); }

button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ===== Decorative blobs ===== */
.blobs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px);
  opacity: .35; will-change: transform;
}
.blob--a { width: 520px; height: 520px; top: -200px; left: -120px;
  background: radial-gradient(closest-side, var(--brand-200), transparent 70%); }
.blob--b { width: 480px; height: 480px; top: 180px; right: -160px;
  background: radial-gradient(closest-side, #B2F5EA, transparent 70%); }
@media (max-width: 720px) { .blob--a { width: 320px; height: 320px; } .blob--b { width: 320px; height: 320px; } }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: rgba(250, 250, 254, .78);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink-900); font-weight: 700; }
.brand:hover { color: var(--brand-700); }
.brand img { border-radius: 10px; box-shadow: var(--shadow-sm); }
.brand__name { font-size: 1.05rem; letter-spacing: -.01em; }

.nav { display: none; gap: 28px; }
.nav a { color: var(--ink-500); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink-900); }
.nav a[aria-current="page"] { color: var(--brand-600); }
@media (min-width: 880px) { .nav { display: flex; } }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: .98rem; line-height: 1;
  padding: 12px 18px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn--sm { padding: 9px 14px; font-size: .9rem; }
.btn--lg { padding: 15px 24px; font-size: 1rem; }
.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .28);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(124, 58, 237, .36); color: #fff; }
.btn--ghost {
  background: var(--surface);
  color: var(--ink-700);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); color: var(--ink-900); }
.btn[aria-disabled="true"] { pointer-events: none; opacity: .85; }

/* ===== Eyebrow / chips ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 600; color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  padding: 6px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .08em;
}
.eyebrow--center { margin-inline: auto; }
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, .18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(124, 58, 237, .18); }
  50%       { box-shadow: 0 0 0 8px rgba(124, 58, 237, 0); }
}

.grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== HERO ===== */
.hero { position: relative; padding: 56px 0 40px; }
@media (min-width: 768px) { .hero { padding: 96px 0 72px; } }
.hero__grid {
  display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center;
  position: relative; z-index: 1;
}
@media (min-width: 960px) { .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 60px; } }
.hero__title { margin: 18px 0 18px; }
.hero__lede { font-size: 1.08rem; color: var(--ink-500); max-width: 540px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 20px; color: var(--ink-500); font-size: .9rem; }
.trust .check {
  display: inline-flex; width: 18px; height: 18px; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand-700); border-radius: 999px; font-weight: 700; font-size: .72rem; margin-right: 6px;
}

/* Hero visual: floating phones */
.hero__visual { position: relative; min-height: 480px; }
.phone {
  position: relative;
  width: min(280px, 70vw); aspect-ratio: 9/19;
  margin: 0 auto;
  border-radius: 36px;
  padding: 8px;
  background: linear-gradient(180deg, #1a1330, #0F0A1F);
  box-shadow: var(--shadow-lg), inset 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-3deg);
  transition: transform .4s ease;
}
.phone:hover { transform: rotate(-1deg) translateY(-4px); }
.phone__shot { width: 100%; height: 100%; object-fit: cover; border-radius: 28px; display: block; }
.phone--back {
  position: absolute; top: 28px; right: -10px;
  width: min(220px, 55vw);
  transform: rotate(7deg);
  opacity: .85;
  z-index: -1;
  filter: saturate(.85);
}
@media (max-width: 720px) { .phone--back { display: none; } }

.float-card {
  position: absolute;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 12px 14px; border-radius: 16px;
  box-shadow: var(--shadow-md);
  font-size: .85rem;
  backdrop-filter: blur(8px);
}
.float-card__icon {
  width: 36px; height: 36px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  font-size: 1.1rem;
}
.float-card__title { font-weight: 700; color: var(--ink-900); }
.float-card__sub { color: var(--ink-400); font-size: .78rem; }
.float-card--a { top: 20px; left: 0; }
.float-card--b { bottom: 30px; right: 0; }
@media (max-width: 720px) {
  .float-card--a { top: 0; left: 4%; }
  .float-card--b { bottom: 8px; right: 4%; }
}

/* ===== Formats strip ===== */
.formats { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255,255,255,.6); position: relative; z-index: 1; }
.formats__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 18px 28px; }
.formats__label { color: var(--ink-400); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.formats__list { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-family: 'JetBrains Mono', ui-monospace, "SF Mono", Consolas, monospace;
  font-size: .85rem; font-weight: 600; color: var(--ink-700);
  padding: 6px 14px; border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
}

/* ===== Section heads ===== */
.section-head {
  text-align: center; max-width: 720px; margin: 0 auto 48px;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.section-head h2 { max-width: 18ch; }
.section-head p { color: var(--ink-500); font-size: 1.05rem; }

/* ===== Features ===== */
.features { padding: 80px 0; position: relative; z-index: 1; }
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(1, 1fr); }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.feat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
  position: relative; overflow: hidden;
}
.feat::after {
  content: ''; position: absolute; inset: -1px;
  background: var(--grad-brand);
  border-radius: inherit;
  opacity: 0; transition: opacity .25s ease;
  z-index: -1;
  margin: -1px;
}
.feat:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-100);
}
.feat__icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-soft);
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feat h3 { margin-bottom: 8px; }
.feat p { color: var(--ink-500); font-size: .95rem; margin: 0; }

/* ===== Privacy strip ===== */
.privacy-strip {
  padding: 24px 0 48px; position: relative; z-index: 1;
}
.privacy-strip__inner {
  display: flex; gap: 22px; align-items: center; flex-wrap: wrap;
  background: var(--grad-soft);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
}
.privacy-strip__icon {
  width: 64px; height: 64px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 18px; background: rgba(255,255,255,.7);
  color: var(--brand-600);
  flex-shrink: 0;
}
.privacy-strip__inner h3 { font-size: 1.15rem; margin-bottom: 4px; }
.privacy-strip__inner p { margin: 0; max-width: 60ch; color: var(--ink-700); }
.privacy-strip__inner .btn { margin-left: auto; }
@media (max-width: 720px) {
  .privacy-strip__inner { padding: 22px 20px; }
  .privacy-strip__inner .btn { margin-left: 0; width: 100%; }
}

/* ===== Screenshots carousel ===== */
.screens { padding: 80px 0; position: relative; z-index: 1; }
.carousel { position: relative; }
.carousel__track {
  display: flex; gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 8px 4px 24px;
  scrollbar-width: thin;
}
.carousel__track::-webkit-scrollbar { height: 6px; }
.carousel__track::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }
.shot {
  flex: 0 0 auto; margin: 0;
  width: min(240px, 60vw); aspect-ratio: 9/19;
  border-radius: 28px;
  overflow: hidden;
  border: 8px solid #0F0A1F;
  box-shadow: var(--shadow-md);
  scroll-snap-align: center;
  background: #0F0A1F;
  transition: transform .25s ease, box-shadow .25s ease;
}
.shot:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--ink-700);
  box-shadow: var(--shadow-md);
  z-index: 2; transition: transform .15s ease;
}
.carousel__btn:hover { transform: translateY(-50%) scale(1.06); color: var(--brand-700); }
.carousel__btn--prev { left: -8px; }
.carousel__btn--next { right: -8px; }
@media (max-width: 720px) { .carousel__btn { display: none; } }

/* ===== FAQ ===== */
.faq { padding: 60px 0 80px; position: relative; z-index: 1; }
.faq__list {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 12px;
}
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: border-color .15s ease, background .15s ease;
}
.faq details[open] { border-color: var(--brand-100); background: var(--surface); }
.faq summary {
  list-style: none; cursor: pointer;
  font-weight: 600; color: var(--ink-900);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-size: 1.4rem; font-weight: 400;
  color: var(--brand-500); transition: transform .2s ease;
  line-height: 1;
}
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 12px 0 0; color: var(--ink-500); }

/* ===== CTA ===== */
.cta { padding: 60px 0 90px; position: relative; z-index: 1; }
.cta__inner {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 56px 32px;
  text-align: center;
  position: relative; overflow: hidden;
}
.cta__inner::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(600px 220px at 20% 0%, rgba(124,58,237,.4), transparent),
    radial-gradient(500px 200px at 90% 100%, rgba(6,182,212,.32), transparent);
  pointer-events: none;
}
.cta__inner > * { position: relative; z-index: 1; }
.cta__inner h2 { color: #fff; }
.cta__inner p { color: rgba(255,255,255,.78); max-width: 540px; margin: 12px auto 28px; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta .btn--ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.cta .btn--ghost:hover { background: rgba(255,255,255,.16); color: #fff; }

/* ===== Footer ===== */
.footer { padding: 36px 0; border-top: 1px solid var(--border); background: var(--surface); position: relative; z-index: 1; }
.footer__inner {
  display: grid; grid-template-columns: 1fr; gap: 20px;
  align-items: center;
}
@media (min-width: 768px) { .footer__inner { grid-template-columns: auto 1fr auto; } }
.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__brand img { border-radius: 8px; }
.footer__name { font-weight: 700; color: var(--ink-900); }
.footer__tag { font-size: .82rem; color: var(--ink-400); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; }
.footer__nav a { color: var(--ink-500); font-size: .9rem; }
.footer__nav a:hover { color: var(--ink-900); }
.footer__copy { color: var(--ink-400); font-size: .85rem; margin: 0; text-align: right; }
@media (max-width: 767px) { .footer__copy { text-align: center; } }

/* ===== Privacy / doc page ===== */
.doc { padding: 56px 0 80px; position: relative; z-index: 1; }
.doc__head { text-align: center; margin-bottom: 36px; }
.doc__head h1 { margin: 16px 0 8px; }
.doc__sub { color: var(--ink-400); font-size: .9rem; }

.doc__body {
  max-width: 780px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px clamp(20px, 4vw, 48px);
  box-shadow: var(--shadow-sm);
}
.doc__body .lead { font-size: 1.05rem; color: var(--ink-700); }
.doc__body h2 {
  font-size: 1.25rem; margin: 32px 0 10px;
  display: flex; align-items: center; gap: 10px;
}
.doc__body h2::before {
  content: ''; width: 6px; height: 22px; border-radius: 3px; background: var(--grad-brand); display: inline-block;
}
.doc__body ul { padding-left: 22px; margin: 0 0 .8em; }
.doc__body li { color: var(--ink-500); margin-bottom: 6px; }

.cards {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  margin: 28px 0 8px;
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.info-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  text-align: center;
}
.info-card__icon { font-size: 1.6rem; margin-bottom: 6px; }
.info-card h3 { font-size: 1rem; margin: 0 0 4px; }
.info-card p { color: var(--ink-500); font-size: .88rem; margin: 0; }

.perm-table {
  display: grid; gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 8px 0 16px;
}
.perm-row {
  display: grid; gap: 6px;
  grid-template-columns: 1fr;
  background: var(--surface);
  padding: 14px 18px;
}
@media (min-width: 640px) { .perm-row { grid-template-columns: 220px 1fr; gap: 18px; } }
.perm-name { font-weight: 600; color: var(--ink-900); }
.perm-desc { color: var(--ink-500); font-size: .95rem; }

.back-home { margin-top: 28px; }

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Focus styles ===== */
:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 3px;
  border-radius: 6px;
}
