:root {
    /* Dark Roast UI Palette */
    --bg-dark: #1a1a1a;
    --text-light: #f8f9fa;
    --accent-gold: #d4a373;
    --accent-hover: #c49262;
    --surface-dark: #212529;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

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

/* Header */
/* Header */
header {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    /* Space between Brand and Lang Selector */
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    /* Space between logo and text */
}

.header-logo {
    height: 42px;
    width: 42px;
    border-radius: 10px;
    /* Rounded corners, NOT circular */
    object-fit: cover;
}

.header-brand-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    /* Slightly reduced from 1.35rem */
    font-weight: 800;
    color: var(--accent-gold);
    letter-spacing: 2px;
}

/* Language Selector */
.lang-selector {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.25rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.lang-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.lang-btn.active {
    background: var(--accent-gold);
    color: var(--bg-dark);
    opacity: 1;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    /* Increased from 80vh to fill screen more */
    display: flex;
    align-items: center;
    padding: 2rem 0;
    /* Reduced padding since we removed header */
}

/* ... existing grid ... */

/* New Hierarchy Elements */
/* New Hierarchy Elements */
.brand-eyebrow {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    /* Increased from 1rem to 2.5rem for more space */
    text-transform: uppercase;
    display: flex;
    /* Flex layout */
    align-items: center;
    gap: 1rem;
    /* Space between logo and text */
}

.eyebrow-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    /* Rounded corners */
    object-fit: cover;
}

.hero-footer-logo {
    margin-top: 3rem;
    opacity: 1;
    /* Reset opacity to fully show the logo */
}

.brand-logo-small {
    height: 50px;
    /* Slightly larger */
    width: 50px;
    border-radius: 50%;
    /* Rounded circular style */
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    /* Subtle shadow for depth */
}

/* ... existing hero styling ... */

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

.hero-content {
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #ced4da;
    margin-bottom: 2rem;
    font-weight: 300;
}

.features-list {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--accent-gold);
}

