@font-face {
  font-family: "IRANSans";
  src: url("./fonts/IRANSans_Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0a0a;
  --panel: #111;
  --text: #f6f6f6;
  --muted: #b5b5b5;
  --yellow: #00ffd5;
  --line: #292929;
  --max: 1504px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);

  /* انگلیسی */
  font-family: "Inter", Arial, sans-serif;

  direction: ltr;
}

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

/* =========================================
   Persian Font
   هر چیزی که فارسی داشته باشد
   ========================================= */

:lang(fa),
[lang="fa"],
.persian {
  font-family: "IRANSans", Tahoma, sans-serif;
}

/* =========================================
   Navbar
   ========================================= */

.navbar {
  height: 56px;
  display: flex;
  align-items: center;
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(8, 8, 8, 0.96);
  border-bottom: 1px solid #151515;
  padding: 0 max(5vw, 28px);
}

.navbar nav {
  display: flex;
  gap: 30px;
  height: 100%;
  align-items: center;
}

.navbar nav a {
  height: 100%;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #c9c9c9;
  position: relative;
}

.navbar nav a:hover,
.navbar nav a.active {
  color: #fff;
}

.navbar nav a.active:after {
  content: "";
  height: 2px;
  background: var(--yellow);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}

.brand {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 7px;
}

.brand-logo {
  display: block;
  width: auto;
  height: 42px;
  max-width: 180px;
  object-fit: contain;
}

.footer-logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: 130px;
  object-fit: contain;
}

.menu {
  display: none;
  margin-left: auto;
  background: none;
  border: 0;
}

.menu span {
  display: block;
  width: 23px;
  height: 2px;
  background: #fff;
  margin: 5px;
}

/* =========================================
   Hero
   ========================================= */

.hero {
  position: relative;
  margin-top: 56px;
  min-height: 680px;
  max-width: 1664px;
  margin-left: auto;
  margin-right: auto;
  overflow: hidden;
  border-radius: 0 0 15px 15px;
}

.hero-art {
  position: absolute;
  inset: 0;
  background-image: url("assets/hero-reference.jpg");
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.26) 45%,
      rgba(0, 0, 0, 0.12) 70%
    ),
    linear-gradient(
      0deg,
      #0a0a0a 0%,
      rgba(10, 10, 10, 0.08) 38%,
      rgba(10, 10, 10, 0) 80%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 260px 5vw 100px;
  max-width: 720px;
}

.eyebrow,
.kicker,
.step {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--yellow);
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-family: "Barlow Condensed", Impact, sans-serif;
}

h1 {
  font-size: clamp(48px, 5.1vw, 72px);
  line-height: 0.93;
  letter-spacing: -1.8px;
  margin: 0 0 28px;
}

.hero-content p {
  max-width: 530px;
  color: #ddd;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 28px;
}

.btn,
.outline-btn,
.server-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--yellow);
  padding: 15px 17px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  transition: 0.2s;
}

.btn:hover,
.outline-btn:hover,
.server-button:hover {
  background: var(--yellow);
  color: #0a0a0a;
}

.btn span,
.outline-btn span,
.server-button span {
  font-size: 16px;
  color: var(--yellow);
}

.btn:hover span,
.outline-btn:hover span,
.server-button:hover span {
  color: #000;
}

.scroll-cue {
  position: absolute;
  right: 5vw;
  bottom: 28px;
  color: #aaa;
  font-size: 9px;
  letter-spacing: 2px;
}

.scroll-cue span {
  color: var(--yellow);
  font-size: 17px;
  margin-left: 8px;
}

/* =========================================
   Sections
   ========================================= */

.section,
.stats-section,
.resources {
  max-width: 1504px;
  margin: auto;
  padding: 80px 5vw;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 18px;
  margin-bottom: 28px;
}

.section-heading h2 {
  font-size: 42px;
  line-height: 1;
  margin: 0;
}

/* =========================================
   Cards
   ========================================= */

.cards.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  min-height: 380px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #141414;
  border: 1px solid #222;
}

.card-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.card-one {
  /* فقط فایل را جایگزین کن: assets/step1.png */
  background-image: url("assets/step1.png"), linear-gradient(135deg, #222, #111 50%, #3a2600);
}

.card-two {
  /* فقط فایل را جایگزین کن: assets/step2.png */
  background-image: url("assets/step2.png"), linear-gradient(135deg, #16252c, #111 52%, #4b2a10);
}

.card:after {
  content: "";
  position: absolute;
  inset: 0;

  background:
    repeating-linear-gradient(
      -35deg,
      transparent 0 10px,
      rgba(255, 255, 255, 0.018) 11px 12px
    );
}

.card-shade {
  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.92),
      rgba(0, 0, 0, 0.05) 70%
    );
}

.card-body {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  padding: 28px;
  max-width: 520px;
}

.card-body h3 {
  font-size: 34px;
  margin: 8px 0;
}

.card-body p {
  color: #c7c7c7;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 18px;
}

.card-link {
  font-size: 11px;
  font-weight: 800;
  color: var(--yellow);
}

.card-link span {
  margin-left: 8px;
  font-size: 15px;
}

/* =========================================
   Stats
   ========================================= */

