/* ============================================================
   EMBERSMP — style.css
   ============================================================ */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --bg-card: #161616;
  --bg-card-alt: #1c1c1c;

  --orange: #ff6a00;
  --orange-light: #ff8c00;
  --orange-dim: #ff6a0022;
  --orange-border: #ff6a0055;

  --text-primary: #ffffff;
  --text-secondary: #a0a0a0;
  --text-muted: #6b6b6b;

  --border: #262626;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-glow: 0 0 40px rgba(255, 106, 0, 0.25);
  --font-main: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }

.text-accent { color: var(--orange); }

::selection { background: var(--orange); color: #0a0a0a; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #0a0a0a;
  padding: 13px 26px;
  font-size: 15px;
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.28);
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: translateX(-120%) skewX(-20deg);
  transition: transform .6s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 106, 0, 0.45); }
.btn--primary:hover::before { transform: translateX(120%) skewX(-20deg); }

.btn--ghost {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  border: 1px solid var(--border);
  padding: 13px 26px;
  font-size: 15px;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--orange-border); background: rgba(255,106,0,0.06); transform: translateY(-2px); }

.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn:focus-visible { outline: 2px solid var(--orange-light); outline-offset: 2px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .35s var(--ease), border-color .35s var(--ease), padding .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(10,10,10,0.75);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  transition: height .35s var(--ease);
}
.navbar.scrolled .navbar__inner { height: 68px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { display: flex; filter: drop-shadow(0 0 8px rgba(255,106,0,.6)); }
.brand__text { font-size: 21px; font-weight: 800; letter-spacing: .5px; }
.brand__accent { color: var(--orange); }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 6px 2px;
  transition: color .25s;
}
.nav-link::after {
  content: "";
  position: absolute;
  right: 0; bottom: -4px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--orange-light));
  transition: width .3s var(--ease);
  border-radius: 2px;
}
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.navbar__actions { display: flex; align-items: center; gap: 16px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  max-height: 0;
  overflow: hidden;
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: max-height .4s var(--ease);
}
.mobile-menu.open { max-height: 500px; }
.mobile-link {
  display: block;
  padding: 15px 24px;
  font-size: 15px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
}
.mobile-link:hover { color: var(--orange-light); background: rgba(255,106,0,.05); }
.mobile-menu .btn { margin: 16px 24px 20px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 140px 0 100px;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #1a0e05 0%, var(--bg-primary) 60%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 0;
  pointer-events: none;
}
.hero__glow--1 {
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,106,0,0.35), transparent 70%);
  top: -120px; right: -100px;
  animation: floatGlow 9s ease-in-out infinite;
}
.hero__glow--2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(255,140,0,0.22), transparent 70%);
  bottom: -140px; left: -80px;
  animation: floatGlow 11s ease-in-out infinite reverse;
}
@keyframes floatGlow {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(20px,-25px) scale(1.08); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,106,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,106,0,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 80%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 780px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--orange-light);
  background: rgba(255,106,0,0.08);
  border: 1px solid var(--orange-border);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 28px;
  animation: fadeUp .8s var(--ease) both;
}
.eyebrow__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 10px var(--orange); animation: pulse 2s infinite; }

.hero__title { margin-bottom: 18px; animation: fadeUp .8s var(--ease) .1s both; }
.hero__title-main {
  font-size: clamp(46px, 9vw, 96px);
  font-weight: 900;
  letter-spacing: -1px;
  background: linear-gradient(180deg, #ffffff 30%, #ffd9ad 70%, var(--orange) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 34px rgba(255,106,0,0.35));
  line-height: 1.05;
}

.hero__subtitle {
  font-size: clamp(18px, 2.6vw, 24px);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 20px;
  animation: fadeUp .8s var(--ease) .2s both;
}

.hero__desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 40px;
  animation: fadeUp .8s var(--ease) .3s both;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
  animation: fadeUp .8s var(--ease) .4s both;
}

