body {
    font-family: Georgia, "Times New Roman", Times, serif;
    color: #222;
}


.hero-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: center;
}

.hero-text {
    max-width: 520px;
}

.hero-demo {
    display: flex;
    justify-content: center;
}

/* demo card size tuned for hero */
.hero-demo .demo-card {
    width: 160px;
}


.hero,
.philosophy,
.money {
    max-width: 720px;
    margin: 2.5rem auto;
    padding: 0 1rem;
}

.hero h1,
section h2 {
    text-align: left;
}

section p,
.hero p {
    text-align: justify;
    line-height: 1.65;
}

/* demo card */

.demo {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
}

.demo-card {
    width: 180px;
    aspect-ratio: 1 / 1;
    perspective: 1000px;
}

.demo-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.demo-card.flipped .demo-inner {
    transform: rotateY(180deg);
}

.demo-face {
    position: absolute;
    width: 100%;
    height: 100%;

    backface-visibility: hidden;
    -moz-backface-visibility: hidden;

    transform: translateZ(0);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border: 1px solid #ccc;
    border-radius: 8px;
}

.demo-face img {
    max-width: 70%;
    max-height: 70%;
}

.demo-face span {
    margin-top: 0.4rem;
    font-size: 1.1rem;
}

.demo-back {
    transform: rotateY(180deg);
}

@media (max-width: 700px) {
    .hero-layout {
        grid-template-columns: 1fr;
    }

    .hero-demo {
        margin-top: 2rem;
    }
}
.aside {
    font-style: italic;
    color: #555;
    margin: 1.5rem 0;
}

main {
    position: relative;
}

main {
    background: #f8f8f8;
}

.hero,
.philosophy,
.money {
    background: #ffffff;
    padding: 2rem 2rem;
    border-radius: 4px;
}
