/* Showcase PDF - Print Optimized Professional Styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #0ea5e9;
    --primary-glow: rgba(14, 165, 233, 0.15);
    /* Softer glow for light mode */
    --secondary: #10b981;
    --accent: #8b5cf6;
    /* Slightly deeper purple for contrast */
    --bg-dark: #ffffff;
    /* Main page background: White */
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    /* Gray border */
    --text-main: #0f172a;
    /* Dark text */
    --text-muted: #475569;
    /* Slate 600 */
    --border: #e2e8f0;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softer shadow */
    --font-main: 'Inter', sans-serif;
}



* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
}

body {
    font-family: var(--font-main);
    color: var(--text-main);
    line-height: 1.6;
    background: #0f172a;
    background: #f8fafc;
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}


.page {
    position: relative;
    width: 100%;
    max-width: 1200px;
    padding: 80px 20px;
    background: var(--bg-dark);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}


@media print {
    body {
        background: none;
        background: #f8fafc;
    }

    .page {
        margin: 0;
        box-shadow: none;
    }
}

/* Page 1: Cover */
.cover-page {
    background: #ffffff;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0;
    min-height: 100vh;
    padding: 100px 20px;
}

.cover-content {
    z-index: 2;
    padding: 20mm;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 1) 100%);
    /* Fade out image behind text */
    border-radius: 24px;
    /* Soften the text block */
}

.cover-logo {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.cover-logo span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary), #a855f7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cover-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.cover-subtitle {
    font-size: 1.6rem;
    color: var(--text-muted);
    /* Deeper contrast for readability */
    max-width: 80%;
    margin: 0 auto 3rem;
}

.cover-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    object-fit: cover;
    opacity: 0.5;
}

.cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, #ffffff 90%);
    z-index: 1;
}

/* Page Header & Footer */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary);
    padding-bottom: 5mm;
    margin-bottom: 10mm;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.header-logo span {
    color: var(--primary);
}

.page-number {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 1rem;
}

.footer-info {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 5mm;
}

/* Typography */
.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
    line-height: 1;
    background: none;
    -webkit-text-fill-color: initial;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 85%;
    font-weight: 500;
}

h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--primary);
}

/* Grids */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6mm;
    /* Reduced gap slightly for better fit */
    margin-bottom: 6mm;
}

.grid-2.uneven {
    grid-template-columns: 1.5fr 1fr;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6mm;
    margin-bottom: 10mm;
}

/* Cards & Glassmorphism */
.card {
    background: #ffffff;
    border-radius: 12px;
    padding: 5mm;
    border: 1px solid #cbd5e1;
    /* Clearer border */
    /* height: 100%; removed to prevent overflow */
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
}

.card h3,
.card h4 {
    margin-top: 0;
}

.card p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.card.highlight {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.1);
}

.card.primary {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
    box-shadow: 0 0 30px rgba(14, 165, 233, 0.1);
}

.card.legacy {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.05);
}

.card.legacy h3 {
    color: #ef4444;
}

/* Icons & Labels */
.stat-pill {
    display: inline-block;
    padding: 1.5mm 5mm;
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(14, 165, 233, 0.4);
    color: var(--primary);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5mm;
}

/* Visual Assets */
.visual-container {
    width: 100%;
    border-radius: 12px;
    /* Slightly tighter radius */
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    /* Clean standard shadow */
    margin: 6mm 0;
    background: #f8fafc;
    /* Light gray background/frame */
    position: relative;
    border: 1px solid #e2e8f0;
}

.visual-container.small {
    margin: 4mm 0;
}

.visual-container.mini {
    height: 40mm;
    /* Reduced from 45mm to save space */
    margin: 3mm 0;
}

.visual-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* prevents cropping of screenshots */
    object-position: center;
    display: block;
}

/* Problem/Solution List */
.ps-list {
    list-style: none;
}

.ps-item {
    display: flex;
    gap: 3mm;
    margin-bottom: 4mm;
}

.ps-icon {
    font-size: 1.5rem;
    width: 8mm;
    flex-shrink: 0;
}

.ps-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1px;
}

.ps-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Table Style */
.feature-table {
    width: 100%;
    border-collapse: collapse;
    margin: 10mm 0;
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.feature-table th {
    text-align: left;
    padding: 4mm;
    background: rgba(14, 165, 233, 0.1);
    color: var(--primary);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--glass-border);
}

