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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fafafa;
    color: black;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50px;
    padding: 12px 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 500px;
    max-width: calc(100vw - 40px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.navbar.scrolled {
    top: 15px;
    width: 400px;
    padding: 8px 0;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
    padding: 0 32px;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-container {
    padding: 0 10px;
    padding-left: 20px;
}

.logo {
    height: 28px;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo {
    height: 24px;
}

.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
    transition: all 0.3s ease;
}

.navbar.scrolled .nav-links {
    gap: 20px;
}

.nav-links a {
    color: #424245;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.navbar.scrolled .nav-links a {
    font-size: 14px;
}

.nav-links a:hover {
    color: black;
}

/* Download button styling for scrolled state */
.navbar.scrolled .nav-links a.download-nav-btn {
    background: linear-gradient(135deg, #1e3a8a, #000000);
    color: #fff;
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
}

.navbar.scrolled .nav-links a.download-nav-btn:hover {
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
    color: #fff;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 60px;
    padding-right: 60px;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: #eee;
    padding: 6px 16px;
    color: black;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
    width: fit-content;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.08;
    margin-bottom: 74px;
    color: black;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, black, #424245);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'DM Sans', sans-serif;
}

.hero-subtitle {
    font-size: 19px;
    color: #6e6e73;
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.4;
    max-width: 500px;
    display: none;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.download-btn {
    background: linear-gradient(135deg, #1e3a8a, #000000);
    color: #fff;
    padding: 12px 24px;
    border: none;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 4px 16px rgba(30, 58, 138, 0.3);
}

.download-btn:hover {
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
}

.github-btn {
    color: #424245;
    padding: 12px 24px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'DM Sans', sans-serif;
}

.github-btn:hover {
    background: #ddd;
    color: #000000;
}

.download-link {
    color: #6e6e73;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    margin-top: 12px;
    display: none;
}

.download-link:hover {
    color: #424245;
}

/* App Screenshot */
.app-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.app-preview img {
    width: 100%;
    height: auto;
    max-width: 600px;
}

/* Features Section */
.features {
    padding: 120px 60px;
    position: relative;
}

.features-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    color: black;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
    font-family: 'DM Sans', sans-serif;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.bento-item {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.bento-item:nth-child(1) {
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 248, 255, 0.9));
}

.bento-item:nth-child(2) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 248, 0.9));
}

.bento-item:nth-child(3) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 255, 248, 0.9));
}

.bento-item:nth-child(4) {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 255, 0.9));
}

.bento-item:nth-child(5) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 255, 255, 0.9));
}

.bento-item:nth-child(6) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 248, 0.9));
}

.bento-item:nth-child(7) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 248, 248, 0.9));
}

.bento-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: black;
    letter-spacing: -0.01em;
    font-family: 'DM Sans', sans-serif;
}

.bento-item p {
    font-size: 16px;
    color: #6e6e73;
    line-height: 1.6;
    margin-bottom: 20px;
    font-weight: 500;
}

.bento-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 1;
}

.bento-item .content {
    position: relative;
    z-index: 2;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 24px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

/* FAQ Section */
.faq {
    padding: 120px 60px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    color: black;
    letter-spacing: -0.02em;
    font-family: 'DM Sans', sans-serif;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 20px;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: black;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    line-height: 1.4;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #1e3a8a;
}

.faq-icon {
    font-size: 20px;
    color: #1e3a8a;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    color: #6e6e73;
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    max-height: 0;
    font-weight: 500;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0;
}

.faq-item.active .faq-answer {
    max-height: 100px;
    padding: 12px 0 0 0;
}

/* Footer */
.footer {
    padding: 80px 60px 40px;
    background: black;
    color: #f5f5f7;
    text-align: center;
}

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

.github-star {
    background: white;
    color: black;
    padding: 16px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 48px;
    transition: all 0.3s ease;
    font-size: 16px;
    font-family: 'DM Sans', sans-serif;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.3);
}

.github-star img {
    width: 20px;
    height: 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-text {
    color: #a1a1a6;
    font-size: 16px;
}

.footer-text a {
    color: #f5f5f7;
    text-decoration: none;
    font-weight: 500;
}

/* Detection container responsive padding */
.detection-container {
    padding: 40px 0;
    text-align: center;
}

@media (max-width: 768px) {
    .detection-container {
        padding: 40px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 100px 40px;
        text-align: center;
    }

    .hero-content {
        max-width: none;
    }

    .features {
        padding: 80px 40px;
    }

    .faq {
        padding: 80px 40px;
    }

    .footer {
        padding: 60px 40px 40px;
    }
}

@media (max-width: 768px) {
    .navbar {
        width: calc(100vw - 32px);
        max-width: none;
    }

    .navbar.scrolled {
        width: calc(100vw - 40px);
    }

    .nav-container {
        padding: 0 20px;
    }

    .navbar.scrolled .nav-container {
        padding: 0 16px;
    }

    .nav-links {
        gap: 20px;
    }

    .navbar.scrolled .nav-links {
        gap: 16px;
    }

    .nav-links a {
        font-size: 14px;
    }

    .navbar.scrolled .nav-links a {
        font-size: 13px;
    }

    .logo {
        height: 26px;
    }

    .navbar.scrolled .logo {
        height: 22px;
    }

    .hero {
        padding: 100px 0 80px;
        gap: 0;
    }

    .hero-content {
        padding: 20px;
    }

    .hero-badge {
        text-align: center;
        margin: 0 auto;
        margin-bottom: 20px;
    }

    .features {
        padding: 80px 20px;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-item:nth-child(1) {
        grid-row: span 1;
    }

    .bento-item:nth-child(4) {
        grid-column: span 1;
    }

    .faq {
        padding: 80px 20px;
    }

    .footer {
        padding: 60px 20px 40px;
    }

    .social-links {
        gap: 16px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    /* Mobile app preview - bigger and positioned from left */
    .app-preview {
        position: relative;
        height: 300px;
        overflow: hidden;
    }

    .app-preview img {
        position: absolute;
        left: 40px;
        height: 300px;
        width: auto;
        max-width: none;
    }
}