.ip-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  padding: 12px 12px 12px 22px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  animation: fadeUp .8s var(--ease) .5s both;
}
.ip-box__label { font-size: 12.5px; color: var(--text-muted); border-left: 1px solid var(--border); padding-left: 14px; }
.ip-box__value { font-weight: 700; font-size: 16px; letter-spacing: .3px; color: var(--orange-light); }
.ip-box__copy {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  color: #0a0a0a;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.ip-box__copy:hover { transform: scale(1.08) rotate(-6deg); box-shadow: 0 0 20px rgba(255,106,0,.5); }
.ip-box__copy.copied { background: linear-gradient(135deg, #4ade80, #22c55e); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; } 50% { opacity: .4; }
}

.scroll-cue {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 14px;
  z-index: 2;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  animation: scrollCue 1.8s infinite;
}
@keyframes scrollCue {
  0% { opacity: 1; top: 8px; }
  70% { opacity: 0; top: 20px; }
  100% { opacity: 0; top: 20px; }
}

/* ============================================================
   SERVER STATUS
   ============================================================ */
.status-section { margin-top: -50px; position: relative; z-index: 5; margin-bottom: 60px; }

.status-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  background: linear-gradient(180deg, rgba(22,22,22,0.9), rgba(17,17,17,0.9));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 40px;
  backdrop-filter: blur(20px);
  overflow: hidden;
}
.status-card__glow {
  position: absolute; inset: -2px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(120deg, transparent, var(--orange-border), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.status-item { display: flex; flex-direction: column; gap: 8px; min-width: 130px; }
.status-item__label { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.status-item__value { font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.status-item--online .status-item__value { color: #4ade80; }
.status-item__value--counter { color: var(--orange-light); font-variant-numeric: tabular-nums; }

.pulse-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; background: #4ade80; }
.pulse-dot::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid #4ade80;
  animation: pulseRing 1.8s infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: .8; }
  100% { transform: scale(1.8); opacity: 0; }
}

.status-divider { width: 1px; height: 40px; background: var(--border); }
@media (max-width: 720px) { .status-divider { display: none; } .status-card { justify-content: flex-start; } }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section { padding: 110px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 15%, rgba(255,255,255,0.015) 85%, transparent); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.section-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange-light);
  letter-spacing: .5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 14px; letter-spacing: -.3px; }
.section-desc { color: var(--text-secondary); font-size: 15.5px; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 26px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.about-card:hover {
  transform: translateY(-8px);
  border-color: var(--orange-border);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-alt);
}
.about-card__icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,106,0,.18), rgba(255,106,0,.04));
  color: var(--orange-light);
  margin-bottom: 20px;
  transition: transform .35s var(--ease);
}
.about-card:hover .about-card__icon { transform: scale(1.1) rotate(-4deg); }
.about-card__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.about-card__desc { font-size: 14.5px; color: var(--text-secondary); }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}
.feature-card.in-view { opacity: 1; transform: translateY(0); }
.feature-card:hover { transform: translateY(-6px); border-color: var(--orange-border); box-shadow: 0 12px 30px rgba(255,106,0,.12); }
.feature-card__icon {
  flex-shrink: 0;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,106,0,.1);
  color: var(--orange-light);
}
.feature-card__title { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; }
.feature-card__desc { font-size: 13px; color: var(--text-secondary); }

/* ============================================================
   RANKS
   ============================================================ */
.ranks-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.rank-card {
  position: relative;
  background: linear-gradient(180deg, var(--bg-card), var(--bg-secondary));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 22px 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.rank-card.in-view { opacity: 1; transform: translateY(0); }
.rank-card::before {
  content: "";
  position: absolute; top: -40%; left: -20%;
  width: 160%; height: 160%;
  background: radial-gradient(circle at 30% 0%, rgba(255,106,0,.14), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .4s;
}
.rank-card:hover { transform: translateY(-10px); border-color: var(--orange-border); box-shadow: 0 16px 40px rgba(255,106,0,.16); }
.rank-card:hover::before { opacity: 1; }

.rank-card--legend {
  border-color: var(--orange-border);
  background: linear-gradient(180deg, #1e1409, var(--bg-secondary));
  box-shadow: 0 0 0 1px rgba(255,106,0,.15), 0 20px 50px rgba(255,106,0,.12);
}
.rank-card--legend .rank-card__badge {
  position: absolute; top: 16px; left: 16px;
  font-size: 10.5px; font-weight: 800;
  color: #0a0a0a;
  background: linear-gradient(135deg, var(--orange-light), var(--orange));
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: .3px;
}

.rank-card__icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255,106,0,.2), rgba(255,106,0,.04));
  color: var(--orange-light);
  margin-bottom: 18px;
}
.rank-card__name { font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: .3px; }
.rank-card__desc { font-size: 13px; color: var(--text-secondary); margin-bottom: 18px; min-height: 54px; }

