/* ==========================================================================
   TrafficFlow - Public / Landing pages
   ========================================================================== */

/* ---------- Navbar ---------- */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  color: var(--text-dark);
}

.navbar-logo img { width: 28px; height: 28px; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-links a {
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 500;
}

.navbar-links a:hover { color: var(--primary); }

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

.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.navbar-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  margin: 5px 0;
}

@media (max-width: 900px) {
  .navbar-links { display: none; }
  .navbar-actions .btn-secondary { display: none; }
  .navbar-toggle { display: block; }

  .navbar-links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
  }
}

/* ---------- Hero ---------- */

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

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

.hero-copy h1 {
  font-size: 44px;
  letter-spacing: -0.02em;
}

.hero-copy p {
  font-size: 17px;
  margin-bottom: 28px;
}

.hero-input {
  display: flex;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  box-shadow: var(--shadow-sm);
  max-width: 480px;
  margin-bottom: 20px;
}

.hero-input input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}

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

/* Hero visual mockup */

.hero-visual {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}

.hero-visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.hero-visual-header .badge { margin-left: auto; }

.hero-visual-chart {
  height: 120px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.12), rgba(37, 99, 235, 0));
  position: relative;
  margin-bottom: 16px;
  overflow: hidden;
}

.hero-visual-chart svg { width: 100%; height: 100%; }

.hero-visual-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 16px;
}

.hero-visual-progress span {
  display: block;
  height: 100%;
  width: 64%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.hero-visual-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-mini-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.hero-mini-card .label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.hero-mini-card .value {
  font-weight: 700;
  font-size: 15px;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 32px; }
}

/* ---------- Benefit bar ---------- */

.benefit-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.benefit-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}

.benefit-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.benefit-bar-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

/* ---------- How it works ---------- */

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

.step-card {
  position: relative;
  padding-top: 8px;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- Feature grid ---------- */

.feature-card {
  padding: 24px;
  border-radius: var(--radius-lg);
  background: #fff;
  border: 1px solid var(--border);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: #EFF6FF;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Use cases ---------- */

.use-case-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  background: linear-gradient(160deg, #fff, #F8FAFC);
  border: 1px solid var(--border);
}

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}

.pricing-card.is-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-8px);
}

.pricing-plan-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pricing-price {
  font-size: 34px;
  font-weight: 800;
  margin: 8px 0 4px;
}

.pricing-price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-features {
  margin: 20px 0 24px;
  flex: 1;
}

.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-dark);
  border-top: 1px solid var(--border);
}

.pricing-features li:first-child { border-top: none; }

@media (max-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-card.is-featured { transform: none; }
}
@media (max-width: 560px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

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

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

.faq-question .icon {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

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

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

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

.faq-answer p {
  padding: 0 4px 20px;
  margin: 0;
}

/* ---------- Final CTA ---------- */

.final-cta {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  padding: 56px 24px;
  text-align: center;
  color: #fff;
  margin: 0 24px;
}

.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.85); }
.final-cta .btn-primary { background: #fff; color: var(--primary); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

.site-footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

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