@font-face {
  font-family: "Ray";
  src: url("../assets/fonts/Ray-Medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Ray";
  src: url("../assets/fonts/Ray-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "IranYekan";
  src: url("../assets/fonts/IRANYekanMobileRegular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IranYekan";
  src: url("../assets/fonts/IRANYekanMobileMedium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "IranYekan";
  src: url("../assets/fonts/IRANYekanMobileBold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Mahoor";
  src: url("../assets/fonts/Mahoor-Bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #0b1220;
  --ink-2: #121a2b;
  --panel: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f6fb;
  --muted: #9aa8bf;
  --accent: #2f80ff;
  --accent-2: #45c4b0;
  --glow: rgba(47, 128, 255, 0.35);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IranYekan", "Ray", Tahoma, sans-serif;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(47, 128, 255, 0.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(69, 196, 176, 0.12), transparent 55%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 48%, #0a101c 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.45;
  animation: float 14s var(--ease) infinite alternate;
}

.blob-a {
  width: 420px;
  height: 420px;
  top: 12%;
  left: -8%;
  background: #1d4ed8;
}

.blob-b {
  width: 360px;
  height: 360px;
  right: -6%;
  bottom: 18%;
  background: #0f766e;
  animation-delay: -4s;
}

.grid-noise {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 85%);
}

.site-header {
  position: relative;
  z-index: 50;
  margin-bottom: 10px;
}

main,
.site-footer {
  position: relative;
  z-index: 1;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.nav {
  width: min(100% - 1.5rem, var(--max));
  margin: 1rem auto 10px;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(11, 18, 32, 0.72);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 10px;
  z-index: 50;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Mahoor", "Ray", sans-serif;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.nav-brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links a {
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.35s var(--ease), background 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  color: var(--text) !important;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  box-shadow: 0 10px 28px var(--glow);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
  gap: 5px;
  flex-direction: column;
}

.nav-toggle span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.35s var(--ease);
}

.hero {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 1.25rem 4rem;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: slowZoom 18s var(--ease) infinite alternate;
  filter: saturate(0.75) brightness(0.45);
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 18, 32, 0.55) 0%, rgba(11, 18, 32, 0.72) 45%, rgba(11, 18, 32, 0.96) 100%),
    radial-gradient(ellipse at 50% 35%, rgba(47, 128, 255, 0.18), transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
}

.hero-logo {
  width: min(220px, 58vw);
  margin: 0 auto 1.4rem;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  animation: logoFloat 5.5s var(--ease) infinite alternate;
}

.brand-title {
  margin: 0;
  font-family: "Mahoor", "Ray", sans-serif;
  font-size: clamp(3.2rem, 10vw, 6.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 20%, #b7c7e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 1.1rem auto 0;
  max-width: 34rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.9;
  font-weight: 400;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1d4ed8 70%, var(--accent-2));
  box-shadow: 0 16px 40px var(--glow);
}

.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.scroll-hint {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.scroll-hint span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #fff;
  animation: scrollDot 1.6s var(--ease) infinite;
}

.section {
  padding: 6.5rem 0;
}

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 3rem;
}

.section-head h2 {
  margin: 0;
  font-family: "Ray", "IranYekan", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.35;
}

.section-head p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.9;
}

.feature-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}

.feature {
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease), background 0.4s var(--ease);
}

.feature:hover {
  border-color: var(--line);
  background: var(--panel);
  transform: translateY(-4px);
}

.feature-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #dbeafe;
  background: linear-gradient(145deg, rgba(47, 128, 255, 0.28), rgba(69, 196, 176, 0.18));
  margin-bottom: 1rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-family: "Ray", sans-serif;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 0.95rem;
}

.showcase {
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 3rem;
  align-items: center;
}

.showcase-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
}

.showcase-visual img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  filter: contrast(1.05) saturate(0.9);
}

.showcase-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(11, 18, 32, 0.75));
}

.tape-line {
  position: absolute;
  inset-inline: 8%;
  bottom: 18%;
  height: 10px;
  border-radius: 999px;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.85) 0 2px,
      transparent 2px 10px
    ),
    linear-gradient(90deg, rgba(47, 128, 255, 0.65), rgba(69, 196, 176, 0.75));
  box-shadow: 0 0 24px rgba(69, 196, 176, 0.35);
  z-index: 1;
  animation: tapePulse 3.2s var(--ease) infinite;
}

.showcase-copy .section-head {
  text-align: right;
  margin: 0 0 1.8rem;
  max-width: none;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.2rem 1rem;
  align-items: start;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  grid-row: span 2;
  font-family: "Ray", sans-serif;
  font-weight: 700;
  background: rgba(47, 128, 255, 0.15);
  color: #bfdbfe;
}

.steps strong {
  font-size: 1.05rem;
}

.steps span {
  color: var(--muted);
  line-height: 1.8;
}

.platform-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.platform {
  padding: 1.6rem 1.4rem;
  border-top: 1px solid var(--line);
}

.platform-badge {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent-2);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.platform h3 {
  margin: 0 0 0.55rem;
  font-family: "Ray", sans-serif;
}

.platform p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: stretch;
}

.contact-stack {
  display: grid;
  gap: 0.75rem;
}

.contact-item {
  display: grid;
  gap: 0.25rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease), background 0.35s var(--ease);
}

a.contact-item:hover {
  border-color: rgba(47, 128, 255, 0.45);
  background: rgba(47, 128, 255, 0.08);
  transform: translateY(-2px);
}

.contact-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.contact-value {
  font-size: 1.08rem;
  line-height: 1.7;
  font-weight: 500;
}

.support-panel {
  border-radius: 28px;
  padding: 2rem 1.6rem;
  background:
    radial-gradient(circle at 20% 10%, rgba(47, 128, 255, 0.25), transparent 45%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.support-panel img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.support-panel h3 {
  margin: 0;
  font-family: "Ray", sans-serif;
  font-size: 1.35rem;
}

.support-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
}

.support-panel .btn {
  align-self: start;
  margin-top: 0.4rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: "Mahoor", "Ray", sans-serif;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer a {
  color: #bfdbfe;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes float {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(30px, 40px, 0); }
}

@keyframes slowZoom {
  from { transform: scale(1.05); }
  to { transform: scale(1.14); }
}

@keyframes logoFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes tapePulse {
  0%, 100% { opacity: 0.7; transform: scaleX(0.96); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 980px) {
  .feature-rail,
  .platform-row,
  .showcase-grid,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .showcase-copy .section-head {
    text-align: center;
  }

  .showcase-visual img {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.55rem);
    inset-inline: 0;
    display: none;
    flex-direction: column;
    padding: 0.7rem;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(16px);
  }

  .nav.is-open .nav-links {
    display: flex;
  }

  .nav.is-open .nav-toggle span:first-child {
    transform: translateY(3.5px) rotate(40deg);
  }

  .nav.is-open .nav-toggle span:last-child {
    transform: translateY(-3.5px) rotate(-40deg);
  }

  .feature-rail {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 4.5rem;
  }

  .section {
    padding: 4.5rem 0;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .blob,
  .hero-bg,
  .hero-logo,
  .scroll-hint span,
  .tape-line {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
