* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #e5e7eb;
    color: #111827;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
    gap: 2rem;
    line-height: 1.5;
}

/* Page Container */
.page {
    width: 100%;
    max-width: 900px;
    min-height: 1272px; /* approximate A4 ratio for max-width */
    height: auto;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .page {
        min-height: 141.4vw;
    }
}

/* Page 1 (Dark) */
.page-dark {
    background-color: #03002e; /* Deep navy from screenshot */
    color: #ffffff;
    padding: 3rem 4rem;
}

.header-dark {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.header-right {
    opacity: 0.7;
    font-weight: 400;
}

.hero-content {
    margin-top: 5rem;
    flex-grow: 1;
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #aeb9f8;
    margin-bottom: 1.5rem;
}

.hero-divider {
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
}

.hero-text {
    font-size: 1.1rem;
    color: #d1d5ff;
    line-height: 1.6;
}

.network-graphic {
    position: absolute;
    bottom: 5%;
    left: 0;
    width: 100%;
    height: 40%;
    z-index: 0;
}

.node {
    position: absolute;
    background-color: #03002e;
    border: 1px solid #4d61fc;
    color: #ffffff;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 20px rgba(77, 97, 252, 0.3);
}

.network-lines {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.footer-dark {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-label {
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
}

.footer-val {
    color: #aeb9f8;
}

.sm-text {
    font-size: 0.7rem;
    letter-spacing: 1px;
    font-weight: 500;
    color: #ffffff;
}

/* Light Pages */
.page-light {
    background-color: #ffffff;
    padding: 3rem 4rem;
}

.page-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #03002e;
    margin-bottom: 3rem;
}

.ph-right {
    color: #6b7280;
    font-weight: 400;
}

.page-content {
    flex-grow: 1;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: #03002e;
    margin-bottom: 1.5rem;
}

.body-text {
    font-size: 1.05rem;
    color: #374151;
    margin-bottom: 1rem;
}

.accent-title {
    font-size: 0.85rem;
    color: #2544ff;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 2.5rem 0 1rem 0;
    text-transform: uppercase;
}

.page-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2rem;
}

/* Ecosystem Graphic - Page 2 */
.ecosystem-graphic {
    position: relative;
    margin: 2rem 0;
    padding: 2rem 0;
}

.eco-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
    padding: 1rem 0;
}

.eco-grid::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #d1d5db;
    z-index: 1;
}

.eco-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: #d1d5db;
    z-index: 1;
}

.eco-item {
    background-color: #ffffff;
    z-index: 2;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.eco-item:nth-child(even) {
    align-items: flex-start;
    text-align: left;
}

.eco-num {
    color: #2544ff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

.eco-title {
    font-weight: 700;
    color: #03002e;
}

.eco-line {
    width: 40px;
    height: 2px;
    background-color: #2544ff;
    margin: 0.5rem 0;
}

.eco-item p {
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.4;
}

.vision-mission-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: #f8fafc;
    border-radius: 8px;
    margin-top: 2rem;
}

.vm-col {
    padding: 2rem;
}

.vm-col:first-child {
    border-right: 1px solid #e2e8f0;
}

.vm-col p {
    font-size: 1rem;
    color: #475569;
}

/* Services Grid - Page 3 */
.subtitle-text {
    font-size: 1.1rem;
    color: #4b5563;
    margin-bottom: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.service-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.5rem;
}

.icon-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.icon {
    margin-right: 1rem;
}

.service-card h4 {
    font-size: 1.1rem;
    color: #03002e;
    margin-bottom: 0.75rem;
}

.service-card p {
    font-size: 0.9rem;
    color: #4b5563;
    line-height: 1.5;
}

.service-card .examples {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

.highlight-banner {
    background-color: #f1f5f9;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2.5rem;
    text-align: center;
}

.highlight-banner h3 {
    font-size: 1.25rem;
    color: #03002e;
    font-weight: 600;
}

/* Info Box - Page 4 */
.info-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 1.5rem;
}

.bg-light {
    background-color: #f8fafc;
}

.info-box h4 {
    font-size: 1.25rem;
    color: #03002e;
    margin-bottom: 0.75rem;
}

.info-box p {
    color: #475569;
    font-size: 0.95rem;
}

.sub-heading {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.5rem;
}

.bullet-list {
    list-style-type: disc;
    padding-left: 1.25rem;
    color: #64748b;
    font-size: 0.9rem;
    column-count: 2;
    column-gap: 1.5rem;
}

.bullet-list li {
    margin-bottom: 0.25rem;
    break-inside: avoid;
    page-break-inside: avoid;
}

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2.5rem; }
.text-sm { font-size: 0.85rem; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }

.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
}

.btn-dark {
    background-color: #03002e;
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
}

.vertical-line {
    width: 2px;
    height: 30px;
    background-color: #60a5fa;
}

.flow-pill {
    background-color: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    padding: 0.5rem 1.5rem;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 600;
}

