:root {
  --lp-bg: #070709;
  --lp-bg-elevated: #101014;
  --lp-surface: rgba(18, 18, 22, 0.72);
  --lp-border: rgba(255, 255, 255, 0.1);
  --lp-text: #f4f4f5;
  --lp-muted: #a1a1aa;
  --lp-accent: #e4e4e7;
  --lp-soft: rgba(228, 228, 231, 0.08);
  --lp-radius: 22px;
  --lp-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lp-font: "Yekan Bakh", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body.landing-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 55% at 15% 10%, rgba(255, 255, 255, 0.07), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(161, 161, 170, 0.12), transparent 50%),
    linear-gradient(180deg, #0b0b0e 0%, var(--lp-bg) 42%, #050506 100%);
  color: var(--lp-text);
  font-family: var(--lp-font);
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.lp-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lp-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(18px, 4vw, 48px);
}

.lp-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.lp-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.lp-brand span {
  font-size: 1.05rem;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 18px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--lp-ease), background 0.25s var(--lp-ease), border-color 0.25s var(--lp-ease);
}

.lp-btn:hover {
  transform: translateY(-1px);
}

.lp-btn-ghost {
  background: transparent;
  border-color: var(--lp-border);
  color: var(--lp-text);
}

.lp-btn-ghost:hover {
  background: var(--lp-soft);
}

.lp-btn-primary {
  background: #f4f4f5;
  color: #09090b;
}

.lp-btn-primary:hover {
  background: #ffffff;
}

.lp-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--lp-text);
}

.lp-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lp-hero {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 88px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  padding: 12px clamp(18px, 4vw, 48px) 48px;
}

.lp-hero-copy {
  max-width: 560px;
  animation: lpRise 0.9s var(--lp-ease) both;
}

.lp-brand-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.lp-brand-hero img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.45));
}

.lp-brand-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lp-headline {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 750;
  line-height: 1.45;
  margin-bottom: 14px;
  color: #fafafa;
}

.lp-subhead {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--lp-muted);
  max-width: 34rem;
  margin-bottom: 28px;
}

.lp-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-hero-stage {
  position: relative;
  min-height: min(62vh, 560px);
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  animation: lpFade 1.1s var(--lp-ease) 0.15s both;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.04), transparent 62%);
}

.lp-hero-stage::before {
  content: none;
}

#lp-canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.lp-hero-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.1), transparent 55%),
    linear-gradient(160deg, #15151a, #09090b);
}

.lp-hero-fallback i {
  font-size: 7rem;
  color: rgba(244, 244, 245, 0.55);
  animation: lpFloat 3.5s ease-in-out infinite;
}

.lp-hero-stage.is-fallback .lp-hero-fallback {
  display: flex;
}

.lp-section {
  position: relative;
  z-index: 1;
  padding: 72px clamp(18px, 4vw, 48px);
}

.lp-section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.lp-section-head {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
}

.lp-section-head h2 {
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  font-weight: 850;
  margin-bottom: 10px;
}

.lp-section-head p {
  color: var(--lp-muted);
  line-height: 1.8;
  font-size: 0.98rem;
}

.lp-feature-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.lp-feature {
  background: var(--lp-surface);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 24px 22px;
  backdrop-filter: blur(14px);
  transition: transform 0.3s var(--lp-ease), border-color 0.3s var(--lp-ease);
}

.lp-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.lp-feature i {
  font-size: 1.25rem;
  color: var(--lp-accent);
  margin-bottom: 14px;
}

.lp-feature h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.lp-feature p {
  color: var(--lp-muted);
  line-height: 1.75;
  font-size: 0.92rem;
}

.lp-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.lp-platform {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--lp-radius);
  border: 1px solid var(--lp-border);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  transition: border-color 0.25s var(--lp-ease), transform 0.25s var(--lp-ease);
}

.lp-platform:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.lp-platform-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lp-platform-meta i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 1.15rem;
}

.lp-platform strong {
  display: block;
  margin-bottom: 4px;
}

.lp-platform span {
  color: var(--lp-muted);
  font-size: 0.88rem;
}

.lp-final {
  text-align: center;
  padding-bottom: 96px;
}

.lp-final-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 42px 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse at top, rgba(255, 255, 255, 0.08), transparent 55%),
    rgba(14, 14, 18, 0.9);
}

.lp-final-panel h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 12px;
}

.lp-final-panel p {
  color: var(--lp-muted);
  margin-bottom: 24px;
  line-height: 1.8;
}

.lp-final-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.lp-footer {
  position: relative;
  z-index: 1;
  padding: 24px clamp(18px, 4vw, 48px) 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--lp-muted);
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

@keyframes lpRise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes lpFade {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes lpFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 960px) {
  .lp-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 8px;
  }

  .lp-hero-copy {
    max-width: none;
    order: 1;
    text-align: center;
  }

  .lp-brand-hero,
  .lp-cta-row {
    justify-content: center;
  }

  .lp-subhead {
    margin-left: auto;
    margin-right: auto;
  }

  .lp-hero-stage {
    order: 2;
    min-height: 360px;
  }

  .lp-feature-strip,
  .lp-platforms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lp-nav-actions .lp-btn-ghost {
    display: none;
  }

  .lp-hero-stage {
    min-height: 300px;
    border-radius: 20px;
  }

  .lp-brand-hero h1 {
    font-size: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-hero-copy,
  .lp-hero-stage,
  .lp-hero-fallback i {
    animation: none !important;
  }
}
