:root {
    --bg-color: #EAE7DC;
    --past-color: #8E8D8A;
    --current-color: #E85A4F;
    --future-color: transparent;
    --border-color: #D8D2C2;
    --text-color: #333;
    --accent-color: #E85A4F;
    --font-family: 'Geist', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@font-face {
    font-family: 'Geist';
    src: url('assets/fonts/geist_regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Geist';
    src: url('assets/fonts/geist_bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

a:hover {
    opacity: 0.7;
}

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

/* Header */
header {
    background-color: rgba(234, 231, 220, 0.95);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

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

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

nav {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

nav a {
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-download-nav {
    background-color: var(--current-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
}

.btn-download-nav:hover {
    background-color: #d64a40; /* Slightly darker red */
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

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

.text-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    color: #666; /* Softer text */
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

.btn-primary {
    background-color: var(--current-color);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-weight: 600;
}

/* Simulated Grid in Hero - VERTICAL */
.visual-simulation {
    background: #fff;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    text-align: center;
    /* Simulate Phone Aspect Ratio */
    width: 320px;
    aspect-ratio: 9/16;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.grid-container {
    display: grid;
    /* Default cols (will be overridden by JS usually, but setting a baseline) */
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    width: 100%;
    height: 100%;
    align-content: center;
    justify-content: center;
    padding: 10px;
}

/* Grid Dots (Years) */
.year-dot {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px; /* Rounded Square default */
    border: 1px solid var(--border-color); /* Future items outline */
    background-color: transparent;
}

.year-dot.past {
    background-color: var(--past-color);
    border-color: var(--past-color);
}

.year-dot.current {
    background-color: var(--current-color);
    border-color: var(--current-color);
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

.caption {
    font-size: 0.7rem;
    color: #888;
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: #f4f1ea;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
    align-items: center;
}

.feature-row.reverse {
    direction: rtl; /* Simple way to flip for desktop */
}

.feature-row.reverse > * {
    direction: ltr; /* Reset text direction */
}

.feature-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--current-color);
}

.feature-list {
    list-style: none;
    margin-top: 1.5rem;
}

.feature-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.feature-list i {
    color: var(--past-color);
}

/* Micro Mode Cards */
.micro-modes {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 cards now */
    gap: 1rem;
    margin-top: 2rem;
}

.mode-card {
    background: rgba(255,255,255,0.5);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    min-width: 0; /* Prevent flex items from overflowing */
}

.mode-card h4 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.mode-card p {
    font-size: 0.85rem;
    color: #666;
}


/* Simulations Styles - Vertical for Micro too */
.simulation-box {
    background: #fff;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    /* Simulate Phone Aspect Ratio */
    width: 200px; /* Reduced width to fit 3 in desktop view */
    aspect-ratio: 9/16;
    position: relative;
    flex-direction: column;
    margin: 0 auto;
}

.mini-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    width: 90%;
    justify-content: center;
}

/* Micro Simulation Visuals */
.micro-visuals {
    display: flex;
    flex-direction: row; /* Side by side on desktop */
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Allow wrapping if too wide */
}

.micro-preview {
   /* Inherits simulation-box styles */
}

.micro-label {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #999;
    font-weight: 700;
}

/* Micro No Tomorrow Shape */
.shape-no-tomorrow {
    width: 100px;
    height: 100px;
    background-color: var(--current-color);
    border-radius: 50%; /* Circle by default */
    animation: pulse 2s infinite ease-in-out;
}

/* Micro Vs Yesterday Shapes */
.vs-container {
    display: flex;
    flex-direction: column; /* Vertical stacking for vs mode is often better on mobile vertical screen */
    gap: 20px;
    align-items: center;
}

.shape-past {
    width: 80px;
    height: 80px;
    background-color: var(--past-color);
    border-radius: 12px; /* Rounded Square */
}

.shape-present {
    width: 80px;
    height: 80px;
    background-color: var(--current-color);
    border-radius: 12px; /* Rounded Square */
    animation: pulse 2s infinite ease-in-out;
}

/* Customization Section */
.customization {
    padding: 6rem 0;
    text-align: center;
}

.customization h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.style-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.style-item {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.style-item:hover {
    transform: translateY(-5px);
}

.style-item i {
    font-size: 2rem;
    color: var(--current-color);
    margin-bottom: 1rem;
}

.style-item h4 {
    margin-bottom: 0.5rem;
}

.style-item p {
    font-size: 0.9rem;
    color: #666;
}


/* Final CTA */
.final-cta {
    background-color: var(--text-color);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
}

.final-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.big-btn {
    font-size: 1.2rem;
    padding: 1rem 2rem;
}

.small-text {
    margin-top: 1rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Footer */
footer {
    background-color: #222;
    color: #888;
    padding: 2rem 0;
    text-align: center;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content .subtitle {
        margin: 0 auto 2rem;
    }

    .cta-group {
        justify-content: center;
    }

    .feature-row, .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr; /* Reset layout direction on mobile */
        text-align: center;
        gap: 2rem;
    }

    .micro-visuals {
        flex-direction: column;
        align-items: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .micro-modes {
        grid-template-columns: 1fr;
    }

    header .container {
        flex-direction: column;
        gap: 1rem;
    }
}