.flow-branches {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
    padding-top: 15px;
    position: relative;
}

.branch {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 0.5rem;
    flex: 1;
    max-width: fit-content;
}

.branch::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #cbd5e1;
}

.branch:first-child::before {
    left: 50%;
}

.branch:last-child::before {
    right: 50%;
}

.branch-line {
    width: 2px;
    height: 15px;
    background-color: #cbd5e1;
    margin-top: -15px;
    margin-bottom: 5px;
}

.branch-box {
    border: 1px solid #e2e8f0;
    border-radius: 99px;
    padding: 0.5rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    background-color: #ffffff;
    color: #475569;
}

.bg-gray {
    background-color: #64748b;
    color: white;
}

/* Page 5 */
.collaborate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.collab-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.collab-card h4 {
    font-size: 1.1rem;
    color: #03002e;
    margin: 0.5rem 0;
}

.collab-card p {
    font-size: 0.9rem;
    color: #475569;
}

.why-table {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #f8fafc;
    overflow: hidden;
}

.why-row {
    display: flex;
}

.why-cell {
    flex: 1;
    padding: 1.5rem;
    font-size: 0.95rem;
    color: #334155;
}

.border-right { border-right: 1px solid #e2e8f0; }
.border-bottom { border-bottom: 1px solid #e2e8f0; }

.connect-box {
    display: flex;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2rem;
}

.connect-left {
    flex: 3;
    padding-right: 2rem;
}

.connect-left p {
    font-size: 0.95rem;
    color: #475569;
}

.contact-details {
    font-size: 0.95rem;
    color: #334155;
    line-height: 1.6;
}

.connect-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-left: 1px solid #e2e8f0;
    padding-left: 2rem;
}

.qr-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .page {
        aspect-ratio: auto;
        height: auto;
        min-height: 100vh;
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .footer-dark {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .network-graphic {
        position: relative;
        height: 350px;
        bottom: auto;
        margin: 2rem 0;
    }
    
    .eco-grid, .services-grid, .vision-mission-box, .collaborate-grid {
        grid-template-columns: 1fr;
        grid-template-areas: "e1" "e2" "e3" "e4";
    }
    
    .eco-grid::before, .eco-grid::after {
        display: none;
    }
    
    .why-row {
        flex-direction: column;
    }
    
    .border-right {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .connect-box {
        flex-direction: column;
    }
    
    .connect-right {
        border-left: none;
        border-top: 1px solid #e2e8f0;
        padding-left: 0;
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    .flow-branches {
        flex-direction: column;
        align-items: center;
        border-top: none;
    }
    
    .branch::before {
        display: none; /* Hide horizontal connecting lines on mobile stack */
    }
    
    .branch-line {
        height: 20px;
        margin-top: 0;
    }
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }
    
    body {
        margin: 0;
        padding: 0;
        background-color: #ffffff;
        font-size: 11px !important;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    .page {
        width: 100% !important;
        max-width: none !important;
        height: 297mm !important;
        min-height: 297mm !important;
        margin: 0 !important;
        padding: 1.5rem 2rem !important;
        box-shadow: none !important;
        page-break-after: always !important;
        break-after: page !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        overflow: hidden !important; 
        zoom: 0.9 !important; /* Scale entire container to ensure perfect fit */
    }

    .page-dark {
        background-color: #03002e !important;
        color: #ffffff !important;
    }
    
    .logo-text img, .ph-left img {
        -webkit-print-color-adjust: exact !important;
    }

    .eco-item {
        border: 1px solid #e5e7eb !important;
        padding: 0.75rem !important;
    }

    .hero-title { font-size: 3rem !important; margin-bottom: 0.5rem !important; }
    .hero-title img { height: 100px !important; }
    .section-title { font-size: 1.8rem !important; margin-bottom: 0.5rem !important; }
    .body-text { margin-bottom: 0.5rem !important; }
    .accent-title { margin: 1rem 0 0.5rem 0 !important; }
    
    .eco-grid { gap: 1rem !important; padding: 0.25rem 0 !important; }
    .services-grid { gap: 0.75rem !important; }
    .service-card { padding: 0.75rem !important; }
    .info-box { padding: 1rem !important; margin-bottom: 0.5rem !important; }
    
    .collaborate-grid { gap: 0.75rem !important; }
    .collab-card { padding: 0.75rem !important; }
    .why-cell { padding: 0.75rem !important; }
    .connect-box { padding: 1rem !important; }
    
    .mt-4 { margin-top: 1rem !important; }
    .mt-3 { margin-top: 0.5rem !important; }
    .mt-2 { margin-top: 0.25rem !important; }
    
    .vision-mission-box { margin-top: 1rem !important; }
    .vm-col { padding: 1rem !important; }
    
    .page-header { margin-bottom: 1rem !important; }
    .page-footer { margin-top: 1rem !important; }
    
    .flow-diagram { margin-top: 0.5rem !important; }
    .flow-branches { padding-top: 10px !important; margin-top: 5px !important; }
}
