/* BPM Analyzer Landing Page Styles */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    color: #1d1d1f;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    background: #ffffff;
}

/* Navigation Bar */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 16px 20px;
    z-index: 1000;
}

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

.navbar-brand {
    font-size: 20px;
    font-weight: 600;
    color: #1d1d1f;
    text-decoration: none;
}

.navbar-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.navbar-links a:hover {
    color: #0066cc;
}

/* Light/Dark Mode App Icon Support */
.app-icon img.app-icon-light {
    display: block;
}

.app-icon img.app-icon-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .app-icon img.app-icon-light {
        display: none;
    }
    .app-icon img.app-icon-dark {
        display: block;
    }
}

/* Light/Dark Mode App Store Badge Support */
.badge-light {
    display: block;
}

.badge-dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .badge-light {
        display: none;
    }
    .badge-dark {
        display: block;
    }
}

/* Hero Section - App Icon + Title */
.hero-header {
    text-align: center;
    padding: 40px 20px 20px;
    background: #ffffff;
}

.app-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 22%;
    overflow: hidden;
}

.app-icon img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-header h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.hero-header p {
    font-size: 21px;
    font-weight: 400;
    line-height: 1.4;
    color: #6e6e73;
    margin-bottom: 24px;
}

.hero-header .download-buttons {
    margin-top: 0;
    margin-bottom: 0;
}

/* Hero Image Section */
.hero-image-section {
    text-align: center;
    padding: 0px 20px 40px;
    background: #ffffff;
}

.hero-image {
    max-width: 1100px;
    width: 95%;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 12px;
}

/* Download Buttons Section */
.download-section-top {
    text-align: center;
    background: #ffffff;
    padding: 20px 20px 40px;
    border-bottom: 1px solid #d2d2d7;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 0;
    flex-wrap: wrap;
}

.download-buttons a {
    display: inline-block;
    transition: transform 0.2s ease;
}

.download-buttons a:hover {
    transform: scale(1.05);
}

.download-buttons img {
    height: 56px;
    width: auto;
}

/* Carousel Section */
.carousel-section {
    padding: 60px 20px;
    background: #f5f5f7;
}

.carousel-wrapper {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    background: #f5f5f7;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f7;
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
    font-size: 32px;
    line-height: 1;
    color: #1d1d1f;
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d2d2d7;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
}

.carousel-indicator.active {
    background: #1d1d1f;
    width: 24px;
    border-radius: 4px;
}

/* Feature Section - Alternating Layout */
.features-section {
    background: #ffffff;
    padding-top: 40px;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px;
}

.feature-row.reverse {
    direction: rtl;
}

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

.feature-text h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.feature-text p {
    font-size: 19px;
    line-height: 1.5;
    color: #6e6e73;
    margin-bottom: 16px;
}

.feature-text p:last-child {
    margin-bottom: 0;
}

.feature-image img {
    width: 100%;
    max-width: 500px;
    max-height: 600px;
    height: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

/* Light/Dark Mode Feature Images */
.feature-image img.light {
    display: block;
}

.feature-image img.dark {
    display: none;
}

@media (prefers-color-scheme: dark) {
    .feature-image img.light {
        display: none;
    }
    
    .feature-image img.dark {
        display: block;
    }
}

/* Feature Overview Section */
.feature-overview-section {
    padding: 80px 20px;
    background: #f5f5f7;
}

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

.section-title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    text-align: center;
    color: #1d1d1f;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 50px 60px;
}

.feature {
    text-align: left;
}

