:root {
  --ink: #0a0908;
  --ink-soft: #141210;
  --stage: #1c1712;
  --cream: #f3ead7;
  --cream-muted: rgba(243, 234, 215, 0.72);
  --amber: #e8b84a;
  --amber-hot: #ffd27a;
  --amber-deep: #c4892a;
  --glow: rgba(232, 184, 74, 0.45);
  --line: rgba(243, 234, 215, 0.14);
  --font: "Vazirmatn", Tahoma, sans-serif;
  --font-num: "Vazirmatn FD", "Vazirmatn", Tahoma, sans-serif;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--cream);
  background: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  isolation: isolate;
  perspective: 1200px;
}

/* Full-bleed stage atmosphere */
.stage {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(232, 184, 74, 0.18), transparent 55%),
    radial-gradient(70% 50% at 15% 100%, rgba(196, 137, 42, 0.12), transparent 50%),
    radial-gradient(60% 40% at 90% 80%, rgba(232, 184, 74, 0.08), transparent 45%),
    linear-gradient(180deg, #120f0c 0%, var(--ink) 45%, #080706 100%);
  overflow: hidden;
  transform-style: preserve-3d;
}

.stage__grain {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  pointer-events: none;
  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)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

.stage__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.72) 100%);
}

.particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.85;
}

/* Floating 3D orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
  mix-blend-mode: screen;
  transform-style: preserve-3d;
  will-change: transform;
}

.orb--a {
  width: min(38vw, 340px);
  height: min(38vw, 340px);
  top: 8%;
  right: 6%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 230, 170, 0.55), rgba(232, 184, 74, 0.18) 40%, transparent 70%);
  animation: orb-float-a 14s ease-in-out infinite;
}

.orb--b {
  width: min(28vw, 240px);
  height: min(28vw, 240px);
  bottom: 12%;
  left: 8%;
  background:
    radial-gradient(circle at 40% 40%, rgba(255, 210, 122, 0.35), rgba(196, 137, 42, 0.12) 45%, transparent 72%);
  animation: orb-float-b 18s ease-in-out infinite;
}

.orb--c {
  width: min(18vw, 160px);
  height: min(18vw, 160px);
  top: 42%;
  left: 55%;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 210, 122, 0.28), transparent 68%);
  animation: orb-float-c 11s ease-in-out infinite;
}

/* CSS spotlight beams */
.beam {
  position: absolute;
  top: -12%;
  width: min(42vw, 420px);
  height: 85%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(255, 210, 122, 0.28) 0%,
    rgba(232, 184, 74, 0.1) 35%,
    transparent 78%
  );
  clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%);
  filter: blur(2px);
  opacity: 0.85;
  animation: beam-breathe 7s ease-in-out infinite;
  transform-origin: top center;
}

.beam--left {
  left: 8%;
  transform: rotate(-8deg);
  animation: beam-breathe 7s ease-in-out infinite, beam-sway-l 10s ease-in-out infinite;
  animation-delay: -1.5s, 0s;
}

.beam--right {
  right: 8%;
  transform: rotate(8deg);
  animation: beam-breathe 7s ease-in-out infinite, beam-sway-r 12s ease-in-out infinite;
  animation-delay: -3.2s, -2s;
}

.beam--center {
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  width: min(55vw, 560px);
  opacity: 0.55;
  animation-duration: 9s;
}

.spotlight {
  position: absolute;
  width: 48vmax;
  height: 48vmax;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 122, 0.16) 0%, transparent 68%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  left: 50%;
  top: 28%;
  z-index: -1;
  will-change: left, top;
}

/* Content composition */
.hero {
  width: min(920px, 100%);
  text-align: center;
  transform-style: preserve-3d;
}

.scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.12s ease-out;
}

.brand__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  opacity: 0;
  animation: rise-3d 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
  transform-style: preserve-3d;
}

.brand__line {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--cream);
  transform-style: preserve-3d;
}

.brand__line:first-child {
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--cream-muted);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.brand__line--main {
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  font-weight: 900;
  background: linear-gradient(
    180deg,
    #fff6e4 0%,
    var(--cream) 40%,
    var(--amber) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 28px rgba(232, 184, 74, 0.28));
  animation: title-shimmer 6s ease-in-out infinite;
  background-size: 100% 200%;
}

/* Illuminated 3D sign */
.sign {
  position: relative;
  margin-top: 0.25rem;
  padding: clamp(1.4rem, 3.5vw, 2.2rem) clamp(1.6rem, 5vw, 3.5rem);
  opacity: 0;
  animation: rise-3d 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
  transform-style: preserve-3d;
  transform: translateZ(40px);
}

.sign__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at center, rgba(232, 184, 74, 0.22), transparent 65%);
  filter: blur(18px);
  animation: pulse-glow 3.8s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

.sign__frame {
  position: absolute;
  inset: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(145deg, rgba(40, 32, 22, 0.75), rgba(10, 9, 8, 0.45));
  box-shadow:
    inset 0 0 0 1px rgba(232, 184, 74, 0.1),
    0 0 60px rgba(232, 184, 74, 0.14),
    0 28px 50px rgba(0, 0, 0, 0.5),
    0 50px 80px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform: translateZ(-12px);
  animation: frame-float 5.5s ease-in-out infinite;
}

.sign__frame::before,
.sign__frame::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(232, 184, 74, 0.55);
}

