@font-face {
  font-family: "Vazirmatn";
  src: url("./assets/fonts/Vazirmatn[wght].woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --primary-gradient: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
  --bg-color: #0b0e14;

  --glass: rgba(255, 255, 255, 0.05);
  --glass-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);

  --text-primary: #f8f9fa;
  --text-secondary: #9aa0a6;

  --accent-color: #00d2ff;
  --danger: #ff4444;

  --blur: 16px;
}

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

/* ===== BODY ===== */
body {
  font-family: "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size-adjust: 0.5;
  line-height: 1.7;
  font-size: 1.05rem;

  max-width: 920px;
  margin: 0 auto;
  padding: 30px 16px 32px;

  color: var(--text-primary);
  background-color: var(--bg-color);

  background-image:
    radial-gradient(circle at 10% 10%, rgba(58, 123, 213, 0.18), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(0, 210, 255, 0.12), transparent 40%);

  min-height: 100vh;
  overflow-x: hidden;
}

/* glow */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  background: radial-gradient(circle, rgba(0, 210, 255, 0.08), transparent 60%);
  animation: glowMove 18s linear infinite;
  z-index: -1;
}

@keyframes glowMove {
  0% { transform: translate(0,0); }
  50% { transform: translate(5%, -5%); }
  100% { transform: translate(0,0); }
}

/* ===== HEADINGS ===== */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 18px;
}

h2 {
  font-size: 2rem;
}

/* ===== LINKS ===== */
a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.25s;
}

a:hover {
  filter: brightness(1.2);
  text-decoration: underline;
}

/* ===== IMAGE ===== */
img.banner {
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.7);
  transition: transform 0.4s ease;
}

img.banner:hover {
  transform: scale(1.02);
}

/* ===== MENU (FINAL FIXED) ===== */
#menu {
  position: sticky;
  top: 10px;
  z-index: 999;

  display: flex;
  align-items: center;

  /*direction: ltr */
  //*justify-content: flex-start;*/

  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;

  gap: 4px;
  padding: 8px 10px;

  min-height: 46px;
  width: 100%;

  list-style: none;

  background: var(--glass);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));

  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow: 0 10px 40px rgba(0,0,0,0.4);

  scrollbar-width: none;
}

#menu::-webkit-scrollbar {
  display: none;
}

/* items */
#menu li {
  flex: 0 0 auto;
}

/* links */
#menu li a {
  display: flex;
  align-items: center;
  justify-content: center;

  /*direction: rtl;  متن فارسی */
  text-align: center;

  color: var(--text-secondary);
  font-size: 0.85rem;

  padding: 2px 5px;
  border-radius: 5px;

  white-space: nowrap;
  line-height: 1;

  transition: 0.2s;
}

#menu li a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
}

/* active */
#menu li a.active {
  background: var(--primary-gradient);
  color: white;
}

/* domain */
#domain {
  flex: 0 0 auto;
}

#domain a {
  font-weight: 700;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== BUTTON ===== */
.cta-button {
  display: inline-block;
  background: var(--primary-gradient);
  color: white !important;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 210, 255, 0.35);
  transition: all 0.25s ease;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(0, 210, 255, 0.6);
}

/* ===== QR ===== */
.qr-container {
  background: white;
  padding: 20px;
  border-radius: 18px;
  margin: 25px 0;
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
}

/* ===== CARDS ===== */
.feature-item,
.ss-prominent-box,
.experimental {
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: 0.3s ease;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin: 30px 0;
}

.feature-item {
  background: var(--glass);
  padding: 20px;
}

.feature-item:hover {
  transform: translateY(-6px);
  background: var(--glass-strong);
}

.feature-item strong {
  color: var(--accent-color);
  display: block;
  margin-bottom: 8px;
}

/* ===== WARNING ===== */
.experimental {
  background: rgba(255, 68, 68, 0.08);
  border-left: 4px solid var(--danger);
  padding: 18px;
  margin-top: 40px;
  color: #ff8888;
}

/* ===== MODAL ===== */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
}

.modal-content {
  background: var(--glass);
  margin: 18% auto;
  padding: 25px;
  width: 90%;
  max-width: 360px;
  border-radius: 18px;
  border: 1px solid var(--accent-color);
  text-align: center;
}

/* ===== COPY ===== */
.copy-btn {
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
}

.copy-btn:hover {
  background: rgba(255,255,255,0.18);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  body {
    padding: 16px 10px 24px;
    font-size: 0.95rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  #menu {
    gap: 3px;
    padding: 6px 8px;
    min-height: 44px;
  }

  #menu li a {
    font-size: 0.78rem;
    padding: 4px 7px;
  }

  .cta-button {
    width: 100%;
    text-align: center;
  }
}
