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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1d1d1f;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #6e6e73;
}

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-height: 44px;
}

.btn-primary {
    background: #007aff;
    color: white;
    box-shadow: 0 4px 20px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
    background: #0056cc;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #007aff;
    border: 2px solid #007aff;
}

.btn-secondary:hover {
    background: #007aff;
    color: white;
    transform: translateY(-2px);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    border-radius: 16px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-brand .brand-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1d1d1f;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-brand .brand-link:hover {
    color: #007aff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #1d1d1f;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #007aff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007aff;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    margin-left: 1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #1d1d1f;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    color: #1d1d1f;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #6e6e73;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e5e5e7" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

/* Floating App Icons */
.floating-apps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.floating-app-icon {
    position: relative;
    animation: float-app 3s ease-in-out infinite;
}

.floating-app-icon:nth-child(2) {
    animation-delay: 1s;
}

.floating-app-icon:nth-child(3) {
    animation-delay: 2s;
}

.floating-app-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.floating-app-link:hover {
    transform: scale(1.1);
}

.floating-app-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: cover;
    object-position: center;
    transition: all 0.3s ease;
}

.floating-app-link:hover .floating-app-logo {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.25);
}

@keyframes float-app {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: #1d1d1f;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #6e6e73;
    max-width: 600px;
    margin: 0 auto;
}

/* Apps Section */
.apps {
    padding: 6rem 0;
    background: #f5f5f7;
}

.apps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.app-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.app-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.app-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
}

.app-card:nth-child(even) .app-visual {
    order: 2;
}

.app-card:nth-child(even) .app-content {
    order: 1;
}

.app-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-logo-container {
    width: 100%;
    max-width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    animation: float 3s ease-in-out infinite;
    overflow: hidden;
}

.app-card:nth-child(2) .app-logo-container {
    animation-delay: 1.5s;
}

.app-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: scale(1.3);
    display: block;
    border-radius: 16px !important;
    overflow: hidden;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) scale(1.3);
    }
    50% {
        transform: translateY(-15px) scale(1.3);
    }
}

/* Ensure animation is visible */
.app-logo-container {
    will-change: transform;
}

.app-logo-container:hover {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.3);
}

.app-content {
    padding: 1rem 0;
}

.app-name {
    color: #1d1d1f;
    margin-bottom: 1rem;
    font-size: 2rem;
}

.app-description {
    color: #6e6e73;
    margin-bottom: 2rem;
    font-size: 1.125rem;
    line-height: 1.6;
}

.app-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.feature-tag {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* About Section */
.about {
    padding: 6rem 0;
    background: white;
}

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

.about-text {
    font-size: 1.25rem;
    color: #6e6e73;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #007aff;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #6e6e73;
    font-weight: 500;
}

/* Highlights Section */
.highlights {
    padding: 6rem 0;
    background: #f5f5f7;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.highlight-card {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 16px;
    transition: all 0.3s ease;
}

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

.highlight-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.highlight-title {
    color: #1d1d1f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.highlight-description {
    color: #6e6e73;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: white;
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.25rem;
    color: #6e6e73;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: #1d1d1f;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    color: #a1a1a6;
    font-size: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-nav {
    list-style: none;
}

.footer-nav li {
    margin-bottom: 0.5rem;
}

.footer-link {
    color: #a1a1a6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #007aff;
}

.footer-bottom {
    border-top: 1px solid #424245;
    padding-top: 2rem;
    text-align: center;
}

.copyright {
    color: #a1a1a6;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.legal-info {
    color: #8e8e93;
    font-size: 0.75rem;
    margin: 0;
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .app-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .app-card:nth-child(even) .app-visual,
    .app-card:nth-child(even) .app-content {
        order: unset;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1rem;
        transform: translateY(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
        transform: translateY(0);
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .nav-cta {
        display: none;
    }
    
    .hero {
        padding-top: 60px;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .floating-apps {
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .floating-app-logo {
        width: 65px;
        height: 65px;
        border-radius: 16px;
    }
    
    .apps, .about, .highlights, .contact {
        padding: 4rem 0;
    }
    
    .app-card {
        padding: 2rem;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .nav-container {
        padding: 0 16px;
    }
    
    .hero-container {
        padding: 0 16px;
    }
    
    .app-card {
        padding: 1.5rem;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    .section-header {
        margin-bottom: 3rem;
    }
    
    .apps-grid {
        gap: 2rem;
    }
}

/* Smooth Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.app-card {
    animation: fadeInUp 0.6s ease-out;
}

.highlight-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Focus States for Accessibility */
.btn-primary:focus,
.btn-secondary:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 2px solid #007aff;
    outline-offset: 2px;
}

/* Loading States */
.app-logo {
    transition: opacity 0.3s ease;
}

.app-logo:not([src]) {
    opacity: 0;
}
