/* ===================================
   INSAIGHT DESIGN SYSTEM
   =================================== */

/* === COLOR PALETTE === */
:root {
    --primary-accent: #A72D3A;
    --primary-accent-hover: #8B2330;
    --primary-accent-light: #C83A47;
    --text-primary: #1A1A1A;
    --text-secondary: #666666;
    --text-footer: #CCCCCC;
    --background: #F5F5F5;
    --surface: #FFFFFF;
    --border: #D1D5DB;
}

/* === RESET AND BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    min-height: 100vh;
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* === NAVIGATION === */
nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-container a {
    display: inline-block;
    line-height: 0;
    cursor: pointer;
}

.logo {
    height: 40px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.brand-name {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

/* === HERO SECTION === */
.hero {
    background: var(--background);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 .accent {
    color: var(--primary-accent);
}

.hero .subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.hero .subtitle .accent {
    color: var(--primary-accent);
    font-weight: 600;
}

/* === MAIN CONTENT === */
main {
    padding: 60px 0;
}

/* === DEMOS GRID === */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    padding: 20px 0;
}

/* === DEMO CARD (STAT CARD / INFO BLOCK) === */
.demo-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.demo-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* For cards that are divs (with buttons) */
div.demo-card {
    cursor: default;
}

.demo-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border);
}

.demo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.demo-card:hover .demo-image img {
    transform: scale(1.03);
}

.demo-content {
    padding: 28px;
}

.demo-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
    line-height: 1.3;
}

.demo-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.demo-link-text {
    display: inline-block;
    color: var(--primary-accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.demo-card:hover .demo-link-text {
    color: var(--primary-accent-hover);
    transform: translateX(3px);
}

/* === DEMO BUTTONS === */
.demo-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.demo-button {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid;
}

.demo-button.primary {
    background-color: var(--primary-accent);
    color: var(--surface);
    border-color: var(--primary-accent);
}

.demo-button.primary:hover {
    background-color: var(--primary-accent-hover);
    border-color: var(--primary-accent-hover);
    transform: translateY(-1px);
}

.demo-button.secondary {
    background-color: var(--surface);
    color: var(--primary-accent);
    border-color: var(--primary-accent);
}

.demo-button.secondary:hover {
    background-color: var(--primary-accent);
    color: var(--surface);
    transform: translateY(-1px);
}

/* === FOOTER === */
footer {
    background: var(--text-primary);
    color: var(--surface);
    text-align: center;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 2px solid var(--primary-accent);
}

footer p {
    font-size: 14px;
    color: var(--text-footer);
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }

    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .subtitle {
        font-size: 1.1rem;
    }

    .demos-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .demo-image {
        height: 200px;
    }

    main {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero .subtitle {
        font-size: 1rem;
    }

    .brand-name {
        font-size: 20px;
    }

    .demo-content {
        padding: 24px;
    }

    .demo-title {
        font-size: 1.3rem;
    }

    .demo-description {
        font-size: 0.95rem;
    }
}
