/* Posify product landing page - light, fast, SEO-friendly */

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-muted: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #dbeafe;
  --accent-glow: rgba(37, 99, 235, 0.12);
  --success: #059669;
  --success-soft: #d1fae5;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

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

.nav-desktop a:hover {
  color: var(--text);
  text-decoration: none;
}

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

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding: 12px 16px;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 1rem;
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 50% -20%, var(--accent-glow), transparent),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent), #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 520px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-trust svg {
  color: var(--success);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  padding: 28px 20px 36px 12px;
  overflow: visible;
}

.hero-mock {
  position: relative;
  z-index: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.mock-bar {
  display: flex;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mock-dot:first-child { background: #f87171; }
.mock-dot:nth-child(2) { background: #fbbf24; }
.mock-dot:nth-child(3) { background: #34d399; }

.mock-body {
  padding: 24px;
}

.mock-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.mock-stat {
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 14px;
  border: 1px solid var(--border);
}

.mock-stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.mock-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.mock-stat-value.green { color: var(--success); }

.mock-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--bg-soft);
  border-radius: 8px;
  font-size: 0.8125rem;
}

.mock-row strong {
  font-weight: 600;
}

.hero-float {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px 10px 10px;
  box-shadow: var(--shadow);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.hero-float .float-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.9375rem;
}

.hero-float.sale {
  bottom: 12px;
  left: 0;
}

.hero-float.sale .float-icon {
  background: var(--success-soft);
  color: var(--success);
}

.hero-float.stock {
  top: 0;
  right: 0;
  color: var(--text);
}

.hero-float.stock .float-icon {
  background: var(--accent-soft);
  font-size: 1rem;
}

/* Sections */
section {
  padding: 80px 0;
}

.section-label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 0 48px;
}

/* Logos / platforms */
.platforms {
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.platforms-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
}

.platforms-inner span {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Features */
.features {
  background: var(--bg-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.feature-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Top features */
.top-features {
  padding: 80px 0;
  background: var(--bg-soft);
}

.top-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.top-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.top-feature:hover {
  box-shadow: var(--shadow-sm);
  border-color: #cbd5e1;
}

.top-feature-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
}

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

.top-feature h3 {
  margin: 0 0 6px;
  font-size: 0.975rem;
  font-weight: 700;
  line-height: 1.3;
}

.top-feature p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.top-feature-more {
  text-decoration: none;
  color: inherit;
  border-style: dashed;
  border-color: #cbd5e1;
  background: var(--bg-soft);
}

.top-feature-more:hover {
  text-decoration: none;
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: var(--shadow-sm);
}

.top-feature-more h3 {
  color: var(--accent);
}

.top-feature-more:hover h3 {
  color: var(--accent-hover);
}

/* How it works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  counter-reset: step;
}

.step-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.step-card::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 50%;
  margin-bottom: 20px;
}

.step-card h3 {
  font-size: 1.0625rem;
  margin: 0 0 10px;
}

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

/* Pricing CTA */
.pricing-cta {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #7c3aed 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  margin: 0;
}

.pricing-cta .section-title {
  color: #fff;
  margin-bottom: 12px;
}

.pricing-cta .section-desc {
  color: rgba(255, 255, 255, 0.85);
  margin-inline: auto;
  margin-bottom: 32px;
}

.pricing-cta .btn-primary {
  background: #fff;
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.pricing-cta .btn-primary:hover {
  background: #f8fafc;
}

.pricing-cta .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.pricing-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.pricing-note {
  margin-top: 20px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

/* FAQ */
#faq .container {
  width: min(100% - 40px, 720px);
}

#faq .section-label,
#faq .section-title,
#faq .section-desc {
  text-align: center;
}

#faq .section-desc {
  margin-inline: auto;
}

.faq-list {
  width: 100%;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-muted);
  display: grid;
  place-items: center;
  transition: transform 0.2s;
  color: var(--text-muted);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 0 20px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  display: block;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #94a3b8;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-brand .logo {
  color: #fff;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #94a3b8;
  font-size: 0.9375rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.875rem;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 14px 16px;
  color: var(--text);
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
}

.mobile-nav a:hover {
  background: var(--bg-soft);
  text-decoration: none;
}

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

  .hero-lead {
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-trust {
    justify-content: center;
  }

  .hero-visual {
    max-width: 480px;
    margin-inline: auto;
    padding: 24px 8px 32px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .top-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 640px) {
  .nav-desktop {
    display: none;
  }

  .header-actions .btn-ghost {
    display: none;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    padding: 48px 0 64px;
  }

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

  .top-features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-cta {
    padding: 40px 24px;
  }

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

  .hero-float {
    font-size: 0.75rem;
    padding: 8px 12px 8px 8px;
  }

  .hero-float .float-icon {
    width: 28px;
    height: 28px;
    font-size: 0.8125rem;
  }
}