.feature-icon {
    width: 20px;
    height: 20px;
    background-color: rgba(212, 163, 115, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-group {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: var(--bg-dark);
    border: 2px solid var(--accent-gold);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    border-color: var(--text-light);
    transform: translateY(-2px);
}

/* Phone Mockup */
.mockup-container {
    display: flex;
    justify-content: center;
    position: relative;
    padding: 20px;
    perspective: 1000px;
    /* Enable 3D space */
}

.phone-group {
    position: relative;
    width: 300px;
    /* Base width */
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: linear-gradient(180deg, #0c0c0c 0%, #101010 100%);
    border-radius: 36px;
    box-shadow:
        0 0 0 10px #1c1c1c,
        0 30px 70px rgba(0, 0, 0, 0.55);
    overflow: hidden;
    position: absolute;
    /* Stack them */
    border: 6px solid #0f0f0f;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Specific Positions - Base State: Stacked with Overlap */
.phone-main {
    z-index: 30;
    transform: translateX(0) scale(1) rotate(0deg);
    filter: grayscale(0%);
    /* Main one stands out by default */
}

.phone-left {
    z-index: 20;
    transform: translateX(-140px) scale(0.9) rotate(-4deg);
    filter: blur(1px) grayscale(40%);
}

.phone-right {
    z-index: 20;
    transform: translateX(140px) scale(0.9) rotate(4deg);
    filter: blur(1px) grayscale(40%);
}

/* 
   INTERACTION LAYER 
   Logic: Direct Focus. No "Spread" on container hover needed.
   The user simply picks what they want to see.
*/

/* Stage 1: The Context (On Container Hover) */
.phone-group:hover .phone-frame {
    /* Dim everything. No transform changes means they stay EXACTLY in place. */
    filter: blur(4px) grayscale(80%);
    opacity: 0.1;
    /* Increased from 0.5 for better visibility */
    border-color: #333;
}

/* Stage 2: The Focus (On Individual Item Hover) */
.phone-group:hover .phone-frame:hover {
    /* STRICTLY no movement, no z-index change. Just clarity. */
    filter: blur(0) grayscale(0%);
    opacity: 1;
    border-color: var(--accent-gold);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
}

/* Notch code remains similar but adapted if needed */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #0f0f0f;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
    z-index: 20;
}

.screen-content {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: #0f0f0f;
}

/* Glass Cards */
.glass-card {
    position: absolute;
    background: rgba(30, 30, 30, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-radius: 18px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 20;
    color: #fff;
}

/* Card Specifics */
.card-recipe {
    top: 15%;
    left: -20px;
    min-width: 180px;
    animation: float 6s ease-in-out infinite;
}

.card-icon {
    font-size: 1.8rem;
    background: rgba(212, 163, 115, 0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.card-details {
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-gold);
}

.card-subtitle {
    font-size: 0.75rem;
    color: #aeaeae;
}

.card-rating {
    bottom: 20%;
    right: -20px;
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
    padding: 1.25rem;
    animation: float 7s ease-in-out infinite reverse;
}

.rating-vbox {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rating-score {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
    color: #fff;
}

.stars {
    color: var(--accent-gold);
    font-size: 0.8rem;
    letter-spacing: 2px;
}

.rating-label {
    font-size: 0.7rem;
    color: #aeaeae;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0;
    margin-top: 4rem;
    color: #6c757d;
}

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

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-center-mail {
    color: #6c757d;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-center-mail:hover {
    color: var(--accent-gold);
}

.mail-icon {
    width: 18px;
    height: 18px;
}

/* Responsive */

/* Hero Grid Desktop Override for 3 Items */
.hero-grid {
    grid-template-rows: auto auto;
    /* Two rows */
    grid-template-columns: 1fr 1fr;
}

.hero-content {
    grid-column: 1;
    grid-row: 1;
}

.mockup-container {
    grid-column: 2;
    grid-row: 1 / span 2;
    /* Span both rows */
}

.cta-group {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    display: flex;
    gap: 1rem;
}

@media (max-width: 968px) {
    .hero-grid {
        display: flex;
        /* Switch to Flex */
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        padding-top: 1rem;
    }

    .hero-content {
        order: 1;
        /* First: Text */
        width: 100%;
        padding: 0 1rem;
    }

    .mockup-container {
        order: 2;
        /* Second: Mockup */
        width: 100%;
    }

    .cta-group {
        order: 3;
        /* Third: Buttons */
        justify-content: center;
        flex-wrap: wrap;
        width: 100%;
        padding-bottom: 2rem;
    }

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

    .features-list {
        justify-content: center;
        gap: 1rem;
    }

    .glass-card {
        display: none;
    }

    .phone-group {
        width: 100%;
        height: auto;
        min-height: 500px;
        display: flex;
        justify-content: center;
    }

    .phone-frame {
        position: absolute;
        margin: 0 auto;
        width: 260px;
        height: 540px;
        transform-origin: center bottom;
    }

    .phone-left {
        display: block;
        z-index: 20;
        transform: translateX(-50px) scale(0.85) rotate(-3deg) !important;
        filter: blur(0.5px) grayscale(30%) !important;
        opacity: 0.6;
        /* Reduced Opacity */
    }

    .phone-right {
        display: block;
        z-index: 20;
        transform: translateX(50px) scale(0.85) rotate(3deg) !important;
        filter: blur(0.5px) grayscale(30%) !important;
        opacity: 0.6;
        /* Reduced Opacity */
    }

    .phone-main {
        z-index: 30;
        position: relative;
        transform: scale(0.95) !important;
        opacity: 1;
        filter: none;
    }

    /* Footer Mobile */
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-center-mail {
        order: 1;
    }

    .footer-links {
        order: 2;
    }

    footer p {
        order: 3;
    }
}

/* Store Buttons */
/* Store Buttons (single source) */
.btn-store {
    display: inline-flex;
    align-items: center;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 0.5rem 1.25rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 160px;
}

.btn-store:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.store-icon {
    width: 28px;
    height: 28px;
    margin-right: 12px;
    fill: #fff;
}

.store-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.small-text {
    font-size: 0.65rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.large-text {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-body);
}

.btn-apple:hover .store-icon,
.btn-google:hover .store-icon {
    fill: #fff;
}

/* Privacy Page */
.privacy-header {
    justify-content: space-between;
    align-items: center;
}

.privacy-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.privacy-logo {
    height: 40px;
    width: 40px;
    border-radius: 10px;
}

.privacy-brand-name {
    color: #d4a373;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 3px;
    font-size: 1.25rem;
    margin-top: 2px;
}

.privacy-content {
    padding: 4rem 0;
    max-width: 800px;
    margin: 0 auto;
}

.privacy-content h1 {
    color: var(--accent-gold);
    margin-bottom: 2rem;
}

.privacy-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-light);
}

.privacy-content p {
    margin-bottom: 1rem;
    color: #ced4da;
}

.privacy-content ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: #ced4da;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--accent-gold);
    font-weight: 600;
}

.privacy-content a {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.2s ease;
}

.privacy-content a:hover {
    color: var(--accent-gold);
}