:root {
  --paper: #f4efe4; --ink: #163a34; --muted: #61736c; --forest: #123c35;
  --clay: #cf684c; --gold: #d9a849; --line: rgba(22, 58, 52, .14);
  --serif: "Iowan Old Style", "Bodoni 72", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Gill Sans", "Trebuchet MS", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--sans); min-height: 100vh; overflow-x: hidden;
  background: radial-gradient(circle at 82% 4%, rgba(217,168,73,.2), transparent 27rem),
    linear-gradient(180deg, #f8f4eb 0%, var(--paper) 52%, #eee5d7 100%);
}
a { color: inherit; text-decoration: none; }
.grain {
  position: fixed; inset: 0; z-index: 20; pointer-events: none; opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.topbar, main, footer { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.topbar { min-height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 17px; }
.brand-mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: var(--paper); }
.brand-mark svg { width: 27px; fill: currentColor; }
nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
nav a:not(.nav-cta):hover, footer a:hover { color: var(--clay); }
.nav-cta { padding: 11px 17px; border: 1px solid var(--ink); border-radius: 999px; transition: .2s; }
.nav-cta:hover { color: var(--paper); background: var(--ink); }
.hero { min-height: 690px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; padding: 72px 0 92px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 23px; color: var(--clay); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow span { width: 27px; height: 2px; background: currentColor; }
.hero h1, .section-heading h2, .architecture h2, .closing h2 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: .99; letter-spacing: -.045em; }
.hero h1 { max-width: 690px; font-size: clamp(55px, 6.6vw, 88px); }
.hero h1 em { color: var(--clay); font-weight: 500; }
.lead { max-width: 610px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.72; }
.actions { display: flex; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; min-height: 51px; padding: 0 23px; justify-content: center; align-items: center; border-radius: 4px; font-size: 14px; font-weight: 800; transition: .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: #fffaf0; background: var(--forest); box-shadow: 0 12px 28px rgba(18,60,53,.18); }
.button.ghost { border: 1px solid var(--line); }
.trust-row { display: flex; align-items: center; gap: 11px; margin-top: 32px; color: #76847e; font-size: 12px; font-weight: 700; }
.trust-row i { width: 3px; height: 3px; border-radius: 50%; background: var(--clay); }
.phone-stage { min-height: 560px; display: grid; place-items: center; position: relative; }
.phone-stage::before { content: ""; position: absolute; width: 470px; aspect-ratio: 1; border-radius: 50%; background: var(--forest); box-shadow: 0 35px 80px rgba(18,60,53,.2); }
.orbit { position: absolute; border: 1px solid rgba(207,104,76,.35); border-radius: 50%; }
.orbit-one { width: 520px; height: 520px; animation: drift 10s ease-in-out infinite; }
.orbit-two { width: 570px; height: 430px; transform: rotate(-18deg); animation: drift 12s ease-in-out infinite reverse; }
.phone { position: relative; z-index: 2; width: 310px; min-height: 540px; padding: 27px 22px 20px; border: 6px solid #0b2823; border-radius: 38px; background: #fbf7ee; box-shadow: 0 28px 65px rgba(0,0,0,.3); transform: rotate(2.5deg); }
.phone::before { content: ""; position: absolute; top: 10px; left: 50%; width: 73px; height: 5px; border-radius: 9px; background: #153a34; transform: translateX(-50%); }
.phone-head { display: flex; justify-content: space-between; align-items: end; padding-top: 15px; }
.phone-head small, .phone-head strong { display: block; }
.phone-head small { color: #85908b; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.phone-head strong { margin-top: 3px; font-family: var(--serif); font-size: 19px; }
.live-dot { display: flex; align-items: center; gap: 5px; color: var(--clay); font-size: 9px; font-weight: 900; }
.live-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); box-shadow: 0 0 0 4px rgba(207,104,76,.14); animation: pulse 1.8s infinite; }
.next-prayer { margin: 23px 0 18px; padding: 25px 19px 23px; border-radius: 22px; color: #f8f3e8; text-align: center; background: linear-gradient(145deg,#1d574d,#0e322d); box-shadow: 0 13px 22px rgba(18,60,53,.21); }
.next-prayer > span { color: rgba(255,255,255,.64); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.next-prayer h2 { margin: 8px 0 3px; font-family: var(--serif); font-size: 28px; font-weight: 500; }
.countdown { color: #efbd61; font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .05em; }
.next-prayer small { color: rgba(255,255,255,.62); font-size: 10px; }
.prayer-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.prayer-grid div { display: flex; justify-content: space-between; padding: 11px 12px; border: 1px solid rgba(22,58,52,.09); border-radius: 10px; background: rgba(255,255,255,.52); }
.prayer-grid span { color: #687a73; font-size: 11px; }
.prayer-grid b { font-size: 12px; font-variant-numeric: tabular-nums; }
.sync-state { margin: 14px 0 0; color: #8b968f; font-size: 9px; text-align: center; }
.feature-section { padding: 120px 0 130px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 52px; }
.section-heading h2 { font-size: clamp(43px,5vw,67px); text-align: right; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature-card { min-height: 310px; padding: 27px; border: 1px solid var(--line); background: rgba(255,255,255,.3); position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; width: 140px; height: 140px; right: -75px; bottom: -75px; border: 1px solid currentColor; border-radius: 50%; opacity: .12; }
.feature-card.warm { color: #38261f; background: #df8b68; border-color: transparent; }
.feature-card.dark { color: #f5efe2; background: var(--forest); border-color: transparent; }
.feature-no { display: block; font-size: 10px; font-weight: 900; letter-spacing: .13em; opacity: .6; }
.feature-icon { display: grid; place-items: center; width: 50px; height: 50px; margin: 42px 0 22px; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 26px; }
.feature-icon.compass { transform: rotate(-30deg); }
.feature-card h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 26px; }
.feature-card p { max-width: 590px; margin: 0; font-size: 14px; line-height: 1.7; opacity: .75; }
.feature-card.wide { grid-column: span 3; min-height: 230px; display: flex; align-items: center; justify-content: space-between; padding: 42px 55px; background: #e6dccb; }
.feature-card.wide h3 { margin-top: 24px; font-size: 34px; }
.offline-visual { display: flex; align-items: end; gap: 7px; min-width: 235px; height: 110px; padding: 19px; border-left: 1px solid var(--line); }
.offline-visual span { width: 18px; background: var(--forest); opacity: .22; }
.offline-visual span:nth-child(1) { height: 27px; }.offline-visual span:nth-child(2) { height: 48px; }.offline-visual span:nth-child(3) { height: 73px; opacity: .8; }
.offline-visual b { margin: 0 0 5px 10px; font-family: var(--serif); font-size: 27px; }
.architecture { width: calc(100% + 80px); margin-left: -40px; padding: 78px 70px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; color: #f4eddf; background: var(--forest); box-shadow: 0 25px 55px rgba(18,60,53,.16); }
.architecture .eyebrow { color: #e9a97f; }.architecture h2 { font-size: clamp(40px,4vw,59px); }
.architecture > div > p:last-child { max-width: 530px; margin: 25px 0 0; color: rgba(255,255,255,.63); font-size: 15px; line-height: 1.75; }
.flow { display: flex; align-items: center; justify-content: center; gap: 14px; }
.flow div { width: 130px; min-height: 145px; padding: 18px 15px; display: flex; flex-direction: column; justify-content: end; border: 1px solid rgba(255,255,255,.18); }
.flow div.flow-main { color: var(--forest); background: #efb960; border: 0; transform: translateY(-14px); }
.flow small { margin-bottom: auto; opacity: .55; }.flow b { font-family: var(--serif); font-size: 20px; }.flow span { margin-top: 5px; font-size: 10px; opacity: .62; }.flow > i { color: #efb960; font-style: normal; }
.closing { padding: 145px 0 135px; text-align: center; }.crescent { display: block; color: var(--clay); font-family: var(--serif); font-size: 50px; }
.closing p { margin: 19px 0 8px; color: var(--muted); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.closing h2 { font-size: clamp(54px,7vw,90px); }.package { display: inline-block; margin-top: 22px; padding: 8px 13px; border: 1px solid var(--line); color: #76847e; font-family: monospace; font-size: 11px; }
footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #6e7b76; font-size: 12px; }
footer .small { color: var(--ink); font-size: 14px; } footer div { display: flex; gap: 23px; }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }.delay-1 { transition-delay: .12s; }.delay-2 { transition-delay: .24s; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(207,104,76,0); } }
@keyframes drift { 50% { transform: translateY(-12px) rotate(5deg); } }
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }.hero-copy { text-align: center; }.eyebrow,.actions,.trust-row { justify-content: center; }.lead { margin-inline: auto; }
  .section-heading { display: block; }.section-heading h2 { text-align: left; }.feature-grid { grid-template-columns: repeat(2,1fr); }
  .feature-card.dark,.feature-card.wide { grid-column: span 2; }.architecture { grid-template-columns: 1fr; gap: 55px; }
}
@media (max-width: 640px) {
  .topbar,main,footer { width: min(100% - 28px,1180px); }.topbar { min-height: 75px; }nav a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 9px 12px; font-size: 11px; }.brand { font-size: 14px; }.brand-mark { width: 34px; height: 34px; }
  .hero { min-height: auto; gap: 35px; padding: 58px 0 77px; }.hero h1 { font-size: clamp(47px,14.5vw,66px); }.lead { font-size: 16px; }.actions { flex-direction: column; }.trust-row { flex-wrap: wrap; }
  .phone-stage { min-height: 520px; transform: scale(.9); margin: -15px 0; }.phone-stage::before { width: 390px; }.orbit-one { width: 420px; height: 420px; }.orbit-two { width: 430px; height: 350px; }
  .feature-section { padding: 88px 0; }.feature-grid { grid-template-columns: 1fr; }.feature-card.dark,.feature-card.wide { grid-column: auto; }
  .feature-card.wide { min-height: 420px; display: block; padding: 32px 27px; }.offline-visual { margin-top: 35px; border: 0; border-top: 1px solid var(--line); }
  .architecture { width: calc(100% + 28px); margin-left: -14px; padding: 58px 25px; }.flow { gap: 6px; }.flow div { width: 30%; min-height: 125px; padding: 12px 9px; }.flow b { font-size: 15px; }
  .closing { padding: 105px 0; }footer { padding: 28px 0; flex-wrap: wrap; gap: 15px; }footer p { order: 3; width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }*,*::before,*::after { animation: none !important; transition: none !important; }.reveal { opacity: 1; transform: none; }
}
