@font-face {
  font-family: "Uthmanic Hafs";
  src:
    url("./assets/fonts/UthmanicHafs_V22.woff2") format("woff2"),
    url("./assets/fonts/UthmanicHafs_V22.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --surface-strong: #fcfaf3;
  --text: #191713;
  --muted: #6b6258;
  --border: rgba(45, 37, 28, 0.16);
  --accent: #25745c;
  --accent-strong: #174d3d;
  --ink: #1e293b;
  --shadow: rgba(48, 40, 32, 0.18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(135deg, rgba(37, 116, 92, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(30, 41, 59, 0.09), transparent 42%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 32px));
  min-height: 68px;
  margin: 0 auto;
  padding: 12px 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--accent);
  font-family: "Uthmanic Hafs", serif;
  font-size: 22px;
  box-shadow: 0 10px 30px rgba(48, 40, 32, 0.08);
}

.site-nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.site-footer a:hover,
.release-panel a:hover {
  color: var(--accent-strong);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  width: min(1160px, calc(100% - 32px));
  min-height: calc(100vh - 68px);
  margin: 0 auto;
  padding: 44px 0 76px;
}

.demo-wrap {
  position: relative;
}

.try-cue {
  position: absolute;
  right: 18px;
  top: -62px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-strong);
  font-family: "Segoe Print", "Bradley Hand ITC", cursive;
  font-size: 18px;
  font-weight: 800;
  transform: rotate(-6deg);
  pointer-events: none;
}

.dark-cue {
  position: absolute;
  right: 44px;
  bottom: -54px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--accent-strong);
  font-family: "Segoe Print", "Bradley Hand ITC", cursive;
  font-size: 16px;
  font-weight: 800;
  transform: rotate(4deg);
  pointer-events: none;
}

.cue-arrow {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 42px;
  line-height: 1;
  transform: rotate(26deg);
}

.dark-cue-arrow {
  display: inline-block;
  font-family: Georgia, serif;
  font-size: 38px;
  line-height: 1;
  transform: rotate(-8deg);
}

.hero-copy {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.lede,
.release-copy p,
.feature-grid p {
  color: var(--muted);
  line-height: 1.7;
}

.lede {
  max-width: 640px;
  margin-bottom: 30px;
  font-size: 19px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #fffdf8;
}

.button.secondary {
  background: color-mix(in srgb, var(--surface), transparent 24%);
  color: var(--ink);
}

.app-preview {
  --preview-bg: #f8f5ee;
  --preview-card: #fffdf8;
  --preview-text: #1d1914;
  --preview-muted: #75695e;
  --preview-border: rgba(45, 37, 28, 0.15);
  --preview-accent: #25745c;
  --preview-action: #174d3d;
  --preview-hover: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  border: 1px solid var(--preview-border);
  border-radius: 8px;
  background: var(--preview-bg);
  color: var(--preview-text);
  box-shadow:
    0 1px 2px rgba(48, 40, 32, 0.18),
    0 26px 80px var(--shadow);
}

.app-preview[data-theme="dark"] {
  --preview-bg: #151719;
  --preview-card: #1f2326;
  --preview-text: #ede7dc;
  --preview-muted: #aaa094;
  --preview-border: rgba(255, 255, 255, 0.13);
  --preview-accent: #7ec8ad;
  --preview-action: #b7efd9;
  --preview-hover: rgba(255, 255, 255, 0.06);
}

.window-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 32px 32px;
  gap: 8px;
  align-items: center;
  height: 38px;
  padding: 0 11px;
  border-bottom: 1px solid var(--preview-border);
  color: var(--preview-muted);
  font-size: 12px;
  font-weight: 750;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--preview-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--preview-accent), transparent 82%);
}

.window-control,
.arrow,
.metadata button,
.preview-footer button,
.ayah-select {
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
}

.window-control {
  display: grid;
  place-items: center;
  height: 26px;
  padding: 0;
  border-radius: 7px;
  cursor: pointer;
}

.window-control.close {
  color: #8f3939;
}

.selector-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  min-height: 35px;
  padding: 10px 24px 4px;
  color: var(--preview-muted);
  font-size: 12px;
  font-weight: 800;
}

.select-like,
.ayah-select {
  height: 23px;
  border-bottom: 1px solid color-mix(in srgb, var(--preview-muted), transparent 42%);
  color: var(--preview-text);
}

