/* --- Global & Base Styles --- */
html {
    scroll-behavior: smooth;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    background-color: #f4f7f9;
    color: #333;
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block; /* Removes bottom space under images */
}

h1, h2, h3 {
    line-height: 1.2;
}

/* --- Landing Page Styles (Unchanged) --- */
.landing-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.landing-container { max-width: 960px; text-align: center; padding: 40px; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.project-card { background: #fff; border-radius: 12px; padding: 30px; text-align: left; text-decoration: none; color: inherit; box-shadow: 0 5px 15px rgba(0,0,0,0.07); transition: transform 0.2s ease-out, box-shadow 0.2s ease-out; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 12px 25px rgba(0,0,0,0.1); }
.card-logo-placeholder { width: 50px; height: 50px; background-color: #007bff; color: white; font-size: 24px; font-weight: bold; display: flex; justify-content: center; align-items: center; border-radius: 8px; margin-bottom: 20px; }
.project-card h2 { margin-top: 0; }
.card-cta { display: inline-block; margin-top: 20px; color: #007bff; font-weight: 600; }

/* --- KiArc Product Page Styles --- */
.kiarc-body {
    background-color: #fff;
}
.kiarc-container {
    max-width: 840px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
    border-bottom: 1px solid #eef2f5;
}
.section:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero {
    background-color: #111;
    color: #fff;
    text-align: center;
    padding: 100px 20px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('https://files.kingart.org/more/banner.png');
    background-size: cover;
    background-position: center;
}
.hero-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}
.hero h1 {
    font-size: 4.5em;
    font-weight: 800;
    margin: 0;
}
.hero h2 {
    font-size: 1.5em;
    font-weight: 300;
    max-width: 600px;
    margin: 20px auto 0 auto;
    color: #ddd;
}

/* Two-Column Layout */
.two-col { 
    display: flex; 
    gap: 50px; 
    align-items: center;
}
.col { flex: 1; }

.content-image {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 40, 79, 0.1);
    border: 1px solid #eef2f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 150%;
    max-height: 350px;
    margin: 0 auto;
}
.content-image:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 40, 79, 0.15);
}

/* Features/Security Sections */
.feature-section { text-align: center; }
.feature-grid { display: flex; gap: 30px; margin-top: 40px; text-align: left; }
.feature-item, .security-item { background: #f9fafb; padding: 30px; border-radius: 12px; border: 1px solid #eef2f5; }
.feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    padding: 8px;
    background-color: #eef2f5;
    border-radius: 10px;
}

/* Download Section */
.download-accordion details { border: 1px solid #ddd; border-radius: 8px; margin-bottom: 15px; overflow: hidden; transition: box-shadow 0.2s ease; }
.download-accordion details:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.download-accordion summary { padding: 20px; font-size: 1.2em; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.download-accordion summary::after { content: '+'; font-size: 1.5em; font-weight: 300; transition: transform 0.2s; color: #007bff; }
.download-accordion details[open] summary::after { transform: rotate(45deg); }
.summary-desc { font-size: 0.8em; font-weight: 400; color: #666; margin-top: 5px; }
.details-content { padding: 0 20px 20px 20px; background-color: #fdfdfd; }
.joke-text { font-size: 0.8em; color: #888; font-style: italic; margin-left: 10px; }

/* Download Table Styles */
.download-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.download-table th, .download-table td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eef2f5; vertical-align: middle; }
.download-table tr:last-child td { border-bottom: none; }
.download-table th { font-weight: 600; color: #555; font-size: 0.9em; }
.hash-cell { font-family: "Courier New", Courier, monospace; font-size: 0.9em; word-break: break-all; color: #667; }
.copy-btn { background: #eef2f5; border: 1px solid #ddd; border-radius: 5px; padding: 5px 8px; cursor: pointer; margin-left: 10px; color: #555; transition: background-color 0.2s ease; }
.copy-btn:hover { background-color: #e2e6ea; }
.copy-btn svg { width: 14px; height: 14px; vertical-align: middle; }
.download-link { display: inline-block; background-color: #007bff; color: white !important; padding: 8px 16px; text-decoration: none; border-radius: 5px; font-weight: bold; transition: background-color 0.2s ease, transform 0.2s ease; }
.download-link:hover { background-color: #0056b3; transform: translateY(-2px); }

/* ========== NEW STYLES HERE ========== */
/* Specific Layout Adjustments */
.two-col-showcase .col:first-child {
    flex: 1.5; /* Give the first column (image) 1.5x the space */
}
.two-col-showcase .col:last-child {
    flex: 1; /* Give the second column (text) the standard amount of space */
}
/* ===================================== */


/* Responsive adjustments */
@media (max-width: 768px) {
    .two-col, .feature-grid {
        flex-direction: column;
    }
    .hero h1 { font-size: 3em; }
    .hero h2 { font-size: 1.2em; }
    
    .content-image {
        max-height: none;
    }

    /* On mobile, reset the showcase columns to be equal width before they stack */
    .two-col-showcase .col:first-child,
    .two-col-showcase .col:last-child {
        flex: 1;
    }
}