/* InstantBill Marketing - Premium Design System 2026 */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700&family=Noto+Sans:wght@400;500;600;700&display=swap');

:root {
  --brand: #6366F1;
  --brand-hover: #818CF8;
  --brand-dark: #4F46E5;
  --brand-light: rgba(99,102,241,.08);
  --brand-glow: rgba(99,102,241,.4);
  --accent: #10B981;
  --accent-hover: #34D399;
  --warning: #F59E0B;
  --danger: #EF4444;

  --bg: #FAFBFF;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --border: #E2E8F0;
  --border-light: #F1F5F9;

  --text: #0F172A;
  --text-0: #1E293B;
  --text-2: #475569;
  --text-3: #64748B;

  /* Gray color palette for marketing pages */
  --color-gray-50: #F8FAFC;
  --color-gray-100: #F1F5F9;
  --color-gray-200: #E2E8F0;
  --color-gray-300: #CBD5E1;
  --color-gray-400: #94A3B8;
  --color-gray-500: #64748B;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1E293B;
  --color-gray-900: #0F172A;
  --color-white: #FFFFFF;

  --gradient-brand: linear-gradient(135deg, #6366F1 0%, #8B5CF6 50%, #A78BFA 100%);
  --gradient-hero: linear-gradient(135deg, #0F172A 0%, #1E1B4B 40%, #312E81 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.6) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255,255,255,.1) 0%, rgba(255,255,255,.05) 100%);

  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.15);
  --shadow-glow: 0 0 40px var(--brand-glow);

  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;

  --font: 'Inter', 'Noto Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'DM Sans', 'Noto Sans', 'Inter', sans-serif;

  --ease: cubic-bezier(.16,1,.3,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);

  --container: 1200px;
  --container-lg: 1400px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; }

/* ─── CONTAINER ─── */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: var(--container-lg); }

