/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #fff;
    --bg-secondary: #f9f9f9;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-tertiary: #6a6a6a;
    --border-color: #e5e5e5;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.08);
    --modal-backdrop: rgba(0, 0, 0, 0.7);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-primary: #1a1a1a;
        --bg-secondary: #2a2a2a;
        --text-primary: #f0f0f0;
        --text-secondary: #b0b0b0;
        --text-tertiary: #909090;
        --border-color: #3a3a3a;
        --shadow: rgba(0, 0, 0, 0.3);
        --shadow-hover: rgba(0, 0, 0, 0.4);
        --modal-backdrop: rgba(0, 0, 0, 0.85);
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

/* Availability Banner */
.banner {
    background-color: #007aff;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.banner-content {
    max-width: 1100px;
    margin: 0 auto;
}

.banner-content p {
    margin: 0;
    font-size: 0.95rem;
}

.banner-content strong {
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .banner {
        background-color: #0066cc;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 70vh;
    background-color: var(--bg-secondary);
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 700px;
}

.hero-icon {
    width: 120px;
    height: 120px;
    margin-bottom: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 12px var(--shadow);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Platform Availability */
.platforms {
    margin: 2rem 0 1.5rem;
}

.platforms-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.platforms-list {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.platform-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.platform-icon:hover {
    opacity: 1;
}

.platform-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.hero-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    background-color: #007aff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.hero-button:hover {
    background-color: #005ecb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Visually Hidden (for SEO) */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Pain Points Section */
.pain-points {
    padding: 3rem 2rem;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.pain-points-content {
    max-width: 1100px;
    margin: 0 auto;
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.pain-point {
    padding: 1.5rem 1rem;
}

.pain-point strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pain-point p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Features Section */
.features {
    padding: 5rem 2rem;
    background-color: var(--bg-primary);
}

.features-content {
    max-width: 1100px;
    margin: 0 auto;
}

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

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

.feature-item {
    padding: 2rem;
    background-color: var(--bg-secondary);
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item.has-gif {
    cursor: pointer;
}

.feature-item.has-gif:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--shadow-hover);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* Footer */
.footer {
    padding: 2.5rem 2rem;
    text-align: center;
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer-content p {
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner-content p {
        font-size: 0.85rem;
    }

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

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-icon {
        width: 90px;
        height: 90px;
    }

    .platforms-list {
        gap: 1.5rem;
    }

    .pain-points {
        padding: 2rem 1.5rem;
    }

    .pain-points-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .features-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-item {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .banner {
        padding: 0.6rem 1rem;
    }

    .banner-content p {
        font-size: 0.8rem;
    }

    .hero {
        padding: 3rem 1.5rem;
        min-height: 60vh;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .platforms {
        margin: 1.5rem 0 1rem;
    }

    .platforms-list {
        gap: 1rem;
    }

    .platform-icon {
        width: 28px;
        height: 28px;
    }

    .platform-item span {
        font-size: 0.85rem;
    }

    .pain-points-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pain-point {
        padding: 1rem;
    }

    .features {
        padding: 3rem 1.5rem;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: var(--modal-backdrop);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    background-color: var(--bg-primary);
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-tertiary);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1001;
    padding: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    display: flex;
    padding: 3rem;
    gap: 3rem;
    align-items: center;
}

.modal-text {
    flex: 1;
    min-width: 0;
}

.modal-text h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.modal-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-gif {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-gif img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px var(--shadow);
}

/* Modal Responsive Design */
@media (max-width: 968px) {
    .modal-body {
        flex-direction: column;
        padding: 2rem;
        gap: 2rem;
    }

    .modal-text h2 {
        font-size: 1.75rem;
    }

    .modal-text p {
        font-size: 1rem;
    }

    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
}

@media (max-width: 480px) {
    .modal-body {
        padding: 1.5rem;
        padding-top: 3rem;
    }

    .modal-close {
        top: 15px;
        right: 15px;
        font-size: 1.5rem;
    }

    .modal-text h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .modal-text p {
        font-size: 0.95rem;
    }
}
