:root {
  --bg: #09090b;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.12);
  --text: #fafafa;
  --muted: rgba(255, 255, 255, 0.62);
  --muted-soft: rgba(255, 255, 255, 0.42);
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.28);
}

@font-face {
  font-family: "VazirLocal";
  src:
    local("Vazirmatn"),
    local("Vazir"),
    url("fonts/Vazirmatn-Regular.woff2") format("woff2"),
    url("fonts/Vazir.woff2") format("woff2");
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "VazirLocal", "Vazirmatn", "Vazir", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

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

.page-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 32%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.08), transparent 26%),
    var(--bg);
}

.grid-overlay,
.noise-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.grid-overlay {
  opacity: 0.06;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.8) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.8) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridShift 18s ease-in-out infinite alternate;
}

.noise-overlay {
  opacity: 0.045;
  background-image: radial-gradient(rgba(255,255,255,0.9) 0.6px, transparent 0.6px);
  background-size: 10px 10px;
  mix-blend-mode: soft-light;
}

.background-blur,
.ambient,
.center-glow,
.energy-core,
.spark {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.background-blur {
  filter: blur(90px);
  opacity: 0.8;
}

.blur-one {
  width: 16rem;
  height: 16rem;
  top: 10%;
  right: 12%;
  background: rgba(255,255,255,0.09);
  animation: floatBlob 14s ease-in-out infinite;
}

.blur-two {
  width: 20rem;
  height: 20rem;
  bottom: 8%;
  left: 8%;
  background: rgba(255,255,255,0.07);
  animation: floatBlob 17s ease-in-out infinite reverse;
}

.blur-three {
  width: 14rem;
  height: 14rem;
  top: 45%;
  left: 38%;
  background: rgba(255,255,255,0.05);
  animation: floatBlob 20s ease-in-out infinite;
}

.container {
  position: relative;
  z-index: 1;
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

.hero {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  grid-template-areas:
    "logo visual"
    "content visual";
  gap: 1.25rem 2rem;
  align-items: center;
}

.content-panel {
  grid-area: content;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hero-logo-wrap {
  grid-area: logo;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-top: 0.25rem;
}

.hero-logo {
  width: auto;
  max-width: min(100%, 180px);
  max-height: 72px;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.28));
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 0.85rem 1.1rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.95rem;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  animation: softLift 6s ease-in-out infinite;
}

.status-dot {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: pulse 1.8s infinite;
}

.headline-block {
  margin-top: 2rem;
  max-width: 36rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted-soft);
  letter-spacing: 0.22em;
  font-size: 0.82rem;
  animation: fadeSlideUp 1s ease both;
}

.headline {
  margin: 0;
  display: grid;
  gap: 0.55rem;
  font-size: clamp(1.45rem, 3vw, 2.9rem);
  line-height: 1.38;
  font-weight: 780;
}

.line {
  display: block;
  max-width: 100%;
  opacity: 0;
  transform: translateY(22px);
  animation: revealLine 1s ease forwards;
  background: linear-gradient(90deg, rgba(255,255,255,0.96), rgba(255,255,255,0.62), rgba(255,255,255,0.96));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(255,255,255,0.06);
}

.line-1 { animation-delay: 0.15s, 1.5s; animation-name: revealLine, shimmerText; animation-duration: 1s, 7s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }
.line-2 { animation-delay: 0.35s, 1.7s; animation-name: revealLine, shimmerText; animation-duration: 1s, 7s; animation-fill-mode: forwards, none; animation-iteration-count: 1, infinite; }
.line-1 { font-size: 0.9em; }
.line-2 { font-size: 0.88em; }
.line-3 {
  font-size: 0.74em;
  animation-delay: 0.55s, 1.9s;
  animation-name: revealLine, shimmerText;
  animation-duration: 1s, 7s;
  animation-fill-mode: forwards, none;
  animation-iteration-count: 1, infinite;
  color: rgba(255,255,255,0.66);
  text-shadow: none;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.9rem 1.5rem;
  border-radius: 1.15rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  font-weight: 600;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -120% auto -120% -30%;
  width: 30%;
  transform: rotate(18deg);
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.36), transparent);
  transition: transform 500ms ease;
}

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

.btn:hover::after {
  transform: translateX(440%) rotate(18deg);
}

.btn-primary {
  background: #ffffff;
  color: #09090b;
  box-shadow: 0 10px 40px rgba(255, 255, 255, 0.18);
}

