/* Modern 2.0 CSS Reset & Variables */
:root {
    --primary-color: #0F172A;
    /* Slate 900 */
    --accent-color: #38BDF8;
    /* Sky 400 */
    --secondary-color: #0EA5E9;
    /* Sky 500 */
    --text-dark: #334155;
    /* Slate 700 */
    --text-light: #64748B;
    /* Slate 500 */
    --bg-light: #F8FAFC;
    /* Slate 50 */
    --bg-white: #ffffff;
    --success-color: #10B981;
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --hover-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.12);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 70px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-top: 0;
}

.container {
    max-width: 1200px;
    /* Wider container for modern feel */
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

/* --- Navigation --- */
.main-nav {
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.logo .highlight {
    color: var(--secondary-color);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-dark);
}

.nav-links a:hover {
    color: var(--secondary-color);
}

.btn-sm {
    padding: 8px 16px;
    background-color: var(--primary-color);
    color: white !important;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-sm:hover {
    background-color: var(--secondary-color);
}

/* --- Hero Section --- */
.hero-section {
    padding: 120px 0 100px;
    background: radial-gradient(circle at top right, #e0f2fe 0%, #f8fafc 40%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.badge {
    background: #e0f2fe;
    color: #0284c7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, var(--primary-color), #334155);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14, 165, 233, 0.4);
    background-color: #0284c7;
    /* Sky 600 */
}

.btn-secondary {
    background-color: white;
    color: var(--text-dark);
    border: 1px solid #cbd5e1;
}

.btn-secondary:hover {
    background-color: #f1f5f9;
    border-color: #94a3b8;
}

/* --- Common Section Styles --- */
.section-padding {
    padding: 80px 0;
}

.bg-neutral {
    background-color: white;
}

.section-header {
    margin-bottom: 50px;
}

.section-header.text-center {
    text-align: center;
}

.section-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 10px auto 0;
}

/* --- Grids & Cards --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.grid-2-large {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: #e0f2fe;
    color: var(--secondary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

/* --- Objective Grid --- */
.objective-card.primary {
    background: linear-gradient(135deg, var(--primary-color), #1e293b);
    color: white;
    padding: 40px;
    border-radius: 20px;
}

.objective-card.primary h3,
.objective-card.primary h2 {
    color: white;
}

.obj-label {
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.objectives-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.obj-item {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.obj-item i {
    color: var(--success-color);
    font-size: 1.2rem;
    margin-top: 3px;
}

.obj-item h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.obj-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.4;
}


/* --- Design Cards --- */
.design-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    position: relative;
    border: 1px solid #e2e8f0;
}

.card-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-badge.gold {
    background: #fef3c7;
    color: #d97706;
}

.card-badge.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.design-card h3 {
    margin-bottom: 10px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.feature-list i {
    color: var(--secondary-color);
    width: 20px;
    margin-right: 5px;
}

.comparison-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.comparison-box.single {
    justify-content: center;
}

.vs {
    background: #cbd5e1;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.details-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.details-link:hover {
    gap: 8px;
}

/* --- Timeline --- */
.timeline-wrapper {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.timeline-wrapper h3 {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 20px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.circle {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--secondary-color);
}

.step:hover .circle {
    background: var(--secondary-color);
    color: white;
}

.step h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.step .time {
    display: block;
    font-size: 0.8rem;
    color: #94a3b8;
    margin-bottom: 5px;
    font-weight: 600;
}

.step p {
    font-size: 0.85rem;
    color: var(--text-light);
    line-height: 1.3;
}

.mt-40 {
    margin-top: 40px;
}


/* --- Commercials Table --- */
.modern-table {
    width: 100%;
    border-collapse: collapse;
}

.modern-table th {
    background: #f1f5f9;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-family: var(--font-heading);
}

.modern-table td {
    padding: 15px 20px;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

.modern-table tr:last-child td {
    border-bottom: none;
}

.modern-table .num {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-dark);
}

.modern-table .group-header td {
    background: #f8fafc;
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 25px;
}

.modern-table .total-row td {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.modern-table .total-row .total-num {
    font-family: monospace;
    color: #4ade80;
    /* lighter green for dark bg */
}

/* --- Footer --- */
.main-footer {
    background: var(--primary-color);
    color: #94a3b8;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: white;
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 20px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #334155;
    padding-top: 20px;
    font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    /* Simplified for time, ideally add hamburger */
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .grid-2-large {
        grid-template-columns: 1fr;
    }

    .timeline-track {
        flex-direction: column;
    }

    .timeline-track::before {
        left: 19px;
        top: 0;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .step {
        text-align: left;
        padding-left: 50px;
        margin-bottom: 30px;
    }

    .circle {
        position: absolute;
        left: 0;
        margin: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

/* PDF Generation Overrides */
.generating-pdf {
    width: 100% !important;
    overflow: visible !important;
}

.generating-pdf .main-nav,
.generating-pdf .cta-group,
.generating-pdf .btn-sm,
.generating-pdf #download-btn,
.generating-pdf .hero-shape {
    display: none !important;
}

.generating-pdf .container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 40px !important;
    /* Safety padding */
}

/* Force specific colors for print clarity */
.generating-pdf body {
    background: white !important;
    color: black !important;
    -webkit-print-color-adjust: exact;
}

.generating-pdf .hero-section {
    padding-top: 20px;
    padding-bottom: 40px;
    background: white !important;
    /* Remove gradient for cleaner print */
}

.generating-pdf .hero-section h1 {
    color: var(--primary-color) !important;
    -webkit-text-fill-color: initial !important;
    font-size: 2.5rem !important;
}

/* Page Breaks */
.generating-pdf .feature-card,
.generating-pdf .design-card,
.generating-pdf .timeline-wrapper,
.generating-pdf .table-container,
.generating-pdf .section-header,
.generating-pdf .objective-card,
.generating-pdf .obj-item {
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin-bottom: 20px !important;
    box-shadow: none !important;
    /* Cleaner print look */
    border: 1px solid #eee !important;
}

.generating-pdf section {
    page-break-after: auto;
    padding: 20px 0 !important;
}

.generating-pdf [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}