/* Base styles */
body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background: #fff;
    color: #000;
    line-height: 1.6;
    font-size: 16px;
}

/* Layout */
.container, .container-header {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.product-page {
    max-width: 800px;
}
.container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5em;
    border-bottom: 1px solid #000;
    padding-bottom: 10px;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
    margin-top: 40px;
}

p {
    margin-bottom: 20px;
}

/* Links */
a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

/* Navigation */
nav {
    position: absolute;
    top: 20px;
    right: 20px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 20px;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    border-bottom: none;
    padding: 5px 0px 5px 5px;
    white-space: nowrap;
}

/* Logo */
.logo {
    height: 40px;
}

/* Sections */
section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
}

/* Hero section */
.hero {
    text-align: center;
}

.hero h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero .tagline {
    font-size: 1.3em;
    font-weight: 300;
    color: #333;
    margin-bottom: 30px;
}

.hero .demo a {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero .demo a:hover {
    background-color: #000;
    color: #fff;
}

/* Lists */
ul {
    padding-left: 20px;
    list-style-type: none;
}

li {
    margin-bottom: 10px;
    position: relative;
}

li::before {
    content: "—";
    position: absolute;
    left: -20px;
    color:#777;
}

/* Products section */
.products .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Products section */
.products .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product-item {
    width: calc(50% - 50px);
    margin-bottom: 40px;
    padding: 0 40px 40px 40px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.product-item:nth-child(2n) {
    margin-left: auto;
}

.product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
    
.product-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-item h3 {
    margin-bottom: 25px;
    font-weight: 200;
    font-size: 2rem;
}

.product-item p {
    margin-bottom: 25px;
    font-weight: 400;
    color:#777;
}

.product-link {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid #000;
    color: #000;
    text-decoration: none;
    transition: all 0.3s ease;
}

.product-link:hover {
    background-color: #000;
    color: #fff;
}

/* Back link */
.back-link {
    display: inline-block;
    margin-bottom: 40px;
    font-size: 0.9em;
}

/* Tagline */
.tagline {
    font-style: italic;
    margin-bottom: 40px;
}

/* Demo section */
.demo-container {
    position: relative;
    border-bottom: none;
}

.sticky-container {
    height: 100vh;
    position: sticky;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-image {
    position: absolute;
    max-width: 100%;
    max-height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}

.demo-image.active {
    opacity: 1;
    z-index: 2;
}

.demo-image.previous {
    opacity: 1;
    z-index: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .container, .container-header {
        width: 90%;
        padding: 20px 20px 0px 20px;
    }

    .container-header {
        flex-direction: column;
        align-items: flex-start;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    nav ul li {
        margin: 5px;
    }

    nav ul li::before {
        content: "";
        position: absolute;
        left: 0px;
    }

    h1 {
        font-size: 2.2em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.6em;
    }

    .hero h2 {
        font-size: 2em;
    }

    .hero .tagline {
        font-size: 1.1em;
    }

    .research {
        padding: 20px;
    }

    .product-item {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* For larger screens, consider a two-column layout for products */
@media (min-width: 1024px) {
    .products .container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .product-item {
        width: calc(50% - 30px);
    }
}