 :root { --primary: #ba2c2c; --black: #000000; }
    * { margin: 0; padding: 0; box-sizing: border-box; }
    
    body { background-color: #fcfaf8; font-family: 'Inter', sans-serif; color: #111; line-height: 1.5; overflow-x: hidden; }
    .container { max-width: 1300px; margin: 0 auto; padding: 0 2.5rem; position: relative; }
    .navbar { display: flex; align-items: center; justify-content: space-between; padding: 1.8rem 0 1rem; border-bottom: 1px solid rgba(0,0,0,0.06); flex-wrap: wrap; position: sticky; top: 0; z-index: 100; background-color: #fcfaf8; transition: padding 0.3s ease; }
    .navbar.scrolled { padding: 0.8rem 0 0.5rem; }
    .logo-pill { display: flex; align-items: center; gap: 12px; }
    .logo-img { height: 40px; width: auto; }
    .logo { font-weight: 800; font-size: 2rem; letter-spacing: -0.03em; color: var(--black); }
    .nav-links { display: flex; gap: 2.8rem; font-weight: 600; color: var(--primary); }
    .nav-links a { text-decoration: none; color: inherit; font-size: 1rem; transition: all 0.3s ease; padding: 0.6rem 1.2rem; border-radius: 10px; position: relative; font-weight: 500; }
    .nav-links a::after { content: ''; position: absolute; bottom: 0; left: 1.2rem; width: calc(100% - 2.4rem); height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform 0.3s ease; }
    .nav-links a:hover { color: var(--primary); background: rgba(129,20,17,0.08); border: 1px solid rgba(129,20,17,0.15); box-shadow: 0 4px 12px rgba(129,20,17,0.1); }
    .nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
    .menu-cta { background: var(--primary); color: white !important; padding: 0.8rem 2rem; border-radius: 50px; font-weight: 600; text-decoration: none; transition: 0.2s; }
    .menu-cta:hover { background: #6a100d; }
    .hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.5rem; align-items: center; padding: 3.5rem 0 4rem; position: relative; background: linear-gradient(135deg, rgba(129,20,17,0.02) 0%, rgba(129,20,17,0.01) 100%); }
    .hero-badge { background: rgba(129,20,17,0.1); color: var(--primary); font-weight: 700; padding: 0.3rem 1.2rem; border-radius: 40px; display: inline-block; margin-bottom: 1.8rem; border: 1px solid rgba(129,20,17,0.2); }
    .hero-badge-icon { margin-right: 8px; }
    .hero h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.04em; color: var(--black); }
    .hero-highlight { color: var(--primary); background: linear-gradient(120deg, rgba(129,20,17,0.1) 0%, rgba(129,20,17,0) 90%); padding: 0 0.2rem; }
    .hero-lead { font-size: 1.2rem; margin: 1.8rem 0 2.2rem; color: #2a2a2a; max-width: 500px; }
    .btn-massive { background: var(--primary); color: white; padding: 1rem 2.8rem; border-radius: 60px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 16px 30px -8px rgba(129,20,17,0.3); border: none; margin-top: 1.2rem; transition: 0.2s; }
    .btn-massive:hover { background: #6a100d; transform: scale(1.02); }
    .shape-collage { position: relative; height: 600px; width: 100%; }
    .shape { position: absolute; background-size: cover !important; background-position: center !important; box-shadow: 0 25px 35px -12px rgba(0,0,0,0.2); transition: all 0.2s; }
    .shape1 { width: 270px; height: 270px; background: linear-gradient(145deg, #a52a2a, #811411); border-radius: 40% 60% 30% 70% / 50% 40% 60% 50%; top: 0; right: 0; background-image: url('images/learn.jpg'); background-blend-mode: overlay; border: 3px solid white; }
    .shape2 { width: 210px; height: 290px; border-radius: 70% 30% 50% 50% / 30% 60% 40% 70%; top: 10px; left: 0; background-image: url('images/invoice.jpg'); background-blend-mode: soft-light; background-size: cover; border: 3px solid #f0e4dc; z-index: 2; }
    .shape3 { width: 225px; height: 225px; background: #811411; border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; bottom: 0; right: 20px; background-image: url('images/borapas.jpg'); background-blend-mode: luminosity; background-size: cover; border: 3px solid white; z-index: 1; }
    .shape4 { width: 200px; height: 200px; background: #2d1f1a; border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; bottom: 0; left: 0; background-image: url('images/member.jpg'); background-blend-mode: hard-light; border: 3px solid var(--primary); z-index: 3; }
    .shape5 { width: 180px; height: 160px; background: rgba(0,0,0,0.2); border-radius: 50% 50% 40% 60% / 40% 50% 50% 60%; top: 52%; left: 50%; transform: translate(-50%, -50%); background-image: url('images/pharma.jpg'); background-blend-mode: overlay; background-size: cover; border: 3px solid var(--primary); z-index: 0; opacity: 0.9; }
    .shape-badge { position: absolute; bottom: 10px; right: 10px; background: white; padding: 8px 18px; border-radius: 50px; font-weight: 700; font-size: 0.9rem; box-shadow: 0 8px 12px rgba(0,0,0,0.1); z-index: 10; }
    .coreapps-section { scroll-margin-top: 100px; margin: 4rem 0; }
    .section-header { margin-bottom: 3rem; }
    .section-eyebrow { color: var(--primary); text-transform: uppercase; font-weight: 700; letter-spacing: 2px; font-size: 0.8rem; }
    .section-title { font-size: 2.8rem; font-weight: 800; letter-spacing: -0.03em; color: var(--black); line-height: 1.2; }
    .apps-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; margin: 3rem 0; align-items: stretch; }
    .app-card { position: relative; padding: 2rem 1.2rem; border-radius: 40px; box-shadow: 0 8px 24px rgba(0,0,0,0.02); border: 1px solid #ede6e1; transition: all 0.25s; background-size: cover; background-position: center; background-repeat: no-repeat; text-decoration: none; display: flex; flex-direction: column; justify-content: center; word-break: break-word; min-width: 0; }
    .app-card:hover { border-color: var(--primary); transform: translateY(-6px); box-shadow: 0 28px 30px -16px rgba(129,20,17,0.08); }
    .app-card.learn { background-image: linear-gradient(rgba(129,20,17,0.7), rgba(129,20,17,0.7)), url('images/learn.jpg'); }
    .app-card.invoice { background-image: linear-gradient(rgba(129,20,17,0.7), rgba(129,20,17,0.7)), url('images/invoice.jpg'); }
    .app-card.members { background-image: linear-gradient(rgba(129,20,17,0.7), rgba(129,20,17,0.7)), url('images/member.jpg'); }
    .app-card.pos { background-image: linear-gradient(rgba(129,20,17,0.7), rgba(129,20,17,0.7)), url('images/borapas.jpg'); }
    .app-card.pharma { background-image: linear-gradient(rgba(129,20,17,0.7), rgba(129,20,17,0.7)), url('images/pharma.jpg'); }
    .app-icon { font-size: 2.2rem; color: var(--primary); margin-bottom: 1.2rem; }
    .app-card .app-icon { color: white; }
    .app-card h3 { font-size: 1.6rem; font-weight: 700; margin-bottom: 0.6rem; color: white; line-height: 1.2; }
    .app-card p { color: white; font-size: 0.9rem; line-height: 1.4; }
    .principles-section { scroll-margin-top: 100px; margin: 5rem 0; background: linear-gradient(135deg, #fefcfb 0%, #f4f0ec 100%); padding: 3rem 0; border-radius: 48px; }
    .principles-header { padding-left: 2rem; padding-right: 2rem; }
    .timeline-padded { padding-left: 1rem; padding-right: 1rem; }
    .timeline { position: relative; display: flex; justify-content: space-between; align-items: flex-start; padding-top: 60px; }
    .timeline::after { content: ''; position: absolute; top: 30px; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary) 0%, rgba(129,20,17,0.5) 50%, var(--primary) 100%); z-index: -1; border-radius: 2px; }
    .timeline-item { text-align: center; flex: 1; position: relative; padding: 0 1rem; }
    .timeline-icon { position: absolute; top: -35px; left: 50%; transform: translateX(-50%); background: var(--primary); color: white; border-radius: 50%; width: 70px; height: 70px; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(129,20,17,0.4); transition: transform 0.3s ease, box-shadow 0.3s ease; border: 3px solid white; }
    .timeline-icon:hover { transform: translateX(-50%) scale(1.15); box-shadow: 0 12px 30px rgba(129,20,17,0.6); }
    .timeline-item h4 { font-size: 1.3rem; font-weight: 700; margin: 3rem 0 0.5rem; color: var(--black); }
    .timeline-item p { font-size: 0.95rem; color: #555; max-width: 220px; margin: 0 auto; line-height: 1.4; }
    .architecture-section { scroll-margin-top: 80px; margin: 3rem 0; }
    .architecture-header { text-align: center; margin-bottom: 4rem; }
    .architecture-card-wrapper { position: relative; margin-bottom: 4rem; }
    .architecture-card { background: linear-gradient(135deg, rgba(129,20,17,0.08) 0%, rgba(129,20,17,0.02) 100%); border: 2px solid rgba(129,20,17,0.2); border-radius: 24px; padding: 3rem; backdrop-filter: blur(10px); }
    .architecture-main-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; gap: 3rem; align-items: center; }
    .core-infra { text-align: center; }
    .core-infra-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
    .core-infra-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--black); }
    .core-infra-text { color: #666; font-size: 0.9rem; margin: 0; }
    .engines-section { text-align: center; }
    .engines-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--black); }
    .engines-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; justify-items: center; align-items: center; }
    .engine-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(255,255,255,0.5); border-radius: 12px; width: 100%; }
    .engine-icon { font-size: 2rem; color: var(--primary); min-width: 50px; display: flex; justify-content: center; }
    .engine-name { font-weight: 700; font-size: 1rem; margin: 0 0 0.2rem 0; color: var(--black); }
    .engine-desc { color: #777; font-size: 0.85rem; margin: 0; }
    .engine-item.pharma-center { grid-column: span 2; justify-self: center; width: auto; min-width: 220px; }
    .web-mobile { text-align: center; }
    .web-mobile-icon { font-size: 3rem; color: var(--primary); margin-bottom: 1rem; }
    .web-mobile-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--black); }
    .web-mobile-text { color: #666; font-size: 0.9rem; margin: 0; }
    .who-why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 4rem; }
    .built-for { scroll-margin-top: 80px; }
    .built-for-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
    .built-for-icon { font-size: 2.5rem; color: var(--primary); }
    .built-for-title { font-size: 1.6rem; font-weight: 700; margin: 0; color: var(--black); }
    .badge-container { display: flex; flex-wrap: wrap; gap: 0.8rem; }
    .who-badge { background: white; padding: 0.8rem 2rem; border-radius: 60px; font-weight: 600; border: 1px solid #ddd2ca; }
    .why-choose { scroll-margin-top: 80px; }
    .why-choose-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
    .why-choose-icon { font-size: 2.5rem; color: var(--primary); }
    .why-choose-title { font-size: 1.6rem; font-weight: 700; margin: 0; color: var(--black); }
    .feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
    .feature-item { padding: 0.7rem; background: white; border: 1px solid rgba(129,20,17,0.15); border-radius: 16px; display: flex; align-items: center; gap: 0.6rem; transition: all 0.2s; cursor: pointer; }
    .feature-item:hover { box-shadow: 0 8px 24px rgba(129,20,17,0.1); transform: translateY(-2px); }
    .feature-icon { width: 32px; height: 32px; background: rgba(129,20,17,0.1); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
    .feature-icon i { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
    .feature-text { font-weight: 600; color: var(--black); }
    .cta-section { background: linear-gradient(135deg, rgba(129,20,17,0.8) 0%, rgba(106,16,13,0.8) 100%), url('images/borapas.jpg'); background-size: cover; background-position: center; color: white; padding: 4rem 2rem; text-align: center; border-radius: 48px; margin: 4rem 0; box-shadow: 0 20px 40px rgba(129,20,17,0.3); }
    .cta-title { font-size: 2.5rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.03em; }
    .cta-text { font-size: 1.2rem; margin-bottom: 2.5rem; opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto; }
    .cta-button { background: white; color: var(--primary); padding: 1rem 2.8rem; border-radius: 60px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; box-shadow: 0 8px 20px rgba(0,0,0,0.2); transition: 0.2s; }
    .cta-button:hover { transform: scale(1.05); }
    .footer { margin-top: 0; padding: 2rem 2.5rem; background: #000000; display: flex; justify-content: space-between; align-items: center; color: white; border-top: 1px solid rgba(129,20,17,0.3); font-size: 0.85rem; }
    .footer-left { display: flex; align-items: center; gap: 2.5rem; }
    .footer-copyright { color: rgba(255,255,255,0.6); font-weight: 500; letter-spacing: 0.3px; }
    .footer-products { display: flex; gap: 2rem; flex-wrap: wrap; }
    .footer-products a { color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.2s; font-weight: 500; }
    .footer-products a:hover { color: var(--primary); }
    .footer-links { display: flex; gap: 2rem; }
    .footer-links a { color: rgba(255,255,255,0.7); text-decoration: none; transition: all 0.2s; font-weight: 500; }
    .footer-links a:hover { color: var(--primary); }

    /* Responsive Styles */
    @media (max-width: 1024px) {
      .container { padding: 0 1.5rem; }
      .apps-grid { grid-template-columns: repeat(3, 1fr); }
      .architecture-main-grid { grid-template-columns: 1fr 1.5fr 1fr; gap: 1.5rem; }
    }
    @media (max-width: 900px) {
      .architecture-main-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
      .engines-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem !important; }
      .engine-item.pharma-center { grid-column: span 2; width: 100%; max-width: 280px; }
      .engine-item { justify-content: center !important; text-align: center !important; flex-direction: column !important; }
      .who-why-grid { grid-template-columns: 1fr !important; gap: 2rem !important; }
      .feature-list { grid-template-columns: 1fr 1fr; }
      .architecture-card { padding: 1.5rem !important; }
      .hero { grid-template-columns: 1fr; gap: 2rem; text-align: center; padding: 2rem 0 3rem; }
      .hero-lead { margin-left: auto; margin-right: auto; }
      .hero-badge { margin-left: auto; margin-right: auto; display: inline-block; }
      .btn-massive { margin-left: auto; margin-right: auto; justify-content: center; width: fit-content; }
      .shape-collage { height: 380px; margin-top: 1rem; }
      .shape1 { width: 200px; height: 200px; right: 30px; top: 0; }
      .shape2 { width: 170px; height: 190px; left: 40px; top: 20px; }
      .shape3 { width: 190px; height: 190px; bottom: 40px; right: 40px; }
      .shape4 { width: 150px; height: 150px; bottom: 50px; left: 30px; }
      .shape5 { width: 170px; height: 170px; }
      .shape-badge { bottom: -5px; right: 5px; font-size: 0.7rem; padding: 4px 12px; }
      .apps-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
      .app-card { padding: 1.8rem 1.2rem; }
      .app-card h3 { font-size: 1.4rem; }
      .timeline { flex-direction: column; align-items: center; padding-top: 0; gap: 2.5rem; }
      .timeline::after { display: none; }
      .timeline-icon { position: static; transform: none; margin: 0 auto 1rem; }
      .timeline-icon:hover { transform: scale(1.15); }
      .timeline-item h4 { margin: 0.5rem 0 0.3rem; }
      .footer { flex-direction: column; text-align: center; gap: 1rem; padding: 1.5rem; }
      .footer-left { flex-direction: column; gap: 1rem; }
      .footer-links { justify-content: center; }
    }
    @media (max-width: 600px) {
      .section-title { font-size: 1.8rem !important; }
      .engine-item { padding: 0.8rem !important; }
      .engine-name { font-size: 0.9rem !important; }
      .engine-desc { font-size: 0.75rem !important; }
      .who-badge { padding: 0.5rem 1rem !important; font-size: 0.75rem !important; }
      .feature-item { padding: 0.5rem !important; font-size: 0.8rem !important; }
      .feature-icon { width: 28px !important; height: 28px !important; }
      .navbar { flex-direction: column; gap: 1rem; padding: 1rem 0; }
      .nav-links { gap: 0rem; justify-content: center; flex-wrap: wrap; }
      .nav-links a { padding: 10px; font-size: 0.85rem; }
      .menu-cta { padding: 0.5rem 1.2rem; font-size: 0.85rem; display: none; }
      .hero h1 { font-size: 2.5rem; }
      .hero-lead { font-size: 1rem; }
      .section-title { font-size: 2rem; }
      .apps-grid { grid-template-columns: 1fr; }
      .app-card { padding: 1.5rem 1.2rem; }
      .app-card h3 { font-size: 1.5rem; }
      .timeline-item p { font-size: 0.85rem; }
      .who-badge { padding: 0.5rem 1.2rem; font-size: 0.8rem; }
      .cta-title { font-size: 1.6rem; }
      .cta-text { font-size: 0.9rem; }
      .engines-grid { grid-template-columns: 1fr !important; }
      .engine-item.pharma-center { grid-column: span 1; max-width: 100%; }
    }
    @media (max-width: 480px) {
      .container { padding: 0 1rem; }
      .hero h1 { font-size: 2rem; }
      .section-title { font-size: 1.6rem; }
      .shape-collage { height: 300px; }
      .shape1 { width: 130px; height: 130px; }
      .shape2 { width: 110px; height: 150px; }
      .shape3 { width: 120px; height: 120px; }
      .shape4 { width: 100px; height: 100px; }
      .shape5 { width: 120px; height: 120px; }
      .feature-list { grid-template-columns: 1fr 1fr; }
    }