/* NARD — site layout */

/* ── Top nav ───────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--s6);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 0.5px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  transition: background 200ms var(--ease), border-color 200ms var(--ease);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}
.nav__wordmark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 4px;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s5);
}
.nav__links a {
  text-decoration: none;
  color: var(--fg-mute);
  letter-spacing: 0.3px;
  transition: color 160ms var(--ease);
}
.nav__links a:hover { color: var(--fg); }
.nav__theme {
  background: transparent;
  border: 0.5px solid var(--line);
  color: var(--fg-mute);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}
.nav__theme:hover { color: var(--fg); background: var(--card); }
.nav__appstore {
  display: inline-flex;
  align-items: center;
  height: 36px;
}
.nav__appstore img { height: 36px; display: block; }

@media (max-width: 880px) {
  .nav { padding: 12px var(--s5); }
  .nav__links { gap: var(--s3); }
  .nav__links a { display: none; }
  .nav__appstore { display: none; }
}

/* ── Hero ──────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 var(--s6);
  max-width: 880px;
  width: 100%;
}
/* readability scrim — radial fade from center */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--bg) 28%, transparent) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  margin-bottom: var(--s5);
  padding: 6px 12px;
  border: 0.5px solid var(--line);
  border-radius: 9999px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hero__wordmark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(72px, 14vw, 180px);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--fg);
  margin: 0 0 var(--s3);
}
.hero__persian {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  letter-spacing: 6px;
  color: var(--fg-mute);
  margin-bottom: var(--s4);
}
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  color: var(--fg-mute);
  margin: 0 0 var(--s8);
  text-wrap: balance;
}
.hero__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s4);
}
.hero__appstore { height: 54px; transition: transform 160ms var(--ease); }
.hero__appstore:hover { transform: translateY(-2px); }
.hero__hint {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-faint);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero__hint .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--turquoise);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50%     { opacity: 1; transform: scale(1.4); }
}

.hero__scroll {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--fg-faint);
  text-transform: uppercase;
}

/* ── Section header ────────────────────────────────── */
.section {
  position: relative;
  padding: var(--s24) 0;
}
.section--tight { padding: var(--s16) 0; }

.section__heading {
  text-align: center;
  margin: 0 auto var(--s12);
  max-width: 760px;
  padding: 0 var(--s6);
}
.section__heading .eyebrow { margin-bottom: var(--s3); }
.section__heading h2 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
}
.section__heading .lede {
  font-style: italic;
  color: var(--fg-mute);
  font-size: clamp(18px, 2vw, 22px);
  margin-top: var(--s3);
}

/* ── Wallpaper showcase ────────────────────────────── */
.wallpaper {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s6);
  padding: var(--s10) 0;
  border-top: 0.5px solid var(--line);
}
.wallpaper:first-of-type { border-top: 0; }

.wallpaper__head {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--s6);
  width: 100%;
}
.wallpaper__head .eyebrow { color: var(--fg-mute); }
.wallpaper__head .eyebrow .num { color: var(--accent); }

.wallpaper__title {
  font-size: clamp(34px, 4.5vw, 52px);
  font-weight: 500;
  margin: 0;
  line-height: 1.05;
}
.wallpaper__desc {
  font-style: italic;
  color: var(--fg-mute);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 720px;
  margin: 4px 0 0;
}
.wallpaper__meta {
  display: flex;
  gap: var(--s4);
  margin-top: var(--s3);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.wallpaper__meta span::before {
  content: '◆';
  color: var(--gold);
  margin-right: 6px;
  font-size: 8px;
  vertical-align: middle;
}

.wallpaper__canvas-wrap {
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: var(--s5) auto 0;
  padding: 0 var(--s6);
}
.wallpaper__canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: var(--bg2);
  box-shadow: var(--card-elev);
  border: 0.5px solid var(--line);
}
.wallpaper__canvas canvas,
[data-shader] canvas {
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  cursor: crosshair;
}
.hero__canvas[data-shader] canvas { cursor: default; }
.wallpaper__corner {
  position: absolute;
  top: 14px; left: 22px;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  pointer-events: none;
  z-index: 2;
}
.wallpaper__corner .glyph {
  color: var(--gold);
  margin-right: 6px;
}

@media (max-width: 720px) {
  .wallpaper__canvas { aspect-ratio: 4 / 5; border-radius: var(--r-xl); }
}

/* ── Features ──────────────────────────────────────── */
.features {
  background: var(--bg2);
  border-top: 0.5px solid var(--line);
  border-bottom: 0.5px solid var(--line);
}
.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s12);
  align-items: start;
  max-width: 880px;
  margin: 0 auto;
}
@media (max-width: 880px) {
  .features__grid { gap: var(--s10); }
}

