/* Bazoble — Landing page */
:root {
  --bg: #0b1220;
  --bg-alt: #111827;
  --surface: #1a2332;
  --surface-2: #243044;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --primary: #14b8a6;
  --primary-dark: #0d9488;
  --bale: #00c853;
  --tg: #29b6f6;
  --accent: #a78bfa;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  --header-h: 72px;
  --font: "Vazirmatn", system-ui, sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

a:hover {
  color: #5eead4;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  right: 1rem;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
}

.logo:hover {
  color: var(--text);
  opacity: 0.9;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a:not(.btn) {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav__list a:not(.btn):hover {
  color: var(--text);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: var(--surface);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.nav__toggle-bar,
.nav__toggle-bar::before,
.nav__toggle-bar::after {
  display: block;
  width: 20px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav__toggle-bar::before,
.nav__toggle-bar::after {
  content: "";
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar {
  background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::before {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar::after {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.btn--lg {
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 12px 32px rgba(20, 184, 166, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.btn--white {
  background: #fff;
  color: var(--primary-dark);
}

.btn--white:hover {
  color: var(--bg);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(20, 184, 166, 0.2), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(167, 139, 250, 0.12), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(41, 182, 246, 0.1), transparent);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.badge {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5eead4;
  background: rgba(20, 184, 166, 0.15);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: linear-gradient(135deg, #5eead4, var(--primary), #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36ch;
}

.hero__checks {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.hero__checks li {
  position: relative;
  padding-right: 1.75rem;
  margin-bottom: 0.65rem;
  color: var(--text);
  font-weight: 500;
}

.hero__checks li::before {
  content: "✓";
  position: absolute;
  right: 0;
  color: var(--primary);
  font-weight: 700;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.trust-item {
  display: flex;
  flex-direction: column;
}

.trust-item strong {
  font-size: 1.35rem;
  color: var(--primary);
}

.trust-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Phone mock */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 380px;
}

.phone-mock {
  width: min(280px, 85vw);
  padding: 12px;
  background: linear-gradient(145deg, #2a3548, #1a2332);
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-mock__screen {
  border-radius: 22px;
  overflow: hidden;
  background: #0f172a;
}

.chat__header {
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--bale);
  color: #fff;
}

.chat {
  padding: 1rem;
  min-height: 280px;
}

.chat__bubble {
  max-width: 85%;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 14px;
  line-height: 1.5;
  animation: fadeUp 0.6s ease backwards;
}

.chat__bubble:nth-child(2) { animation-delay: 0.15s; }
.chat__bubble:nth-child(3) { animation-delay: 0.3s; }
.chat__bubble:nth-child(4) { animation-delay: 0.45s; }

.chat__bubble--in {
  margin-right: auto;
  background: var(--surface-2);
  border-bottom-right-radius: 4px;
}

.chat__bubble--out {
  margin-left: auto;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: #fff;
  border-bottom-left-radius: 4px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  animation: float 4s ease-in-out infinite;
}

.float-card--tg {
  top: 10%;
  left: 0;
  color: var(--tg);
}

.float-card--bale {
  bottom: 15%;
  right: -5%;
  color: var(--bale);
}

.float-card__dot {
  width: 10px;
  height: 10px;
  background: var(--bale);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--bale);
}

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

/* Platforms strip */
.platforms {
  padding: 1.5rem 0;
  border-block: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-alt);
}

.platforms__inner {
  text-align: center;
}

.platforms__inner p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.platforms__logos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.platform-pill {
  padding: 0.5rem 1.25rem;
  font-weight: 700;
  border-radius: 999px;
  font-size: 0.95rem;
}

.platform-pill--bale {
  background: rgba(0, 200, 83, 0.15);
  color: var(--bale);
  border: 1px solid rgba(0, 200, 83, 0.35);
}

.platform-pill--tg {
  background: rgba(41, 182, 246, 0.15);
  color: var(--tg);
  border: 1px solid rgba(41, 182, 246, 0.35);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section__label {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
}

.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  padding: 1.75rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.3);
}

.card--featured {
  border-color: rgba(20, 184, 166, 0.4);
  background: linear-gradient(160deg, rgba(20, 184, 166, 0.12), var(--surface));
}

.card__badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.25rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--primary);
  border-radius: 6px;
}

.card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Why */
.why {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.why__list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.why__list li {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.why__list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.why__list strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.05rem;
}

.why__list span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.why__stats {
  display: grid;
  gap: 1rem;
}

.stat-box {
  padding: 1.5rem;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat-box--accent {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), var(--surface));
  border-color: rgba(20, 184, 166, 0.35);
}

.stat-box__num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

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

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: 12px;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

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

/* CTA banner */
.section--cta {
  padding: 0;
}

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 3rem auto;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--primary-dark), #0f766e 50%, #115e59);
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(13, 148, 136, 0.3);
}

.cta-banner h2 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-banner p {
  margin: 0;
  opacity: 0.9;
}

/* FAQ */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  margin-bottom: 0.75rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq__item summary {
  padding: 1.15rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-right: 1rem;
}

.faq__item[open] summary::after {
  content: "−";
}

.faq__answer {
  padding: 0 1.25rem 1.15rem;
}

.faq__answer p {
  margin: 0;
  color: var(--text-muted);
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--text);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  color: var(--text);
  box-shadow: var(--shadow);
}

.contact-card--phone:hover { border-color: var(--primary); }
.contact-card--wa:hover { border-color: #25d366; }
.contact-card--tg:hover { border-color: var(--tg); }
.contact-card--bale:hover { border-color: var(--bale); }

.contact-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.contact-card__title {
  font-weight: 700;
  margin-bottom: 0.35rem;
}

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

/* Footer */
.footer {
  padding: 3rem 0 6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-alt);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__brand p {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 28ch;
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  color: var(--text-muted);
  font-weight: 500;
}

.footer__copy {
  width: 100%;
  margin: 1rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Sticky CTA mobile */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  padding: 0.75rem 1rem;
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  background: rgba(11, 18, 32, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
}

.sticky-cta .btn {
  width: 100%;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__lead {
    margin-inline: auto;
  }

  .hero__checks li {
    text-align: right;
  }

  .hero__cta,
  .hero__trust {
    justify-content: center;
  }

  .hero__visual {
    order: -1;
    min-height: 320px;
  }

  .float-card--bale {
    right: 5%;
  }

  .why {
    grid-template-columns: 1fr;
  }

  .why__stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__list {
    position: fixed;
    top: var(--header-h);
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    padding: 1rem;
    background: var(--bg-alt);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav__list.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list li {
    width: 100%;
  }

  .nav__list a {
    display: block;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav__list .btn {
    width: 100%;
    margin-top: 0.5rem;
  }

  .why__stats {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    text-align: center;
    justify-content: center;
  }

  .footer {
    padding-bottom: 7rem;
  }
}

@media (max-width: 480px) {
  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