.stats-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 20px;
  align-items: center;
}

.stats-grid.one-server {
  grid-template-columns: 1fr auto;
}

.stat {
  border-right: 1px solid var(--line);
  padding: 18px 20px;
}

.stat strong {
  display: block;
  font-family: "Barlow Condensed";
  font-size: 48px;
}

.stat span {
  font-size: 11px;
  letter-spacing: 1.4px;
  color: #888;
  text-transform: uppercase;
}

.server-button {
  justify-content: center;
  white-space: nowrap;
}

/* =========================================
   Feature
   ========================================= */

.feature-section {
  max-width: 1504px;
  margin: auto;
  padding: 110px 5vw;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-copy h2 {
  font-size: 70px;
  line-height: 0.9;
  margin: 12px 0 24px;
}

.feature-copy h2 em {
  color: var(--yellow);
  font-style: normal;
}

.feature-copy p {
  max-width: 500px;
  color: #aaa;
  line-height: 1.7;
}

.feature-panel {
  height: 380px;
  position: relative;
  overflow: hidden;
  border: 1px solid #272727;

  background:
    radial-gradient(
      circle at 65% 35%,
      #292000 0,
      #151515 32%,
      #0b0b0b 72%
    );
}

.grid-lines {
  position: absolute;
  inset: -40%;

  background-image:
    linear-gradient(
      rgba(255, 196, 0, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 196, 0, 0.08) 1px,
      transparent 1px
    );

  background-size: 45px 45px;

  transform:
    perspective(350px)
    rotateX(58deg)
    translateY(120px);
}

.big-r {
  position: absolute;
  right: 10%;
  top: 5%;

  font-family: Arial Black;
  font-size: 260px;
  font-style: italic;

  color: rgba(255, 196, 0, 0.09);
  line-height: 1;
}

.feature-panel > span {
  position: absolute;
  bottom: 28px;
  left: 28px;

  color: var(--yellow);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 3px;
  font-weight: 700;
}

.token-panel .grid-lines {
  opacity: .65;
}

.token-panel:before {
  content: "TOKEN";
  position: absolute;
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: clamp(70px, 11vw, 170px);
  color: rgba(0, 255, 213, .08);
  letter-spacing: 5px;
}

/* =========================================
   Resources
   ========================================= */

.resources {
  border-top: 1px solid var(--line);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;

  border-top: 1px solid var(--line);
}

.resource {
  padding: 24px 4px;

  border-bottom: 1px solid var(--line);

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;

  transition: 0.2s;
}

.resource:hover {
  padding-left: 12px;
  background: #0f0f0f;
}

.resource span {
  font-family: "Barlow Condensed";
  font-size: 28px;
}

.resource b {
  color: var(--yellow);
  font-size: 22px;
}

.resource small {
  color: #777;
  font-size: 12px;
}

/* =========================================
   Footer
   ========================================= */

footer {
  border-top: 1px solid var(--line);

  padding: 28px 5vw;

  display: flex;
  align-items: center;
  gap: 20px;

  color: #777;
  font-size: 10px;
  letter-spacing: 1px;
}

/* footer logo uses .footer-logo */

.footer-right {
  margin-left: auto;
}

/* =========================================
   Mobile
   ========================================= */

@media (max-width: 800px) {

  .navbar nav {
    display: none;
  }

  .menu {
    display: block;
  }

  .hero {
    min-height: 670px;
  }

  .hero-content {
    padding: 180px 28px 90px;
  }

  .hero-art {
    background-position: 62% center;
  }

  h1 {
    font-size: 53px;
  }

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

  .scroll-cue {
    display: none;
  }

  .section,
  .stats-section,
  .resources,
  .feature-section {
    padding: 60px 24px;
  }

  .cards.two,
  .feature-section {
    grid-template-columns: 1fr;
  }

  .feature-section {
    gap: 35px;
  }

  .feature-copy h2 {
    font-size: 58px;
  }

  .feature-panel {
    height: 300px;
  }

  .stats-grid,
  .stats-grid.one-server {
    grid-template-columns: 1fr 1fr;
  }

  .stat {
    border-bottom: 1px solid var(--line);
  }

  .server-button {
    grid-column: 1 / -1;
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  footer {
    flex-wrap: wrap;
  }

  .footer-right {
    margin-left: 0;
    width: 100%;
  }
}

/* =========================================
   Persian Text - IRANSans
   ========================================= */

[lang="fa"],
:lang(fa),
.persian {
  font-family: "IRANSans", Tahoma, sans-serif !important;
  font-weight: 500;
  letter-spacing: 0 !important;
  direction: rtl;
}

p[lang="fa"] {
  font-family: "IRANSans", Tahoma, sans-serif !important;
  line-height: 2;
  text-align: right;
}

h1[lang="fa"],
h2[lang="fa"],
h3[lang="fa"] {
  font-family: "IRANSans", Tahoma, sans-serif !important;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: 0 !important;
}

a[lang="fa"],
button[lang="fa"],
div[lang="fa"],
span[lang="fa"] {
  font-family: "IRANSans", Tahoma, sans-serif !important;
  font-weight: 500;
  letter-spacing: 0 !important;
}