.feature {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s10);
  align-items: center;
}
@media (max-width: 720px) {
  .feature { grid-template-columns: 1fr; gap: var(--s5); justify-items: center; text-align: center; }
}

.feature__phone {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 9 / 19.5;
  position: relative;
  justify-self: center;
}
.feature__phone iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
.feature__phone-screen {
  position: absolute;
  inset: 8px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
}
.feature__phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feature__title {
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 6px;
}
.feature__desc {
  color: var(--fg-mute);
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  max-width: 36ch;
}
.feature__eyebrow {
  margin-bottom: 8px;
}

/* ── FAQ ───────────────────────────────────────────── */
.faq {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--s6);
}
.faq-list {
  background: var(--card);
  border-radius: var(--r-2xl);
  box-shadow: var(--card-elev);
  border: 0.5px solid var(--line);
  overflow: hidden;
}
.faq-item {
  border-top: 0.5px solid var(--line);
}
.faq-item:first-child { border-top: 0; }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  padding: var(--s5) var(--s6);
  background: transparent;
  border: 0;
  font-family: var(--serif);
  font-size: 19px;
  text-align: left;
  color: var(--fg);
  cursor: pointer;
  font-weight: 500;
}
.faq-q__chev {
  width: 14px; height: 14px;
  flex-shrink: 0;
  transition: transform 220ms var(--ease);
  color: var(--fg-faint);
}
.faq-item[aria-expanded="true"] .faq-q__chev { transform: rotate(90deg); color: var(--accent); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 280ms var(--ease);
}
.faq-item[aria-expanded="true"] .faq-a { grid-template-rows: 1fr; }
.faq-a > div {
  overflow: hidden;
  color: var(--fg-mute);
  font-size: 16px;
  line-height: 1.6;
}
.faq-a > div > p {
  margin: 0 var(--s6) var(--s5);
  padding-top: 4px;
}

/* ── Legal blocks ──────────────────────────────────── */
.legal {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--s6);
}
.legal-block {
  margin-bottom: var(--s12);
  scroll-margin-top: 100px;
}
.legal-block h3 {
  font-size: 32px;
  margin-bottom: var(--s3);
}
.legal-block p,
.legal-block li {
  color: var(--fg-mute);
  font-size: 16px;
  line-height: 1.65;
}
.legal-block ul { padding-left: 22px; }
.legal-block strong { color: var(--fg); font-weight: 500; }

/* ── Footer ────────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 0.5px solid var(--line);
  padding: var(--s12) 0 var(--s8);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s8);
  align-items: center;
}
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr; text-align: center; gap: var(--s6); }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer__wordmark {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 4px;
  font-weight: 500;
}
.footer__center { text-align: center; }
.footer__center img { height: 44px; }
.footer__links {
  display: flex;
  gap: var(--s5);
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.3px;
  justify-content: flex-end;
}
@media (max-width: 720px) {
  .footer__links { justify-content: center; }
}
.footer__links a {
  color: var(--fg-mute);
  text-decoration: none;
  transition: color 160ms var(--ease);
}
.footer__links a:hover { color: var(--fg); }
.footer__sig {
  text-align: center;
  color: var(--fg-faint);
  font-style: italic;
  margin-top: var(--s10);
  font-size: 14px;
  border-top: 0.5px solid var(--line);
  padding-top: var(--s5);
}

/* ── Iconography (logo glyph) ──────────────────────── */
.brand-glyph {
  width: 28px;
  height: 28px;
  display: inline-block;
}

/* ── App Store badge — official Apple-provided wordmark fallback rendering.
   Do NOT redesign. Replace src with the official badge SVG/PNG before launch. ── */
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 18px 0 14px;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  border: 0.5px solid rgba(255,255,255,0.2);
}
.appstore-badge.appstore-badge--sm { height: 40px; padding: 0 14px 0 10px; }
.appstore-badge svg { flex-shrink: 0; }
.appstore-badge .as-line1 {
  font-size: 10px;
  letter-spacing: 0.4px;
  opacity: 0.85;
  display: block;
  line-height: 1;
  margin-bottom: 3px;
}
.appstore-badge.appstore-badge--sm .as-line1 { font-size: 9px; margin-bottom: 2px; }
.appstore-badge .as-line2 {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.2px;
  line-height: 1;
}
.appstore-badge.appstore-badge--sm .as-line2 { font-size: 15px; }

/* In-page anchor scroll offset */
[id] { scroll-margin-top: 80px; }
