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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #111827;
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* ===== Container ===== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 8px;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
}

.btn-block {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 14px 24px;
}

.btn-primary {
  background: #B7E63A;
  color: #111827;
  box-shadow: 0 2px 8px rgba(183, 230, 58, 0.3);
}

.btn-primary:hover {
  background: #A5D42F;
  box-shadow: 0 4px 16px rgba(183, 230, 58, 0.4);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: #B7E63A;
  border: 2px solid #B7E63A;
}

.btn-outline:hover {
  background: #B7E63A;
  color: #111827;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: #111827;
  border: 2px solid #E5E7EB;
}

.btn-ghost:hover {
  border-color: #B7E63A;
  color: #B7E63A;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon {
  flex-shrink: 0;
}

.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #111827;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: #4B5563;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: #B7E63A;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #111827;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(183, 230, 58, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(183, 230, 58, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(210, 242, 108, 0.06) 0%, transparent 50%);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(183, 230, 58, 0.06) 1px, transparent 0);
  background-size: 40px 40px;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(49, 68, 0, 0.08);
  border: 1px solid rgba(183, 230, 58, 0.15);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: #97BD32;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: #B7E63A;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: #4B5563;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-try-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: -40px auto 40px;
  font-size: 14px;
  font-weight: 500;
  color: #4B5563;
  transition: color 0.2s ease;
}

.hero-try-link:hover {
  color: #97BD32;
}

