/* ========== Reset & Base ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: hwb(220 3% 62%);
  --bg-soft: hwb(220 3% 62%);
  --card: hwb(220 3% 62%);
  --border: rgba(148, 163, 184, 0.12);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --primary: #6366f1;
  --primary-light: #818cf8;
  --cyan: #22d3ee;
  --gradient: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --radius: 16px;
  --shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --font: 'Vazirmatn', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

/* ========== Background Effects ========== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -2;
}

.bg-glow {
  position: fixed;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: glowMove 18s ease-in-out infinite alternate;
}

@keyframes glowMove {
  from { transform: translate(0, 0); }
  to { transform: translate(-80px, 120px); }
}

/* ========== Header ========== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon svg {
  width: 44px;
  height: 44px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--cyan);
  font-weight: 500;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover { color: var(--primary-light); }

.btn-install {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-install:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

/* ========== Hero ========== */
.hero {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-subtitle strong {
  color: var(--cyan);
  font-weight: 600;
}

.hero-slogans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}

.slogan-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.25s, border-color 0.25s;
}

.slogan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.4);
}

.slogan-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.slogan-card p {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -8px rgba(99, 102, 241, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.1rem;
}

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out infinite;
}

.card-1 {
  top: 120px;
  left: 5%;
  width: 240px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 80px;
  left: 12%;
  width: 160px;
  animation-delay: 1.5s;
  text-align: center;
}

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

.card-header {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.code-lines {
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #94a3b8;
}

.code-lines .kw { color: #c084fc; }
.code-lines .fn { color: #22d3ee; }
.code-lines .str { color: #34d399; }
.code-lines .num { color: #fbbf24; }
.code-lines .indent { padding-right: 14px; }

.mini-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  margin-bottom: 10px;
}

.mini-chart .bar {
  flex: 1;
  background: var(--gradient);
  border-radius: 4px 4px 0 0;
  height: var(--h);
  opacity: 0.85;
  animation: barGrow 1.2s ease-out backwards;
}

.mini-chart .bar:nth-child(2) { animation-delay: 0.1s; }
.mini-chart .bar:nth-child(3) { animation-delay: 0.2s; }
.mini-chart .bar:nth-child(4) { animation-delay: 0.3s; }
.mini-chart .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes barGrow {
  from { height: 0; }
}

.mini-label {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
}

/* ========== Features ========== */
.features {
  padding: 90px 0;
  background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.04), transparent);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-inline: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99, 102, 241, 0.35);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--c) 18%, transparent);
  color: var(--c);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ========== How it works ========== */
.how {
  padding: 90px 0;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 700px;
  margin-inline: auto;
}

.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 20px 0;
}

.step-num {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  min-width: 50px;
  line-height: 1.2;
}

.step-content h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-content p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step-line {
  width: 2px;
  height: 28px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  margin-right: 24px;
  margin-left: 24px;
  opacity: 0.5;
}

/* ========== CTA Banner ========== */
.cta-banner {
  padding: 40px 0 80px;
}

.cta-inner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(34, 211, 238, 0.12));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 24px;
  padding: 50px 40px;
  text-align: center;
}

.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-inner p {
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ========== Contact ========== */
.contact {
  padding: 70px 0 90px;
  background: var(--bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform 0.25s, border-color 0.25s;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.35);
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.placeholder {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-style: italic;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.company-name-footer {
  text-align: center;
  padding-top: 20px;
}

.company-name-footer strong {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.company-name-footer span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ========== Footer ========== */
.footer {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-sub {
  margin-top: 6px;
  font-size: 0.8rem !important;
  color: var(--cyan) !important;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .floating-card { display: none; }
  .nav { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 50px 0 70px; }
  .hero-slogans { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 36px 22px; }
  .step { gap: 16px; }
}
