:root {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: #131313;
  --surface-soft: #181818;
  --surface-muted: rgba(28, 27, 27, 0.72);
  --surface-strong: rgba(32, 31, 31, 0.92);
  --text: #f3f0ef;
  --text-muted: #b4b0c3;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #8f93ff;
  --primary-strong: #c0c1ff;
  --cyan: #5de6ff;
  --violet: #d0bcff;
  --danger: #ff4d4f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --container: min(1280px, calc(100vw - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at top right, rgba(93, 230, 255, 0.12), transparent 28%),
    radial-gradient(circle at 15% 15%, rgba(143, 147, 255, 0.18), transparent 32%),
    linear-gradient(180deg, #080808, #0a0a0a 28%, #0d0d0f 100%);
  color: var(--text);
  font-family: "Vazirmatn", "Inter", sans-serif;
  overflow-x: hidden;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.page-shell {
  position: relative;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: fixed;
  inset: auto;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
  z-index: -1;
}

.page-shell::before {
  top: 4rem;
  right: -6rem;
  background: rgba(143, 147, 255, 0.55);
}

.page-shell::after {
  bottom: 10rem;
  left: -10rem;
  background: rgba(93, 230, 255, 0.35);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(10, 10, 10, 0.62);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand img,
.footer-brand img {
  width: auto;
  height: 44px;
  border-radius: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
}

.nav-links a {
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--cyan);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.6rem;
  border-radius: 18px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button-small {
  min-height: 46px;
  padding: 0 1.2rem;
  border-radius: 14px;
}

.button-primary {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary));
  color: #0d0b2f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 12px 40px rgba(143, 147, 255, 0.26);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.button-youtube {
  background: var(--danger);
  color: #fff;
}

.section {
  padding: 7rem 0;
}

.section-muted {
  background: linear-gradient(180deg, rgba(19, 19, 19, 0.35), rgba(17, 17, 17, 0.78));
  border-block: 1px solid rgba(255, 255, 255, 0.03);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 8rem;
  overflow: clip;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.18;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.15), rgba(10, 10, 10, 0.9)),
    radial-gradient(circle at center, transparent 5%, rgba(10, 10, 10, 0.68) 78%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(10px);
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 58rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(192, 193, 255, 0.25);
  background: rgba(192, 193, 255, 0.08);
  color: var(--primary-strong);
  font-size: 0.83rem;
  font-weight: 700;
}

.hero h1,
.section h2,
.cta-copy h2 {
  margin: 0;
  font-family: "Inter", "Vazirmatn", sans-serif;
  font-weight: 800;
  line-height: 1.08;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.9rem, 7vw, 5.25rem);
  letter-spacing: -0.04em;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary-strong), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p,
.section-copy,
.cta-copy p,
.footer-brand p,
.footer-grid p,
.footer-grid a,
.category-card p,
.tool-card p {
  color: var(--text-muted);
  line-height: 1.9;
}

.hero p {
  max-width: 44rem;
  margin: 1.5rem auto 0;
  font-size: 1.1rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  display: grid;
  gap: 0.35rem;
  justify-items: center;
  color: rgba(255, 255, 255, 0.42);
  transform: translateX(-50%);
  font-size: 0.8rem;
}

.chevron {
  width: 0.9rem;
  height: 0.9rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  animation: float-down 1.8s infinite ease-in-out;
}

@keyframes float-down {
  0%,
  100% {
    transform: rotate(-45deg) translate(0, 0);
  }
  50% {
    transform: rotate(-45deg) translate(-0.2rem, 0.25rem);
  }
}

.section-head,
.youtube-layout,
.footer-grid,
.about-layout {
  display: grid;
  gap: 2rem;
}

.section-head {
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 2rem;
}

.section-kicker {
  margin-bottom: 1rem;
}

.section-kicker-red {
  background: rgba(255, 77, 79, 0.1);
  border-color: rgba(255, 77, 79, 0.24);
  color: #ff8082;
}

.section h2,
.cta-copy h2 {
  font-size: clamp(2rem, 4.8vw, 3.5rem);
  letter-spacing: -0.03em;
}

.section-link,
.tool-card a {
  color: var(--primary-strong);
  font-weight: 700;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 1.5rem;
}