.select-like {
  min-width: 132px;
  padding-right: 24px;
  background:
    linear-gradient(45deg, transparent 50%, var(--preview-muted) 50%) right 8px center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--preview-muted) 50%, transparent 50%) right 4px center / 5px 5px no-repeat;
  text-align: center;
}

.ayah-select {
  width: 58px;
  appearance: none;
  padding: 0 18px 1px 0;
  background:
    linear-gradient(45deg, transparent 50%, var(--preview-muted) 50%) right 8px center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--preview-muted) 50%, transparent 50%) right 4px center / 5px 5px no-repeat;
  outline: none;
  cursor: pointer;
}

.progress {
  height: 3px;
  margin: 0 48px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--preview-muted), transparent 84%);
}

.progress span {
  display: block;
  width: 14.285%;
  height: 100%;
  border-radius: inherit;
  background: var(--preview-accent);
  transition: width 140ms ease;
}

.reader-layout {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  gap: 4px;
  padding: 4px 8px 8px;
}

.arrow {
  display: grid;
  place-items: center;
  min-height: 124px;
  padding: 0;
  color: var(--preview-muted);
  font-size: 22px;
  cursor: pointer;
}

.arrow:hover,
.metadata button:hover,
.preview-footer button:hover,
.window-control:hover {
  background: var(--preview-hover);
  border-color: var(--preview-border);
}

.verse-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-height: 124px;
  padding: 17px 28px 13px;
  border: 1px solid var(--preview-border);
  border-radius: 8px;
  background: var(--preview-card);
}

.ayah-line {
  align-self: center;
  margin: 0;
  font-family: "Uthmanic Hafs", "Times New Roman", serif;
  font-size: clamp(28px, 4.2vw, 39px);
  line-height: 1.45;
  text-align: right;
  white-space: normal;
}

.next-preview {
  color: var(--preview-muted);
  opacity: 0.34;
}

.metadata,
.release-row,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metadata {
  justify-content: flex-end;
  border-top: 0;
  padding-top: 6px;
  color: var(--preview-muted);
  font-size: 11px;
  font-weight: 750;
}

.metadata button {
  min-height: 22px;
  padding: 0 7px;
  border-radius: 7px;
  color: var(--preview-action);
  cursor: pointer;
  font-weight: 800;
}

.preview-footer {
  display: flex;
  justify-content: space-between;
  min-height: 36px;
  padding: 4px 24px 6px;
  border-top: 1px solid var(--preview-border);
}

.preview-footer button {
  justify-self: end;
  min-width: 68px;
  height: 24px;
  border-radius: 7px;
  color: var(--preview-action);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.section {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 78px 0;
}

.section-heading {
  max-width: 640px;
  margin-bottom: 32px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.76);
}

.release-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 40px;
  align-items: start;
}

.release-copy {
  max-width: 640px;
}

.release-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(48, 40, 32, 0.08);
}

.release-row {
  min-height: 68px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}

.release-row:last-child {
  border-bottom: 0;
}

.release-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.release-row strong,
.release-row a {
  max-width: 230px;
  text-align: right;
  font-size: 14px;
}

.release-row a {
  color: var(--accent-strong);
  font-weight: 850;
}

.site-footer {
  width: min(1160px, calc(100% - 32px));
  min-height: 82px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-footer a {
  color: var(--text);
}

@media (max-width: 900px) {
  .site-header {
    position: static;
  }

  .hero,
  .release-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .app-preview {
    max-width: 540px;
  }

  .try-cue {
    position: static;
    justify-content: flex-end;
    margin: 0 12px 10px 0;
    transform: rotate(-4deg);
  }

  .dark-cue {
    position: static;
    justify-content: flex-end;
    margin: 8px 18px 0 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-nav,
  .site-footer {
    align-items: flex-start;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
  }

  .site-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  h1 {
    font-size: 42px;
  }

  .hero {
    padding-top: 24px;
  }

  .app-preview {
    margin-inline: -4px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: auto;
  }

  .selector-row {
    padding-inline: 14px;
  }

  .progress {
    margin-inline: 36px;
  }

  .reader-layout {
    grid-template-columns: 24px minmax(0, 1fr) 24px;
    padding-inline: 4px;
  }

  .verse-card {
    padding: 18px 16px 12px;
  }

  .ayah-line {
    font-size: 31px;
  }

  .release-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .release-row strong,
  .release-row a {
    max-width: none;
    text-align: left;
  }
}
