/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-color: #e5e7eb;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.logo img {
    height: 1.5rem;
    width: auto;
    display: block;
    vertical-align: middle;
    background: transparent;
}

/* Preserve PNG alpha for logos */
.logo img,
.hero-logo {
    image-rendering: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-cta {
    padding: 0.4rem 1rem;
    border: 1.5px solid var(--primary-color);
    border-radius: 6px;
    color: var(--primary-color) !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
    background: var(--primary-color);
    color: var(--white) !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/softaware-hero.jpg') center/cover no-repeat;
    position: relative;
    color: var(--white);
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.8s ease;
    background: transparent;
}

.hero-brand {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-brand-line {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-description {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Products Section */
.products {
    padding: 6rem 0;
    background: var(--bg-light);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.product-card {
    display: block;
    text-decoration: none;
    background: #1a0a14;
    border: 1px solid #3a1a2a;
    border-radius: 1rem;
    padding: 2.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.product-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.product-name--drink { font-family: 'Nunito', sans-serif; }
.product-name--drink .name-first { color: #c44a6e; }
.product-name--trade .name-first { color: #5b8af5; }
.name-aware { color: #ffffff; }

.product-description {
    color: #c4a8b0;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Dark product card (TradeAware) */
.product-card--dark {
    background: #1a1d27;
    border-color: #363c4a;
}
.product-card--dark .product-description {
    color: #9198aa;
}

.product-link {
    display: inline-block;
    color: #c44a6e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.product-link:hover {
    color: #e05580;
}

.product-link--accent {
    color: #5b8af5;
}
.product-link--accent:hover {
    color: #7ba2ff;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--bg-light);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-text {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.icon {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.contact-item a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.125rem;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--white);
    color: var(--text-light);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-logo {
        max-width: 160px;
    }

    .hero-brand-line {
        font-size: 1.875rem;
    }

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

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

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

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .container {
        padding: 0 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 2rem;
    }

    .product-logo {
        width: 100px;
        height: 100px;
    }

    .product-name {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-brand-line {
        font-size: 1.5rem;
    }

    .nav-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-cta {
        width: fit-content;
        align-self: center;
        font-size: 0.9rem;
    }

    .product-card {
        padding: 1.5rem;
    }

    .product-logo {
        width: 80px;
        height: 80px;
    }
}
