:root {
  --primary-color: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary-color: #64748b;
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --success-color: #10b981;
  --max-width: 1200px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text-dark);
  text-decoration: none;
}

.nav-logo {
  width: 32px;
  height: 32px;
}

.nav-brand-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-link {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link-btn:not(.nav-link-primary) {
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.nav-link-btn:not(.nav-link-primary):hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.nav-link-primary {
  background: var(--primary-color);
  color: white;
}

.nav-link-primary:hover {
  background: var(--primary-hover);
}

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

.mobile-menu-btn span {
  width: 24px;
  height: 3px;
  background-color: var(--text-dark);
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: 3rem 0 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
}

.hero-content {
  text-align: center;
  margin-bottom: 3rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
}

/* Hero Visual - Modern Animated */
.hero-visual {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.hero-animation {
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 100%);
  padding: 3rem 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 900px;
  width: 100%;
}

.hero-logo {
  text-align: center;
  margin-bottom: 3rem;
}

.animated-logo {
  font-size: 3rem;
  font-weight: 700;
  margin: 0;
  animation: fadeInDown 1s ease-out;
}

.logo-white {
  color: white;
}

.logo-blue {
  color: #3b82f6;
}

.invoice-flow-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  animation: fadeInUp 1s ease-out 0.3s both;
}

.flow-step-modern {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: scaleIn 0.6s ease-out both;
}

.flow-step-modern:nth-child(1) { animation-delay: 0.4s; }
.flow-step-modern:nth-child(3) { animation-delay: 0.6s; }
.flow-step-modern:nth-child(5) { animation-delay: 0.8s; }
.flow-step-modern:nth-child(7) { animation-delay: 1s; }

.flow-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.flow-card:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.3);
}

.flow-icon-modern {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-icon-modern svg {
  width: 100%;
  height: 100%;
  color: white;
}

.email-icon svg {
  color: #3b82f6;
}

.ai-icon svg {
  color: #2563eb;
}

.review-icon svg {
  color: white;
}

.xero-icon svg {
  width: 80px;
  height: 80px;
}

.flow-label-modern {
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-align: center;
}

.flow-arrow-modern {
  width: 40px;
  height: 40px;
  animation: pulse 2s ease-in-out infinite;
}

.flow-arrow-modern svg {
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
}

/* Sections */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.section-intro {
  font-size: 1.125rem;
  text-align: center;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-top: 3rem;
  color: var(--primary-color);
}

/* Made For Section */
.made-for {
  background: var(--bg-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* How It Works */
.how-it-works {
  background: var(--bg-light);
}

.steps {
  display: grid;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.step-content p {
  color: var(--text-light);
  font-size: 1.125rem;
}

/* Built For */
.built-for {
  background: var(--bg-white);
}

.use-cases {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.use-case {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-light);
  border-radius: 0.75rem;
}

.use-case-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.use-case p {
  color: var(--text-dark);
  font-weight: 500;
}

/* Pricing */
.pricing {
  background: var(--bg-light);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border-radius: 1rem;
  padding: 2.5rem 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
}

.pricing-card-popular {
  border-color: var(--primary-color);
  box-shadow: 0 12px 48px rgba(37, 99, 235, 0.2);
  transform: scale(1.05);
}

.pricing-card-popular:hover {
  transform: scale(1.05) translateY(-8px);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-color);
  color: white;
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.25rem;
}

.currency {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 0.5rem;
}

.price {
  font-size: 4rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
}

.period {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-top: 2rem;
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-feature {
  font-size: 1.125rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-note {
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* Testimonials */
.testimonials {
  background: var(--bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 1rem;
  border-left: 4px solid var(--primary-color);
}

.testimonial-text {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  line-height: 1.8;
  font-style: italic;
}

.testimonial-author {
  color: var(--text-light);
  font-weight: 600;
}

/* Bottom Line CTA */
.bottom-line {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
}

.bottom-line .section-title,
.bottom-line .section-intro {
  color: white;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.bottom-line .btn-primary {
  background: white;
  color: var(--primary-color);
}

.bottom-line .btn-primary:hover {
  background: var(--bg-light);
}

.bottom-line .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.bottom-line .btn-secondary:hover {
  background: white;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
}

.footer-brand img {
  width: 40px;
  height: 40px;
}

.footer-brand p {
  color: var(--text-light);
  line-height: 1.8;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  transition: color 0.2s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
}

.footer-bottom p {
  color: var(--text-light);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 72px);
    background: white;
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
    transition: right 0.3s ease;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-animation {
    padding: 2rem 1rem;
  }

  .animated-logo {
    font-size: 2rem;
  }

  .invoice-flow-modern {
    flex-direction: column;
    gap: 1rem;
  }

  .flow-arrow-modern {
    transform: rotate(90deg);
  }

  .flow-icon-modern {
    width: 60px;
    height: 60px;
  }

  .flow-card {
    padding: 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .features-grid,
  .use-cases,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta,
  .cta-buttons {
    flex-direction: column;
  }

  .btn-large {
    width: 100%;
  }

  .footer-content {
    flex-direction: column;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .container {
    padding: 0 1rem;
  }

  section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .pricing-card-popular {
    transform: scale(1);
  }

  .pricing-card-popular:hover {
    transform: translateY(-8px);
  }

  .price {
    font-size: 3rem;
  }
}
