/* --- Bitschnipsel Design System (Warm & Modern) --- */
:root {
    /* Core Colors extracted from Bitschnipsel */
    --bg-color: #f5efe6;
    --bg-alt: #fdfdf6;
    --text-main: #5d4e37;
    --text-muted: #8b7355;
    
    /* Accents */
    --accent-color: #e2725b; /* Terracotta */
    --accent-hover: #d96851; 
    --accent-secondary: #a1b56c; /* Olive Green */
    
    /* UI Elements */
    --border-color: #d8ccb8;
    --surface-shadow: 0 10px 26px rgba(93, 78, 55, 0.08);

    /* Phone Hardware Colors (NEW: White/Silver Look) */
    --phone-bezel: #e5e7eb;   /* Clean silver bezel */
    --phone-notch: #d1d5db;   /* Slightly darker silver for notch depth */
    --phone-screen: #ffffff;  /* Pure white internal screen for contrast */
}

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

body {
    /* Using your original font stack and beautiful radial gradient */
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
    background: radial-gradient(circle at top right, #f8ddd2 0%, #f1e6d6 35%, var(--bg-color) 72%);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

/* --- Header --- */
header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    background: rgba(253, 253, 246, 0.85); /* Matches your original header transparency */
    backdrop-filter: blur(8px);
    z-index: 100;
}

.header-container { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    max-width: 1100px; 
    margin: 0 auto;
    padding: 0 5%;
}

.logo { 
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700; 
    font-size: 1.2rem; 
    letter-spacing: 0.2px; 
}

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    color: var(--accent-color);
}

nav a { 
    text-decoration: none; 
    color: var(--text-muted); 
    margin-left: 1.5rem; 
    font-size: 0.95rem; 
    font-weight: 500; 
    transition: color 0.2s; 
}

nav a:hover, nav a.nav-active { 
    color: var(--accent-color); 
}

/* --- Buttons & Badges --- */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.btn-primary { 
    /* Using your original rich button gradient */
    border-color: #cf6a54;
    background: linear-gradient(180deg, #e6846f 0%, var(--accent-color) 100%);
    color: #fff8f3; 
}

.btn-primary:hover { 
    background: linear-gradient(180deg, #eb907b 0%, #d96851 100%);
    transform: translateY(-2px); 
    color: #fff8f3;
}

.badge {
    display: inline-block;
    background: rgba(226, 114, 91, 0.14); /* Soft accent background */
    color: var(--text-main);
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* --- Layout Grids --- */
.hero-grid, .feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 5%;
}

.alt-bg { 
    background-color: var(--bg-alt); 
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.hero-text h1 { 
    font-size: clamp(2.5rem, 4.2vw, 3.5rem); 
    line-height: 1.1; 
    margin-bottom: 1.5rem; 
    letter-spacing: -1px; 
}

.hero-text p { 
    font-size: clamp(1rem, 2vw, 1.2rem); 
    color: var(--text-muted); 
    margin-bottom: 2rem; 
}

.feature-text h2 { 
    font-size: 2.2rem; 
    margin-bottom: 1rem; 
    letter-spacing: -0.5px; 
}

.feature-text p { 
    font-size: 1.1rem; 
    color: var(--text-muted); 
}

.feature-grid.reverse .feature-text { order: 2; }
.feature-grid.reverse .feature-visual { order: 1; }

/* --- CSS Device Mockups (White/Silver Frame) --- */
.mockup-frame {
    position: relative;
    background: var(--phone-screen); /* Pure white internal screen */
    border: 8px solid var(--phone-bezel); /* Clean silver bezel */
    border-radius: 40px;
    box-shadow: var(--surface-shadow); /* Uses your soft surface shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 550px;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.mockup-small { 
    height: 480px; 
    border-radius: 32px; 
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: var(--phone-notch); /* Slightly darker silver */
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.mockup-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- App Inner UI (Retaining Warm Bitschnipsel Feel) --- */
.app-header {
    padding: 45px 20px 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    width: 100%;
    background: #ffffff; /* Header area inside phone remains clean white */
}

.app-header h3 { 
    font-size: 1.4rem; 
    color: var(--text-main); 
    margin-top: 5px;
}

.app-date { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 0.5px;
}

.app-body {
    padding: 20px;
    width: 100%;
    flex: 1;
    background: #fff9f2; /* Soft feature card color from original site */
}

/* --- App UI: Habit List --- */
.habit-item {
    display: flex;
    align-items: center;
    background: #ffffff;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 12px;
    box-shadow: 0 4px 6px -1px rgba(93, 78, 55, 0.05); /* Softer inner shadow */
    border: 1px solid var(--border-color);
    transition: all 0.2s;
}

.checkbox {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.9rem;
    font-weight: bold;
}

.habit-item span { 
    font-weight: 500; 
    color: var(--text-main); 
}

/* App UI: Completed State (Using your Olive Green) */
.habit-item.completed .checkbox {
    background-color: var(--accent-secondary);
    border-color: var(--accent-secondary);
    color: #fffdf8;
}

.habit-item.completed span {
    text-decoration: line-through;
    color: var(--text-muted);
    opacity: 0.7;
}

/* --- App UI: Streak & Progress --- */
.streak-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    box-shadow: 0 4px 6px -1px rgba(93, 78, 55, 0.05);
}

.streak-icon { 
    font-size: 2rem; 
    margin-right: 15px; 
}

.streak-text strong { 
    display: block; 
    font-size: 1.1rem; 
}

.streak-text p { 
    color: var(--text-muted); 
    font-size: 0.9rem; 
    margin: 0; 
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    background: var(--bg-color); /* Uses main beige background */
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.progress-bar {
    height: 100%;
    background: var(--accent-secondary); /* Olive Green progress */
    border-radius: 10px;
}

.progress-text { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
    text-align: right; 
}

/* --- App UI: Calendar Grid --- */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.cal-dot {
    aspect-ratio: 1;
    border-radius: 8px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
}

.cal-dot.active {
    background: var(--accent-secondary);
    border-color: var(--accent-secondary);
    opacity: 0.9;
}

.stat-row {
    display: flex;
    justify-content: space-around;
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    box-shadow: 0 4px 6px -1px rgba(93, 78, 55, 0.05);
}

.stat strong { 
    font-size: 1.5rem; 
    color: var(--text-main); 
}

.stat { 
    font-size: 0.85rem; 
    color: var(--text-muted); 
}

/* --- Footer --- */
footer { 
    border-top: 1px solid var(--border-color); 
    padding: 2rem 0; 
    color: var(--text-muted); 
    font-size: 0.9rem; 
}

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

.footer-links a { 
    color: var(--text-muted); 
    text-decoration: none; 
    margin-left: 1.5rem; 
}

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

/* --- Responsive (Mobile View) --- */
@media (max-width: 768px) {
    .hero-grid, .feature-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
        text-align: center; 
        padding: 4rem 5%; 
    }
    .feature-grid.reverse .feature-text { order: 1; }
    .feature-grid.reverse .feature-visual { order: 2; }
    .footer-content { flex-direction: column; gap: 1rem; text-align: center; }
}

/* --- JS Animation Classes --- */
.reveal { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: all 0.8s ease-out; 
}
.reveal.active { 
    opacity: 1; 
    transform: translateY(0); 
}
