/* Poopak Introduction — pure CSS */

:root {
  --poopak-bg: #f7f7f9;
  --poopak-surface: #f8f9fa;
  --poopak-primary: #0240f2;
  --poopak-primary-soft: #deecfe;
  --poopak-ink: #0f1c2a;
  --poopak-muted: #61686b;
  --poopak-chip: #b5e916;
  --poopak-navy: #0a1d51;
  --font-sans: "Vazirmatn", ui-sans-serif, system-ui, sans-serif;
  --radius-pill: 28px;
  --radius-lg: 24px;
  --shadow-soft: 0 18px 50px rgba(2, 64, 242, 0.12);
  --header-h: 4.25rem;
  --shell: min(1120px, calc(100% - 2.5rem));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--poopak-ink);
  background: var(--poopak-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--poopak-primary);
  color: #fff;
}

.skip-link:focus {
  top: 1rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--poopak-primary);
  color: #fff;
  box-shadow: 0 10px 28px rgba(2, 64, 242, 0.28);
}

.btn-primary:hover {
  background: #0136d0;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(2, 64, 242, 0.22);
  color: var(--poopak-navy);
}

.btn-ghost:hover {
  background: #fff;
  border-color: var(--poopak-primary);
}

.btn-sm {
  min-height: 2.5rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.95rem;
}

.btn-lg {
  min-height: 3.35rem;
  padding: 0.8rem 1.85rem;
  font-size: 1.05rem;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  backdrop-filter: blur(14px);
  background: rgba(247, 247, 249, 0.86);
  border-bottom: 1px solid rgba(15, 28, 42, 0.06);
  transition: box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(10, 29, 81, 0.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--poopak-navy);
}

.brand-mark {
  width: 2.1rem;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a:not(.btn) {
  color: var(--poopak-muted);
  font-weight: 500;
  font-size: 0.98rem;
}

.nav a:not(.btn):hover {
  color: var(--poopak-primary);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: var(--poopak-primary-soft);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--poopak-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero — one composition, brand first */

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 55% at 15% 20%, rgba(181, 233, 22, 0.22), transparent 60%),
    radial-gradient(ellipse 80% 70% at 85% 30%, rgba(2, 64, 242, 0.18), transparent 55%),
    linear-gradient(165deg, #eef4ff 0%, var(--poopak-bg) 48%, #e8f0fe 100%);
}

.hero-atmosphere::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(to top, var(--poopak-bg), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
}

.hero-copy {
  animation: hero-rise 0.85s ease both;
}

.hero-brand {
  font-size: clamp(2.75rem, 7vw, 4.75rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--poopak-primary);
  margin-bottom: 0.85rem;
}

.hero-title {
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--poopak-navy);
  max-width: 18ch;
}

.hero-lead {
  margin-top: 1rem;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--poopak-muted);
  max-width: 36ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-visual {
  animation: hero-rise 1s ease 0.12s both;
}

.hero-visual img {
  width: 100%;
  border-radius: calc(var(--radius-lg) + 8px);
  box-shadow: var(--shadow-soft);
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sections */

.section {
  padding-block: clamp(3.5rem, 8vw, 5.5rem);
}

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head h2 {
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--poopak-navy);
  line-height: 1.35;
  margin-bottom: 0.65rem;
}

.section-head p {
  color: var(--poopak-muted);
  font-size: 1.05rem;
}

/* Features — columns, not card chrome */

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 2.75rem);
}

.feature-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--poopak-navy);
  margin-bottom: 0.55rem;
}

.feature p {
  color: var(--poopak-muted);
  font-size: 0.98rem;
}

.features {
  border-top: 1px solid rgba(15, 28, 42, 0.05);
}

/* How it works */

.how {
  background:
    linear-gradient(180deg, rgba(222, 236, 254, 0.55), rgba(247, 247, 249, 0) 70%);
}

.steps {
  display: grid;
  gap: 1.25rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.15rem;
  align-items: start;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(15, 28, 42, 0.08);
}

.step:last-child {
  border-bottom: 0;
}

.step-num {
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--poopak-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
}

.step h3 {
  font-size: 1.15rem;
  color: var(--poopak-navy);
  margin-bottom: 0.35rem;
}

.step p {
  color: var(--poopak-muted);
}

/* Why / wallet */

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.why-list {
  display: grid;
  gap: 1.15rem;
}

.why-list li {
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(15, 28, 42, 0.08);
}

.why-list li:last-child {
  border-bottom: 0;
}

.why-list strong {
  display: block;
  color: var(--poopak-navy);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.why-list span {
  color: var(--poopak-muted);
  font-size: 0.98rem;
}

.why-list li::before {
  content: "";
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--poopak-chip);
  margin-inline-end: 0.55rem;
  vertical-align: middle;
  position: relative;
  top: -0.1rem;
}

/* CTA band */

.cta-band {
  padding-block: clamp(3.5rem, 8vw, 5rem);
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(181, 233, 22, 0.25), transparent 55%),
    linear-gradient(120deg, var(--poopak-navy), #12307a 55%, var(--poopak-primary));
  color: #fff;
}

.cta-inner {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
}

.cta-inner h2 {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  margin-bottom: 0.65rem;
}

.cta-inner p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-band .btn-primary {
  background: #fff;
  color: var(--poopak-primary);
  box-shadow: none;
}

.cta-band .btn-primary:hover {
  background: var(--poopak-chip);
  color: var(--poopak-ink);
}

/* Footer */

.site-footer {
  padding-block: 1.75rem;
  border-top: 1px solid rgba(15, 28, 42, 0.06);
  background: var(--poopak-surface);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--poopak-navy);
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--poopak-muted);
  font-size: 0.92rem;
}

.footer-meta a {
  color: var(--poopak-primary);
  font-weight: 600;
}

/* Reveal on scroll */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .why-grid,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-title {
    max-width: none;
  }

  .hero-visual {
    order: -1;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    inset-inline: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(247, 247, 249, 0.97);
    border-bottom: 1px solid rgba(15, 28, 42, 0.08);
    transform: translateY(-0.5rem);
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  .nav a {
    padding: 0.85rem 0.35rem;
    border-bottom: 1px solid rgba(15, 28, 42, 0.06);
  }

  .nav .nav-cta {
    margin-top: 0.75rem;
    width: 100%;
    border-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .hero-visual,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .btn:hover {
    transform: none;
  }
}
