:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1f2421;
  --muted: #5d6661;
  --accent: #1f6f5c;
  --accent-soft: #e7f0ec;
  --line: #e4e1d9;
  --shadow: 0 1px 2px rgba(31, 36, 33, 0.06), 0 10px 28px -14px rgba(31, 36, 33, 0.22);
  --frame: #101412;
  --frame-ring: rgba(0, 0, 0, 0);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121514;
    --surface: #181c1a;
    --text: #e9e7e1;
    --muted: #a3aba6;
    --accent: #6cc2a8;
    --accent-soft: #1a2622;
    --line: #2a302d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -14px rgba(0, 0, 0, 0.7);
    --frame: #050706;
    --frame-ring: rgba(255, 255, 255, 0.1);
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, .brand span, .countdown { font-family: ui-serif, "New York", "Iowan Old Style", Georgia, serif; }

a { color: var(--accent); }

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 22px; font-weight: 700; text-decoration: none; }
.brand .mark { width: 34px; height: 34px; }

.hero { background: linear-gradient(180deg, var(--accent-soft), var(--bg)); }
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: 0.02em; }
h1 { margin: 0 0 18px; font-size: 48px; line-height: 1.08; letter-spacing: -0.01em; }
.lead { max-width: 32em; margin: 0 0 28px; color: var(--muted); font-size: 19px; }
.soon { display: inline-flex; align-items: center; gap: 9px; margin: 0; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 15px; font-weight: 600; }
.soon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.phone { margin: 0; justify-self: center; }
.screen { width: 272px; overflow: hidden; border: 10px solid var(--frame); border-radius: 40px; background: var(--surface); box-shadow: 0 0 0 1px var(--frame-ring), 0 32px 64px -28px rgba(16, 20, 18, 0.55); }
.screen-top { padding: 26px 22px 22px; background: linear-gradient(160deg, #1f6f5c, #164f42); color: #f4f1ea; }
.city { margin: 0; font-size: 18px; font-weight: 700; }
.date { margin: 2px 0 0; font-size: 11.5px; line-height: 1.45; opacity: 0.8; }
.next-label { margin: 20px 0 0; font-size: 13px; opacity: 0.85; }
.countdown { margin: 0; font-size: 36px; font-weight: 600; line-height: 1.15; }
.times { margin: 0; padding: 10px 10px 4px; list-style: none; font-variant-numeric: tabular-nums; }
.times li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.times li.next { background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.adhan-chip { display: flex; align-items: center; gap: 7px; margin: 6px 14px 16px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--muted); font-size: 12.5px; }
.adhan-chip svg { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phone figcaption { margin-top: 14px; color: var(--muted); font-size: 12.5px; text-align: center; }

.section { padding-top: 56px; }
h2 { margin: 0 0 20px; font-size: 30px; line-height: 1.2; }

.icon { flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.features li { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.features li.wide { grid-column: 1 / -1; border-color: transparent; background: var(--accent-soft); box-shadow: none; }
.features .icon { width: 42px; height: 42px; padding: 8px; border-radius: 12px; background: var(--accent-soft); }
.features li.wide .icon { background: var(--surface); }
.features h3 { margin: 14px 0 6px; font-size: 18px; }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.panel { display: flex; gap: 20px; align-items: flex-start; padding: 30px; border-radius: 22px; background: linear-gradient(160deg, #1f6f5c, #164f42); color: #f4f1ea; }
.panel .icon { width: 44px; height: 44px; stroke: #f4f1ea; }
.panel h2 { margin: 0 0 8px; color: #ffffff; font-size: 26px; }
.panel p { max-width: 36em; margin: 0; color: rgba(244, 241, 234, 0.92); }

.other-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.other-langs h3 { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.other-langs p { margin: 0; color: var(--muted); font-size: 15px; }

.notfound { padding-top: 72px; padding-bottom: 72px; }

footer.site { margin-top: 64px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 18px; padding-bottom: 28px; }

@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 48px; }
  h1 { font-size: 36px; }
  .lead { font-size: 17px; }
  .section { padding-top: 44px; }
  h2 { font-size: 26px; }
  .features, .other-langs { grid-template-columns: 1fr; }
  .panel { flex-direction: column; padding: 24px; }
}