.hero-try-link svg {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.hero-try-link:hover svg {
  transform: translateX(2px);
}

/* Dashboard Preview */
.hero-visual {
  max-width: 720px;
  margin: 0 auto;
}

.dashboard-preview {
  background: #0F172A;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 24px 80px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

.preview-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.05);
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.preview-body {
  display: flex;
  padding: 16px;
  gap: 16px;
  min-height: 200px;
}

.preview-sidebar {
  width: 48px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.preview-nav-item {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.preview-nav-item.active {
  background: #B7E63A;
}

.preview-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.preview-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-stat-label {
  height: 6px;
  width: 50%;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.preview-stat-value {
  height: 10px;
  width: 70%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.preview-stat-trend {
  height: 4px;
  width: 40%;
  border-radius: 2px;
}

.preview-stat-trend.up {
  background: #16A34A;
}

.preview-stat-trend.down {
  background: #DC2626;
}

.preview-chart {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  align-items: flex-end;
}

.chart-line {
  width: 100%;
  height: auto;
}

/* ===== Social Proof ===== */
.social-proof {
  padding: 48px 0;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  text-align: center;
}

.social-proof-text {
  font-size: 15px;
  color: #6B7280;
  margin-bottom: 24px;
}

.social-proof-text strong {
  color: #111827;
}

.audience-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.audience-pill {
  padding: 7px 16px;
  border-radius: 100px;
  background: #F4F5F7;
  border: 1px solid #E5E7EB;
  font-size: 13px;
  font-weight: 600;
  color: #4B5563;
}

.platform-focus-note {
  margin-top: 18px;
  font-size: 13px;
  color: #9CA3AF;
}

.platform-focus-note strong {
  color: #6B7280;
}

/* ===== Section Common ===== */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #B7E63A;
  margin-bottom: 12px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
  color: #111827;
}

.section-subtitle {
  font-size: 17px;
  color: #4B5563;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
}

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

.feature-card {
  padding: 32px 28px;
  border-radius: 14px;
  border: 1px solid #E5E7EB;
  background: #fff;
  transition: all 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(183, 230, 58, 0.2);
  box-shadow: 0 8px 32px rgba(183, 230, 58, 0.08);
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(183, 230, 58, 0.08);
  border-radius: 12px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #111827;
}

.feature-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #4B5563;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 100px 0;
  background: #F4F5F7;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 0 1 260px;
  padding: 0 20px;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #B7E63A;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.step-icon {
  margin: 0 auto 16px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(183, 230, 58, 0.08);
  border-radius: 16px;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.step-desc {
  font-size: 14px;
  color: #4B5563;
  line-height: 1.6;
}

.step-connector {
  flex-shrink: 0;
  margin-top: 90px;
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
}

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

.pricing-agency-note {
  text-align: center;
  margin-top: 40px;
  font-size: 15px;
  color: #6B7280;
}

.pricing-agency-note a {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
}

.pricing-card {
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 40px 32px;
  background: #fff;
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: #B7E63A;
  box-shadow: 0 8px 40px rgba(183, 230, 58, 0.15);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 12px 48px rgba(183, 230, 58, 0.2);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #B7E63A;
  color: #111827;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid #E5E7EB;
}

.pricing-plan {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111827;
}

.pricing-price {
  margin-bottom: 8px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: -2px;
  color: #111827;
}

.price-period {
  font-size: 16px;
  color: #6B7280;
  font-weight: 500;
}

.pricing-desc {
  font-size: 14px;
  color: #6B7280;
}

.pricing-features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #4B5563;
}

.pricing-features li svg {
  flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq {
  padding: 100px 0;
  background: #F4F5F7;
}

.faq-list {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: #D1D5DB;
}

.faq-item.open {
  border-color: rgba(183, 230, 58, 0.3);
}

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

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: #6B7280;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: #B7E63A;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: #4B5563;
}

/* ===== CTA Section ===== */
.cta-section {
  padding: 100px 0;
}

.cta-box {
  text-align: center;
  padding: 72px 48px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 80% at 20% 50%, rgba(183, 230, 58, 0.3) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 80% 50%, rgba(183, 230, 58, 0.2) 0%, transparent 60%);
  z-index: 0;
}

.cta-box > * {
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.cta-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
  padding: 64px 0 0;
  border-top: 1px solid #E5E7EB;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  max-width: 280px;
}

.footer-tagline {
  font-size: 14px;
  color: #6B7280;
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #111827;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 14px;
  color: #6B7280;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #B7E63A;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid #E5E7EB;
}

.footer-bottom p {
  font-size: 13px;
  color: #6B7280;
}

/* ===== Scroll Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger feature cards */
.feature-card.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.feature-card.animate-on-scroll:nth-child(2) { transition-delay: 0.05s; }
.feature-card.animate-on-scroll:nth-child(3) { transition-delay: 0.1s; }
.feature-card.animate-on-scroll:nth-child(4) { transition-delay: 0.15s; }
.feature-card.animate-on-scroll:nth-child(5) { transition-delay: 0.2s; }
.feature-card.animate-on-scroll:nth-child(6) { transition-delay: 0.25s; }
.feature-card.animate-on-scroll:nth-child(7) { transition-delay: 0.3s; }
.feature-card.animate-on-scroll:nth-child(8) { transition-delay: 0.35s; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-title {
    font-size: 44px;
  }

  .section-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 12px 0;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    /* Explicit height instead of bottom:0 — .navbar.scrolled's backdrop-filter
       makes .navbar a new containing block for this fixed child, so bottom:0
       would resolve against the ~60px navbar box, not the real viewport, once
       scrolled. vh/dvh are viewport-relative regardless of containing block,
       so this stays full-height either way. 100dvh (falls back to 100vh on
       browsers that don't support it) also accounts for mobile Safari's
       collapsing address bar. */
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

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

  .nav-links a:not(.btn) {
    font-size: 20px;
  }

  .mobile-menu-btn {
    display: flex;
    z-index: 1001;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-title {
    font-size: 36px;
    letter-spacing: -1px;
  }

  .hero-title br {
    display: none;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-ctas {
    flex-direction: column;
    margin-bottom: 48px;
  }

  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

  .section-title {
    font-size: 30px;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-connector {
    margin-top: 0;
    transform: rotate(90deg);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-card.featured:hover {
    transform: translateY(-4px);
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    gap: 32px;
    flex-wrap: wrap;
  }

  .cta-box {
    padding: 48px 24px;
  }

  .cta-title {
    font-size: 28px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-title {
    font-size: 30px;
  }

  .section-title {
    font-size: 26px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .price-amount {
    font-size: 40px;
  }
}

/* ===== Footer legal entity ===== */
.footer-legal-entity {
  font-size: 13px;
  color: #9ca3af;
  margin-top: 4px;
}

.footer-legal-meta {
  font-size: 12px;
  color: #9ca3af;
  margin-top: 6px;
}

/* ===== Legal pages (Terms / Privacy) ===== */
body.static-page .navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.legal-page {
  max-width: 820px;
  padding: 150px 24px 100px;
}

.legal-page h1 {
  font-size: 36px;
  margin-bottom: 8px;
}

.legal-updated {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 32px;
}

.legal-entity-block {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 40px;
  font-size: 14px;
  color: #374151;
  line-height: 1.8;
}

.legal-entity-block strong {
  color: #111827;
}

.legal-content h2 {
  font-size: 21px;
  margin: 36px 0 12px;
}

.legal-content h3 {
  font-size: 16px;
  margin: 20px 0 8px;
}

.legal-content p,
.legal-content li {
  color: #374151;
  font-size: 15px;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
}

.legal-content a {
  color: #111827;
  text-decoration: underline;
}
