@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&family=Syne:wght@600;700;800&display=swap');

:root {
  --ink: #0b1220;
  --ink-2: #121a2b;
  --panel: rgba(18, 28, 46, 0.72);
  --line: rgba(232, 204, 140, 0.18);
  --gold: #e8cc8c;
  --gold-2: #f3dfa8;
  --sand: #f7f1e6;
  --muted: #a9b4c7;
  --accent: #1f8a7a;
  --accent-2: #2db39f;
  --danger: #c45c4a;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --max: 1120px;
  --font-fa: "Vazirmatn", sans-serif;
  --font-en: "Syne", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-fa);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(45, 179, 159, 0.18), transparent 55%),
    radial-gradient(900px 600px at 10% 0%, rgba(232, 204, 140, 0.14), transparent 50%),
    linear-gradient(180deg, #07101c 0%, #0b1220 40%, #0e1728 100%);
  color: var(--sand);
  line-height: 1.9;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; border-radius: 14px; }
a { color: var(--gold-2); text-decoration: none; transition: color .2s ease, transform .2s ease; }
a:hover { color: #fff; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 28, 0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .9rem 0;
}
.brand {
  display: flex; align-items: baseline; gap: .55rem;
  font-weight: 800; letter-spacing: -.02em;
}
.brand .fa { font-size: 1.35rem; color: var(--sand); }
.brand .en {
  font-family: var(--font-en); font-size: 1.05rem; color: var(--gold);
  text-transform: uppercase;
}
.nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--sand); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px;
  border: 1px solid transparent; font-weight: 700; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #c9a45a 100%);
  color: #1a1408 !important; box-shadow: 0 10px 30px rgba(232, 204, 140, .25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(232, 204, 140, .35); color: #1a1408 !important; }
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--sand) !important;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold) !important; }

/* Hero */
.hero {
  position: relative; min-height: min(92vh, 920px);
  display: grid; align-items: end; overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center top;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(7,16,28,.35) 0%, rgba(7,16,28,.55) 45%, rgba(7,16,28,.92) 100%),
    linear-gradient(90deg, rgba(7,16,28,.75), transparent 55%);
}
.hero-content {
  position: relative; z-index: 2; padding: 7rem 0 4rem;
  max-width: 720px;
  animation: riseIn .9s ease both;
}
.hero-brand {
  font-family: var(--font-en);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 800; line-height: 1; color: var(--gold);
  text-shadow: 0 10px 40px rgba(0,0,0,.45);
  margin-bottom: .4rem;
}
.hero-brand span {
  display: block; font-family: var(--font-fa);
  font-size: clamp(1.6rem, 4vw, 2.4rem); color: var(--sand); margin-top: .35rem;
}
.hero h1 {
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 600; color: var(--sand); margin: 1rem 0 .75rem; max-width: 28ch;
}
.hero p {
  color: var(--muted); font-size: 1.05rem; max-width: 42ch; margin-bottom: 1.5rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Sections */
section { padding: 4.5rem 0; }
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; color: var(--sand);
}
.section-head p { color: var(--muted); }
.prose {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2.2rem);
  box-shadow: var(--shadow);
}
.prose h2, .prose h3 { margin: 1.8rem 0 .8rem; color: var(--gold-2); scroll-margin-top: 5rem; }
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.2rem; }
.prose p { margin-bottom: 1rem; color: #d7deea; }
.prose ul, .prose ol { margin: 0 1.2rem 1.2rem 0; color: #d7deea; }
.prose li { margin-bottom: .45rem; }
.prose .figure {
  margin: 1.5rem 0; overflow: hidden; border-radius: 16px;
  border: 1px solid var(--line);
}
.prose .figure figcaption {
  padding: .7rem 1rem; color: var(--muted); font-size: .9rem;
  background: rgba(0,0,0,.25);
}
.toc {
  display: grid; gap: .45rem; margin: 1.2rem 0 1.8rem;
  padding: 1rem 1.1rem; border-radius: 14px;
  background: rgba(255,255,255,.03); border: 1px solid var(--line);
}
.toc a { color: var(--muted); font-size: .95rem; }
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2rem 0;
}
.feature {
  padding: 1.2rem; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: transform .25s ease, border-color .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: rgba(232,204,140,.4); }
.feature h3 { color: var(--gold); margin-bottom: .4rem; font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: .95rem; }

.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.blog-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  transition: transform .25s ease, box-shadow .25s ease;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.blog-card img { border-radius: 0; aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.blog-card .body { padding: 1rem 1.1rem 1.2rem; display: grid; gap: .45rem; flex: 1; }
.blog-card h3 { color: var(--sand); font-size: 1.05rem; line-height: 1.6; }
.blog-card p { color: var(--muted); font-size: .9rem; }
.blog-card .meta { color: var(--accent-2); font-size: .8rem; }

.trust-bar {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding: 1.2rem 1.4rem; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(31,138,122,.18), rgba(232,204,140,.08));
  margin: 2rem 0;
}
.trust-bar strong { color: var(--gold-2); display: block; }
.trust-bar span { color: var(--muted); font-size: .9rem; }

.sticky-cta {
  position: fixed; bottom: 1rem; left: 50%; transform: translateX(-50%);
  z-index: 60; display: flex; gap: .6rem; padding: .55rem;
  background: rgba(7,16,28,.88); border: 1px solid var(--line);
  border-radius: 999px; backdrop-filter: blur(12px);
  box-shadow: var(--shadow); animation: floatY 3.5s ease-in-out infinite;
}
.site-footer {
  border-top: 1px solid var(--line); padding: 2.5rem 0 6rem; color: var(--muted);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; margin-bottom: 1.5rem;
}
.site-footer h4 { color: var(--sand); margin-bottom: .7rem; }
.site-footer ul { list-style: none; display: grid; gap: .35rem; }
.disclaimer {
  font-size: .85rem; opacity: .85; border-top: 1px solid var(--line); padding-top: 1rem;
}

.page-hero {
  padding: 3.5rem 0 1.5rem;
}
.page-hero h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: .6rem; }
.page-hero p { color: var(--muted); max-width: 50ch; }
.article-layout { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.related { margin-top: 2.5rem; }
.related h2 { margin-bottom: 1rem; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-12px); }
}
@keyframes floatY {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-6px); }
}

@media (max-width: 900px) {
  .feature-grid, .blog-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero-content { padding-top: 5rem; }
}
