  :root {
    --primary-color: #222;
    --secondary-color: #286090;
    --accent-color: #b3e5fc;
    --success-color: #43a047;
    --background-color: #f5f5f5;
    --container-bg: #fff;
    --text-primary: #333;
    --text-secondary: #666;
    --border-color: #e2e8f0;
    --form-bg: #f8f8f8;
    --theme-bg: var(--background-color);
    --theme-surface: var(--container-bg);
    --theme-text: var(--text-primary);
    --theme-text-secondary: var(--text-secondary);
    --theme-border: var(--border-color);
    --desktop: 1200px;
  }

  *, *::before, *::after { box-sizing: border-box; }
  html, body { height: 100%; margin: 0; padding: 0; }

  body {
    background: var(--theme-bg); color: var(--theme-text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh; width: 100vw; overflow-x: hidden; display: flex; flex-direction: column;
    font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased;
  }

  /* HEADER */
  .header { background: var(--primary-color); color: #fff; padding: 12px 16px; display: flex; align-items: center; position: relative; min-height: 60px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); width: 100%; }
  .header .logo { display: flex; align-items: center; font-size: 1.4em; font-weight: 600; flex: 0 0 auto; margin-right: 16px; text-decoration: none; color: #fff; }
  .header .logo img { height: 132px; width: 132px; margin-right: 8px; object-fit: contain; }
  .header-title-center { flex: 1 1 0; }
  .header .right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
  .search-icon-btn { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 4px; text-decoration: none; transition: background 0.2s; }
  .search-icon-btn:hover { background: rgba(255,255,255,0.1); }

  /* BURGER */
  .burger { display: flex !important; flex-direction: column; justify-content: center; width: 44px; height: 44px; background: none; border: none; cursor: pointer; margin-left: 12px; z-index: 1001; border-radius: 4px; }
  .burger:hover { background: rgba(255,255,255,0.1); }
  .burger span { display: block; height: 3px; width: 24px; background: #fff; margin: 3px auto; border-radius: 2px; transition: 0.3s ease; transform-origin: center; }
  .burger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .burger.active span:nth-child(2) { opacity: 0; }
  .burger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

  /* SIDE MENU */
  .side-menu-backdrop { display: none; position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.5); z-index: 999; backdrop-filter: blur(2px); }
  .side-menu { position: fixed; right: -320px; top: 0; width: 320px; max-width: 85vw; height: 100dvh; background: var(--secondary-color); color: #fff; box-shadow: -4px 0 20px rgba(0,0,0,0.15); z-index: 1000; transition: right 0.3s cubic-bezier(0.4,0,0.2,1); display: flex; flex-direction: column; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .side-menu.open { right: 0; }
  .side-menu .side-header { background: #204d74; padding: 20px 18px 16px; font-size: 1.1em; font-weight: 600; display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-shrink: 0; position: sticky; top: 0; z-index: 10; }
  .side-menu .side-header img { height: 28px; width: 28px; object-fit: contain; }
  .side-menu .side-links { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; padding: 0 12px 20px; }
  .side-menu .side-link { color: #fff; text-decoration: none; padding: 14px 16px; font-size: 1em; border-radius: 6px; font-weight: 500; transition: background 0.2s; display: flex; align-items: center; gap: 8px; min-height: 44px; }
  .side-menu .side-link.active, .side-menu .side-link:hover { background: #204d74; }

  /* MAIN */
  .welcome-container { flex: 1; max-width: var(--desktop); margin: 0 auto; padding: 0 16px; width: 100%; }

  /* PAGE HERO */
  .page-hero { text-align: center; padding: 48px 24px 32px; }
  .page-hero h1 { font-size: 2.4em; font-weight: 800; color: var(--theme-text); margin: 0 0 16px; line-height: 1.2; }
  .page-hero .subtitle { font-size: 1.2em; color: var(--theme-text-secondary); max-width: 700px; margin: 0 auto; line-height: 1.6; }

  /* FILTER */
  .filter-bar { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; padding: 0 16px 32px; max-width: var(--desktop); margin: 0 auto; }
  .filter-btn { background: var(--form-bg); border: 1px solid var(--theme-border); color: var(--theme-text-secondary); padding: 8px 18px; border-radius: 20px; font-size: 0.9em; font-weight: 600; cursor: pointer; transition: all 0.2s; }
  .filter-btn:hover { border-color: var(--secondary-color); color: var(--secondary-color); }
  .filter-btn.active { background: var(--secondary-color); border-color: var(--secondary-color); color: #fff; }

  /* BLOG CARDS */
  .blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; max-width: var(--desktop); margin: 0 auto; padding: 0 16px 48px; }

  .blog-card { background: var(--theme-surface); border: 1px solid var(--theme-border); border-radius: 12px; padding: 28px 24px; transition: all 0.3s ease; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
  .blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); border-color: var(--secondary-color); }
  .blog-card.hidden { display: none; }

  .blog-tag { display: inline-block; font-size: 0.72em; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 4px 10px; border-radius: 4px; width: fit-content; margin-bottom: 12px; }
  .blog-tag.getting-started { background: rgba(40,96,144,0.12); color: var(--secondary-color); }
  .blog-tag.mot { background: rgba(255,152,0,0.15); color: #e65100; }
  .blog-tag.jobs { background: rgba(91,192,222,0.15); color: #0277bd; }
  .blog-tag.invoicing { background: rgba(67,160,71,0.12); color: var(--success-color); }
  .blog-tag.marketing { background: rgba(156,39,176,0.12); color: #7b1fa2; }
  .blog-tag.stock { background: rgba(255,193,7,0.15); color: #f57f17; }
  .blog-tag.comparison { background: rgba(244,67,54,0.1); color: #c62828; }
  .blog-tag.pricing { background: rgba(0,131,143,0.12); color: #00838f; }

  .blog-card h3 { font-size: 1.15em; font-weight: 700; color: var(--theme-text); margin: 0 0 10px; line-height: 1.35; }
  .blog-card p { font-size: 0.95em; color: var(--theme-text-secondary); line-height: 1.6; margin: 0 0 16px; flex-grow: 1; }

  .blog-link { color: var(--secondary-color); font-weight: 600; font-size: 0.9em; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-top: auto; transition: gap 0.2s; }
  .blog-link:hover { gap: 10px; }
  .blog-link::after { content: '→'; transition: transform 0.2s; }
  .blog-card:hover .blog-link::after { transform: translateX(3px); }

  /* CTA */
  .cta-section { background: var(--theme-surface); max-width: var(--desktop); margin: 0 auto 48px; border-radius: 12px; padding: 48px 32px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,0.08); border: 1px solid var(--theme-border); }
  .cta-section h2 { font-size: 1.8em; font-weight: 700; color: var(--theme-text); margin: 0 0 12px; }
  .cta-section p { font-size: 1.1em; color: var(--theme-text-secondary); margin: 0 0 24px; max-width: 600px; margin-left: auto; margin-right: auto; }
  .cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
  .btn-primary { background: var(--secondary-color); color: #fff; padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.2s; border: 2px solid var(--secondary-color); }
  .btn-primary:hover { background: #204d74; border-color: #204d74; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(40,96,144,0.3); }
  .btn-secondary { background: transparent; color: var(--secondary-color); padding: 14px 28px; border-radius: 8px; text-decoration: none; font-weight: 600; transition: all 0.2s; border: 2px solid var(--secondary-color); }
  .btn-secondary:hover { background: var(--secondary-color); color: #fff; transform: translateY(-2px); }

  /* FOOTER */
  .footer-enhanced { background: linear-gradient(135deg, var(--primary-color) 0%, #1a3a52 100%); color: #fff; margin: 60px 0 0; border-top: 4px solid var(--secondary-color); width: 100vw; margin-left: calc(-50vw + 50%); }
  .footer-container { max-width: var(--desktop); margin: 0 auto; padding: 40px 24px; }
  .footer-company-section { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-logo { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 0; }
  .footer-logo-img { height: 180px; width: 180px; object-fit: contain; }
  .footer-description { font-size: 1.1em; line-height: 1.6; margin: 0 auto 24px; color: rgba(255,255,255,0.9); max-width: 600px; }
  .social-links { display: flex; justify-content: center; gap: 12px; }
  .social-link { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; background: rgba(255,255,255,0.1); border-radius: 8px; text-decoration: none; transition: all 0.3s; border: 1px solid rgba(255,255,255,0.2); }
  .social-link:hover { background: var(--accent-color); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
  .social-icon-svg { width: 24px; height: 24px; display: block; filter: brightness(0) invert(1); }
  .social-link:hover .social-icon-svg { filter: none; transform: scale(1.1); }
  .footer-links-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin: 40px 0; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-column { text-align: left; }
  .footer-column h4 { margin: 0 0 20px; font-size: 1.2em; font-weight: 600; color: var(--accent-color); border-bottom: 2px solid var(--secondary-color); padding-bottom: 8px; }
  .footer-links { list-style: none; padding: 0; margin: 0; }
  .footer-links li { margin-bottom: 12px; }
  .footer-links a { color: rgba(255,255,255,0.9); text-decoration: none; font-size: 0.95em; transition: all 0.2s; display: block; padding: 4px 0; }
  .footer-links a:hover { color: var(--accent-color); padding-left: 8px; text-decoration: underline; }
  .footer-copyright { text-align: center; }
  .footer-copyright p { margin: 8px 0; font-size: 0.9em; color: rgba(255,255,255,0.8); }
  .footer-tagline { font-style: italic; color: var(--accent-color) !important; }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    .page-hero h1 { font-size: 1.8em; }
    .page-hero .subtitle { font-size: 1.05em; }
    .blog-grid { grid-template-columns: 1fr; padding: 0 12px 32px; }
    .cta-section { margin: 0 12px 32px; padding: 32px 20px; }
    .cta-section h2 { font-size: 1.4em; }
    .footer-links-row { grid-template-columns: 1fr; text-align: center; }
    .footer-column { text-align: center; }
    .header .logo img { height: 80px; width: 80px; }
  }

  @media (max-width: 480px) {
    .page-hero { padding: 32px 16px 24px; }
    .page-hero h1 { font-size: 1.5em; }
    .filter-bar { gap: 6px; }
    .filter-btn { padding: 6px 14px; font-size: 0.82em; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .btn-primary, .btn-secondary { width: 100%; max-width: 280px; text-align: center; }
  }

