/* Tracker landing — pink brand */
:root {
  --bg: #fff5f8;
  --bg-alt: #ffeef3;
  --surface: #ffffff;
  --surface-2: #fff0f5;
  --text: #140607;
  --text-muted: #6b5560;
  --text-soft: #8f7580;
  --accent: #fd2f75;
  --accent-hover: #d9296a;
  --accent-soft: rgba(253, 47, 117, 0.1);
  --accent-border: rgba(253, 47, 117, 0.22);
  --border: rgba(20, 6, 7, 0.07);
  --shadow: 0 12px 40px rgba(253, 47, 117, 0.1);
  --shadow-sm: 0 4px 16px rgba(253, 47, 117, 0.07);
  --radius: 16px;
  --radius-lg: 24px;
  --nav-h: 72px;
  --max-w: 1100px;
  --font: 'Vazirmatn', Tahoma, sans-serif;
  --transition: 0.22s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent-hover); }

.container {
  width: min(var(--max-w), calc(100% - 2rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 245, 248, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
}

.brand:hover { color: var(--accent); }

.brand-logo { width: 40px; height: 40px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.92rem;
}

.site-nav a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-hover) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  padding: calc(var(--nav-h) + 3rem) 0 4rem;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(253, 47, 117, 0.12), transparent),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 1rem;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.65rem);
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 1rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 1.75rem;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover { border-color: var(--accent-border); color: var(--accent); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
}

.stat-item strong {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.stat-item span {
  font-size: 0.78rem;
  color: var(--text-soft);
}

/* Demo card */
.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: relative;
}

.demo-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(253,47,117,0.35), transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.demo-title {
  font-weight: 700;
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.demo-flow {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.flow-step {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--surface-2);
  border-radius: 12px;
}

.flow-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-step p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.flow-step code {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  background: var(--surface);
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  color: var(--accent-hover);
  direction: ltr;
  text-align: left;
  word-break: break-all;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt { background: var(--bg-alt); }

.section-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-sm);
  border-color: var(--accent-border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.feature-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-soft);
  line-height: 1;
  margin-bottom: 0.5rem;
  -webkit-text-stroke: 1px var(--accent-border);
  color: transparent;
}

.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}

.step-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* CTA */
.cta-box {
  background: linear-gradient(135deg, var(--accent) 0%, #ff528f 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.3rem, 3vw, 1.75rem);
}

.cta-box p {
  margin: 0 0 1.5rem;
  opacity: 0.92;
  max-width: 32rem;
  margin-inline: auto;
}

.cta-box .btn-primary {
  background: #fff;
  color: var(--accent-hover);
}

.cta-box .btn-primary:hover {
  background: var(--surface-2);
  color: var(--accent-hover);
}

.coming-soon {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.82rem;
  opacity: 0.85;
}

/* Footer */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-soft);
  font-size: 0.85rem;
}

.site-footer a { font-weight: 600; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .demo-card { order: -1; }
  .features { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .menu-toggle { display: flex; }

  .site-nav {
    position: fixed;
    inset-block-start: var(--nav-h);
    inset-inline: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition), opacity var(--transition);
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero-stats { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