.btn-primary:hover {
  box-shadow: 0 16px 50px rgba(255, 255, 255, 0.24);
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.btn-secondary:hover {
  background: var(--surface-strong);
}

.visual-panel {
  grid-area: visual;
  position: relative;
  min-height: 32rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate3d(var(--mx, 0px), var(--my, 0px), 0);
  transition: transform 300ms ease-out;
}

.ambient {
  filter: blur(70px);
  opacity: 0.9;
}

.ambient-one {
  width: 14rem;
  height: 14rem;
  background: rgba(255,255,255,0.12);
  animation: haloFloat 10s ease-in-out infinite;
}

.ambient-two {
  width: 22rem;
  height: 22rem;
  background: rgba(255,255,255,0.06);
  animation: haloFloat 16s ease-in-out infinite reverse;
}

.ambient-three {
  width: 10rem;
  height: 10rem;
  background: rgba(255,255,255,0.1);
  animation: haloFloat 12s ease-in-out infinite;
}

.center-glow {
  width: min(18rem, 58vw);
  height: min(18rem, 58vw);
  background: radial-gradient(circle, rgba(255,255,255,0.22), rgba(255,255,255,0.04) 58%, transparent 72%);
  box-shadow: 0 0 80px rgba(255,255,255,0.08);
  animation: breathe 6s ease-in-out infinite;
}

.energy-core {
  width: min(9rem, 30vw);
  height: min(9rem, 30vw);
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.16) 38%, transparent 72%);
  filter: blur(2px);
  animation: pulseCore 3.6s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
}

.orbit-sm {
  width: 14rem;
  height: 14rem;
  animation: spin 14s linear infinite;
}

.orbit-md {
  width: 18rem;
  height: 18rem;
  border-color: rgba(255,255,255,0.08);
  animation: spin 22s linear infinite reverse;
}

.orbit-lg {
  width: 23rem;
  height: 23rem;
  border-color: rgba(255,255,255,0.06);
  animation: spin 30s linear infinite;
}

.spark {
  width: 0.65rem;
  height: 0.65rem;
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 18px rgba(255,255,255,0.55);
}

.spark-1 { animation: orbitSpark1 9s linear infinite; }
.spark-2 { animation: orbitSpark2 12s linear infinite; }
.spark-3 { animation: orbitSpark3 15s linear infinite reverse; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

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

@keyframes shimmerText {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes haloFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -16px, 0) scale(1.06); }
}

@keyframes floatBlob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(12px, -18px, 0) scale(1.05); }
}

@keyframes breathe {
  0%, 100% { transform: scale(0.96); opacity: 0.8; }
  50% { transform: scale(1.06); opacity: 1; }
}

@keyframes pulseCore {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 1; }
}

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

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

@keyframes gridShift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(10px, 8px, 0); }
}

@keyframes orbitSpark1 {
  0% { transform: rotate(0deg) translateX(7rem) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(7rem) rotate(-360deg); }
}

@keyframes orbitSpark2 {
  0% { transform: rotate(0deg) translateX(9rem) translateY(0) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(9rem) translateY(0) rotate(-360deg); }
}

@keyframes orbitSpark3 {
  0% { transform: rotate(0deg) translateX(11.5rem) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(11.5rem) rotate(-360deg); }
}

@media (max-width: 980px) {
  .container {
    padding: max(0.5rem, env(safe-area-inset-top)) 0 2.5rem;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "logo"
      "visual"
      "content";
    gap: 1.25rem;
    align-items: start;
  }

  .content-panel {
    text-align: center;
    align-items: center;
  }

  .hero-logo-wrap {
    justify-content: center;
    margin-bottom: 0;
    padding-top: 0;
  }

  .visual-panel {
    min-height: 20rem;
  }

  .hero-logo {
    max-width: min(100%, 160px);
    max-height: 64px;
  }

  .headline {
    gap: 0.35rem;
  }

  .line-1,
  .line-2,
  .line-3 {
    white-space: normal;
  }

  .cta-row {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 15px;
  }

  .container {
    width: min(100% - 1.2rem, 1200px);
    padding: max(0.2rem, env(safe-area-inset-top)) 0 1.25rem;
  }

  .hero {
    gap: 0.75rem;
  }

  .status-pill {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
  }

  .hero-logo-wrap {
    padding-top: 0;
    margin-bottom: -0.1rem;
  }

  .hero-logo {
    max-width: min(100%, 140px);
    max-height: 56px;
  }

  .headline {
    font-size: clamp(1.2rem, 6.1vw, 2rem);
    line-height: 1.18;
  }

  .cta-row {
    flex-direction: column;
    margin-top: 2rem;
  }

  .btn {
    width: 100%;
  }

  .visual-panel {
    min-height: 15rem;
  }

  .orbit-sm {
    width: 10rem;
    height: 10rem;
  }

  .orbit-md {
    width: 13rem;
    height: 13rem;
  }

  .orbit-lg {
    width: 16rem;
    height: 16rem;
  }

  .ambient-one {
    width: 10rem;
    height: 10rem;
  }

  .ambient-two {
    width: 14rem;
    height: 14rem;
  }

  .ambient-three {
    width: 8rem;
    height: 8rem;
  }

  .spark-1 { animation-name: orbitSpark1Mobile; }
  .spark-2 { animation-name: orbitSpark2Mobile; }
  .spark-3 { animation-name: orbitSpark3Mobile; }
}

@keyframes orbitSpark1Mobile {
  0% { transform: rotate(0deg) translateX(5rem) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(5rem) rotate(-360deg); }
}

@keyframes orbitSpark2Mobile {
  0% { transform: rotate(0deg) translateX(6.5rem) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(6.5rem) rotate(-360deg); }
}

@keyframes orbitSpark3Mobile {
  0% { transform: rotate(0deg) translateX(8rem) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(8rem) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


@media (min-width: 981px) {
  .headline {
    gap: 0.25rem;
  }
}