.rank-card__features { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; flex: 1; }
.rank-card__features li { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-secondary); }
.rank-card__features li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.rank-card__btn {
  width: 100%;
  padding: 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--orange-border);
  background: rgba(255,106,0,.06);
  color: var(--orange-light);
  font-weight: 700;
  font-size: 13.5px;
  transition: background .3s, color .3s;
}
.rank-card__btn:hover { background: linear-gradient(135deg, var(--orange-light), var(--orange)); color: #0a0a0a; }

/* ============================================================
   HOW TO JOIN
   ============================================================ */
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.step { flex: 1; min-width: 200px; max-width: 280px; text-align: center; padding: 0 16px; }
.step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  font-size: 18px; font-weight: 800;
  background: linear-gradient(135deg, rgba(255,106,0,.18), rgba(255,106,0,.04));
  border: 1px solid var(--orange-border);
  color: var(--orange-light);
  margin-bottom: 18px;
}
.step__title { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.step__desc { font-size: 13.5px; color: var(--text-secondary); }
.step-line { flex: 0 0 60px; height: 1px; background: linear-gradient(90deg, transparent, var(--orange-border), transparent); margin-top: 27px; }
@media (max-width: 780px) { .step-line { display: none; } }

.join-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  max-width: 560px;
  margin: 0 auto;
}
.join-cta__ip { font-size: 20px; font-weight: 800; color: var(--orange-light); letter-spacing: .4px; }

/* ============================================================
   RULES
   ============================================================ */
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color .3s, transform .3s var(--ease);
}
.rule-card:hover { border-color: var(--orange-border); transform: translateX(-4px); }
.rule-card__num {
  flex-shrink: 0;
  font-size: 15px; font-weight: 800;
  color: var(--orange);
  background: rgba(255,106,0,.08);
  border: 1px solid var(--orange-border);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
}
.rule-card__text { font-size: 14.5px; color: var(--text-secondary); padding-top: 6px; }

/* ============================================================
   STAFF
   ============================================================ */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.staff-card {
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
}
.staff-card.in-view { opacity: 1; transform: translateY(0); }
.staff-card:hover { transform: translateY(-6px); border-color: var(--orange-border); }
.staff-card__avatar {
  width: 76px; height: 76px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800;
  background: linear-gradient(135deg, rgba(255,140,0,.35), rgba(255,106,0,.08));
  border: 1px solid var(--orange-border);
  color: var(--orange-light);
}
.staff-card__name { font-size: 16.5px; font-weight: 700; margin-bottom: 6px; }
.staff-card__role { font-size: 13px; color: var(--orange-light); font-weight: 600; margin-bottom: 10px; }
.staff-card__desc { font-size: 12.5px; color: var(--text-muted); }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color .3s;
}
.faq-item.active { border-color: var(--orange-border); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  text-align: right;
}
.faq-question__icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(255,106,0,.08);
  color: var(--orange-light);
  transition: transform .35s var(--ease), background .3s;
}
.faq-item.active .faq-question__icon { transform: rotate(45deg); background: var(--orange); color: #0a0a0a; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-answer__inner { padding: 0 24px 20px; font-size: 14px; color: var(--text-secondary); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta {
  position: relative;
  padding: 130px 0;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(255,106,0,.12), transparent 70%), var(--bg-primary);
}
.final-cta__glow {
  position: absolute;
  width: 700px; height: 400px;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,106,0,.22), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}