.feature h3 {
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.feature p {
    font-size: 17px;
    line-height: 1.5;
    color: #6e6e73;
}

/* About Section */
.about-section {
    padding: 80px 20px;
    background: #ffffff;
}

.about-row {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-image {
    flex: 0 0 200px;
}

.about-image .profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.about-text {
    flex: 1;
    text-align: left;
}

.about-text h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    margin-bottom: 24px;
}

.about-text p {
    font-size: 19px;
    line-height: 1.6;
    color: #6e6e73;
    margin-bottom: 16px;
}

.about-text p:last-child {
    margin-bottom: 0;
}

/* Download Section (Bottom) */
.download-section {
    padding: 80px 20px;
    background: #f5f5f7;
    text-align: center;
}

.download-section h2 {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #1d1d1f;
    margin-bottom: 40px;
}

/* Footer */
footer {
    padding: 40px 20px;
    background: #ffffff;
    border-top: 1px solid #d2d2d7;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #424245;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0066cc;
}

.footer-copyright {
    font-size: 12px;
    color: #6e6e73;
    margin-top: 20px;
}

.footer-copyright a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.footer-copyright a:hover {
    color: #0051a8;
    border-bottom-color: #0051a8;
}

/* Responsive Design */
@media (max-width: 1068px) {
    .hero-header h1 {
        font-size: 40px;
    }
    
    .hero-header p {
        font-size: 19px;
    }
    
    .feature-row {
        gap: 40px;
        padding: 60px 30px;
    }
    
    .feature-text h2 {
        font-size: 32px;
    }
    
    .feature-text p {
        font-size: 17px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .about-row {
        gap: 50px;
    }
    
    .about-image {
        flex: 0 0 150px;
    }
    
    .about-image .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .about-text h2 {
        font-size: 32px;
    }
    
    .about-text p {
        font-size: 17px;
    }
}

@media (max-width: 734px) {
    .navbar-links {
        gap: 20px;
    }
    
    .navbar-links a {
        font-size: 13px;
    }
    
    .hero-header h1 {
        font-size: 32px;
    }
    
    .hero-header p {
        font-size: 17px;
    }
    
    .carousel-nav {
        width: 36px;
        height: 36px;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .feature-row {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 50px 20px;
    }
    
    .feature-row.reverse {
        direction: ltr;
    }
    
    .feature-text h2 {
        font-size: 28px;
    }
    
    .feature-text p {
        font-size: 16px;
    }
    
    .section-title,
    .about-section h2,
    .download-section h2 {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feature {
        text-align: center;
    }
    
    .about-row {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .about-image {
        flex: 0 0 auto;
    }
    
    .about-image .profile-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }
    
    .about-text {
        text-align: center;
    }
    
    .about-text h2 {
        font-size: 28px;
    }
    
    .about-text p {
        font-size: 16px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .app-icon {
        width: 80px;
        height: 80px;
    }
    
    .hero-header h1 {
        font-size: 28px;
    }
    
    .hero-header p {
        font-size: 16px;
    }
    
    .hero-image {
        width: 95%;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: #000000;
        color: #f5f5f7;
    }
    
    /* Navbar */
    .navbar {
        background: rgba(0, 0, 0, 0.95);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .navbar-brand {
        color: #f5f5f7;
    }
    
    .navbar-links a {
        color: #f5f5f7;
    }
    
    .navbar-links a:hover {
        color: #2997ff;
    }
    
    /* Hero Sections */
    .hero-header {
        background: #000000;
    }
    
    .hero-header h1 {
        color: #f5f5f7;
    }
    
    .hero-header p {
        color: #a1a1a6;
    }
    
    .hero-image-section {
        background: #000000;
    }
    
    /* Download Section */
    .download-section-top {
        background: #000000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Carousel */
    .carousel-section {
        background: #1c1c1e;
    }
    
    .carousel-container {
        background: #1c1c1e;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    
    .carousel-slide {
        background: #1c1c1e;
    }
    
    .carousel-nav {
        background: rgba(58, 58, 60, 0.9);
        color: #f5f5f7;
    }
    
    .carousel-nav:hover {
        background: rgba(58, 58, 60, 1);
    }
    
    .carousel-indicator {
        background: #48484a;
    }
    
    .carousel-indicator.active {
        background: #f5f5f7;
    }
    
    /* Features Section */
    .features-section {
        background: #000000;
    }
    
    .feature-text h2 {
        color: #f5f5f7;
    }
    
    .feature-text p {
        color: #a1a1a6;
    }
    
    /* Feature Overview */
    .feature-overview-section {
        background: #1c1c1e;
    }
    
    .section-title {
        color: #f5f5f7;
    }
    
    .feature h3 {
        color: #f5f5f7;
    }
    
    .feature p {
        color: #a1a1a6;
    }
    
    /* About Section */
    .about-section {
        background: #000000;
    }
    
    .about-text h2 {
        color: #f5f5f7;
    }
    
    .about-text p {
        color: #a1a1a6;
    }
    
    /* Download Section */
    .download-section {
        background: #1c1c1e;
    }
    
    .download-section h2 {
        color: #f5f5f7;
    }
    
    /* Footer */
    footer {
        background: #000000;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-links a {
        color: #a1a1a6;
    }
    
    .footer-links a:hover {
        color: #2997ff;
    }
    
    .footer-copyright {
        color: #6e6e73;
    }
    
    .footer-copyright a {
        color: #2997ff;
    }
    
    .footer-copyright a:hover {
        color: #5ab3ff;
        border-bottom-color: #5ab3ff;
    }
}
