:root {
    --primary-color: #E24244;
    --secondary-color: #1A227D;
    --background-color: #FFFFFF;
    --text-color: #1C1C1E;
    --gray-100: #F2F2F7;
    --gray-200: #E5E5EA;
    --gray-300: #D1D1D6;
    --gray-400: #C7C7CC;
    --gray-500: #AEAEB2;
    --gray-600: #8E8E93;
    --gray-700: #636366;
    --gray-800: #48484A;
    --gray-900: #3A3A3C;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
}

.nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: color 0.2s;
}

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

.logo:visited,
.logo:active {
    color: var(--primary-color);
}

.nav-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.2s;
}

.cta-button:hover {
    background-color: var(--secondary-color);
    color: white !important;
}

.hero {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.hero-content {
    max-width: 640px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

/* Section Headers */
.hero h2,
.features h2,
.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
}

.feature-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.feature-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Timer Components */
.timer-section {
    background-color: var(--gray-100);
    padding: 4rem 2rem;
    text-align: center;
}

.timer-container {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 8px 16px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

/* Timer Display Components */
.timer-display,
.timer-settings {
    margin-bottom: 2rem;
}

.round-info {
    margin-bottom: 1rem;
}

.round-text,
.timer-status {
    font-size: 1.2rem;
    color: var(--gray-700);
}

.round-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.time-display {
    font-size: 4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: 'Inter', monospace;
}

/* Timer Controls */
.timer-controls {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.timer-btn {
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: var(--primary-color);
}

.timer-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 4px 8px rgba(0, 0, 0, 0.1);
}

.timer-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    background-color: var(--gray-400);
}

.timer-btn[type="reset"] {
    background-color: var(--gray-600);
}

.timer-status {
    margin-top: 1.5rem;
    font-weight: 500;
}

/* Progress Bar */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: 4px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.how-it-works {
    background-color: var(--gray-100);
}

.how-it-works-content {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.step {
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

.download {
    padding: 4rem 2rem;
    background-color: var(--gray-100);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-store-button img {
    height: 64px;
    display: block;
    text-align: center;
    margin: 0 auto;
    width: fit-content;
}

.footer {
    background-color: var(--gray-900);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.5rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-800);
    color: var(--gray-500);
}

.section {
    margin: 2.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.section:last-child {
    border-bottom: none;
}

.section h2,
.section h3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1010;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* Responsive navigation */
@media screen and (max-width: 800px) {
    /* Typography */
    .hero-content h1,
    .features h2,
    .how-it-works h2 {
        font-size: 2rem;
    }

    /* Layout */
    .hero,
    .features,
    .how-it-works,
    .timer-section {
        padding: 3rem 1rem;
    }

    .hero {
        padding-top: 6rem;
    }

    /* Timer Components */
    .timer-container {
        padding: 2rem 1rem;
    }

    .time-display {
        font-size: 3rem;
    }

    .timer-controls {
        flex-direction: column;
    }

    .timer-btn {
        width: 100%;
    }

    /* Feature Grid */
    .feature-grid {
        gap: 2rem;
    }

    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }

    /* Style the navigation links for mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--background-color);
        padding: 5rem 1.5rem 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        z-index: 1005;
        border-left: 1px solid rgba(0, 0, 0, 0.08);
        box-shadow: 
            -2px 0 4px rgba(0, 0, 0, 0.02),
            -8px 0 16px rgba(0, 0, 0, 0.08);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.3rem;
        padding: 1rem 1.2rem;
        margin: 0.25rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
        transition: all 0.2s ease;
        border-radius: 8px;
        text-align: left;
        min-height: 48px;
        display: flex;
        align-items: center;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links a:hover,
    .nav-links a:focus {
        color: var(--primary-color);
        background-color: var(--gray-100);
        transform: translateX(4px);
        box-shadow: 
            0 0 0 1px rgba(0, 0, 0, 0.04),
            0 2px 4px rgba(0, 0, 0, 0.04);
    }

    .nav-links .cta-button {
        text-align: center;
        margin-top: 1.5rem;
        border: none;
        border-radius: 8px;
        background-color: var(--primary-color);
        color: white !important;
        font-weight: 600;
        padding: 1rem 1.5rem;
        font-size: 1.2rem;
        min-height: 52px;
    }

    .nav-links .cta-button:hover,
    .nav-links .cta-button:focus {
        background-color: var(--secondary-color);
        transform: translateX(0);
        box-shadow: 
            0 0 0 1px rgba(255, 255, 255, 0.1),
            0 4px 8px rgba(0, 0, 0, 0.12);
    }

    /* Hamburger animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
}

/* Add overlay for when menu is open */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.mobile-menu-overlay.active {
    display: block;
}

@media (max-width: 800px) {
    .mobile-menu-overlay.active {
        display: block;
    }
}

.screenshot {
    width: 90%;
    height: auto;
    margin-top: 2rem;
    border-radius: 32px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.12);
}

.content-page {
    padding: 8rem 2rem 4rem;
    max-width: 800px;
    margin: 0 auto;
    background: var(--background-color);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    box-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.02),
        0 4px 12px rgba(0, 0, 0, 0.04);
}

.content-page h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.content-page .last-updated {
    font-style: italic;
    color: var(--gray-700);
    margin-bottom: 2rem;
}

@media (max-width: 800px) {
    .content-page {
        padding: 6rem 1.5rem 2rem;
        margin: 1rem;
        border-radius: 12px;
    }
    
    .content-page h1 {
        font-size: 2rem;
    }
}