.final-cta__content { position: relative; z-index: 1; }
.final-cta__title { font-size: clamp(30px, 5vw, 48px); font-weight: 900; margin-bottom: 16px; letter-spacing: -.5px; }
.final-cta__subtitle { font-size: 16px; color: var(--text-secondary); margin-bottom: 40px; }
.final-cta__actions { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.final-cta__ip { font-size: 18px; font-weight: 700; color: var(--orange-light); letter-spacing: .3px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding-top: 60px; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer__desc { color: var(--text-secondary); font-size: 14px; margin-top: 14px; max-width: 280px; }
.footer__heading { display: block; font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; }
.footer__links { display: flex; flex-direction: column; gap: 11px; }
.footer__links a { font-size: 14px; color: var(--text-secondary); transition: color .25s; width: fit-content; }
.footer__links a:hover { color: var(--orange-light); }

.social-icons { display: flex; gap: 12px; }
.social-icon {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: color .25s, border-color .25s, transform .25s var(--ease);
}
.social-icon:hover { color: var(--orange-light); border-color: var(--orange-border); transform: translateY(-3px); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============================================================
   RANK MODAL
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(5,5,5,0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.rank-modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #171717, #101010);
  border: 1px solid var(--orange-border);
  border-radius: var(--radius-lg);
  padding: 40px 32px 32px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 60px rgba(255,106,0,.12);
  transform: scale(.92) translateY(20px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.modal-overlay.open .rank-modal { transform: scale(1) translateY(0); opacity: 1; }

.rank-modal__close {
  position: absolute; top: 18px; left: 18px;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  color: var(--text-secondary);
  transition: background .25s, color .25s, transform .25s;
}
.rank-modal__close:hover { background: rgba(255,106,0,.15); color: var(--orange-light); transform: rotate(90deg); }

.rank-modal__head { text-align: center; margin-bottom: 26px; }
.rank-modal__icon {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255,140,0,.28), rgba(255,106,0,.06));
  border: 1px solid var(--orange-border);
  color: var(--orange-light);
}
.rank-modal__name { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.rank-modal__desc { font-size: 14px; color: var(--text-secondary); }

.rank-modal__features { display: flex; flex-direction: column; gap: 12px; }
.rank-modal__features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-primary);
  background: rgba(255,106,0,.04);
  border: 1px solid var(--border);
  padding: 11px 14px;
  border-radius: 10px;
}
.rank-modal__features li::before { content: "✦"; color: var(--orange); flex-shrink: 0; }

.rank-modal__divider { height: 1px; background: var(--border); margin: 24px 0; }

.rank-modal__subtitle { font-size: 15px; font-weight: 700; margin-bottom: 14px; }
.rank-modal__rules-list { display: flex; flex-direction: column; gap: 9px; }
.rank-modal__rules-list li { font-size: 13px; color: var(--text-secondary); padding-right: 16px; position: relative; }
.rank-modal__rules-list li::before {
  content: "";
  position: absolute; right: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-muted);
}

.rank-modal__contact-text { font-size: 13.5px; color: var(--text-secondary); margin-bottom: 14px; }
.rank-modal__telegram-id {
  display: inline-block;
  font-weight: 700;
  color: var(--orange-light);
  background: rgba(255,106,0,.08);
  border: 1px solid var(--orange-border);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

body.modal-open { overflow: hidden; }

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #1c1c1c, #141414);
  border: 1px solid var(--orange-border);
  color: var(--text-primary);
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5), 0 0 20px rgba(255,106,0,.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  z-index: 999;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast::before { content: "✓"; color: #4ade80; font-weight: 800; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .about-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .ranks-grid { grid-template-columns: repeat(3, 1fr); }
  .staff-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 80px 0; }
  .hero { padding: 120px 0 80px; }
  .ranks-grid { grid-template-columns: repeat(2, 1fr); }
  .rules-grid { grid-template-columns: 1fr; }
  .status-card { padding: 26px 22px; justify-content: space-between; }
  .status-item { min-width: 45%; }
}

@media (max-width: 560px) {
  .about-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .ranks-grid { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr; }
  .ip-box { flex-direction: row; padding: 10px 10px 10px 18px; }
  .ip-box__value { font-size: 14px; }
  .hero__title-main { font-size: 52px; }
  .navbar__actions .btn--sm { display: none; }
  .final-cta__actions { flex-direction: column; }
  .footer__inner { grid-template-columns: 1fr; }
}
