/* WorldFlow AI — Nav, Footer, Buttons, Cards, Forms, Theme Toggle */

/* ───────────────── Buttons ───────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  position: relative;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.25), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(5, 150, 105, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

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

.btn-large {
  padding: 15px 36px;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
}

/* ───────────────── Navigation ───────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-base);
}

.nav.scrolled {
  background: var(--nav-bg-scroll);
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.04);
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-tertiary);
}

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

/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }

[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* Mobile Menu */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-menu-btn svg {
  width: 22px;
  height: 22px;
}

.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg-primary);
  padding: 80px 24px 40px;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
}

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

.mobile-overlay .nav-link {
  font-size: 1.25rem;
  padding: 16px 0;
  border-bottom: 1px solid var(--border-color);
}

.mobile-overlay .mobile-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}

.mobile-overlay .mobile-actions .btn {
  width: 100%;
  justify-content: center;
}

.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-close svg {
  width: 24px;
  height: 24px;
}

/* ───────────────── Cards ───────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-card);
  position: relative;
}

.card:hover {
  border-color: rgba(5, 150, 105, 0.15);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.1), rgba(5, 150, 105, 0.04));
  border: 1px solid rgba(5, 150, 105, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-icon svg {
  width: 24px;
  height: 24px;
  color: var(--accent-primary);
}

.card-icon-red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.04));
  border-color: rgba(239, 68, 68, 0.1);
}

.card-icon-red svg {
  color: #ef4444;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.925rem;
  line-height: 1.65;
}

.card-metric {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.card-stat {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ef4444;
}

/* Benefit card (larger) */
.benefit-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 44px;
  transition: all var(--transition-slow);
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.benefit-card:hover {
  border-color: rgba(5, 150, 105, 0.15);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.12), rgba(5, 150, 105, 0.04));
  border: 1px solid rgba(5, 150, 105, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.benefit-icon svg {
  width: 28px;
  height: 28px;
  color: var(--accent-primary);
}

.benefit-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.benefit-text {
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.benefit-metric {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.08), rgba(5, 150, 105, 0.03));
  border: 1px solid rgba(5, 150, 105, 0.12);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* ───────────────── Forms ───────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--bg-primary);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-submit {
  width: 100%;
  margin-top: 8px;
}

/* ───────────────── Footer ───────────────── */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 80px 32px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}

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

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-logo img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.footer-tagline {
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--bg-tertiary);
  color: var(--accent-primary);
  border-color: rgba(5, 150, 105, 0.15);
  transform: translateY(-2px);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-column h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-color);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.825rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--text-secondary);
}

/* ───────────────── Comparison Table ───────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-card);
}

.comparison-table th,
.comparison-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
  background: var(--bg-tertiary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.01em;
}

.comparison-table th:first-child {
  width: 30%;
}

.comparison-table td {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight {
  background: var(--accent-glow);
}

.comparison-table .highlight td {
  color: var(--text-primary);
}

.check-icon { color: var(--accent-primary); }
.x-icon { color: #ef4444; }
.partial-icon { color: #f59e0b; }

/* ───────────────── CTA Section ───────────────── */
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 44px;
  box-shadow: var(--shadow-card);
  transition: all var(--transition-base);
}

.cta-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.cta-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.cta-card-text {
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* ───────────────── Pricing CTA Card ───────────────── */
.pricing-cta-card {
  background: var(--bg-card);
  border: 1px solid rgba(5, 150, 105, 0.15);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-card), 0 0 80px rgba(5, 150, 105, 0.06);
  position: relative;
  overflow: hidden;
}

.pricing-cta-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.pricing-cta-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.015em;
}

.pricing-cta-card p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.65;
}

/* ───────────────── Accordion / FAQ ───────────────── */
.accordion-item {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.accordion-item:hover {
  border-color: var(--border-light);
}

.accordion-item.open {
  box-shadow: var(--shadow-md);
  border-color: rgba(5, 150, 105, 0.15);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-card);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.accordion-trigger:hover {
  background: var(--bg-card-hover);
}

.accordion-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  flex-shrink: 0;
}

.accordion-item.open .accordion-trigger svg {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.accordion-content {
  display: none;
  padding: 0 24px 20px;
  background: var(--bg-card);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.925rem;
}

.accordion-item.open .accordion-content {
  display: block;
}

/* ───────────────── Trust Bar ───────────────── */
.trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  padding: 20px 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.825rem;
  color: var(--text-muted);
  font-weight: 500;
}

.trust-item img {
  height: 32px;
}

.trust-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent-primary);
}

/* ───────────────── Page Hero ───────────────── */
.page-hero {
  padding: 160px 32px 96px;
  text-align: center;
  background: var(--gradient-hero);
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-color), transparent);
}

.page-hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  line-height: 1.08;
}

.page-hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ───────────────── Responsive ───────────────── */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .footer-brand {
    grid-column: span 2;
    max-width: 100%;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 16px;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .btn-ghost,
  .nav-actions .btn-primary {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-container {
    padding: 0 20px;
  }

  .footer {
    padding: 60px 20px 32px;
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .trust-bar {
    gap: 16px;
  }

  .page-hero {
    padding: 120px 20px 64px;
  }
}