.tool-grid-updated {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tool-card,
.category-card,
.cta-card,
.video-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    var(--surface-muted);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.tool-card {
  min-height: 28rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: grid;
  align-items: stretch;
}

.tool-card-simple {
  min-height: 0;
}

.tool-card-wide {
  grid-template-columns: 1.2fr 0.8fr;
}

.tool-card:not(.tool-card-wide) {
  grid-template-rows: auto 1fr;
}

.tool-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.tool-icon,
.category-icon {
  display: inline-grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 1.1rem;
  background: rgba(143, 147, 255, 0.14);
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(143, 147, 255, 0.2);
  font-size: 1.4rem;
}

.tool-icon-cyan,
.category-icon.cyan {
  background: rgba(93, 230, 255, 0.12);
  color: var(--cyan);
  box-shadow: inset 0 0 0 1px rgba(93, 230, 255, 0.18);
}

.tool-icon-violet {
  background: rgba(208, 188, 255, 0.12);
  color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(208, 188, 255, 0.2);
}

.category-icon.violet {
  background: rgba(208, 188, 255, 0.12);
  color: var(--violet);
  box-shadow: inset 0 0 0 1px rgba(208, 188, 255, 0.2);
}

.tool-tag {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(93, 230, 255, 0.08);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.tool-tag-cyan {
  color: var(--cyan);
  background: rgba(93, 230, 255, 0.08);
}

.tool-card h3,
.category-card h3,
.footer-grid h3 {
  margin: 0 0 0.8rem;
}

.tool-card h3 {
  font-size: clamp(1.7rem, 2vw, 2.25rem);
}

.tool-art {
  position: relative;
  min-height: 16rem;
}

.tool-art img {
  position: absolute;
  inset: auto 0 0 auto;
  width: min(100%, 22rem);
  border-radius: 2rem 2rem 0 2rem;
  opacity: 0.7;
  transform: translate(8%, 10%);
  transition: transform 220ms ease, opacity 220ms ease;
}

.tool-card:hover .tool-art img {
  transform: translate(3%, 6%) scale(1.03);
  opacity: 0.9;
}

.tool-art-tall img {
  width: min(100%, 24rem);
  border-radius: 1.8rem;
  inset: auto -2rem -2rem auto;
}

.cyan-link {
  color: var(--cyan);
}

.violet-link {
  color: var(--violet);
}

.section-center {
  text-align: center;
  max-width: 46rem;
  margin: 0 auto 2.5rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.category-card {
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: transform 180ms ease, border-color 180ms ease;
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: rgba(192, 193, 255, 0.2);
}

.youtube-layout {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.about-layout {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}

.about-points,
.about-stats {
  display: grid;
  gap: 1rem;
}

.about-point,
.stat-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--surface-strong);
  box-shadow: var(--shadow);
}

.about-point {
  padding: 1rem 1.1rem;
}

.about-point strong,
.stat-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.about-point span,
.stat-card p {
  color: var(--text-muted);
  line-height: 1.8;
}

.stat-card {
  padding: 1.35rem;
}

.stat-label {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(192, 193, 255, 0.08);
  color: var(--primary-strong);
  font-size: 0.8rem;
  font-weight: 700;
}

.video-card {
  border-radius: 2rem;
  aspect-ratio: 16 / 9;
  display: block;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.4));
  transition: background-color 180ms ease;
}

.video-card:hover .video-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28));
}

.play-button {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  position: relative;
}

.play-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 0.85rem solid transparent;
  border-bottom: 0.85rem solid transparent;
  border-right: 0;
  border-left: 1.35rem solid white;
  transform: translate(-35%, -50%);
}

.cta-card {
  border-radius: 2.5rem;
  padding: 3rem;
  background:
    linear-gradient(180deg, rgba(143, 147, 255, 0.08), rgba(10, 10, 10, 0.45)),
    rgba(17, 17, 18, 0.95);
}

.cta-copy {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2rem;
}

.cta-form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-form input {
  width: min(100%, 24rem);
  min-height: 56px;
  padding: 0 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  outline: none;
}

.cta-form input:focus {
  border-color: rgba(192, 193, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(143, 147, 255, 0.12);
}

.cta-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.18;
}

.cta-glow-primary {
  top: -1rem;
  right: 10%;
  width: 12rem;
  height: 12rem;
  background: var(--primary);
}

.cta-glow-secondary {
  bottom: -2rem;
  left: 14%;
  width: 14rem;
  height: 14rem;
  background: var(--cyan);
}

.cta-note {
  position: relative;
  z-index: 1;
  margin: 1rem 0 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(10, 10, 10, 0.78);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-grid {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.7rem;
}

.footer-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-badges a,
.footer-badges span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--violet);
  background: rgba(208, 188, 255, 0.06);
}

.legal-page {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 4rem 0;
}

.legal-shell {
  max-width: 52rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(15, 15, 16, 0.96);
  box-shadow: var(--shadow);
}

.legal-shell-center {
  text-align: center;
}

.legal-back {
  display: inline-flex;
  margin-bottom: 1rem;
  color: var(--cyan);
  font-weight: 700;
}

.legal-shell h1 {
  margin: 0.2rem 0 1rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
}

.legal-lead {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.legal-section + .legal-section {
  margin-top: 1.4rem;
}

.legal-section h2 {
  margin: 0 0 0.6rem;
  font-size: 1.15rem;
}

.legal-section p,
.legal-section a {
  color: var(--text-muted);
  line-height: 1.9;
}

.legal-section a,
.stat-card a {
  color: var(--cyan);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  color: var(--text-muted);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .section {
    padding: 5rem 0;
  }

  .section-head,
  .tool-grid,
  .category-grid,
  .youtube-layout,
  .footer-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .tool-card-wide {
    grid-template-columns: 1fr;
  }

  .tool-art img,
  .tool-art-tall img {
    position: relative;
    inset: auto;
    width: 100%;
    max-width: 100%;
    transform: none;
    margin-top: 1.5rem;
  }

  .cta-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 640px) {
  .nav-bar {
    min-height: 78px;
  }

  .button,
  .cta-form input {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(2.45rem, 12vw, 3.4rem);
  }

  .hero p,
  .section-copy {
    font-size: 0.98rem;
  }

  .category-card,
  .tool-card {
    padding: 1.35rem;
  }
}
