:root {
    --color-darkpuce: #473144;
    --color-darkpuce-light: #BF473144;
    --color-khaki: #CCB69B;
    --color-peachorange: #EFC69B;
    --color-tan: #DF9B6D;
    --color-frenchwine: #AF1B3F;
    --color-black: #0B1215;
    --color-white: #F7F5F0;
    --color-dark-flour: #ebe5da;
    --color-dark-flour-alpha: #CCEBE5DA;
    --color-integral-flour: #efeae1;
    --color-half-integral-flour: #f3efe9;
    --color-flour: #f3efe9;
    --color-transparent: #00000000;
}

@font-face {
    font-family: 'DMSerifRegular';
    src: url('fonts/dmserifregular.ttf') format('truetype');
}
@font-face {
    font-family: 'AntiquaBold';
    src: url('fonts/antiqua_bold.otf') format('opentype');
}
@font-face {
    font-family: 'AntiquaPlain';
    src: url('fonts/antiqua_plain.otf') format('opentype');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'AntiquaPlain', Arial, sans-serif;
    color: var(--color-darkpuce);
    background-color: var(--color-flour);
    line-height: 1.6;
}

header {
    background-color: var(--color-tan);
    padding: 2rem 0;
    font-family: 'DMSerifRegular', serif;
    color: var(--color-darkpuce);
}

.header-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

header img {
    height: 60px;
    width: auto;
}

.lang-switch {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: flex-end;
    align-items: flex-end;
    max-width: 400px;
}

.lang-switch-row {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.lang-switch a {
    padding: 0.4rem 0.8rem;
    font-family: 'AntiquaBold', serif;
    font-size: 0.9rem;
    background-color: var(--color-dark-flour);
    border-radius: 5px;
    color: var(--color-darkpuce);
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
    white-space: nowrap;
}

.lang-switch a:hover {
    background-color: var(--color-khaki);
}

.lang-switch a.active {
    background-color: var(--color-darkpuce);
    color: var(--color-white);
}

.main-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hero {
    text-align: right;
    font-family: 'DMSerifRegular', serif;
    color: var(--color-darkpuce);
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-family: 'AntiquaPlain', serif;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.1rem;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: right;
}

.features h3 {
    font-family: 'DMSerifRegular', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature {
    background: var(--color-dark-flour);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-family: 'AntiquaPlain', serif;
    color: var(--color-darkpuce);
}

.feature h4 {
    font-family: 'AntiquaBold', serif;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.feature p {
    line-height: 1.6;
}

.about-section {
    background: var(--color-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-section h3 {
    font-family: 'DMSerifRegular', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.about-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.store-links {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 2rem;
}

.qr-code {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.download-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.store-links a {
    display: inline-block;
    font-family: 'AntiquaBold', serif;
    background-color: var(--color-frenchwine);
    color: var(--color-white);
    padding: 1.2rem 2.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 0.5px;
    border-radius: 8px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    min-width: 300px;
}

.store-links a:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.platform-badge {
    width: 100px;
    height: auto;
    margin-top: 0.75rem;
    align-self: flex-end;
    opacity: 0.9;
}

.preview-column {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.app-preview {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Phone frame styles */
.phone-frame {
    background: #1a1a1a;
    border-radius: 45px;
    padding: 15px;
    max-width: 430px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #1a1a1a;
    border-radius: 0 0 20px 20px;
    z-index: 10;
}

.phone-frame::after {
    content: '';
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #333;
    border-radius: 3px;
    z-index: 11;
}

.container {
    background: #f5f0e8;
    border-radius: 30px;
    width: 100%;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.header {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.bread-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-buttons {
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
}

.nav-button {
    width: 56px;
    height: 56px;
    background: #c98558;
    border: none;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.nav-button img {
    width: 100%;
    height: 100%;
    filter: brightness(0) invert(1);
}

.content {
    padding: 16px;
    background: #f5f0e8;
}

.content h1 {
    font-family: 'DMSerifRegular', serif;
    font-size: 40px;
    text-align: center;
    padding: 8px 0;
    text-transform: uppercase;
    font-weight: normal;
    color: #000000;
    letter-spacing: 1.6px;
}

.author {
    font-family: 'Roboto', sans-serif;
    text-align: center;
    font-size: 16px;
    text-transform: uppercase;
    padding: 8px 0;
    color: #000000;
    line-height: 1.5;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 16px;
    margin-bottom: 16px;
}

.stats div {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.stats .label {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    text-transform: uppercase;
    color: #000000;
    text-align: right;
    padding-right: 8px;
}

.stats .value {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000000;
}

.content h2 {
    font-family: 'DMSerifRegular', serif;
    font-size: 28px;
    text-align: center;
    padding: 10px 0;
    letter-spacing: 0.28px;
    font-weight: normal;
    text-transform: uppercase;
    color: #000000;
    margin-top: 8px;
}

.ingredients-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pieces-text {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: #000000;
}

.portion-controls {
    display: flex;
    gap: 8px;
}

.portion-button {
    width: 30px;
    height: 30px;
    background: #c98558;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ingredients-list {
    list-style: none;
    margin-bottom: 30px;
    position: relative;
}

.ingredients-list::before {
    content: '';
    position: absolute;
    right: 60px;
    top: 0;
    bottom: 0;
    width: 1px;
    background-color: #cccccc;
}

.ingredient-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.ingredient-name {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    text-transform: uppercase;
    color: #000000;
    flex: 1;
}

.ingredient-amount {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: normal;
    text-align: left;
    color: #000000;
    width: 60px;
    padding-left: 16px;
}

.divider {
    width: 100%;
    height: 4px;
    background-color: #000000;
    margin: 16px 0;
}

/* Reviews section */
.reviews-section {
    text-align: left;
}

.reviews-section h3 {
    font-family: 'DMSerifRegular', serif;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    background: var(--color-white);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: left;
    transition: transform 0.2s, box-shadow 0.2s;
}

.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.review-stars {
    color: var(--color-frenchwine);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.review-text {
    font-family: 'AntiquaPlain', serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-darkpuce);
    font-style: italic;
}

footer {
    background: var(--color-darkpuce);
    color: var(--color-white);
    text-align: center;
    padding: 1.5rem;
    margin-top: 3rem;
    font-family: 'AntiquaPlain', serif;
}

@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-preview {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        justify-content: center;
        text-align: center;
    }

    .header-content {
        width: 100%;
        align-items: center;
    }

    header h1 {
        font-size: 2rem;
    }

    .lang-switch {
        width: 100%;
        max-width: 100%;
        justify-content: center;
    }

    .hero h2 {
        font-size: 1.5rem;
    }
}
