:root{
  --bg: #090c16;
  --bg-panel: #10152a;
  --bg-panel-2: #131a33;
  --text: #edeff7;
  --muted: #8a93ac;
  --accent: #e8b04b;
  --accent-soft: rgba(232,176,75,0.14);
  --violet: #7c6fe0;
  --border: rgba(237,239,247,0.09);
  --radius: 18px;
  --font-fa: 'Vazirmatn', sans-serif;
  --font-display: 'Fraunces', serif;
  --font-phone: 'Markazi Text', 'Vazirmatn', serif;
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-fa);
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- background atmosphere ---------- */

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

.bg-canvas{
  position: fixed; inset:0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: block;
}

/* ---------- header ---------- */

.site-header{
  position: sticky; top:0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(9,12,22,0.55);
  border-bottom: 1px solid var(--border);
}
.header-inner{
  display:flex; align-items:center; justify-content: space-between;
  height: 78px;
}
.logo{
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .01em;
  color: var(--text);
}
.logo .dot{ color: var(--accent); }
.logo.small{ font-size: 1.2rem; }

.nav-cta{
  display:flex; align-items:center; gap:10px;
  color: var(--text);
  text-decoration:none;
  font-weight:600;
  font-size: .95rem;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: border-color .25s ease, transform .2s ease, background .25s ease;
  direction: ltr;
}
.nav-cta:hover{
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.pulse-dot{
  width:8px; height:8px; border-radius:50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.6);
  animation: pulse 1.8s infinite;
}
.pulse-dot.big{ width:12px; height:12px; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(74,222,128,.55); }
  70%{ box-shadow: 0 0 0 10px rgba(74,222,128,0); }
  100%{ box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ---------- hero ---------- */

.hero{
  position: relative;
  z-index: 3;
  min-height: 78vh;
  display:flex; align-items:center; justify-content:center;
  text-align:center;
  padding: 110px 0 24px;
}
.hero-inner{ max-width: 780px; }

.eyebrow{
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .08em;
  font-size: .92rem;
  margin: 0 0 22px;
}

.wordmark{
  direction: ltr;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  margin: 0 0 28px;
  line-height: 1;
  color: #fff;
  -webkit-text-fill-color: #fff;
}
.wm-letter{
  display:inline-block;
  opacity:0;
  transform: translateY(.5em);
  animation: letter-in .7s cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: calc(var(--i) * 90ms + 200ms);
}
.wm-dot{ color: var(--accent); -webkit-text-fill-color: var(--accent); }
@keyframes letter-in{
  to{ opacity:1; transform: translateY(0); }
}

.hero-sub{
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 620px;
  margin: 0 auto 40px;
}
.hero-sub bdi{ color: var(--text); font-weight:600; }

.hero-actions{
  display:flex; gap:16px; justify-content:center; flex-wrap:wrap;
  margin-bottom: 34px;
}

.btn{
  display:inline-flex; align-items:center; gap:10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-family: var(--font-fa);
  font-weight: 700;
  font-size: 1rem;
  text-decoration:none;
  cursor:pointer;
  border: 1px solid transparent;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.btn-primary{
  background: linear-gradient(120deg, var(--accent), #f4cd82);
  color: #17130a;
  box-shadow: 0 10px 30px -8px rgba(232,176,75,.55);
}
.btn-primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -6px rgba(232,176,75,.7);
}
.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover{
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
}
.btn:active{ transform: translateY(0) scale(.98); }

.phone-line{
  color: var(--muted);
  font-size: 1rem;
}
.phone-label{ margin-inline-end: 8px; }
.phone-number{
  direction: ltr;
  display:inline-block;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
  text-decoration:none;
  letter-spacing: .02em;
  border-bottom: 1px dashed var(--accent);
}

.scroll-cue{
  position:absolute;
  bottom: 34px; left:50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
}
.scroll-cue span{
  display:block;
  width:4px; height:8px;
  border-radius: 3px;
  background: var(--accent);
  margin: 7px auto 0;
  animation: scroll-cue 1.8s ease-in-out infinite;
}
@keyframes scroll-cue{
  0%{ transform: translateY(0); opacity:1; }
  70%{ transform: translateY(14px); opacity:0; }
  100%{ opacity:0; }
}

/* ---------- sections shared ---------- */

.section{
  position: relative;
  z-index: 3;
  padding: 36px 0;
}
.section-title{
  text-align:center;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 700;
  margin: 0 0 24px;
}
.hl{ color: var(--accent); }

/* reveal on scroll */
.reveal{
  opacity:0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible{
  opacity:1;
  transform: translateY(0);
}

/* ---------- why cards ---------- */

.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card{
  background: linear-gradient(180deg, var(--bg-panel-2), var(--bg-panel));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform .3s ease, border-color .3s ease;
}
.card:hover{
  transform: translateY(-6px);
  border-color: rgba(232,176,75,.4);
}
.card-icon{
  width: 58px; height:58px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: var(--accent-soft);
  margin-bottom: 20px;
}
.card h3{
  margin: 0 0 10px;
  font-size: 1.15rem;
}
.card p{
  margin:0;
  color: var(--muted);
  font-size: .96rem;
}
.card p bdi{ color: var(--text); }

/* ---------- specs ---------- */

.specs-card{
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 46px 40px;
  overflow:hidden;
}
.specs-glow{
  position:absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(232,176,75,.28), transparent 70%);
  top:-140px; right:-100px;
  animation: drift-a 22s ease-in-out infinite;
}
.specs-title{
  position:relative;
  margin: 0 0 30px;
  font-size: 1.4rem;
  text-align:center;
}
.specs-list{
  position:relative;
  list-style:none;
  margin:0; padding:0;
}
.specs-list li{
  display:flex; justify-content:space-between; align-items:center;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
}
.specs-list li:last-child{ border-bottom:none; }
.specs-list span{ color: var(--muted); }
.specs-list strong{ font-weight:700; direction: ltr; }
.status{ color: #4ade80; }

/* ---------- final cta ---------- */

.cta-final{ text-align:center; }
.cta-title{
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  margin: 0 0 16px;
}
.cta-sub{
  color: var(--muted);
  margin: 0 0 20px;
}
.cta-phone{
  display:flex; align-items:center; justify-content:center; gap:12px;
  margin-bottom: 34px;
}
.cta-phone a{
  direction: ltr;
  color: var(--text);
  text-decoration:none;
  font-family: var(--font-phone);
  font-weight: 700;
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  letter-spacing: .06em;
  line-height: 1.2;
  border-bottom: 2px dashed var(--accent);
}

/* ---------- footer ---------- */

.site-footer{
  position: relative; z-index:3;
  border-top: 1px solid var(--border);
  padding: 34px 0;
}
.footer-inner{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  flex-wrap:wrap;
}
.footer-inner p{
  margin:0; color: var(--muted); font-size: .88rem;
}

/* ---------- toast ---------- */

.toast{
  position: fixed;
  bottom: 30px; left:50%;
  transform: translate(-50%, 20px);
  background: var(--text);
  color: #12162b;
  font-weight:700;
  padding: 13px 26px;
  border-radius: 999px;
  opacity:0;
  pointer-events:none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 50;
  box-shadow: 0 12px 28px -6px rgba(0,0,0,.4);
}
.toast.show{
  opacity:1;
  transform: translate(-50%, 0);
}

/* ---------- responsive ---------- */

@media (max-width: 760px){
  .cards{ grid-template-columns: 1fr; }
  .hero{ min-height: 72vh; padding-top: 110px; }
  .section{ padding: 28px 0; }
  .specs-card{ padding: 32px 22px; }
  .footer-inner{ flex-direction: column; text-align:center; }
}