.feature-table td {
    padding: 4mm;
    border-bottom: 1px solid #e2e8f0;
    font-size: 1rem;
    color: var(--text-muted);
}

.feature-table tr:last-child td {
    border-bottom: none;
}

.feature-table tr:nth-child(even) {
    background: #f8fafc;
}

/* Special Layouts */
.roi-box {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.85) 0%, rgba(124, 58, 237, 0.85) 100%);
    border: 1px solid rgba(124, 58, 237, 0.3);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 8mm;
    /* Reduced from 12mm */
    border-radius: 20px;
    margin: 6mm 0;
    /* Reduced from 10mm */
    position: relative;
    overflow: hidden;
}

.roi-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent);
}

.roi-box h3 {
    color: #fff;
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.roi-box p {
    color: #cbd5e1;
    font-size: 1.2rem;
}

.tech-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6mm;
    /* Reduced from 8mm */
    background: #ffffff;
    padding: 6mm;
    /* Reduced from 10mm */
    border-radius: 20px;
    border: 1px solid #cbd5e1;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 1mm;
}

.spec-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

.spec-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-main);
}

/* Footer Contact Area */
.footer-contact {
    position: relative;
    z-index: 2;
    margin-top: 40px;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 12mm;
    border-radius: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--glass-border);
}

.cta-button {
    background: var(--primary);
    color: #fff;
    padding: 5mm 12mm;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s;
}

/* Utility */
.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.mt-auto {
    margin-top: auto;
}

.mb-0 {
    margin-bottom: 0;
}

/* Logo Image Scaling */
.cover-logo img {
    width: 450px;
    height: auto;
    vertical-align: middle;
}

.header-logo img {
    width: 200px;
    height: auto;
    vertical-align: middle;
}

.page-number {
    display: none;
}

/* Image Modal (Lightbox) */
.image-modal {
    position: fixed;
    z-index: 9999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    display: none;
    /* Default state */
}

.image-modal .modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: zoom 0.3s ease;
    object-fit: contain;
}

.image-modal .close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.image-modal .close-modal:hover,
.image-modal .close-modal:focus {
    color: var(--primary);
    text-decoration: none;
}

@keyframes zoom {
    from {
        transform: scale(0.95);
        opacity: 0
    }

    to {
        transform: scale(1);
        opacity: 1
    }
}

