:root {
  --bg: #0b0a09;
  --bg-elevated: #141210;
  --bg-soft: #1a1714;
  --fg: #f5f0e8;
  --fg-muted: #b8aea0;
  --gold: #c9a227;
  --gold-bright: #e8c547;
  --gold-dim: #8a7020;
  --accent: #1f6b4f;
  --accent-glow: rgba(201, 162, 39, 0.22);
  --border: rgba(201, 162, 39, 0.22);
  --danger: #c45c4a;
  --radius: 4px;
  --max: 1120px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Vazirmatn", Tahoma, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.85;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
  transition: color 200ms var(--ease);
}

a:hover {
  color: #fff4c8;
}

.brand,
.nav-links a,
.btn,
.post-card {
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Atmosphere */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(31, 107, 79, 0.28), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(201, 162, 39, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 60% at 50% 100%, rgba(90, 40, 20, 0.25), transparent 55%),
    linear-gradient(180deg, #0b0a09 0%, #100e0c 40%, #0b0a09 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(11, 10, 9, 0.78);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg);
  line-height: 1;
}

.brand span {
  color: var(--gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--fg-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--fg);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  width: 44px;
  height: 44px;
  cursor: pointer;
  border-radius: var(--radius);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 200ms var(--ease), background 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-primary:hover {
  color: #1a1408;
  box-shadow: 0 14px 36px rgba(201, 162, 39, 0.35);
}

.btn-secondary {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.12);
  color: #fff;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(92vh, 860px);
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.02);
  animation: heroDrift 28s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, 0.35) 0%, rgba(11, 10, 9, 0.55) 40%, rgba(11, 10, 9, 0.92) 100%),
    linear-gradient(90deg, rgba(11, 10, 9, 0.75) 0%, transparent 55%);
}

.hero-content {
  padding: 5rem 0 4rem;
  max-width: 720px;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
}

.hero-brand em {
  font-style: normal;
  color: var(--gold-bright);
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

/* Sections */
.section {
  padding: 4.5rem 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin: 0 0 0.75rem;
  letter-spacing: 0.01em;
}

.section-lead {
  color: var(--fg-muted);
  max-width: 40rem;
  margin: 0 0 2rem;
}

.cta-band {
  margin: 2rem 0;
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.1), rgba(31, 107, 79, 0.12));
  border-radius: var(--radius);
}

.cta-band p {
  margin: 0 0 1rem;
  color: var(--fg);
  font-weight: 500;
}

/* Article */
.prose {
  max-width: 720px;
}

.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 2.75rem 0 1rem;
  scroll-margin-top: 90px;
}

.prose h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
  color: var(--gold-bright);
}

.prose p {
  margin: 0 0 1.15rem;
  color: #ebe4d8;
}

.prose ul,
.prose ol {
  padding-right: 1.25rem;
  margin: 0 0 1.25rem;
  color: #ebe4d8;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose strong {
  color: #fff;
  font-weight: 600;
}

.figure {
  margin: 2rem 0;
}

.figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.figure figcaption {
  margin-top: 0.65rem;
  color: var(--fg-muted);
  font-size: 0.9rem;
}

/* Blog grid — interaction containers */
.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
  color: inherit;
  min-height: 100%;
}

.post-card:hover {
  border-color: rgba(201, 162, 39, 0.5);
  transform: translateY(-3px);
  color: inherit;
}

.post-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
}

.post-card .body {
  padding: 1.15rem 1.2rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.post-card h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--fg);
}

.post-card p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.92rem;
  flex: 1;
}

.post-meta {
  color: var(--gold-dim);
  font-size: 0.82rem;
}

/* Top 7 ranking */
.ranking-section {
  padding-top: 3.5rem;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.rank-card {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.06), rgba(20, 18, 16, 0.95));
  transition: border-color 220ms var(--ease), transform 220ms var(--ease);
}

.rank-card:hover {
  border-color: rgba(201, 162, 39, 0.55);
  transform: translateY(-2px);
}

.rank-media {
  position: relative;
  min-height: 220px;
}

.rank-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.rank-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.rank-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rank-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.rank-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--fg);
}

.rank-fa {
  color: var(--fg-muted);
  font-size: 0.95rem;
  font-family: var(--font-body);
  font-weight: 400;
}

.rank-tag {
  font-size: 0.78rem;
  color: #1a1408;
  background: var(--gold-bright);
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius);
  font-weight: 600;
}

.stars {
}
.star.full {
  color: var(--gold-bright);
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--gold-bright);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.stars .empty, .star.empty {
  color: #5c5348;
}

.stars .half, .star.half {
  opacity: 0.7;
}

.stars-score {
  margin-right: 0.45rem;
  color: var(--fg-muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.pros-cons h4 {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.pros h4 { color: #6fcf97; }
.cons h4 { color: #e08a7a; }

.pros-cons ul {
  margin: 0;
  padding-right: 1.1rem;
  color: #ebe4d8;
  font-size: 0.9rem;
}

.pros-cons li {
  margin-bottom: 0.35rem;
}

.rank-actions {
  margin-top: 0.25rem;
}

.rank-note {
  display: block;
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.65rem 0.85rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.2);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.breadcrumbs {
  font-size: 0.9rem;
  color: var(--fg-muted);
  margin-bottom: 1.25rem;
}

.breadcrumbs a {
  color: var(--gold-bright);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.faq-block {
  margin: 2.5rem 0 1rem;
  max-width: 720px;
}

.faq-block h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  color: var(--gold-bright);
  margin-bottom: 1rem;
}

.faq-block details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
  background: rgba(0, 0, 0, 0.22);
}

.faq-block summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--fg);
}

.faq-block details p {
  margin: 0.75rem 0 0.25rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

.hero-media picture,
.hero-media img,
.rank-media picture,
.rank-media img,
.post-card picture,
.post-card img,
.figure picture,
.figure img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 860px) {
  .rank-card { grid-template-columns: 1fr; }
  .rank-media img { aspect-ratio: 16 / 9; max-height: 240px; }
  .pros-cons { grid-template-columns: 1fr; }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
  color: var(--fg-muted);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.site-footer h4 {
  margin: 0 0 0.75rem;
  color: var(--fg);
  font-size: 1rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 0.4rem;
}

.disclaimer {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
  font-size: 0.82rem;
  color: #8d8376;
}

.disclaimer a {
  color: #f0d56a;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font-weight: 600;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.08) translateY(-1.5%); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img { animation: none; }
  .btn:hover { transform: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-links {
    display: none;
    position: absolute;
    inset-inline: 1rem;
    top: 72px;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 1rem;
    border-radius: var(--radius);
  }
  .nav-links.open { display: flex; }
  .post-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 78vh; }
  .btn-group { width: 100%; }
  .btn-group .btn { flex: 1 1 100%; }
}

.section:not(.hero){content-visibility:auto;contain-intrinsic-size:800px;}
.hero-media img{content-visibility:auto;}
