/* Base & Reset */
:root {
    --color-bg-white: #ffffff;
    --color-bg-light: #f5f5f7;
    --color-text-main: #1d1d1f;
    --color-text-muted: #86868b;
    --color-black: #000000;
    --color-white: #ffffff;
    --color-border: #d2d2d7;
    --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-system);
    background-color: var(--color-bg-white);
    color: var(--color-text-main);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    background-color: var(--color-bg-white);
    padding: 24px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: var(--color-text-main);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    gap: 16px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: color 0.2s ease;
}

.main-nav a:hover {
    color: var(--color-text-main);
}

/* Apps Section */
.hero {
    padding: 60px 0 80px;
    background-color: var(--color-bg-white);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 40px;
}

.apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.app-card {
    background-color: var(--color-bg-light);
    border-radius: 24px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card-link {
    display: flex;
    align-items: center;
    gap: 24px;
    text-decoration: none;
    color: inherit;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    object-fit: contain;
    background-color: var(--color-white);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.app-info h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.app-info p {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Features */
.features {
    padding: 60px 0;
    background-color: var(--color-bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.icon-container {
    width: 52px;
    height: 52px;
    background-color: var(--color-bg-light);
    color: var(--color-text-main);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.icon-container svg {
    width: 28px;
    height: 28px;
}

.feature-item h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.feature-item p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Coming Soon Section */
.coming-soon {
    padding: 80px 0;
    background-color: var(--color-bg-light);
}

.coming-soon h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
    margin-bottom: 48px;
}

.coming-soon-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.soon-card {
    background-color: var(--color-white);
    padding: 40px 24px;
    border-radius: 20px;
    text-align: center;
    opacity: 0.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.soon-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.soon-badge {
    background-color: var(--color-bg-light);
    color: var(--color-text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
}

/* Footer */
footer {
    background-color: var(--color-bg-white);
    padding: 40px 0;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--color-text-main);
    font-weight: 500;
}

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

.footer-copy {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* Responsive Media Queries (Mobile First approach naturally expands to Desktop) */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .main-nav {
        gap: 32px;
    }

    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .features {
        padding: 80px 0;
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .coming-soon-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-container {
        flex-direction: row-reverse;
        justify-content: space-between;
    }
    
    .footer-links {
        justify-content: flex-end;
    }
}

@media (min-width: 1024px) {
    .hero {
        padding: 80px 0 100px;
    }

    .section-title {
        font-size: 3rem;
    }
}

/* Modal and Iframe (App Info) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1000;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal:target {
    display: flex;
    animation: fadeIn 0.3s forwards;
}

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

.modal-content {
    background-color: var(--color-bg-white);
    width: 90%;
    max-width: 900px;
    height: 85vh;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 4px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    color: var(--color-text-main);
    z-index: 10;
    text-decoration: none;
    background: var(--color-bg-light);
    width: 36px;
    height: 36px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.close-modal:hover {
    background: var(--color-border);
}

.app-info-iframe {
    width: 100%;
    flex: 1;
    border: none;
}
