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

:root {
    --color-bg-light: #f5f5f7;
    --color-bg-dark: #000000;
    --color-text-light: #1d1d1f;
    --color-text-dark: #f5f5f7;
    --color-text-secondary: #6e6e73;
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--color-text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 0 2rem;
    margin-top: 60px;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* App Sections */
.app-section {
    padding: var(--spacing-xl) 2rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.section-light {
    background: var(--color-bg-light);
    color: var(--color-text-light);
}

.section-dark {
    background: var(--color-bg-dark);
    color: var(--color-text-dark);
}

.app-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.app-container.reverse {
    direction: rtl;
}

.app-container.reverse > * {
    direction: ltr;
}

.app-content {
    animation: fadeInUp 1s ease;
}

.app-badge {
    display: inline-block;
    background: var(--color-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.app-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.app-tagline {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-dark .app-tagline {
    color: var(--color-text-dark);
}

.app-description {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.section-dark .app-description {
    color: #a1a1a6;
}

.app-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.app-features li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    font-size: 1rem;
}

.app-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

.app-stores {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.store-badge img {
    height: 50px;
    transition: transform 0.3s ease;
}

.store-badge:hover img {
    transform: scale(1.05);
}

/* App Mockup */
.app-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-mockup {
    width: 300px;
    height: 600px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    animation: float 6s ease-in-out infinite;
}

.mockup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 40px;
}

.sagasti-mockup {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.snusstop-mockup {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.listpal-mockup {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.mockup-placeholder {
    font-size: 1.5rem;
    font-weight: 600;
    color: white;
    opacity: 0.9;
    text-align: center;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* About Section */
.about-section {
    padding: var(--spacing-xl) 2rem;
    background: var(--color-bg-dark);
    color: var(--color-text-dark);
    text-align: center;
}

.about-container {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #a1a1a6;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-section {
    padding: var(--spacing-xl) 2rem;
    background: var(--color-bg-light);
    color: var(--color-text-light);
    text-align: center;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
}

.contact-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.contact-text {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
}

.contact-details {
    margin-top: 2rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info-item {
    background: white;
    padding: 2rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-info-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.contact-info-link {
    display: inline-block;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info-link:hover {
    color: var(--color-accent-hover);
}

.contact-info-text {
    font-size: 1.125rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #000;
    color: #a1a1a6;
    padding: 3rem 2rem 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #333;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.footer-text {
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column h4 {
    color: var(--color-text-dark);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #a1a1a6;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: var(--color-text-dark);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.75rem;
}

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

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

/* Responsive Design */
@media (max-width: 968px) {
    .nav-links {
        gap: 1rem;
    }

    .app-container,
    .app-container.reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
        direction: ltr;
    }

    .app-visual {
        order: -1;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        gap: 2rem;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 1rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.75rem;
    }

    .hero {
        padding: 0 1rem;
    }

    .app-section {
        padding: var(--spacing-lg) 1rem;
    }

    .app-stores {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Scroll Reveal */
.app-section {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.app-section:nth-child(even) {
    animation-delay: 0.2s;
}

.app-section:nth-child(odd) {
    animation-delay: 0.1s;
}
