/* ==========================================================================
   MakeGSTBill - Unified Clean SaaS Design System (Global Stylesheet)
   Matches the Brand Identity: Navy Blue (#03008D), Orange (#FF5C00), Clean Light SaaS
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap');

:root {
  /* Brand Core Colors */
  --brand-navy: #03008D;
  --brand-navy-dark: #020066;
  --brand-orange: #FF5C00;
  --brand-orange-hover: #e05200;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --accent: #0284c7;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Theme Backgrounds - CLEAN LIGHT SAAS */
  --bg-main: #fcfcfd;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-alt: #f1f5f9;

  /* Typography Colors */
  --text-heading: #0f172a;
  --text-main: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  /* Borders & Shadows */
  --border-color: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #6366f1;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 24px 38px -6px rgba(0, 0, 0, 0.1), 0 8px 16px -4px rgba(0, 0, 0, 0.05);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base & Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-heading);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Pill Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 1.25rem;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #3730a3;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Gradient Text (subtle brand gradient) */
.gradient-text {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 50%, #FF5C00 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Announcement Bar */
.announcement-bar {
  background: var(--brand-orange);
  color: #ffffff;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  position: relative;
  z-index: 1001;
}

.announcement-bar a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-left: 0.4rem;
}

.announcement-bar a:hover {
  opacity: 0.9;
}

.announcement-close {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.85;
}

.announcement-close:hover {
  opacity: 1;
}

