/* ═══════════════════════════════════════════════════════════════════════════
   LC-INVOICE — Marketing Website Styles
   Modern, conversion-focused design with glassmorphism & gradients
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #ec4899;
  --success: #10b981;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #0f172a;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.3s var(--ease);
}

/* ── Reset ────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all var(--t);
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--gray-700);
  border: 2px solid var(--gray-200);
}
.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99,102,241,0.05);
}
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-block { width: 100%; justify-content: center; }

/* ── Navigation ───────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all var(--t);
}
.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--gray-900);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links > a:not(.nav-link-btn) {
  font-weight: 500;
  color: var(--gray-700);
  transition: color var(--t);
}
.nav-links > a:not(.nav-link-btn):hover { color: var(--primary); }
.nav-link-btn {
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  transition: all var(--t);
}
.nav-link-ghost { color: var(--gray-700); }
.nav-link-ghost:hover { color: var(--primary); }
.nav-link-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff !important;
  box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.nav-link-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(99,102,241,0.4); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gray-900);
  border-radius: 2px;
  transition: all var(--t);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
}
.hero-blob-1 {
  width: 500px; height: 500px;
  background: var(--primary);
  top: -100px; left: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  top: 100px; right: -50px;
}
.hero-blob-3 {
  width: 300px; height: 300px;
  background: var(--success);
  bottom: -50px; left: 40%;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--primary-dark);
  margin-bottom: 24px;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 19px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 36px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-stat-label {
  font-size: 14px;
  color: var(--gray-500);
}

/* ── Hero Mockup ───────────────────────────────────────────────────────────── */
.hero-mockup {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 60px auto 0;
}
.mockup-window {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.mockup-bar {
  display: flex;
  gap: 8px;
  padding: 14px 20px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}
.mockup-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.mockup-dot-red { background: #ff5f57; }
.mockup-dot-yellow { background: #febc2e; }
.mockup-dot-green { background: #28c840; }
.mockup-body { padding: 32px; }
.mockup-invoice {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px;
}
.mockup-invoice-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray-100);
}
.mockup-invoice-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--primary);
}
.mockup-invoice-num {
  font-size: 14px;
  color: var(--gray-500);
  font-weight: 600;
}
.mockup-invoice-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 14px;
}
.mockup-label {
  font-size: 12px;
  color: var(--gray-500);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mockup-table { margin-bottom: 20px; }
.mockup-table-row {
  display: grid;
  grid-template-columns: 1fr 60px 100px;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--gray-100);
}
.mockup-table-head {
  font-weight: 600;
  color: var(--gray-500);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.mockup-table-total {
  font-weight: 700;
  font-size: 16px;
  border-bottom: none;
  border-top: 2px solid var(--gray-200);
  padding-top: 14px;
}
.mockup-paid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(16,185,129,0.1);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

/* ── Trust Bar ─────────────────────────────────────────────────────────────── */
.trust-bar {
  padding: 40px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}
.trust-text {
  text-align: center;
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
  font-weight: 500;
}
.trust-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}
.trust-item {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-700);
}

/* ── Section Headers ───────────────────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(99,102,241,0.1);
  color: var(--primary-dark);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 600px;
  margin: 0 auto;
}

/* ── Features ──────────────────────────────────────────────────────────────── */
.features { padding: 100px 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  padding: 32px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--t);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--icon-color) 12%, transparent);
  color: var(--icon-color);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── How It Works ──────────────────────────────────────────────────────────── */
.how-it-works {
  padding: 100px 0;
  background: var(--gray-50);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  text-align: center;
}
.step-num {
  width: 56px; height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── Pricing ───────────────────────────────────────────────────────────────── */
.pricing { padding: 100px 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.pricing-card {
  padding: 36px 28px;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  position: relative;
  transition: all var(--t);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card-popular {
  border-color: var(--primary);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(99,102,241,0.15);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-500);
}
.pricing-desc {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 24px;
}
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--gray-700);
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq {
  padding: 100px 0;
  background: var(--gray-50);
}
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--t);
}
.faq-item[open] {
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px rgba(99,102,241,0.1);
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  font-weight: 300;
  color: var(--primary);
  transition: transform var(--t);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ── CTA Banner ────────────────────────────────────────────────────────────── */
.cta-banner {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 50%);
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
}
.cta-banner .btn-primary {
  background: #fff;
  color: var(--primary-dark);
}
.cta-banner .btn-primary:hover {
  background: var(--gray-100);
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer {
  padding: 60px 0 30px;
  background: var(--gray-900);
  color: rgba(255,255,255,0.7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo {
  color: #fff;
  margin-bottom: 12px;
}
.footer-brand p {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.footer-col h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color var(--t);
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--gray-200);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .hero { padding: 120px 0 60px; }
  .hero-cta { flex-direction: column; }
  .hero-stats { gap: 24px; }
  /* Ensure all buttons have centered text on mobile */
  .btn { justify-content: center; text-align: center; }
  .hero-cta .btn, .pricing-card .btn, .audience-card .btn, .cta-banner .btn { width: 100%; }

  .steps { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ── Animations ─────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Two Audiences (Business vs Client) ─────────────────────────────────────── */
.two-audiences { padding: 80px 0; background: var(--bg-alt); }
.audiences-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
}
.audience-card {
  background: white;
  border-radius: 20px;
  padding: 36px;
  border: 2px solid var(--border);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.audience-business { border-color: rgba(99,102,241,0.2); }
.audience-client { border-color: rgba(16,185,129,0.2); }
.audience-header { text-align: center; margin-bottom: 24px; }
.audience-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.audience-header h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.audience-header p { color: var(--text-muted); font-size: 14px; }
.audience-features {
  list-style: none; padding: 0; margin: 0 0 24px;
}
.audience-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}
.audience-price {
  text-align: center; font-size: 13px; color: var(--text-muted);
  margin-top: 12px; margin-bottom: 0;
}
@media (max-width: 768px) {
  .audiences-grid { grid-template-columns: 1fr; }
}