* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    overflow-x: hidden;
}

h3 {
    color: #5a4fcf;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    height: auto;
}

/* --- Original Layout Styles --- */



/* Original Two-Column Layout */
.original-ui-section {
    padding: 4rem 0 2rem 0;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e7eb;
}

.content-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: flex-start;
}

.eyebrow {
    color: #5a4fcf;
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: block;
    margin-bottom: 1rem;
}

.left-column h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #5a4fcf;
}

.description {
    color: #6b7280;
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.supported-platforms {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 2rem;
    color: #6b7280;
}

.platform-label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-icons {
    display: flex;
    gap: 10px;
}

.platform-icons svg {
    width: 20px;
    height: 20px;
    color: #4b5563;
}

.selection-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    background-color: white;
}

.selection-card:hover {
    border-color: #5a4fcf;
    background-color: #f5f3ff;
    box-shadow: 0 4px 12px rgba(90, 79, 207, 0.15);
    transform: translateY(-2px);
}

.selection-card.selected {
    border-color: #e5e7eb;
}

.selection-card.selected:hover {
    border-color: #5a4fcf;
}

.icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.alert-icon {
    color: #EF4444;
}

.shield-icon {
    color: #10B981;
}

.card-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.card-content p {
    font-size: 0.875rem;
    color: #6b7280;
}

.btn-primary {
    background-color: #1f2937;
    color: white;
    border: none;
    border-radius: 9999px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #111827;
}

.list-item {
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 0.95rem;
    /* ~5% reduction from 1rem */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.95rem;
    /* ~5% reduction from 1rem */
}

.list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    background-color: #f5f3ff;
}

.list-content h3 {
    font-size: 0.95rem;
    /* Restored size */
    font-weight: 600;
    margin-bottom: 0.2rem;
    /* Slightly reduced margin */
    line-height: 1.2;
}

.list-content p {
    font-size: 0.85rem;
    /* Restored size */
    color: #6b7280;
    margin: 0;
    line-height: normal;
}

.list-icon {
    color: #5a4fcf;
    background-color: #f5f3ff;
    padding: 7px;
    /* Slight reduction from 8px */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- New Layout Styles --- */

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    text-align: center;
}

.hero-text {
    max-width: 800px;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #5a4fcf;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 30px;
}

.download-section {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.btn-github {
    background: #24292e;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-github:hover {
    background: #1b1f23;
    color: white;
    text-decoration: none;
}

.privacy-text {
    font-size: 0.9rem;
    color: #6c757d;
}

.privacy-text a {
    color: #5a4fcf;
    text-decoration: none;
}

.hero-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    width: 100%;
    max-width: 1200px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(90, 79, 207, 0.3);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.hero-image img:hover {
    transform: scale(1.02);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features-header {
    text-align: center;
    margin-bottom: 60px;
}

.features-label {
    color: #5a4fcf;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.features h2 {
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 20px;
}

.features-description {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Cards */
.feature-section {
    margin-bottom: 80px;
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #5a4fcf;
}

.feature-text p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 25px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    color: #6c757d;
    margin-bottom: 12px;
    position: relative;
    padding-left: 30px;
    font-size: 1rem;
}

.feature-list li:before {
    content: "✓";
    color: #28a745;
    font-weight: bold;
    position: absolute;
    left: 0;
    background: #e8f5e8;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.feature-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.feature-image img:hover {
    transform: scale(1.02);
}

/* Modal for full-screen image */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s;
}

.modal-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
}

.modal img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.1);
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Footer */
/* Footer */
footer {
    background: #f8f9fa;
    color: #333;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-content {
    border-top: none;
    padding-top: 0;
}

.footer-text {
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Report page: input cards grid (used in report.html) */
.report-input-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

/* Responsive Design: Desktop (default), Tablet (≤1024px), Mobile (≤768px), Small (≤480px) */
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .left-column,
    .right-column {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero {
        padding: 32px 0;
    }

    .features {
        padding: 60px 0;
    }

    .feature-section {
        margin-bottom: 60px;
    }

    .feature-content {
        gap: 48px;
    }

    /* Report page: 2 columns on tablet */
    .report-input-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .report-container {
        padding: 0 1.5rem 1.5rem 1.5rem;
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .original-ui-section {
        padding: 2.5rem 0 1.5rem 0;
    }

    .left-column h1 {
        font-size: 2.25rem;
    }

    .description {
        max-width: 100%;
    }

    /* Index: GitHub + stars row wraps on tablet/mobile */
    .content-wrapper .left-column>div:first-child {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .hero-content {
        gap: 24px;
    }

    .hero {
        padding: 24px 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-text p {
        font-size: 1.05rem;
    }

    .features {
        padding: 48px 0;
    }

    .features-header {
        margin-bottom: 40px;
    }

    .features h2 {
        font-size: 2rem;
    }

    .feature-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .feature-section {
        margin-bottom: 48px;
    }

    .feature-list {
        text-align: left;
        display: inline-block;
    }

    .feature-text {
        order: 2;
    }

    .feature-text h3 {
        font-size: 1.75rem;
    }

    .feature-image img {
        max-width: 100%;
    }

    .modal-content {
        padding: 12px;
    }

    .close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }

    /* Report page: single column, tighter padding */
    .report-input-cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    .report-container {
        padding: 0 1rem 1rem 1rem;
        margin-bottom: 2rem;
    }

    .report-actions-row {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .original-ui-section {
        padding: 2rem 0 1rem 0;
    }

    .left-column h1 {
        font-size: 2rem;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero {
        padding: 20px 0;
    }

    .btn-primary,
    .btn-github {
        width: 100%;
        justify-content: center;
    }

    .selection-cards {
        width: 100%;
    }

    .list-item {
        padding: 0.85rem;
    }

    .features h2 {
        font-size: 1.75rem;
    }

    .feature-text h3 {
        font-size: 1.5rem;
    }

    .footer-text {
        flex-wrap: wrap;
        justify-content: center;
    }

    footer {
        padding: 24px 0;
    }

    .report-container {
        padding: 0 12px 12px 12px;
        margin-bottom: 1.5rem;
    }

    .report-actions-row {
        flex-wrap: wrap;
    }
}

/* Enforce Image Left, Text Right Layout for ALL items */
.feature-section .feature-image {
    order: -1;
}