:root {
  --bg: #f7f7f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --line: #dbe2ea;
  --accent: #ff5a36;
  --accent-2: #00c389;
  --accent-3: #1d9bf0;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
  --radius: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Vazirmatn, Outfit, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.7;
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  background-image: radial-gradient(#000 0.35px, transparent 0.35px);
  background-size: 3px 3px;
  z-index: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 4rem);
  background: rgba(247, 247, 249, 0.84);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  letter-spacing: 0.3px;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

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

nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.65rem;
}

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 0.25s ease;
}

nav a:hover,
nav a.active {
  border-color: var(--text);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
}

main {
  position: relative;
  z-index: 2;
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 1rem 0 5rem;
}

section {
  margin-top: 2rem;
}

.hero {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 4vw, 3.2rem);
  overflow: hidden;
  isolation: isolate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: 24px 24px;
  background-image:
    linear-gradient(to right, rgba(29, 155, 240, 0.1) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 90, 54, 0.1) 1px, transparent 1px);
}

.tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  background: #fff;
}

h1 {
  font-size: clamp(1.8rem, 5.5vw, 3.8rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  margin-bottom: 1rem;
}

h3 {
  margin-bottom: 0.55rem;
}

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

.lead {
  margin-top: 1rem;
  color: var(--muted);
  max-width: 66ch;
}

.hero-actions,
.contact-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  padding: 0.68rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.16);
}

.btn.solid {
  background: var(--text);
  color: #fff;
}

.btn.ghost {
  color: var(--text);
  background: #fff;
}

.stats {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stats article,
.feature-card,
.download-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.95rem;
  background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.stats article:hover,
.feature-card:hover,
.download-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.stats h3 {
  font-size: 1.4rem;
}

.stats p,
.feature-card p,
.download-card p {
  color: var(--muted);
}

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: clamp(1rem, 3.5vw, 2.2rem);
}

.page-hero {
  background-image:
    linear-gradient(120deg, rgba(29, 155, 240, 0.07), rgba(0, 195, 137, 0.07)),
    linear-gradient(45deg, rgba(255, 90, 54, 0.05), transparent 48%);
}

.cards-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.quick-info {
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.quick-info li {
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
  background: #fff;
}

.quick-info span {
  font-weight: 700;
}

.contact {
  text-align: center;
}

.contact-form {
  display: grid;
  gap: 0.75rem;
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.7rem 0.8rem;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
}

.contact-form textarea {
  resize: vertical;
}

footer {
  padding: 1.2rem;
  text-align: center;
  color: var(--muted);
}

.cursor-dot,
.cursor-ring,
.cursor-burst {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.cursor-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(255, 90, 54, 0.55);
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, opacity 0.22s ease;
}

.cursor-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 90, 54, 0.6);
  box-shadow: 0 0 28px rgba(255, 90, 54, 0.22), inset 0 0 18px rgba(255, 90, 54, 0.18);
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
}

.cursor-burst {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 90, 54, 0.7);
  transform: translate(-50%, -50%) scale(0.8);
  animation: burst 0.45s ease forwards;
}

@keyframes burst {
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(4.2);
  }
}

.cursor-active .cursor-dot,
.cursor-active .cursor-ring {
  opacity: 1;
}

.cursor-active.cursor-hover .cursor-ring {
  width: 62px;
  height: 62px;
  border-color: rgba(255, 90, 54, 0.75);
}

.cursor-active.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.35);
}

.cursor-active.cursor-click .cursor-ring {
  width: 32px;
  height: 32px;
}

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 980px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  nav {
    position: fixed;
    inset: 72px 1rem auto 1rem;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 0.6rem;
    box-shadow: var(--shadow);
    transform: scale(0.96);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s ease;
  }

  nav.open {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
  }

  .menu-btn {
    display: grid;
    place-items: center;
  }

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

@media (pointer: fine) {
  body.cursor-active,
  body.cursor-active a,
  body.cursor-active button,
  body.cursor-active .btn,
  body.cursor-active .feature-card,
  body.cursor-active .download-card,
  body.cursor-active .stats article,
  body.cursor-active nav a {
    cursor: none;
  }
}
