@import url('https://fonts.googleapis.com/css2?family=Geist+Mono:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Geist Mono', monospace;
    line-height: 1.5;
    color: #000;
    background: #fff;
}

header {
    border-bottom: 1px solid #e5e5e5;
    position: fixed;
    width: 100%;
    top: 0;
    background: #fff;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.logo {
    font-weight: 600;
    font-size: 1rem;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
}

nav a:hover {
    color: #000;
}

main {
    margin-top: 80px;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.hero-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.app-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.hero h1 {
    font-size: 3rem;
    margin: 0;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: #007AFF;
    color: white;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
}

.cta-button:hover {
    background: #0056CC;
}

.product-hunt-card {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    animation: fadeInUp 0.6s ease-out 0.3s both;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.product-hunt-card iframe {
    border-radius: 12px;
    background: white;
    /* Ensure high quality rendering */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* Use a container with aspect ratio for better responsive behavior */
.product-hunt-iframe-container {
    width: 100%;
    max-width: 500px;
    min-width: 400px; /* Maintain minimum size for quality */
    aspect-ratio: 500/405;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.product-hunt-iframe-container:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.product-hunt-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.product-hunt-card iframe:hover {
    transform: none;
}

.product-hunt-card a {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.product-hunt-card a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.product-hunt-card img {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.features, .pricing {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.features h2, .pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

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

.feature, .plan {
    text-align: left;
    padding: 1.5rem;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    background: #fff;
}

.feature h3 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}

.feature p {
    font-size: 0.9rem;
    color: #666;
}

.plan {
    border: 1px solid #e5e5e5;
}

.plan.featured {
    border-color: #000;
    background: #f9f9f9;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
    margin: 0.5rem 0;
}

.plan ul {
    list-style: none;
    margin-top: 1rem;
}

.plan li {
    padding: 0.25rem 0;
    font-size: 0.9rem;
    color: #666;
}

footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 2rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.content {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    line-height: 1.8;
}

.content h1 {
    margin-bottom: 2rem;
    color: #007AFF;
}

.content h2 {
    margin: 2rem 0 1rem 0;
    color: #333;
}

.content p {
    margin-bottom: 1rem;
}

.placeholder-image, .placeholder-video {
    background: #f5f5f5;
    border: 1px dashed #ccc;
    padding: 2rem;
    text-align: center;
    margin: 1rem 0;
    font-family: 'Geist Mono', monospace;
    color: #666;
    border-radius: 4px;
}

.placeholder-video {
    background: #f0f8ff;
    border-color: #007AFF;
    color: #007AFF;
}

.gif-container {
    margin: 1.5rem 0;
    text-align: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.gif-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    nav {
        padding: 0.5rem 1rem;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    nav a {
        font-size: 0.8rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero-title {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .app-icon {
        width: 32px;
        height: 32px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .features, .pricing {
        padding: 2rem 1rem;
    }
    
    .features h2, .pricing h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .feature-grid, .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content {
        padding: 1rem;
        margin: 1rem;
    }
    
    .product-hunt-card {
        gap: 1rem;
        margin-top: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .product-hunt-iframe-container {
        max-width: 450px;
        min-width: 350px; /* Maintain quality on tablet */
    }
    
    .product-hunt-card img {
        width: 200px !important;
        height: 43px !important;
    }
    
    .placeholder-image, .placeholder-video {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 0.9rem;
    }
    
    nav ul {
        gap: 0.5rem;
    }
    
    nav a {
        font-size: 0.7rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .product-hunt-card {
        gap: 0.8rem;
        margin-top: 1rem;
        padding: 0 0.25rem;
    }
    
    .product-hunt-iframe-container {
        max-width: 360px;
        min-width: 300px; /* Maintain reasonable quality on mobile */
    }
    
    .product-hunt-card img {
        width: 160px !important;
        height: 35px !important;
    }
    
    .features h2, .pricing h2 {
        font-size: 1.5rem;
    }
    
    .feature, .plan {
        padding: 1rem;
    }
}

@media (max-width: 360px) {
    .product-hunt-card {
        gap: 0.6rem;
        margin-top: 0.8rem;
        padding: 0 0.125rem;
    }
    
    .product-hunt-iframe-container {
        max-width: 320px;
        min-width: 280px; /* Prevent too much quality loss */
    }
    
    .product-hunt-card img {
        width: 140px !important;
        height: 30px !important;
    }
    
    .hero h1 {
        font-size: 1.3rem;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
    }
}