:root {
  --bg: #05060a;
  --bg-2: #0a0b12;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #eef0f5;
  --text-dim: #a4a9b8;
  --text-mute: #6b7185;
  --accent-a: #00e5ff;
  --accent-b: #7c5cff;
  --accent-c: #ff6ec7;
  --grad: linear-gradient(90deg, var(--accent-a), var(--accent-b) 60%, var(--accent-c));
  --grad-soft: linear-gradient(135deg, rgba(0, 229, 255, 0.14), rgba(124, 92, 255, 0.14));
  --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Vazirmatn', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: 0;
}

::selection { background: rgba(0, 229, 255, 0.3); color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ BACKGROUND EFFECTS ============ */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6 0 0 0 0 0.6 0 0 0 0 0.7 0 0 0 0.15 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center top, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, #000 20%, transparent 70%);
  pointer-events: none;
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.glow-1 {
  width: 600px; height: 600px;
  top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.35), transparent 70%);
  animation: floaty 18s ease-in-out infinite;
}

.glow-2 {
  width: 700px; height: 700px;
  bottom: -250px; left: -200px;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.35), transparent 70%);
  animation: floaty 22s ease-in-out infinite reverse;
}

@keyframes floaty {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 60px) scale(1.1); }
}

main, header, footer { position: relative; z-index: 2; }

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 18px 0;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(5, 6, 10, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), padding 0.3s var(--ease);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  padding: 12px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }

.logo-mark {
  display: inline-flex;
  padding: 4px;
  border-radius: 10px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
}

.logo-text { font-family: 'Inter', sans-serif; }
.logo-dim { color: var(--text-mute); font-weight: 400; }

.nav-links {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
}

.nav-links a {
  padding: 7px 15px;
  font-size: 12.5px;
  font-weight: 300;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  border-radius: 999px;
  transition: all 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--panel-2);
}

.nav-cta { padding: 9px 17px !important; font-size: 12.5px !important; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.01em;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  cursor: pointer;
}

.btn svg { flex-shrink: 0; }

.btn-primary {
  background: var(--grad);
  color: #05060a;
  font-weight: 600;
  box-shadow: 0 8px 30px -8px rgba(0, 229, 255, 0.5), 0 2px 6px rgba(124, 92, 255, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(0, 229, 255, 0.7), 0 4px 12px rgba(124, 92, 255, 0.5);
}
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--panel-2);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.btn-block { width: 100%; padding: 14px; font-size: 14px; }

/* ============ HERO ============ */
.hero {
  padding: 60px 0 100px;
  position: relative;
}

.hero-inner {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 15px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-a);
  box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
  100% { box-shadow: 0 0 0 12px rgba(0, 229, 255, 0); }
}

.hero-title {
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  max-width: 760px;
  margin-inline: auto;
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 300;
  color: var(--text-dim);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.9;
}

.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ MARQUEE ============ */
.marquee-wrap {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee { overflow: hidden; }

.marquee-track {
  display: flex;
  gap: 32px;
  white-space: nowrap;
  animation: scroll 40s linear infinite;
  font-size: 12px;
  font-weight: 300;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}

.marquee-track span { flex-shrink: 0; }
.marquee-track .dot { color: rgba(255, 255, 255, 0.15); }

@keyframes scroll {
  to { transform: translateX(50%); }
}

/* ============ SECTION ============ */
.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 64px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  margin-bottom: 18px;
}

.eyebrow .line {
  width: 24px; height: 1px; background: var(--grad);
}

.section-title {
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.section-sub {
  font-size: 14.5px;
  font-weight: 300;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.85;
}

/* ============ SERVICES ============ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.card {
  padding: 32px 28px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.card:hover::before { opacity: 1; }

.card > * { position: relative; z-index: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-a);
  margin-bottom: 20px;
}
.card-icon svg { width: 22px; height: 22px; }

.card h3 {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.card > p {
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 300;
  margin-bottom: 20px;
  line-height: 1.8;
}

.ticks {
  list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.ticks li {
  font-size: 12.5px;
  font-weight: 300;
  color: var(--text-dim);
  padding-right: 22px;
  position: relative;
}

.ticks li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 12px; height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.step {
  padding: 28px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  transition: all 0.3s var(--ease);
}
.step:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.step-num {
  display: inline-block;
  font-family: 'Inter';
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-a);
  padding: 3px 9px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 6px;
  margin-bottom: 16px;
  letter-spacing: 0.08em;
}

.step h4 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.step p {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
}

/* ============ PILLARS ============ */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillar {
  padding: 32px 28px;
  background: var(--bg-2);
  transition: background 0.3s var(--ease);
}
.pillar:hover { background: var(--panel); }

.pillar b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.pillar p {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.8;
}

/* ============ CONTACT ============ */
.contact-section {
  padding-bottom: 120px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 860px;
  margin: 0 auto 40px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 32px 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: all 0.3s var(--ease);
}

a.contact-card { cursor: pointer; }
a.contact-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.ci-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--grad-soft);
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--accent-a);
  flex-shrink: 0;
  margin-bottom: 10px;
}
.ci-icon svg { width: 18px; height: 18px; }

.contact-cta {
  display: flex;
  justify-content: center;
}

.ci-label {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  color: var(--text-mute);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.ci-value {
  display: block;
  font-size: 13.5px;
  color: var(--text);
  font-weight: 400;
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-tag {
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 300;
  margin-top: 14px;
  max-width: 280px;
  line-height: 1.8;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-cols h5 {
  font-size: 11px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-cols a {
  display: block;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 300;
  padding: 4px 0;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 300;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-links .sep { margin: 0 8px; color: rgba(255, 255, 255, 0.15); }

/* ============ REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 40px 0 72px; }
}

@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .nav-cta { display: none; }
  .btn { padding: 11px 19px; font-size: 13px; }
  .card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
