:root {
  --bg: #0D0F15; --s1: #13161E; --s2: #191D27; --s3: #212634;
  --text: #ECEFF5; --muted: #A2AABC; --accent: #38BDF8; --line: rgba(255,255,255,.07);
  --r6: 6px; --r9: 9px; --r12: 12px; --r16: 16px; --r22: 22px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --shadow: 0 10px 30px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.04) inset;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.7 "Segoe UI", system-ui, -apple-system, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 12px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: .02em; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(13,15,21,.75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand img { border-radius: var(--r9); }
.nav-links { display: flex; gap: 20px; margin-inline-start: auto; }
.nav-links a { color: var(--muted); font-size: 15px; transition: color .2s var(--ease); }
.nav-links a:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links { display: none; } .nav .btn { margin-inline-start: auto; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 22px; border-radius: var(--r12); border: 1px solid transparent;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible, input:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn.primary { background: var(--accent); color: #04121C; box-shadow: 0 8px 24px rgba(56,189,248,.28); }
.btn.primary:hover { box-shadow: 0 12px 32px rgba(56,189,248,.4); }
.btn.ghost { background: var(--s2); color: var(--text); border-color: var(--line); }
.btn.lg { padding: 16px 30px; font-size: 18px; border-radius: var(--r16); }
.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; }

/* hero */
.hero { padding: 72px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 10% auto; height: 700px; z-index: -1;
  background: radial-gradient(closest-side, rgba(56,189,248,.18), transparent);
}
.hero-logo { width: 104px; height: 104px; border-radius: var(--r22); box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(34px, 6vw, 60px); margin: 24px 0 16px; letter-spacing: -.01em; }
.hero h1 span { color: var(--accent); }
.hero .lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 32px; }
.hero-meta { margin-top: 14px; font-size: 14px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.pill { background: var(--s1); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: var(--muted); }
.pill b { color: var(--text); }

/* desktop mock */
.mock {
  margin: 56px auto 0; max-width: 980px; aspect-ratio: 16 / 9; position: relative;
  border-radius: var(--r22); border: 1px solid var(--line); box-shadow: var(--shadow);
  background:
    radial-gradient(60% 80% at 20% 10%, rgba(56,189,248,.25), transparent 60%),
    radial-gradient(60% 70% at 85% 90%, rgba(129,140,248,.22), transparent 60%),
    linear-gradient(160deg, #182033, #0E1220);
  overflow: hidden; text-align: start;
}
.island {
  position: absolute; top: 3%; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; padding: 8px 16px;
  background: #000; border-radius: 999px; font-size: clamp(9px, 1.4vw, 14px); color: #fff;
  box-shadow: 0 6px 20px rgba(0,0,0,.5); white-space: nowrap;
}
.island .eq { display: inline-flex; gap: 2px; align-items: end; height: 12px; }
.island .eq i { width: 3px; background: var(--accent); border-radius: 2px; animation: eq 1s var(--ease) infinite alternate; }
.island .eq i:nth-child(2) { animation-delay: .2s; } .island .eq i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { from { height: 3px; } to { height: 12px; } }
.w { position: absolute; background: rgba(19,22,30,.72); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: var(--r16); padding: 1.4%; font-size: clamp(8px, 1.2vw, 13px); }
.w .t { color: var(--muted); font-size: .85em; }
.w b { display: block; font-size: 2.2em; line-height: 1.1; }
.w.clock { top: 16%; right: 4%; width: 22%; }
.w.prayer { top: 47%; right: 4%; width: 22%; }
.w.prayer div { display: flex; justify-content: space-between; }
.w.prayer .now { color: var(--accent); }
.w.notes { top: 16%; left: 4%; width: 24%; height: 34%; }
.w.notes .tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.w.notes .tabs span { padding: 1px 8px; border-radius: var(--r6); background: var(--s3); }
.w.notes .tabs span:first-child { background: var(--accent); color: #04121C; }
.group { position: absolute; bottom: 8%; left: 50%; transform: translateX(-50%); width: 36%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6%; padding: 2.4%; }
.group i { aspect-ratio: 1; border-radius: 26%; display: block; }
.group i:nth-child(1) { background: linear-gradient(135deg,#f97316,#ef4444); }
.group i:nth-child(2) { background: linear-gradient(135deg,#22c55e,#16a34a); }
.group i:nth-child(3) { background: linear-gradient(135deg,#38bdf8,#6366f1); }
.group i:nth-child(4) { background: linear-gradient(135deg,#eab308,#f59e0b); }
.group i:nth-child(5) { background: linear-gradient(135deg,#a855f7,#ec4899); }
.group i:nth-child(6) { background: linear-gradient(135deg,#14b8a6,#0ea5e9); }
.group i:nth-child(7) { background: linear-gradient(135deg,#64748b,#334155); }
.group i:nth-child(8) { background: linear-gradient(135deg,#f43f5e,#be123c); }

/* features */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r16); padding: 24px; box-shadow: var(--shadow); }
.feature { transition: transform .3s var(--ease), border-color .3s var(--ease); }
.feature:hover { transform: translateY(-4px); border-color: rgba(56,189,248,.35); }
.feature .ic { width: 44px; height: 44px; border-radius: var(--r12); background: rgba(56,189,248,.12); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.feature .ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* screenshots */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.shot { margin: 0; }
.shot .ph {
  aspect-ratio: 16 / 10; border-radius: var(--r16); border: 1px dashed rgba(162,170,188,.3);
  background: var(--s1); display: grid; place-items: center; color: var(--muted); font-size: 14px; overflow: hidden;
}
.shot .ph img { width: 100%; height: 100%; object-fit: cover; }
.shot figcaption { margin-top: 10px; color: var(--muted); font-size: 15px; text-align: center; }

/* light */
.light { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; text-align: center; }
.light b { display: block; font-size: 40px; color: var(--accent); line-height: 1.2; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r12); padding: 0 20px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* cta + footer */
.cta { text-align: center; background: linear-gradient(180deg, transparent, rgba(56,189,248,.06)); }
footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* stats page */
.stats { padding: 32px 0 64px; }
.stats-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.stats h1 { font-size: 30px; }
.stats h2 { font-size: 22px; margin-top: 40px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-top: 24px; }
.tile b { display: block; font-size: 36px; color: var(--accent); }
.login { max-width: 380px; margin: 10vh auto 0; display: grid; gap: 12px; }
.login input { background: var(--s2); border: 1px solid var(--line); border-radius: var(--r9); padding: 12px; color: var(--text); font: inherit; }
.err { color: #f87171; margin: 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 8px; text-align: start; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
