:root {
    --bjp-saffron: #FF9933;
    --bjp-green: #138808;
    --bjp-white: #FFFFFF;
    --bjp-blue: #000080;
    --slate-dark: #1e293b;
    --slate-light: #f1f5f9;
    --text-main: #334155;
    --text-muted: #64748b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Global Background with AI Grid */
body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: var(--slate-light);
    background-image:
        linear-gradient(rgba(241, 245, 249, 0.95), rgba(241, 245, 249, 0.95)),
        linear-gradient(to right, rgba(203, 213, 225, 0.2) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(203, 213, 225, 0.2) 1px, transparent 1px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    line-height: 1.6;
}

/* Typography Enhancements */
h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #FF9933, #FF7722);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--slate-dark);
}

h4 {
    color: var(--slate-dark);
    font-weight: 700;
}

p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 1. Cover Page */
.cover {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('hero.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 2rem;
    position: relative;
}

.cover h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.cover h2 {
    background: none;
    -webkit-text-fill-color: white;
    color: #FF9933;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-size: 1.5rem;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logo-circle {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-weight: bold;
    color: var(--bjp-saffron);
    font-size: 2rem;
    box-shadow: 0 0 20px rgba(255, 153, 51, 0.5);
}

/* Sections */
section {
    padding: 5rem 0;
    border-bottom: 1px solid #e2e8f0;
    background: transparent;
}

section:nth-child(even) {
    background: rgba(255, 255, 255, 0.5);
}

/* Masterstroke Features */
.masterstroke-box {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--bjp-saffron);
}

.logic-flow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.flow-step {
    flex: 1;
    background: var(--slate-light);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    border: 1px solid #e2e8f0;
    min-width: 150px;
}

.flow-step strong {
    display: block;
    color: var(--bjp-saffron);
    margin-bottom: 0.25rem;
}

.flow-arrow {
    color: var(--bjp-saffron);
    font-size: 1.25rem;
}

.investor-msg {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-dark);
    text-align: center;
    margin-top: 1.5rem;
    font-style: italic;
    padding: 1rem;
    border-left: 4px solid var(--bjp-saffron);
    background: #fff7ed;
}

/* Hidden Credibility Footer */
.credibility-footer {
    text-align: center;
    padding: 2rem;
    color: #cbd5e1;
    /* Very light slate, low contrast */
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-top: 2rem;
    opacity: 0.6;
}

/* 2. Exec Summary */
.exec-summary {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--slate-dark);
}

/* 3. Problem/Solution */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--bjp-saffron);
    margin-bottom: 1rem;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateX(5px);
}

.icon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.card i {
    color: var(--bjp-saffron);
    font-size: 1.5rem;
}

/* 4. Tech Stack */
.tech-img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* 6. Comparison */
table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    overflow: hidden;
}

th,
td {
    padding: 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

th {
    background: var(--slate-dark);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
}

th:nth-child(2),
td:nth-child(2) {
    background: #fee2e2;
}

/* Saral - Reddish tone for competitor/basic */
th:nth-child(3),
td:nth-child(3) {
    background: #f1f5f9;
}

/* Portal - Neutral */
th:nth-child(4),
td:nth-child(4) {
    background: #fff7ed;
    border-left: 4px solid var(--bjp-saffron);
    font-weight: bold;
}

/* Sangathan */

/* 8. Financials */
.financial-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.chart-img {
    width: 100%;
    max-width: 500px;
    border-radius: 1rem;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
}

/* 9. Timeline */
.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 2rem;
}

.phase {
    background: white;
    padding: 1.5rem;
    border-radius: 0.5rem;
    border-top: 4px solid var(--bjp-green);
    text-align: center;
}

.phase h4 {
    color: var(--bjp-green);
    margin-bottom: 0.5rem;
}

/* 10. CTA */
.cta-section {
    background: var(--slate-dark);
    color: white;
    text-align: center;
}

.cta-section h2,
.cta-section p {
    color: white;
}

.btn {
    display: inline-block;
    background: var(--bjp-saffron);
    color: white;
    padding: 1rem 3rem;
    font-size: 1.25rem;
    font-weight: bold;
    border-radius: 50px;
    text-decoration: none;
    margin-top: 2rem;
    transition: background 0.2s;
}

.btn:hover {
    background: #e67e22;
}

@media print {
    .cover {
        height: 70vh;
        background: white;
        color: black;
    }

    .cover h1,
    .cover h2,
    .cover p {
        color: black;
        text-shadow: none;
    }

    .cover h2 {
        -webkit-text-fill-color: black;
    }

    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }

    .btn {
        display: none;
    }

    .credibility-footer {
        display: block;
        border-top: 1px solid #ddd;
        padding-top: 1rem;
        margin-top: 1rem;
        color: #999;
        opacity: 1;
    }
}