
:root {
  --bg: #090a0e;
  --surface: #111319;
  --surface-light: #181b23;
  --red: #ef2635;
  --red-hover: #cf1826;
  --text: #f5f6fa;
  --muted: #a2a6b3;
  --border: #282c36;
  --radius: 16px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
  cursor: url("./og-image.png"), auto;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% -15%, #361017 0, transparent 40%),
    var(--bg);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.9;
}

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

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

button {
  font: inherit;
  cursor: url("./og-image.png"), pointer;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
}

.red {
  color: var(--red);
}

/* نوار بالای سایت */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(9, 10, 14, .94);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  backdrop-filter: blur(18px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 900;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-links a {
  padding: 9px 12px;
  color: #c2c5d0;
  font-size: 13px;
  border-radius: 9px;
  transition: .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  background: #ef26351a;
}

.nav-links a.active {
  box-shadow: inset 0 -2px var(--red);
}

.menu-button {
  display: none;
  padding: 8px 13px;
  background: var(--surface-light);
  color: white;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* دکمه‌ها */

.btn {
  min-height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: white;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
  transition: background .2s, border-color .2s, transform .2s;
}

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

.btn-red {
  background: linear-gradient(135deg, #fa3442, #d91c2a);
  box-shadow: 0 7px 22px #ef263525;
}

.btn-red:hover {
  background: var(--red-hover);
}

.btn-outline {
  background: #ffffff06;
  border-color: #3c404c;
}

.btn-outline:hover {
  border-color: var(--red);
  background: #ef263510;
}

/* بخش اصلی */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse at 15% 45%, #b8172922, transparent 42%),
    linear-gradient(110deg, #110c12, #0b0c11 65%);
}

.hero-grid {
  min-height: 510px;
  padding-block: 64px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: 55px;
}

.hero-content {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff6570;
  font-size: 13px;
  font-weight: bold;
}

.eyebrow::before {
  content: "";
  width: 23px;
  height: 2px;
  background: var(--red);
}

.hero h1 {
  max-width: 620px;
  margin: 15px 0;
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 900;
  line-height: 1.65;
  letter-spacing: -.8px;
}

.hero-content > p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 2.2;
}

.hero-art {
  position: relative;
  min-width: 0;
  min-height: 330px;
  display: grid;
  place-items: center;
}

.hero-art::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: #ef263526;
  filter: blur(65px);
}

.hero-art img {
  position: relative;
  z-index: 1;
  width: min(100%, 330px);
  max-height: 330px;
  object-fit: contain;
  filter: drop-shadow(0 15px 32px #ef26352b);
}

/* آدرس سرور */

.server-box {
  margin-top: 25px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #14151d;
  border: 1px solid #303440;
  border-radius: 13px;
}

.server-box > div {
  display: grid;
  gap: 2px;
}

.server-label {
  color: var(--muted);
  font-size: 11px;
}

.server-ip {
  color: white;
  direction: ltr;
  unicode-bidi: isolate;
  font-family: Consolas, monospace;
  font-size: 17px;
  font-weight: bold;
}

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

/* تبلیغات */

.ad-slot {
  width: min(1000px, calc(100% - 32px));
  min-height: 15px;
  margin: 18px auto;
  text-align: center;
  overflow: hidden;
}

.ad-label {
  margin-bottom: 5px;
  color: #666b78;
  font-size: 10px;
}

/* بخش‌های عمومی */

.section {
  padding-block: 76px;
}

.section-heading {
  max-width: 650px;
  margin: 0 auto 36px;
  text-align: center;
}

.section-heading h2 {
  margin: 9px 0;
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 900;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* کارت‌ها */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-card {
  min-width: 0;
  min-height: 205px;
  padding: 25px;
  background: linear-gradient(145deg, #171920, #101116);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s, border-color .2s, background .2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: #8c2732;
  background: linear-gradient(145deg, #1c1b23, #111116);
}

.feature-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid #76232d;
  border-radius: 14px;
  background: #ef263512;
  font-size: 24px;
}

.feature-card h3 {
  margin: 15px 0 7px;
  font-size: 16px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

/* دعوت به ورود */

.join-banner {
  margin: 0 auto 65px;
  padding: 30px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #6b222c;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 85% 50%, #ef26351b, transparent 55%),
    #131117;
}

.join-banner > div {
  min-width: 0;
}

.join-banner h2 {
  margin: 7px 0;
  font-size: clamp(20px, 3vw, 27px);
}

.join-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* صفحات داخلی */

.page-hero {
  padding-block: 45px;
  background: linear-gradient(110deg, #1a0c12, #0d0e13);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(27px, 4vw, 40px);
}

.page-content {
  min-height: 350px;
  padding-block: 45px 65px;
}

.content-panel {
  padding: 25px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.coming-soon {
  padding: 50px 20px;
  text-align: center;
}

.coming-soon h2 {
  color: var(--red);
}

/* پاورقی */

.site-footer {
  padding-top: 42px;
  background: #07080b;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 42px;
  padding-bottom: 32px;
}

.site-footer h3 {
  margin-top: 0;
  font-size: 15px;
}

.site-footer p,
.site-footer a {
  color: #a3a7b3;
  font-size: 12px;
}

.site-footer p {
  line-height: 2.2;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  width: fit-content;
  transition: color .2s;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  padding: 17px 0;
  border-top: 1px solid var(--border);
  color: #747986;
  text-align: center;
  font-size: 11px;
}

/* پیام کپی */

.toast {
  position: fixed;
  z-index: 200;
  bottom: 22px;
  left: 50%;
  max-width: calc(100% - 30px);
  padding: 11px 20px;
  color: white;
  background: #1b1d25;
  border: 1px solid #444955;
  border-radius: 11px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s, transform .2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

:focus-visible {
  outline: 2px solid #ff7a83;
  outline-offset: 3px;
}

/* تبلت */

@media (max-width: 950px) {
  .nav {
    gap: 12px;
  }

  .nav-links {
    gap: 2px;
  }

  .nav-links a {
    padding-inline: 8px;
    font-size: 12px;
  }

  .hero-grid {
    gap: 28px;
  }

  .hero h1 {
    font-size: 36px;
  }
}

/* موبایل */

@media (max-width: 700px) {
  .container {
    width: calc(100% - 30px);
  }

  .nav {
    min-height: 70px;
    flex-wrap: wrap;
  }

  .brand {
    font-size: 19px;
  }

  .brand img {
    width: 39px;
    height: 39px;
  }

  .menu-button {
    display: block;
  }

  .nav-links {
    display: none;
    order: 5;
    width: 100%;
    padding: 8px 0 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 12px;
    font-size: 14px;
  }

  .nav-cta {
    display: none;
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 5px;
    padding-block: 25px 35px;
  }

  .hero-art {
    grid-row: 1;
    min-height: 190px;
  }

  .hero-art img {
    width: 180px;
    max-height: 185px;
  }

  .hero-art::before {
    width: 160px;
    height: 160px;
  }

  .hero h1 {
    font-size: clamp(29px, 7vw, 36px);
    line-height: 1.65;
  }

  .hero-content > p {
    font-size: 13px;
  }

  .server-box {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .server-box .btn {
    width: 100%;
  }

  .hero-actions .btn {
    flex: 1;
  }

  .section {
    padding-block: 48px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .feature-card {
    min-height: auto;
    padding: 20px;
  }

  .join-banner {
    margin-bottom: 45px;
    padding: 22px;
    align-items: stretch;
    flex-direction: column;
  }

  .join-banner .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-hero {
    padding-block: 32px;
  }

  .content-panel {
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}

/* Scroll Reveal — انیمیشن نمایش هنگام اسکرول */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 600ms ease,
        transform 600ms ease;
    transition-delay: var(--reveal-delay, 0ms);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* احترام به تنظیمات کاهش حرکت دستگاه */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal.revealed {
        opacity: 1;
        transform: none;
        transition: none;
    }
}