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

html {
    width: 100%;
    /* Offset anchor scrolling to account for sticky header */
    scroll-padding-top: 80px;
    scroll-behavior: smooth;
}

:root {
    --primary-color: #FF6B9D;
    --secondary-color: #C5A3FF;
    --text-dark: #1C1C1E;
    --text-light: #8E8E93;
    --background: #FFFFFF;
    --surface: #F5F5F7;
    --accent: #007AFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    background: var(--background);
    line-height: 1.6;
    width: 100%;
    overflow-x: clip;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
}

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

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 22%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

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

.nav-links a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--surface);
    border-radius: 8px;
}

.lang-switcher a {
    font-size: 0.9rem;
    opacity: 0.6;
    text-decoration: none;
    color: var(--text-dark);
}

.lang-switcher a.active {
    opacity: 1;
    font-weight: 600;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 2rem;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.app-store-badge {
    display: inline-block;
    margin: 1rem;
}

.app-store-badge img {
    height: 60px;
    transition: transform 0.3s;
}

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

.hero-image {
    margin-top: 3rem;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

/* Screenshots Gallery - Always Horizontal */
.screenshots-gallery {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    padding: 1rem 2rem 1rem 0.5rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(197, 163, 255, 0.3) transparent;
    scroll-padding-right: 2rem;
}

.screenshots-gallery::-webkit-scrollbar {
    height: 8px;
}

.screenshots-gallery::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.screenshots-gallery::-webkit-scrollbar-thumb {
    background: rgba(197, 163, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s;
}

.screenshots-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(197, 163, 255, 0.5);
}

.screenshot-card {
    position: relative;
    flex: 0 0 280px;
    height: 608px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    scroll-snap-align: center;
}

.screenshot-card:first-child {
    scroll-snap-align: start;
}

.screenshot-card:last-child {
    scroll-snap-align: end;
}

.screenshot-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.features-container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* Privacy Section */
.privacy-highlight {
    max-width: 1200px;
    margin: 5rem auto;
    padding: 3rem 2rem;
    text-align: center;
}

.privacy-highlight h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.privacy-highlight p {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.privacy-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    margin: 0.5rem;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    margin-top: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: rgba(255, 255, 255, 0.6);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #0051D5;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    /* Increase scroll padding on mobile due to taller wrapped header */
    html {
        scroll-padding-top: 120px;
    }

    nav {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .app-icon {
        width: 32px;
        height: 32px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-container {
        gap: 0.5rem;
    }

    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
        margin-top: 0.5rem;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    /* Hide Privacy Policy and Terms links on mobile - they're in the footer */
    .mobile-hide {
        display: none;
    }

    .lang-switcher {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }

    .hero {
        padding: 3rem 1rem;
    }

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

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

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

    .features {
        padding: 3rem 1rem;
    }

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

    .feature-card {
        padding: 1.5rem;
    }

    .privacy-highlight {
        padding: 2rem 1rem;
        margin: 3rem auto;
    }

    .privacy-highlight h2 {
        font-size: 2rem;
    }

    .privacy-highlight p {
        font-size: 1.1rem;
    }

    .privacy-badge {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        margin: 0.25rem;
    }

    /* Screenshots on mobile */
    .hero-image {
        margin-top: 2rem;
    }

    .screenshots-gallery {
        gap: 1rem;
        padding: 0.5rem 1rem 0.5rem 0.5rem;
        scrollbar-width: none;
        scroll-padding-right: 1rem;
    }

    .screenshots-gallery::-webkit-scrollbar {
        display: none;
    }

    .screenshot-card {
        flex: 0 0 260px;
        height: 565px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .container {
        padding: 2rem 1rem;
    }

    .container h1 {
        font-size: 2rem;
    }

    .container h2 {
        font-size: 1.5rem;
    }

    .nav-right {
        gap: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

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

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

    .privacy-highlight h2 {
        font-size: 1.75rem;
    }

    .privacy-badge {
        display: flex;
        width: calc(100% - 1rem);
        justify-content: center;
    }

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

    .nav-links a {
        font-size: 0.85rem;
    }

    .nav-links li {
        margin: 0.25rem 0;
    }

    /* Smaller screenshots on very small screens */
    .screenshots-gallery {
        scroll-padding-right: 0.75rem;
    }

    .screenshot-card {
        flex: 0 0 220px;
        height: 478px;
    }
}

/* Landscape mobile phones */
@media (max-height: 500px) and (orientation: landscape) {
    /* Reduce scroll padding in landscape - header is more compact */
    html {
        scroll-padding-top: 80px;
    }

    header {
        position: sticky;
        top: 0;
    }

    nav {
        padding: 0.5rem 1rem;
    }

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

    .logo {
        font-size: 1.1rem;
    }

    .logo-container {
        gap: 0.4rem;
    }

    .nav-links {
        gap: 0.75rem;
        font-size: 0.8rem;
        margin-top: 0;
    }

    .nav-links a {
        font-size: 0.8rem;
    }

    /* Hide extra links in landscape too */
    .mobile-hide {
        display: none;
    }

    .lang-switcher {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero {
        padding: 2rem 1rem;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .features {
        padding: 2rem 1rem;
    }

    .privacy-highlight {
        margin: 2rem auto;
        padding: 1.5rem 1rem;
    }

    /* Compact screenshots in landscape */
    .screenshots-gallery {
        scroll-padding-right: 0.75rem;
    }

    .screenshot-card {
        flex: 0 0 180px;
        height: 391px;
    }
}

/* App Store Button Placeholder */
.app-store-button {
    display: inline-block;
    background: black;
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s;
    margin: 1rem 0;
}

.app-store-button:hover {
    transform: scale(1.05);
}

.coming-soon {
    display: inline-block;
    background: var(--surface);
    color: var(--text-light);
    padding: 0.75rem 2rem;
    border-radius: 12px;
    font-weight: 600;
    margin: 1rem 0;
}

/* Legal Pages */
.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.back-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.container h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.container h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.container h3 {
    font-size: 1.3rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.container p {
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.container ul, .container ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.container li {
    margin-bottom: 0.5rem;
}

.highlight {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 12px;
    margin: 2rem 0;
    border-left: 4px solid var(--primary-color);
}

strong {
    color: var(--text-dark);
    font-weight: 600;
}

.last-updated {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}
