/* NAV */
  nav { position: sticky; top: 0; z-index: 1000; background: var(--kb-black); height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid #393939; }
  .nav-logo { display: flex; align-items: center; gap: 8px; }
  .nav-logo-mark { width: 36px; height: 36px; background: var(--kb-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: white; letter-spacing: -0.5px; clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%); }
  .nav-logo-text { color: white; font-size: 16px; font-weight: 600; letter-spacing: 0.5px; }
  .nav-links { display: flex; align-items: center; }
  .nav-item { position: relative; }
  .nav-item > a, .nav-links > a { color: #c6c6c6; font-size: 14px; text-decoration: none; padding: 0 16px; height: 48px; display: flex; align-items: center; transition: color 0.15s, background 0.15s; white-space: nowrap; }
  .nav-item > a:hover, .nav-links > a:hover { background: #393939; color: white; }
  .nav-item > a svg { margin-left: 4px; }
  .nav-dropdown { display: none; position: absolute; top: 48px; left: 0; background: #1a1a1a; border: 1px solid #393939; border-top: 2px solid var(--kb-blue); min-width: 180px; z-index: 100; }
  .nav-item:hover .nav-dropdown { display: block; }
  .nav-dropdown a { display: block; color: #c6c6c6; font-size: 13px; text-decoration: none; padding: 10px 16px; border-bottom: 1px solid #2a2a2a; transition: background 0.15s, color 0.15s; height: auto; }
  .nav-dropdown a:last-child { border-bottom: none; }
  .nav-dropdown a:hover { background: #393939; color: white; }
  .nav-icons { display: flex; align-items: center; }
  .nav-icons button { background: none; border: none; cursor: pointer; color: #c6c6c6; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s; }
  .nav-icons button:hover { background: #393939; color: white; }

  /* HERO */
  .hero { display: grid; grid-template-columns: 1fr 1fr 320px; min-height: 440px; overflow: hidden; background: var(--kb-white); border-bottom: 1px solid var(--kb-gray-20); }
  .hero-left { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(135deg, #fff3f0 0%, #ffffff 60%); position: relative; }
  .hero-left::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230f62fe' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E"); }
  .hero-title { font-size: 48px; font-weight: 300; line-height: 1.1; margin-bottom: 20px; position: relative; letter-spacing: -0.5px; }
  .hero-title strong { font-weight: 600; display: block; color: var(--kb-blue); }
  .hero-desc { font-size: 16px; font-weight: 300; color: var(--kb-gray-70); max-width: 480px; margin-bottom: 32px; line-height: 1.6; position: relative; }
  .hero-ctas { display: flex; gap: 0; position: relative; }
  .btn-primary { background: var(--kb-blue); color: white; border: none; cursor: pointer; padding: 14px 20px; font-size: 14px; font-family: var(--font); font-weight: 400; transition: background 0.15s; display: flex; align-items: center; gap: 8px; text-decoration: none; }
  .btn-primary:hover { background: var(--kb-blue-hover); }
  .btn-secondary { background: none; color: var(--kb-blue); border: 1px solid var(--kb-blue); cursor: pointer; padding: 14px 20px; font-size: 14px; font-family: var(--font); font-weight: 400; transition: background 0.15s, color 0.15s; display: flex; align-items: center; gap: 8px; text-decoration: none; margin-left: -1px; }
  .btn-secondary:hover { background: var(--kb-blue-light); }

  /* HERO RIGHT */
  .hero-right { background: var(--kb-gray-10); border-left: 1px solid var(--kb-gray-20); display: flex; flex-direction: column; overflow: hidden; }
  .latest-news-header { padding: 12px 16px; background: var(--kb-black); color: white; font-size: 12px; font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }
  .news-item { padding: 16px; border-bottom: 1px solid var(--kb-gray-20); cursor: pointer; transition: background 0.15s; display: flex; gap: 12px; align-items: flex-start; }
  .news-item:hover { background: white; }
  .news-item-dot { width: 8px; height: 8px; background: var(--kb-blue); border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
  .news-item-tag { font-size: 10px; color: var(--kb-blue); text-transform: uppercase; font-weight: 500; letter-spacing: 0.5px; margin-bottom: 2px; }
  .news-item-title { font-size: 13px; font-weight: 400; line-height: 1.4; color: var(--kb-gray-90); }
  .news-item-title a { color: inherit; text-decoration: none; }
  .news-item-title a:hover { color: var(--kb-blue); text-decoration: underline; }

  /* RECOMMENDED */
  .section-label { font-size: 12px; color: var(--kb-gray-50); padding: 12px 16px; border-bottom: 1px solid var(--kb-gray-20); text-transform: uppercase; letter-spacing: 0.5px; }
  .reco-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--kb-gray-20); }
  .reco-card { padding: 20px 16px; border-right: 1px solid var(--kb-gray-20); transition: background 0.15s; cursor: pointer; }
  .reco-card:last-child { border-right: none; }
  .reco-card:hover { background: var(--kb-gray-10); }
  .reco-icon { width: 40px; height: 40px; background: var(--kb-blue-light); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; border-radius: 2px; }
  .reco-title { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
  .reco-desc { font-size: 12px; color: var(--kb-gray-70); line-height: 1.5; margin-bottom: 12px; }
  .reco-link { font-size: 12px; color: var(--kb-blue); text-decoration: none; display: flex; align-items: center; gap: 4px; }
  .reco-link:hover { text-decoration: underline; }

  /* WEBINAR BANNER */
  .webinar-banner { background: var(--kb-gray-10); border: 1px solid var(--kb-gray-20); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
  .webinar-left { display: flex; align-items: center; gap: 16px; }
  .webinar-badge { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--kb-blue); border: 1px solid var(--kb-blue); padding: 2px 8px; white-space: nowrap; }
  .webinar-text strong { font-size: 14px; font-weight: 500; display: block; }
  .webinar-text span { font-size: 12px; color: var(--kb-gray-70); }

  /* PRODUCTS SECTION */
  .products-section { padding: 48px 0 0; }
  .products-header { padding: 0 16px 32px; }
  .products-header h2 { font-size: 36px; font-weight: 300; letter-spacing: -0.3px; }
  .products-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; }
  .products-hero-card { grid-row: 1 / 3; position: relative; overflow: hidden; min-height: 400px; cursor: pointer; }
  .products-hero-visual { position: absolute; inset: 0; background: linear-gradient(135deg, #050e2e 0%, #f9572e 50%, #8a3ffc 100%); }
  .products-hero-visual::after { content: 'KB'; position: absolute; font-size: 140px; font-weight: 700; color: rgba(255,255,255,0.06); letter-spacing: -8px; bottom: 40px; left: -10px; font-family: var(--mono); line-height: 1; }
  .grid-dots { position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px); background-size: 24px 24px; }
  .products-hero-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); }
  .products-hero-content .tag { font-size: 11px; color: #7eb3ff; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
  .products-hero-content h3 { font-size: 20px; font-weight: 400; color: white; margin-bottom: 8px; }
  .products-hero-content p { font-size: 13px; color: rgba(255,255,255,0.7); }
  .products-hero-link { position: absolute; bottom: 24px; right: 24px; color: rgba(255,255,255,0.6); }
  .product-card { padding: 20px; border: 1px solid var(--kb-gray-20); border-left: none; border-top: none; cursor: pointer; transition: background 0.15s; display: flex; flex-direction: column; }
  .product-card:hover { background: var(--kb-gray-10); }
  .product-card .tag { font-size: 11px; color: var(--kb-blue); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
  .product-card-icon { width: 36px; height: 36px; margin-bottom: 12px; }
  .product-card h3 { font-size: 15px; font-weight: 400; line-height: 1.4; margin-bottom: auto; padding-bottom: 16px; }
  .product-card-arrow { color: var(--kb-blue); }

  /* IMPACT */
  .impact-section { padding: 48px 0; border-top: 1px solid var(--kb-gray-20); }
  .impact-header { padding: 0 16px 32px; }
  .impact-header h2 { font-size: 36px; font-weight: 300; }
  .client-tabs { display: flex; padding: 0 16px; border-bottom: 1px solid var(--kb-gray-20); overflow-x: auto; }
  .client-tab { padding: 12px 24px; font-size: 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--kb-gray-50); transition: all 0.15s; background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font); white-space: nowrap; }
  .client-tab.active { border-bottom-color: var(--kb-blue); color: var(--kb-black); }
  .client-tab:hover:not(.active) { color: var(--kb-black); }
  .client-panel { display: none; padding: 32px 16px; }
  .client-panel.active { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .client-name { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--kb-gray-50); margin-bottom: 16px; font-weight: 500; }
  .client-desc { font-size: 15px; font-weight: 300; line-height: 1.7; margin-bottom: 24px; }
  .client-stats { display: flex; gap: 40px; margin-bottom: 24px; }
  .stat-val { font-size: 32px; font-weight: 300; color: var(--kb-blue); }
  .stat-label { font-size: 12px; color: var(--kb-gray-70); max-width: 120px; line-height: 1.4; }
  .client-link { color: var(--kb-blue); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
  .client-link:hover { text-decoration: underline; }
  .client-visual { height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
  .client-visual-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
  .client-visual-inner span { font-size: 80px; font-weight: 700; color: rgba(255,255,255,0.08); font-family: var(--mono); }

  /* TOOLKIT */
  .toolkit-section { background: var(--kb-gray-10); padding: 48px 16px; border-top: 1px solid var(--kb-gray-20); }
  .toolkit-header { font-size: 32px; font-weight: 300; margin-bottom: 8px; }
  .toolkit-sub { display: flex; gap: 0; margin-bottom: 32px; }
  .toolkit-tab { font-size: 14px; font-weight: 500; margin-right: 32px; color: var(--kb-blue); border-bottom: 2px solid var(--kb-blue); padding-bottom: 4px; cursor: pointer; }
  .toolkit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  .toolkit-col h3 { font-size: 16px; font-weight: 400; margin-bottom: 16px; }
  .toolkit-col p { font-size: 14px; color: var(--kb-gray-70); margin-bottom: 16px; line-height: 1.6; }
  .toolkit-links { display: flex; flex-direction: column; gap: 8px; }
  .toolkit-link { color: var(--kb-blue); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
  .toolkit-link:hover { text-decoration: underline; }

  /* SERVICES */
  .services-section { padding: 48px 16px; border-top: 1px solid var(--kb-gray-20); }
  .services-section h2 { font-size: 32px; font-weight: 300; margin-bottom: 12px; }
  .services-section > p { font-size: 15px; font-weight: 300; color: var(--kb-gray-70); max-width: 560px; line-height: 1.7; margin-bottom: 40px; }
  .services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--kb-gray-20); }
  .service-card { padding: 24px 20px; border-right: 1px solid var(--kb-gray-20); border-bottom: 1px solid var(--kb-gray-20); cursor: pointer; transition: background 0.15s; }
  .service-card:hover { background: var(--kb-gray-10); }
  .service-card:nth-child(4n) { border-right: none; }
  .service-icon { width: 40px; height: 40px; margin-bottom: 12px; display: flex; align-items: center; justify-content: center; }
  .service-name { font-size: 14px; font-weight: 400; margin-bottom: 4px; }
  .service-arrow { color: var(--kb-blue); margin-top: 8px; }

  /* INSIDE */
  .inside-section { background: var(--kb-gray-10); padding: 48px 16px; border-top: 1px solid var(--kb-gray-20); }
  .inside-section h2 { font-size: 32px; font-weight: 300; margin-bottom: 24px; }
  .inside-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .inside-col { padding-right: 32px; }
  .inside-col + .inside-col { border-left: 1px solid var(--kb-gray-20); padding-left: 32px; padding-right: 32px; }
  .inside-col:last-child { padding-right: 0; }
  .inside-col h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.3px; }
  .inside-col p { font-size: 13px; color: var(--kb-gray-70); margin-bottom: 16px; line-height: 1.6; }
  .inside-links { display: flex; flex-direction: column; gap: 6px; }
  .inside-link { color: var(--kb-blue); font-size: 13px; text-decoration: none; display: flex; align-items: center; gap: 4px; }
  .inside-link:hover { text-decoration: underline; }

  /* NEWSLETTER */
  .newsletter-section { padding: 48px 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; border-top: 1px solid var(--kb-gray-20); }
  .newsletter-left { position: relative; overflow: hidden; background: #0a1628; min-height: 200px; padding: 32px; }
  .newsletter-left::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='rgba(249,87,46,0.2)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='rgba(249,87,46,0.15)' stroke-width='0.5'/%3E%3C/svg%3E") center/200px no-repeat; }
  .newsletter-left h2 { font-size: 28px; font-weight: 300; color: white; position: relative; z-index: 1; }
  .newsletter-right h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
  .newsletter-right p { font-size: 13px; color: var(--kb-gray-70); margin-bottom: 20px; line-height: 1.6; }
  .newsletter-form { display: flex; flex-direction: column; gap: 12px; }
  .form-group { display: flex; flex-direction: column; gap: 4px; }
  .form-group label { font-size: 12px; font-weight: 500; }
  .form-group input { border: 1px solid var(--kb-gray-30); padding: 10px 12px; font-size: 14px; font-family: var(--font); outline: none; transition: border-color 0.15s; }
  .form-group input:focus { border-color: var(--kb-blue); }
  .newsletter-note { font-size: 11px; color: var(--kb-gray-50); line-height: 1.5; }
  .newsletter-note a { color: var(--kb-blue); text-decoration: none; }

  /* FOOTER */
  footer { background: var(--kb-black); color: #c6c6c6; padding: 40px 16px 24px; }
  .footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; margin-bottom: 40px; }
  .footer-col h4 { font-size: 12px; font-weight: 600; color: white; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }
  .footer-col a { display: block; font-size: 12px; color: #8d8d8d; text-decoration: none; margin-bottom: 8px; transition: color 0.15s; }
  .footer-col a:hover { color: white; }
  .footer-bottom { border-top: 1px solid #393939; padding-top: 16px; display: flex; justify-content: space-between; align-items: center; }
  .footer-logo { display: flex; align-items: center; gap: 8px; }
  .footer-logo-mark { width: 28px; height: 28px; background: var(--kb-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 10px; color: white; clip-path: polygon(10% 0%, 90% 0%, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0% 90%, 0% 10%); }
  .footer-logo-text { color: #8d8d8d; font-size: 12px; }
  .footer-legal { display: flex; gap: 16px; }
  .footer-legal a { font-size: 11px; color: #8d8d8d; text-decoration: none; }
  .footer-legal a:hover { color: white; }

  /* BLOG CARDS */
  .blog-cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--kb-gray-20); }
  .blog-card { border-right: 1px solid var(--kb-gray-20); display: flex; flex-direction: column; transition: background 0.15s; cursor: pointer; }
  .blog-card:last-child { border-right: none; }
  .blog-card:hover { background: var(--kb-gray-10); }
  .blog-card--cta { background: var(--kb-blue-light); }
  .blog-card--cta:hover { background: #daeaff; }
  .blog-card-img { width: 100%; height: 140px; overflow: hidden; flex-shrink: 0; }
  .blog-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
  .blog-card:hover .blog-card-img img { transform: scale(1.04); }
  .blog-card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
  .blog-card-tag { font-size: 10px; color: var(--kb-blue); text-transform: uppercase; font-weight: 600; letter-spacing: 0.6px; margin-bottom: 8px; }
  .blog-card-title { font-size: 13px; font-weight: 500; line-height: 1.45; margin-bottom: 8px; color: var(--kb-gray-90); }
  .blog-card-meta { font-size: 11px; color: var(--kb-gray-50); margin-bottom: 10px; }
  .blog-card-desc { font-size: 12px; color: var(--kb-gray-70); line-height: 1.55; margin-bottom: 14px; flex: 1; }
  .blog-card-footer { margin-top: auto; }
  .blog-card-link { font-size: 12px; color: var(--kb-blue); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
  .blog-card-link:hover { text-decoration: underline; }


  @media (max-width: 900px) {
    .hero { grid-template-columns: 1fr 320px; } .hero-middle { display: none; } .hero-right { display: none; } .hero-title { font-size: 32px; }
    .reco-grid { grid-template-columns: 1fr 1fr; }
    .blog-cards-grid { grid-template-columns: 1fr 1fr; }
    .products-grid { grid-template-columns: 1fr; } .products-hero-card { min-height: 260px; }
    .client-panel.active { grid-template-columns: 1fr; }
    .toolkit-grid { grid-template-columns: 1fr; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .inside-grid { grid-template-columns: 1fr; }
    .newsletter-section { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .nav-links { display: none; }
  }
/* Kill spacer on front page — hero handles the offset */
.home .kb-nav-spacer { display: none; }
.home .hero { margin-top: 0; }
.home .hero-left { padding-top: 96px; }
.home .hero-right { padding-top: 0; }
  .hero-middle a { display: block; width: 100%; height: 100%; }
  .hero-middle img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
  .hero-middle:hover img { transform: scale(1.03); }
  .hero-middle-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, #0a1628 0%, #0f3a80 100%); display: flex; align-items: center; justify-content: center; }


  .hero-middle { position: relative; overflow: hidden; border-left: 1px solid var(--kb-gray-20); }
  .hero-middle a { display: block; width: 100%; height: 100%; }
  .hero-middle img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
  .hero-middle:hover img { transform: scale(1.03); }

/* ============================================================
   HOME PAGE — MOBILE
   ============================================================ */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr 320px !important; }
  .hero-middle { display: none !important; }
}

@media (max-width: 768px) {
  /* Hero */
  .home .kb-nav-spacer { display: none; }
  .hero { grid-template-columns: 1fr !important; min-height: auto !important; }
  .hero-left { padding: 48px 16px 32px !important; }
  .hero-middle { display: none !important; }
  .hero-right { display: none !important; }
  .hero-title { font-size: 32px !important; line-height: 1.15 !important; }
  .hero-desc { font-size: 14px !important; }
  .hero-ctas { flex-direction: column !important; gap: 8px !important; }
  .hero-ctas a { width: 100% !important; justify-content: center !important; }

  /* Section label */
  .section-label { padding: 10px 16px !important; }

  /* Recommended grid */
  .recommended-grid,
  .client-tabs,
  .impact-section,
  .services-grid,
  .inside-grid,
  .blog-cards-grid {
    grid-template-columns: 1fr !important;
  }

  /* Blog cards */
  .blog-card { border-right: none !important; border-bottom: 1px solid var(--kb-gray-20) !important; }

  /* Webinar banner */
  .webinar-banner { flex-direction: column !important; gap: 16px !important; padding: 20px 16px !important; }

  /* What we build */
  .what-grid,
  .toolkit-grid,
  .services-list { grid-template-columns: 1fr !important; padding: 32px 16px !important; }

  /* Smarter business tabs */
  .client-tabs { flex-direction: column !important; overflow-x: auto !important; }

  /* Newsletter */
  .newsletter-section { padding: 32px 16px !important; }

  /* Inside Key Brains */
  .inside-section { padding: 32px 16px !important; }
  .inside-grid { grid-template-columns: 1fr 1fr !important; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 26px !important; }
  .inside-grid { grid-template-columns: 1fr !important; }
}
