:root {
  --bg: #f3f6f1;
  --bg-deep: #e4ece0;
  --ink: #1a211c;
  --muted: #5c6b60;
  --brand: #63c36a;
  --brand-dark: #3f9a4a;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(26, 33, 28, 0.08);
  --shadow: 0 24px 60px rgba(45, 70, 48, 0.12);
  --font-display: "Fraunces", "Vazirmatn", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Vazirmatn", "Segoe UI", system-ui, sans-serif;
  --font-fa: "Vazirmatn", "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}

/* Same bundled Persian face as the Flutter app. */
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn/Vazirmatn-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn/Vazirmatn-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn/Vazirmatn-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn/Vazirmatn-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/vazirmatn/Vazirmatn-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(1200px 600px at 15% -10%, #cfe9c8 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 10%, #d9eee4 0%, transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

[dir="rtl"],
.font-fa {
  font-family: var(--font-fa);
}

.bg-glow {
  position: fixed;
  inset: auto -10% -20% auto;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(99, 195, 106, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.nav,
main,
.footer {
  position: relative;
  z-index: 1;
}

.nav {
  max-width: 960px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 10px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-weight: 600;
}

.nav a:hover {
  color: var(--brand-dark);
}

.hero {
  max-width: 720px;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
  text-align: center;
  animation: rise 700ms ease both;
}

.hero-mark {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.tagline {
  margin: 0.75rem 0 0;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  margin: 1.15rem auto 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
}

.cta-row {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #123018;
}

.btn-primary:hover {
  background: var(--brand-dark);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
}

.features,
.support {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1.25rem 3.5rem;
  animation: rise 900ms ease both;
}

.features h2,
.support h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0.6rem 0 0;
  color: var(--muted);
  max-width: 34rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .feature-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(45, 70, 48, 0.05);
}

.feature-list strong {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 1.05rem;
}

.feature-list span {
  color: var(--muted);
  line-height: 1.5;
}

.support-email {
  margin: 1.25rem 0 0;
  font-size: 1.05rem;
}

.support-email a,
.footer a {
  color: var(--brand-dark);
  font-weight: 700;
}

.support-form {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.9rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.35rem;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.support-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
}

.support-form input,
.support-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

.support-form input:focus,
.support-form textarea:focus {
  outline: 2px solid rgba(99, 195, 106, 0.45);
  border-color: var(--brand);
}

.support-form .btn {
  justify-self: start;
  margin-top: 0.25rem;
}

.hidden {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.footer {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  justify-content: space-between;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