/* ─── TYPOGRAPHY ─── */
.display-xl { font-family: var(--font-display); font-size: clamp(2.5rem,5vw,4rem); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }
.display-lg { font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.display-md { font-family: var(--font-display); font-size: clamp(1.5rem,3vw,2.25rem); font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.heading { font-family: var(--font-display); font-size: clamp(1.25rem,2vw,1.5rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.subheading { font-size: 1.125rem; color: var(--text-2); line-height: 1.7; max-width: 600px; }
.body-lg { font-size: 1.125rem; line-height: 1.7; }
.body { font-size: 1rem; line-height: 1.7; }
.body-sm { font-size: .875rem; line-height: 1.6; }
.caption { font-size: .75rem; color: var(--text-3); line-height: 1.5; }
.label { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; font-family: var(--font); font-size: .9375rem; font-weight: 500;
  border-radius: var(--radius); border: none; cursor: pointer;
  transition: all .2s var(--ease); white-space: nowrap; text-decoration: none;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary {
  background: var(--gradient-brand); color: white;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.btn-primary:hover { box-shadow: 0 4px 16px rgba(99,102,241,.4); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--brand-light); color: var(--brand); }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 8px 16px; font-size: .8125rem; }
.btn svg { width: 18px; height: 18px; }

/* ─── GLASS CARD ─── */
.glass {
  background: var(--gradient-glass);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl);
}

/* ─── CARD ─── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  transition: all .3s var(--ease);
}
.card:hover { border-color: var(--brand); box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.card-sm { padding: 24px; }

/* ─── BADGE ─── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; font-size: .8125rem; font-weight: 500;
  border-radius: 999px; background: var(--brand-light); color: var(--brand);
}
.badge-success { background: rgba(16,185,129,.1); color: #059669; }
.badge-warning { background: rgba(245,158,11,.1); color: #D97706; }

/* ─── SECTION ─── */
.section { padding: 100px 0; }
.section-lg { padding: 140px 0; }
.section-dark { background: var(--gradient-hero); color: white; }
.section-dark .subheading, .section-dark .body { color: rgba(255,255,255,.7); }
.section-alt { background: var(--surface-2); }

/* ─── GRID ─── */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
@media (max-width: 768px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ─── FLEX ─── */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

/* ─── TEXT ─── */
.text-center { text-align: center; }
.text-brand { color: var(--brand); }
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-2); }
.text-white { color: white; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── SPACING ─── */
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }
.mb-16 { margin-bottom: 64px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes gradient { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.animate-in { opacity: 0; transform: translateY(30px); transition: all .6s var(--ease); }
.animate-in.visible { opacity: 1; transform: translateY(0); }
.animate-in.delay-1 { transition-delay: .1s; }
.animate-in.delay-2 { transition-delay: .2s; }
.animate-in.delay-3 { transition-delay: .3s; }
.animate-in.delay-4 { transition-delay: .4s; }

/* ─── DECORATIVE ─── */
.gradient-text {
  background: var(--gradient-brand); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.glow { box-shadow: var(--shadow-glow); }
.grid-bg {
  background-image: linear-gradient(rgba(99,102,241,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.dot-bg {
  background-image: radial-gradient(circle, rgba(99,102,241,.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── MOCKUP ─── */
.browser-mockup {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; box-shadow: var(--shadow-2xl);
}
.browser-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--border);
}
.browser-dot { width: 12px; height: 12px; border-radius: 50%; }
.browser-dot.red { background: #EF4444; }
.browser-dot.yellow { background: #F59E0B; }
.browser-dot.green { background: #10B981; }
.browser-url {
  flex: 1; margin-left: 8px; padding: 6px 12px; background: var(--surface);
  border-radius: 6px; font-size: .75rem; color: var(--text-3);
}
.phone-mockup {
  width: 280px; background: var(--surface); border: 8px solid #1a1a2e;
  border-radius: 36px; overflow: hidden; box-shadow: var(--shadow-2xl);
}

/* ─── HEADER ─── */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(250,251,255,.8); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  transition: all .3s var(--ease);
}
.header.scrolled { background: rgba(250,251,255,.95); box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; max-width: var(--container-lg); margin: 0 auto; padding: 0 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.logo-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient-brand); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(99,102,241,.3);
}
.logo-icon svg { width: 20px; height: 20px; color: white; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  padding: 8px 14px; font-size: .875rem; font-weight: 500; color: var(--text-2);
  border-radius: 8px; transition: all .15s;
}
.nav a:hover { color: var(--text); background: var(--brand-light); }
.nav a.active { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.mobile-toggle {
  display: none; padding: 8px; border-radius: 8px; border: none;
  background: transparent; color: var(--text); cursor: pointer;
}
.mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px);
    background: var(--surface); padding: 24px; z-index: 99;
    flex-direction: column; gap: 8px; overflow-y: auto;
  }
.mobile-menu.open { display: flex; }
.mobile-menu a {
  display: block; padding: 14px 16px; font-size: 1rem; font-weight: 500;
  color: var(--text-2); border-radius: var(--radius); transition: all .15s;
}
.mobile-menu a:hover { background: var(--brand-light); color: var(--brand); }
@media (max-width: 1024px) {
  .nav, .header-actions .btn-ghost, .header-actions .btn-secondary { display: none; }
  .mobile-toggle { display: flex; }
}

/* ─── FOOTER ─── */
.footer { background: #0F172A; color: white; padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(4,1fr); gap: 48px; margin-bottom: 60px; }
.footer-brand p { color: #94A3B8; font-size: .875rem; line-height: 1.7; margin-top: 16px; max-width: 300px; }
.footer-col h4 { font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #94A3B8; margin-bottom: 20px; }
.footer-col a { display: block; padding: 4px 0; font-size: .875rem; color: #CBD5E1; transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  padding-top: 32px; border-top: 1px solid rgba(255,255,255,.08);
}
.footer-bottom p { color: #64748B; font-size: .8125rem; }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.05);
  display: flex; align-items: center; justify-content: center; color: #94A3B8;
  transition: all .15s;
}
.footer-social a:hover { background: rgba(255,255,255,.1); color: white; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ─── PRICING ─── */
.pricing-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 36px; position: relative; transition: all .3s var(--ease);
}
.pricing-card:hover { border-color: var(--brand); box-shadow: var(--shadow-xl); transform: translateY(-4px); }
.pricing-card.popular { border-color: var(--brand); box-shadow: var(--shadow-glow); }
.pricing-card.popular::before {
  content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 4px 16px; background: var(--gradient-brand); color: white;
  font-size: .75rem; font-weight: 600; border-radius: 999px;
}
.pricing-price { font-family: var(--font-display); font-size: 3rem; font-weight: 700; letter-spacing: -.03em; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-3); }
.pricing-feature { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .9375rem; color: var(--text-2); }
.pricing-feature svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }

/* ─── FAQ ─── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 20px 0; font-size: 1.0625rem; font-weight: 500; color: var(--text);
  background: none; border: none; cursor: pointer; text-align: left;
}
.faq-question svg { width: 20px; height: 20px; color: var(--text-3); transition: transform .3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-question svg { transform: rotate(180deg); }
.faq-answer { padding: 0 0 20px; color: var(--text-2); line-height: 1.7; display: none; }
.faq-item.open .faq-answer { display: block; }

/* ─── TESTIMONIAL ─── */
.testimonial {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: 32px; position: relative;
}
.testimonial::before { content: '"'; position: absolute; top: 16px; left: 24px; font-size: 4rem; color: var(--brand); opacity: .15; font-family: Georgia, serif; line-height: 1; }
.testimonial p { font-size: 1rem; line-height: 1.7; color: var(--text-2); margin-bottom: 20px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-brand); display: flex; align-items: center; justify-content: center; color: white; font-weight: 600; font-size: .875rem; }
.testimonial-name { font-weight: 600; font-size: .9375rem; }
.testimonial-role { font-size: .8125rem; color: var(--text-3); }

/* ─── LOGOS ─── */
.logo-cloud { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 40px; opacity: .5; }
.logo-cloud span { font-size: 1.25rem; font-weight: 700; color: var(--text-3); letter-spacing: -.01em; }

/* ─── STAT ─── */
.stat { text-align: center; }
.stat-value { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -.02em; }
.stat-label { font-size: .875rem; color: var(--text-3); margin-top: 4px; }

/* ─── TABS ─── */
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: var(--radius); width: fit-content; margin: 0 auto 40px; }
.tab-btn {
  padding: 10px 20px; font-size: .875rem; font-weight: 500; color: var(--text-2);
  border-radius: 8px; border: none; background: transparent; cursor: pointer; transition: all .15s;
}
.tab-btn.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ─── SCROLL ANIMATION ─── */
[data-animate] { opacity: 0; transform: translateY(30px); transition: all .7s var(--ease); }
[data-animate].visible { opacity: 1; transform: translateY(0); }
[data-animate="left"] { transform: translateX(-30px); }
[data-animate="left"].visible { transform: translateX(0); }
[data-animate="right"] { transform: translateX(30px); }
[data-animate="right"].visible { transform: translateX(0); }
[data-animate="scale"] { transform: scale(.95); }
[data-animate="scale"].visible { transform: scale(1); }

/* ─── UTILITIES ─── */
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.w-full { width: 100%; }
.max-w-lg { max-width: 600px; }
.max-w-xl { max-width: 700px; }
.max-w-2xl { max-width: 800px; }
.min-h-screen { min-height: 100vh; }
.pt-header { padding-top: 72px; }

/* ─── PRINT ─── */
@media print {
  .header, .footer, .mobile-toggle, .mobile-menu {
    display: none; position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px);
    background: var(--surface); padding: 24px; z-index: 99;
    flex-direction: column; gap: 8px; overflow-y: auto;
  }
  body { background: white; color: black; }
}

.badge-draft { background: rgba(100,116,139,.1); color: #475569; }
