:root {
    --primary-color: #223046;
    --primary-dark: #0d141a;
    --secondary-color: #223046;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-light: #ffffff;
    --bg-white: #ffffff;
    --border-color: #223046;
    --dark-bg: #0d141a;
    --dark-secondary: #223046;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
    overflow-x: hidden; /* Prevent horizontal scrolling on html */
    width: 100%;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden; /* Prevent horizontal scrolling on body */
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    overflow-x: visible; /* Allow child elements to scroll */
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

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

.nav-links a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: 6rem 0;
    background: #223046;
    color: white;
    text-align: center;
}

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

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

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.875rem 2rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Sections */
section {
    padding: 3rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

/* Features Grid */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

/* Mobile horizontal scroll wrapper */
.features-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    margin: 3rem -20px 0;
    padding: 0 20px;
}

.features-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.features-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.features-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.features-scroll-wrapper .features-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 0;
    width: max-content;
    min-width: 100%;
}

.features-scroll-wrapper .feature-card {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    border: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
    margin: 0;
}

/* Screenshots */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot-item {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Pricing */
.pricing {
    background: var(--bg-white);
}

.pricing-highlight {
    background: #223046;
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.pricing-highlight p {
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 0;
}

.pricing-highlight strong {
    font-weight: 700;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.free {
    border-color: var(--primary-color);
}

.pricing-card.premium {
    border-color: var(--primary-color);
}

.pricing-badge-premium {
    position: absolute;
    top: -12px;
    right: 2rem;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.pricing-header h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-subtitle {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.pricing-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.pricing-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.pricing-option {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 0.5rem;
    position: relative;
}

.pricing-option.recommended {
    background: rgba(34, 48, 70, 0.1);
    border: 2px solid var(--primary-color);
}

.recommended-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-option .pricing-price {
    margin: 0.5rem 0;
}

.pricing-option .price-amount {
    font-size: 2rem;
}

.price-savings {
    text-align: center;
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0.5rem 0;
}

.pricing-divider {
    text-align: center;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0.5rem 0;
}

.option-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.premium-includes {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    line-height: 1.6;
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li strong {
    color: var(--text-primary);
}

.pricing-footer {
    margin-top: auto;
    text-align: center;
}

.pricing-note {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    margin: 0;
}

.pricing-guarantee {
    margin-top: 3rem;
    padding: 2rem;
    background: #223046;
    color: white;
    border-radius: 1rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-guarantee p {
    color: white;
    line-height: 1.8;
    margin: 0;
    font-size: 1rem;
}

.pricing-guarantee strong {
    color: white;
    font-weight: 700;
}

/* Roadmap */
.roadmap {
    background: var(--bg-light);
}

.roadmap-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

/* Mobile horizontal scroll wrapper for roadmap */
.roadmap-scroll-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    margin: 3rem -20px 0;
    padding: 0 20px;
}

.roadmap-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.roadmap-scroll-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.roadmap-scroll-wrapper::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.roadmap-scroll-wrapper .roadmap-grid {
    display: flex;
    gap: 1.5rem;
    margin-top: 0;
    width: max-content;
    min-width: 100%;
}

.roadmap-scroll-wrapper .roadmap-item {
    min-width: 280px;
    max-width: 280px;
    flex-shrink: 0;
}

.roadmap-item {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.roadmap-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.roadmap-item h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    flex-shrink: 0;
}

.roadmap-item p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.roadmap-status {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: var(--bg-light);
    color: var(--text-secondary);
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    flex-shrink: 0;
    align-self: flex-start;
}

/* Download Section */
.download {
    text-align: center;
    background: #223046;
    color: white;
}

.download .section-title,
.download .section-subtitle {
    color: white;
}

.download-buttons {
    margin: 3rem 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.play-badge {
    height: 60px;
    transition: transform 0.3s;
}

.play-badge:hover {
    transform: scale(1.05);
}

.download-note {
    margin-top: 2rem;
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 3rem 0 1.5rem;
}

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

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid,
    .roadmap-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.875rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    /* Enable horizontal scrolling on mobile for features and roadmap */
    .features {
        width: 100%;
        position: relative;
    }
    
    .features .container {
        width: 100%;
        position: relative;
        padding: 0 20px;
        overflow-x: visible;
    }
    
    .features .section-title,
    .features .section-subtitle {
        padding: 0 0;
    }
    
    .features-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) transparent;
        margin: 3rem -20px 0;
        padding: 0 20px 1rem;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .features-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .features-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .features-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .features-grid .feature-card {
        min-width: 280px;
        max-width: 280px;
        width: 280px;
        flex-shrink: 0;
        height: auto;
    }
    
    .roadmap {
        width: 100%;
        position: relative;
    }
    
    .roadmap .container {
        width: 100%;
        position: relative;
        padding: 0 20px;
        overflow-x: visible;
    }
    
    .roadmap .section-title,
    .roadmap .section-subtitle {
        padding: 0 0;
    }
    
    .roadmap-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) transparent;
        margin: 3rem -20px 0;
        padding: 0 20px 1rem;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .roadmap-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .roadmap-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .roadmap-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .roadmap-grid .roadmap-item {
        min-width: 280px;
        max-width: 280px;
        width: 280px;
        flex-shrink: 0;
        height: auto;
    }
    
    .screenshots {
        width: 100%;
        position: relative;
    }
    
    .screenshots .container {
        width: 100%;
        position: relative;
        padding: 0 20px;
        overflow-x: visible;
    }
    
    .screenshots .section-title,
    .screenshots .section-subtitle {
        padding: 0 0;
    }
    
    .screenshots-grid {
        display: flex !important;
        grid-template-columns: none !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) transparent;
        margin: 3rem -20px 0;
        padding: 0 20px 1rem;
        gap: 1.5rem;
    }
    
    .screenshots-grid::-webkit-scrollbar {
        height: 8px;
    }
    
    .screenshots-grid::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .screenshots-grid::-webkit-scrollbar-thumb {
        background: var(--primary-color);
        border-radius: 4px;
    }
    
    .screenshots-grid .screenshot-item {
        min-width: 250px;
        max-width: 250px;
        width: 250px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .nav-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        text-align: center;
    }
}
