:root {
  --bg: #efe6d8;
  --bg-soft: #f8f4ec;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-strong: #fffaf1;
  --text: #18352c;
  --text-soft: #4d6259;
  --line: rgba(24, 53, 44, 0.12);
  --green: #204f42;
  --green-soft: #d5e4db;
  --gold: #c78f2a;
  --gold-soft: #f2dfba;
  --shadow: 0 24px 60px rgba(32, 57, 48, 0.12);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(199, 143, 42, 0.2), transparent 32%),
    radial-gradient(circle at top right, rgba(32, 79, 66, 0.16), transparent 28%),
    linear-gradient(180deg, #f6efe3 0%, #ece1cf 100%);
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 24px;
  background: rgba(255, 250, 241, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--green) 0%, #2d6958 100%);
  color: #fffdf8;
  font-size: 1.5rem;
  font-weight: 700;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1rem;
  font-weight: 800;
}

.brand-copy span:last-child {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav a {
  color: var(--text-soft);
  font-weight: 600;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: var(--green-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--green);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.surface-card,
.panel-card {
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-copy {
  padding: 42px;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 5vw, 5.4rem);
}

.hero-text,
.surface-card p,
.feature-card p,
.panel-card p,
.panel-card li,
.support-note,
.form-note,
.site-footer p {
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-text {
  max-width: 60ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--green) 0%, #2f6958 100%);
  color: #fffdf9;
  box-shadow: 0 16px 30px rgba(32, 79, 66, 0.24);
}

.button-secondary {
  border-color: rgba(32, 79, 66, 0.16);
  background: rgba(255, 255, 255, 0.6);
  color: var(--green);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.hero-metrics article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.42);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 800;
}

.hero-metrics span {
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.5;
}

.hero-panel {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.panel-card {
  padding: 22px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.58);
}

.panel-label {
  margin-bottom: 14px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.verse-preview {
  padding: 18px;
  border-radius: 20px;
  background: #fffdfa;
}

.verse-preview-arabic {
  margin: 0 0 12px;
  font-size: 1.8rem;
  line-height: 1.7;
  text-align: right;
}

.verse-preview-translation {
  margin: 0;
}

.progress-line {
  margin-top: 16px;
}

.progress-line span {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-soft);
}

.progress-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(32, 79, 66, 0.12);
  overflow: hidden;
}

.progress-fill {
  width: 70%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold) 0%, #e0b152 100%);
}

.note-card ul,
.idea-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-soft);
}

.section {
  margin-top: 28px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.about-grid,
.feature-grid {
  display: grid;
  gap: 18px;
}

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

.surface-card {
  padding: 28px;
}

.surface-card h3,
.feature-card h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

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

.feature-card {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 26px;
  background: rgba(255, 250, 241, 0.74);
  box-shadow: var(--shadow);
}

.feature-number {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5214;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.support-layout,
.feedback-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.support-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.support-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.support-pill {
  padding: 10px 14px;
  border: 1px solid rgba(32, 79, 66, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.support-pill.is-active,
.support-pill:hover,
.support-pill:focus-visible {
  border-color: transparent;
  background: var(--green);
  color: #fff;
}

.feedback-form {
  display: grid;
  gap: 16px;
}

.feedback-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.feedback-form input,
.feedback-form textarea,
.feedback-form select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(32, 79, 66, 0.14);
  border-radius: 16px;
  background: #fffdf8;
  color: var(--text);
}

.feedback-form input:focus,
.feedback-form textarea:focus,
.feedback-form select:focus {
  outline: 2px solid rgba(32, 79, 66, 0.16);
  border-color: var(--green);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 30px;
  padding: 20px 4px 0;
}

.site-footer a {
  font-weight: 700;
  color: var(--green);
}

@media (max-width: 980px) {
  .hero,
  .about-grid,
  .feature-grid,
  .support-layout,
  .feedback-layout {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 16px;
  }

  .site-header {
    top: 10px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 8px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero-copy,
  .hero-panel,
  .surface-card,
  .feature-card,
  .panel-card {
    padding: 22px;
  }
}
