/* ==========================================================================
   LANDING PAGE STYLES
   Standalone styles for the marketing/landing page.
   ========================================================================== */

.landing-page {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  font-family: var(--font-sans);
  min-height: 100vh;
}

/* Navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease;
}

.landing-nav.scrolled {
  background: var(--bs-body-bg);
  border-bottom: 1px solid var(--bs-border-color);
}

.landing-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--bs-body-color);
  text-decoration: none;
}

.landing-brand i { color: var(--bs-primary); }

.nav-actions { display: flex; align-items: center; gap: 1.25rem; }

.nav-link-landing {
  color: var(--bs-secondary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.nav-link-landing:hover { color: var(--bs-body-color); }

/* Landing Buttons */
.btn-landing-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--bs-primary);
  color: var(--bs-body-bg);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-landing-primary:hover {
  background: var(--bs-primary-hover);
  color: var(--bs-body-bg);
}

.btn-landing-primary.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }

.btn-landing-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: transparent;
  color: var(--bs-body-color);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--bs-border-color);
}

.btn-landing-ghost:hover {
  border-color: var(--bs-primary);
  color: var(--bs-body-color);
}

.btn-landing-ghost.btn-lg { padding: 0.85rem 1.75rem; font-size: 0.95rem; }

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 5rem;
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hero-content { max-width: 540px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.85rem;
  background: transparent;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--bs-secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.75rem;
}

.badge-dot {
  width: 5px;
  height: 5px;
  background: var(--bs-primary);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-primary-hover) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--bs-secondary-color);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  max-width: 440px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--bs-border-color);
}

.stat-item { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-value { font-size: 1.1rem; font-weight: 700; color: var(--bs-body-color); }
.stat-label { font-size: 0.65rem; font-weight: 500; color: var(--bs-secondary-color); text-transform: uppercase; letter-spacing: 0.1em; }
.stat-divider { width: 1px; height: 32px; background: var(--bs-border-color); }

/* Hero Visual */
.hero-visual {
  position: relative;
  height: 480px;
}

.floating-card {
  position: absolute;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
  width: 260px;
}

.floating-card.card-1 { top: 8%; left: 5%; z-index: 3; }
.floating-card.card-2 { top: 38%; right: 0%; z-index: 2; }
.floating-card.card-3 { bottom: 12%; left: 15%; z-index: 1; }

.fc-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}

.fc-icon.income { background: rgba(var(--bs-success-rgb), 0.15); color: var(--bs-success); }
.fc-icon.expense { background: rgba(var(--bs-danger-rgb), 0.15); color: var(--bs-danger); }

.fc-details { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.6rem; }
.fc-desc { font-weight: 600; font-size: 0.85rem; color: var(--bs-body-color); }
.fc-amount { font-weight: 700; font-size: 0.85rem; }
.fc-amount.positive { color: var(--bs-success); }
.fc-amount.negative { color: var(--bs-danger); }

.fc-tags { display: flex; gap: 0.35rem; }
.fc-tag {
  padding: 0.15rem 0.45rem;
  background: var(--bs-surface-hover);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-sm);
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--bs-secondary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.visual-chart {
  position: absolute;
  bottom: 8%;
  right: 8%;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 90px;
  padding: 0.85rem;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-md);
}

.chart-bar {
  width: 16px;
  height: var(--height);
  background: var(--bs-border-color);
  border-radius: 2px;
}

.chart-bar.active { background: var(--bs-primary); }

/* Features Section */
.features-section {
  position: relative;
  padding: 7rem 0;
}

.features-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.features-section .section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
  padding-bottom: 0;
  border-bottom: none;
}

.section-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: transparent;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-sm);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--bs-primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--bs-secondary-color);
  line-height: 1.6;
}

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

.feature-card {
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s ease;
}

.feature-card:hover { border-color: var(--bs-primary); }

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--bs-primary-bg-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bs-primary);
  margin-bottom: 1.25rem;
}

.feature-card:hover .feature-icon {
  background: var(--bs-primary);
  color: var(--bs-body-bg);
}

.feature-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.6rem; }
.feature-desc { color: var(--bs-secondary-color); line-height: 1.55; margin-bottom: 1.25rem; font-size: 0.9rem; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 0.45rem; }
.feature-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--bs-secondary-color); }
.feature-list li i { color: var(--bs-primary); font-size: 0.85rem; }

/* Feature variations */
.feature-import .feature-icon { background: rgba(96, 165, 250, 0.1); color: #60a5fa; }
.feature-import:hover .feature-icon { background: #60a5fa; }
.feature-tags .feature-icon { background: rgba(167, 139, 250, 0.1); color: #a78bfa; }
.feature-tags:hover .feature-icon { background: #a78bfa; }
.feature-analytics .feature-icon { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.feature-analytics:hover .feature-icon { background: #4ade80; }
.feature-accounts .feature-icon { background: rgba(251, 191, 36, 0.1); color: #fbbf24; }
.feature-accounts:hover .feature-icon { background: #fbbf24; }

/* Workflow Section */
.workflow-section {
  position: relative;
  padding: 5rem 0 7rem;
}

.workflow-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.workflow-section .section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 4rem;
  padding-bottom: 0;
  border-bottom: none;
}

.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 4rem;
}

.workflow-step {
  flex: 1;
  text-align: center;
  padding: 0 0.75rem;
}

.step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--bs-primary);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.step-content p { color: var(--bs-secondary-color); font-size: 0.85rem; line-height: 1.5; }

.step-visual {
  width: 56px;
  height: 56px;
  margin: 1.25rem auto 0;
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--bs-primary);
}

.workflow-step:hover .step-visual { border-color: var(--bs-primary); }

.workflow-connector {
  width: 60px;
  height: 1px;
  background: var(--bs-border-color);
  margin-top: 5rem;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 3rem 0 7rem;
}

.cta-section .container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.cta-card {
  background: var(--bs-secondary-bg);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  position: relative;
  overflow: hidden;
}

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

.cta-content h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 0.35rem; }
.cta-content p { color: var(--bs-secondary-color); font-size: 1rem; }

/* Footer */
.landing-footer {
  position: relative;
  padding: 2.5rem 0;
  border-top: 1px solid var(--bs-border-color);
}

.landing-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bs-body-color);
}

.footer-brand i { color: var(--bs-primary); }

.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { color: var(--bs-secondary-color); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--bs-body-color); }

.footer-copy { color: var(--bs-secondary-color); font-size: 0.8rem; }

/* Landing Responsive */
@media (max-width: 992px) {
  .hero-section .container { grid-template-columns: 1fr; text-align: center; gap: 3rem; }
  .hero-content { max-width: 100%; }
  .hero-subtitle { max-width: 100%; margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .workflow-steps { flex-direction: column; gap: 2.5rem; }
  .workflow-connector { width: 1px; height: 30px; margin: 0 auto; }
  .cta-card { flex-direction: column; text-align: center; padding: 2.5rem 1.75rem; }
}

@media (max-width: 768px) {
  .landing-nav .container { padding: 0 1rem; }
  .nav-link-landing { display: none; }
  .hero-section { padding: 5rem 0 3rem; min-height: auto; }
  .hero-title { font-size: clamp(2.25rem, 8vw, 3rem); }
  .hero-stats { flex-direction: column; gap: 1rem; }
  .stat-divider { width: 40px; height: 1px; }
  .features-section .section-header { margin-bottom: 2.5rem; }
  .feature-card { padding: 1.5rem; }
  .footer-content { flex-direction: column; gap: 1.25rem; text-align: center; }
}