/* Make images look clickable */
.visual-container img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.visual-container img:hover {
    transform: scale(1.02);
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Tablet (max 900px)
═══════════════════════════════════════════ */
@media (max-width: 900px) {
    .page {
        padding: 50px 24px;
    }

    .cover-page {
        padding: 70px 24px;
    }

    .cover-logo img {
        width: 300px;
    }

    .cover-title {
        font-size: 3rem;
        letter-spacing: -1px;
    }

    .cover-subtitle {
        font-size: 1.2rem;
        max-width: 100%;
    }

    .section-title {
        font-size: 2.2rem;
        letter-spacing: -1px;
    }

    h3 {
        font-size: 1.4rem;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
        gap: 4mm;
    }

    .grid-2.uneven {
        grid-template-columns: 1fr 1fr;
    }

    .tech-spec-grid {
        grid-template-columns: 1fr 1fr;
    }

    .roi-box h3 {
        font-size: 1.8rem;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Mobile (max 768px)
═══════════════════════════════════════════ */
@media (max-width: 768px) {
    /* Fix horizontal overflow */
    .page {
        padding: 40px 16px !important;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* Cover page */
    .cover-page {
        padding: 50px 16px !important;
        min-height: auto;
    }

    .cover-content {
        padding: 24px !important;
    }

    .cover-logo img {
        width: 200px !important;
    }

    .cover-title {
        font-size: 2rem !important;
        letter-spacing: -0.5px;
        margin-bottom: 0.75rem;
        word-break: break-word;
    }

    .cover-subtitle {
        font-size: 0.95rem !important;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .cover-image {
        height: 40%;
        opacity: 0.3;
    }

    /* Section headings */
    .section-title {
        font-size: 1.6rem !important;
        letter-spacing: -0.5px;
        margin-bottom: 0.5rem;
    }

    .section-desc {
        font-size: 0.9rem !important;
        max-width: 100%;
        margin-bottom: 1rem;
    }

    h3 {
        font-size: 1.15rem !important;
        margin-bottom: 0.4rem;
    }

    h4 {
        font-size: 0.95rem !important;
    }

    /* Collapse all grids to single column */
    .grid-2,
    .grid-2.uneven,
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        margin-bottom: 12px !important;
    }

    .tech-spec-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 14px !important;
        margin-bottom: 12px !important;
    }

    /* Cards */
    .card {
        padding: 14px !important;
    }

    .card p {
        font-size: 0.85rem;
    }

    /* Override any inline flex/gap on cards */
    .card.primary[style],
    .card[style*="display: flex"] {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 14px !important;
    }

    /* Page header */
    .page-header {
        padding-bottom: 10px !important;
        margin-bottom: 14px !important;
    }

    .header-logo img {
        width: 110px !important;
    }

    /* Footer */
    .footer-info {
        font-size: 0.72rem;
        padding-top: 10px;
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }

    /* Images — remove fixed max-heights */
    .visual-container {
        margin: 10px 0 !important;
        max-height: none !important;
    }

    .visual-container img {
        max-width: 100%;
        height: auto !important;
    }

    /* Lapcount image override */
    .visual-container[style*="grid-column: span 2"] {
        grid-column: span 1 !important;
        max-height: 300px !important;
    }

    /* Platform preview grid */
    div[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    /* ROI box */
    .roi-box {
        padding: 16px !important;
        margin: 12px 0 !important;
    }

    .roi-box h3 {
        font-size: 1.3rem !important;
    }

    .roi-box p {
        font-size: 0.9rem !important;
    }

    /* Tables — horizontal scroll */
    .feature-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        font-size: 0.82rem;
        margin: 10px 0 !important;
    }

    .feature-table th,
    .feature-table td {
        padding: 8px 10px !important;
        white-space: nowrap;
    }

    /* Footer contact */
    .footer-contact {
        flex-direction: column !important;
        gap: 16px;
        text-align: center;
        padding: 16px !important;
    }

    .footer-contact > div {
        text-align: center;
    }

    .cta-button {
        display: block;
        text-align: center;
        padding: 12px 24px !important;
        font-size: 0.95rem;
    }

    /* Stat pills */
    .stat-pill {
        font-size: 0.7rem;
        padding: 4px 10px;
        margin-bottom: 8px;
    }

    /* Back button */
    .cover-page > a[href] {
        top: 12px !important;
        left: 12px !important;
        font-size: 0.8rem !important;
        padding: 6px 12px !important;
    }

    /* ps-list items */
    .ps-item {
        gap: 8px;
        margin-bottom: 10px;
    }

    .ps-icon {
        font-size: 1.1rem;
        width: auto !important;
    }

    .ps-content h4 {
        font-size: 0.9rem !important;
    }

    .ps-content p {
        font-size: 0.82rem !important;
    }

    /* Spec values */
    .spec-value {
        font-size: 1rem;
    }

    .spec-label {
        font-size: 0.72rem;
    }

    /* Override any inline margin/gap with mm units */
    .grid-2[style*="margin-bottom: 8mm"],
    .card[style*="margin-top: 10mm"],
    .card.highlight[style*="margin-top"] {
        margin: 12px 0 !important;
    }
}

/* ═══════════════════════════════════════════
   RESPONSIVE — Small Mobile (max 480px)
═══════════════════════════════════════════ */
@media (max-width: 480px) {
    .page {
        padding: 20px 10px !important;
    }

    .cover-page {
        padding: 40px 10px !important;
    }

    .cover-content {
        padding: 16px !important;
    }

    .cover-logo img {
        width: 150px !important;
    }

    .cover-title {
        font-size: 1.6rem !important;
    }

    .cover-subtitle {
        font-size: 0.85rem !important;
    }

    .section-title {
        font-size: 1.35rem !important;
    }

    h3 {
        font-size: 1rem !important;
    }

    .header-logo img {
        width: 90px !important;
    }

    .roi-box h3 {
        font-size: 1.1rem !important;
    }

    .roi-box p {
        font-size: 0.82rem !important;
    }

    .feature-table th,
    .feature-table td {
        font-size: 0.75rem !important;
        padding: 6px 8px !important;
    }

    .image-modal {
        padding-top: 10px;
    }

    .image-modal .close-modal {
        top: 8px;
        right: 12px;
        font-size: 28px;
    }

    .image-modal .modal-content {
        max-width: 98%;
        border-radius: 8px;
    }
}