.sign__frame::before {
  top: 10px;
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.sign__frame::after {
  bottom: 10px;
  left: 10px;
  border-right: none;
  border-top: none;
}

.sign__label {
  position: relative;
  display: block;
  font-size: clamp(2rem, 8vw, 4.25rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--amber-hot);
  text-shadow:
    0 0 12px rgba(255, 210, 122, 0.85),
    0 0 36px rgba(232, 184, 74, 0.55),
    0 0 72px rgba(196, 137, 42, 0.35),
    0 12px 0 rgba(80, 50, 10, 0.35);
  animation: sign-glow 3.6s ease-in-out infinite, sign-bob 4.8s ease-in-out infinite;
  transform: translateZ(24px);
}

.sign__en {
  position: relative;
  display: block;
  margin-top: 0.65rem;
  font-size: clamp(0.72rem, 1.6vw, 0.9rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: rgba(243, 234, 215, 0.55);
  text-transform: uppercase;
  transform: translateZ(16px);
}

.lead {
  max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  line-height: 1.9;
  color: var(--cream-muted);
  opacity: 0;
  animation: rise-3d 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1rem;
  opacity: 0;
  animation: rise-3d 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.75s forwards;
  transform-style: preserve-3d;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  font-family: var(--font-num);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 2px;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.3s ease;
  transform-style: preserve-3d;
}

.btn--primary {
  background: linear-gradient(180deg, var(--amber-hot), var(--amber-deep));
  color: #1a1208;
  border: 1px solid transparent;
  box-shadow:
    0 0 28px rgba(232, 184, 74, 0.28),
    0 10px 0 rgba(120, 75, 15, 0.35),
    0 18px 30px rgba(0, 0, 0, 0.35);
}

.btn--primary:hover {
  transform: translateY(-4px) translateZ(20px) scale(1.03);
  box-shadow:
    0 0 40px rgba(232, 184, 74, 0.45),
    0 14px 0 rgba(120, 75, 15, 0.3),
    0 28px 40px rgba(0, 0, 0, 0.4);
}

.btn--primary:active {
  transform: translateY(2px) translateZ(4px) scale(0.98);
  box-shadow:
    0 0 20px rgba(232, 184, 74, 0.25),
    0 4px 0 rgba(120, 75, 15, 0.3);
}

.btn--ghost {
  background: rgba(20, 16, 12, 0.45);
  color: var(--cream);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.btn--ghost:hover {
  border-color: rgba(232, 184, 74, 0.45);
  color: var(--amber-hot);
  transform: translateY(-4px) translateZ(16px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-size: 0.92rem;
  color: rgba(243, 234, 215, 0.55);
  opacity: 0;
  animation: rise-3d 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.95s forwards;
}

.meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.meta svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.7;
  color: var(--amber);
}

.meta .phone {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--cream);
  direction: ltr;
  unicode-bidi: embed;
}

.footer-note {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.78rem;
  color: rgba(243, 234, 215, 0.35);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

@keyframes rise-3d {
  from {
    opacity: 0;
    transform: translateY(36px) translateZ(-40px) rotateX(12deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) translateZ(0) rotateX(0);
  }
}

@keyframes sign-glow {
  0%,
  100% {
    text-shadow:
      0 0 12px rgba(255, 210, 122, 0.75),
      0 0 36px rgba(232, 184, 74, 0.45),
      0 0 72px rgba(196, 137, 42, 0.28),
      0 12px 0 rgba(80, 50, 10, 0.35);
  }
  50% {
    text-shadow:
      0 0 18px rgba(255, 210, 122, 0.95),
      0 0 48px rgba(232, 184, 74, 0.65),
      0 0 90px rgba(196, 137, 42, 0.4),
      0 12px 0 rgba(80, 50, 10, 0.28);
  }
}

@keyframes sign-bob {
  0%,
  100% {
    transform: translateZ(24px) translateY(0);
  }
  50% {
    transform: translateZ(28px) translateY(-4px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.95);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@keyframes frame-float {
  0%,
  100% {
    transform: translateZ(-12px) translateY(0);
  }
  50% {
    transform: translateZ(-8px) translateY(-3px);
  }
}

@keyframes beam-breathe {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes beam-sway-l {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(-5deg);
  }
}

@keyframes beam-sway-r {
  0%,
  100% {
    transform: rotate(8deg);
  }
  50% {
    transform: rotate(5deg);
  }
}

@keyframes orb-float-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-40px, 50px, 60px) scale(1.08);
  }
}

@keyframes orb-float-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(50px, -40px, 40px) scale(1.12);
  }
}

@keyframes orb-float-c {
  0%,
  100% {
    transform: translate3d(0, 0, 40px) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate3d(-30px, 30px, 80px) scale(1.2);
    opacity: 1;
  }
}

@keyframes title-shimmer {
  0%,
  100% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 0% 100%;
  }
}

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

  .brand__name,
  .sign,
  .lead,
  .actions,
  .meta {
    opacity: 1;
    transform: none;
  }

  .particles {
    display: none;
  }
}

@media (max-width: 560px) {
  .actions {
    width: 100%;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .beam--left,
  .beam--right {
    opacity: 0.45;
  }

  .orb--a,
  .orb--b {
    opacity: 0.55;
  }

  .footer-note {
    font-size: 0.7rem;
  }
}