/* Site Header & Navbar (Navy Blue #03008D) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--brand-navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 12px rgba(3, 0, 141, 0.2);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo Plate - White container matching screenshot */
.brand-logo {
  display: inline-flex;
  align-items: center;
  background: #ffffff;
  padding: 4px 12px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.site-logo {
  height: 38px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* Navigation Links (Pure White Text on Navy) */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.nav-links > a,
.dropdown-toggle {
  color: #ffffff !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links > a:hover,
.nav-links > a.active,
.dropdown-toggle:hover {
  color: #fed7aa !important;
}

.nav-chevron {
  font-size: 0.72rem;
  transition: transform 0.2s ease;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown Menu - Clean Light Surface */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  padding: 0.85rem;
  min-width: 280px;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: flex;
}

.dropdown-menu.mega-menu {
  min-width: 580px;
  padding: 1.35rem 1.5rem;
}

.dropdown-menu.mega-menu-features {
  min-width: 740px;
  padding: 1.35rem 1.5rem;
  left: 0;
  max-width: calc(100vw - 2rem);
}

.dropdown-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
}

.dropdown-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.dropdown-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #03008D;
  margin-bottom: 0.75rem;
  padding: 0 0.5rem 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  text-align: left;
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 0.6rem 0.65rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
  text-decoration: none;
  background: transparent;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background: #f1f5f9;
  transform: none;
}

.dropdown-item .item-title {
  color: #0f172a !important;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  gap: 0.55rem;
  width: 100%;
  line-height: 1.3;
}

.dropdown-item .item-title i {
  width: 18px;
  text-align: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.dropdown-item .item-desc {
  color: #64748b !important;
  font-size: 0.78rem;
  font-weight: 400;
  margin-top: 0.2rem;
  line-height: 1.4;
  text-align: left;
  padding-left: calc(18px + 0.55rem);
}

.dropdown-item.highlight-item {
  margin-top: 0.5rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.dropdown-item.highlight-item:hover {
  background: #dcfce7;
}

/* Nav Actions - Login Pill & Orange Button */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.nav-actions .btn-ghost {
  background: var(--brand-navy-dark);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  height: 40px;
  padding: 0 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  box-sizing: border-box;
}

.nav-actions .btn-ghost:hover {
  background: #01004a;
  border-color: rgba(255, 255, 255, 0.5);
}

.nav-actions .btn-primary,
.btn-header-makebill {
  background: var(--brand-orange) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  height: 42px !important;
  max-height: 42px !important;
  padding: 0 1.25rem !important;
  font-size: 0.92rem !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(255, 92, 0, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  border: none !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
}

.btn-header-makebill span {
  white-space: nowrap !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.btn-header-makebill i {
  font-size: 0.85rem !important;
  display: inline-block !important;
  line-height: 1 !important;
}

.nav-actions .btn-primary:hover,
.btn-header-makebill:hover {
  background: var(--brand-orange-hover) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(255, 92, 0, 0.4) !important;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  font-family: inherit;
}

.btn-primary {
  background: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(255, 92, 0, 0.3);
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 92, 0, 0.4);
}

.btn-outline {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #1e293b;
  box-shadow: var(--shadow-xs);
}

.btn-outline:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-lg {
  padding: 0.85rem 2.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
}

/* Common Card - Clean Light White */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 52px;
  height: 52px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid #e0e7ff;
}

/* Text Utility Helpers */
.text-primary { color: #4f46e5 !important; }
.text-accent { color: #0284c7 !important; }
.text-success { color: #10b981 !important; }
.text-danger { color: #ef4444 !important; }
.text-warning { color: #f59e0b !important; }

/* Indian Languages Strip */
.lang-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--brand-orange);
  color: #ffffff;
  padding: 0.55rem 1.5rem;
  overflow: hidden;
}

.lang-strip-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
  padding-right: 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.lang-track-wrapper {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 4%, black 96%, transparent);
}

.lang-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: scroll-langs 30s linear infinite;
}

.lang-track span {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  cursor: default;
}

@keyframes scroll-langs {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Available Countries Strip */
.available-strip {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.65rem 1.5rem;
  overflow: hidden;
}

.available-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.flags-track-wrapper {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.flags-track {
  display: flex;
  gap: 0.6rem;
  width: max-content;
  animation: scroll-flags 40s linear infinite;
}

.flags-track img {
  height: 16px;
  width: auto;
  border-radius: 2px;
  cursor: default;
  flex-shrink: 0;
}

@keyframes scroll-flags {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Site Footer (Deep Navy Blue #03008D) */
.site-footer {
  margin-top: auto;
  background: var(--brand-navy);
  color: #ffffff;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-top-banner {
  background: linear-gradient(135deg, #020066 0%, #03008D 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.25rem 3rem;
  margin-bottom: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.footer-cta-text h3 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

.footer-cta-text p {
  color: #cbd5e1;
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  margin-bottom: 1.25rem;
}

.footer-col p {
  color: #cbd5e1;
  font-size: 0.9rem;
  line-height: 1.6;
}

.brand-desc {
  margin: 1rem 0 1.5rem;
  max-width: 320px;
}

.security-badges {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: #cbd5e1;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-subtext {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.25rem;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
  transform: translateY(-2px);
}

/* Mockup Frame Component - Clean Light Windows */
.mockup-window {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mockup-window:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.mockup-bar {
  background: #f8fafc;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dot.red { background: #ef4444; }
.mockup-dot.yellow { background: #f59e0b; }
.mockup-dot.green { background: #10b981; }

.mockup-title {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: #64748b;
  font-family: monospace;
}

.mockup-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) and (min-width: 993px) {
  .nav-links {
    gap: 0.45rem;
  }
  .nav-links > a,
  .dropdown-toggle {
    padding: 0.35rem 0.45rem;
    font-size: 0.85rem;
  }
  .nav-actions {
    gap: 0.5rem;
  }
  .nav-actions .btn-ghost {
    padding: 0 0.9rem;
    font-size: 0.84rem;
    height: 38px;
  }
  .nav-actions .btn-primary {
    padding: 0 1rem;
    font-size: 0.86rem;
    height: 38px;
  }
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .footer-top-banner {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
    background: var(--brand-navy);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  .nav-links.show {
    transform: translateY(0);
  }
  .nav-dropdown {
    width: 100%;
  }
  .dropdown-menu,
  .dropdown-menu.mega-menu,
  .dropdown-menu.mega-menu-features {
    position: static;
    min-width: 100%;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 0.5rem;
    padding: 0.75rem;
  }
  .dropdown-item .item-title,
  .dropdown-item .item-desc {
    color: #ffffff !important;
  }
  .dropdown-grid,
  .dropdown-grid-3 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
