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

html, body {
    min-height: 100vh;
    background-color: #111111;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #eeeeee;
    line-height: 1.6;
    padding: 2rem;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    margin-top: 10vh;
}

header {
    margin-bottom: 2rem;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.subtitle {
    color: #aaaaaa;
    font-size: 0.95rem;
}

nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

nav a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #555555;
    transition: text-decoration-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), text-underline-offset 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

nav a:hover {
    text-decoration-color: #ffffff;
    text-underline-offset: 5px;
}

main {
    margin-bottom: 4rem;
}

section {
    margin-bottom: 3rem;
}

h2 {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #888888;
    margin-bottom: 1.25rem;
}

p {
    color: #aaaaaa;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.appstore-container {
    margin: 1.5rem 0;
}

.appstore-link {
    display: inline-block;
    text-decoration: none;
}

.appstore-badge {
    height: 44px;
    border-radius: 8px;
}

ul {
    list-style: none;
    margin-bottom: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #aaaaaa;
    position: relative;
    padding-left: 1.25rem;
}

li::before {
    content: "·";
    position: absolute;
    left: 0;
    color: #888888;
    font-weight: bold;
}

a {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: #555555;
    transition: text-decoration-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), text-underline-offset 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
    text-decoration-color: #ffffff;
    text-underline-offset: 5px;
}

.privacy-content h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #eeeeee;
}

.privacy-content p {
    margin-bottom: 1rem;
}

footer {
    margin-top: 5rem;
    border-top: 1px solid #222222;
    padding-top: 1.5rem;
}

footer p {
    font-size: 0.85rem;
    color: #666666;
    line-height: 1.4;
}

.back-link {
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.back-link a {
    color: #888888;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-link a:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

/* Screenshots Slider */
.screenshots-section {
    margin-bottom: 3rem;
}

.slider-container {
    width: 100%;
}

.slider {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem;
    margin: 0 -0.25rem;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.slider::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
.slider {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.slide {
    flex: 0 0 auto;
    height: 400px;
    aspect-ratio: 1242 / 2688;
    scroll-snap-align: start;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1a1a1a;
    border: 1px solid #222222;
    transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none !important;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide:hover {
    border-color: #444444;
}

.slide:hover img {
    transform: scale(1.02);
}

/* Animations */
.back-link,
header,
nav,
main section,
.privacy-content,
footer {
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.back-link {
    animation-delay: 0.05s;
}

header {
    animation-delay: 0.12s;
}

nav {
    animation-delay: 0.19s;
}

main section:nth-of-type(1),
.privacy-content {
    animation-delay: 0.26s;
}

main section:nth-of-type(2) {
    animation-delay: 0.35s;
}

main section:nth-of-type(3) {
    animation-delay: 0.44s;
}

footer {
    animation-delay: 0.53s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .back-link,
    header,
    nav,
    main section,
    .privacy-content,
    footer {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    
    a,
    nav a,
    .back-link a,
    .slide,
    .slide img {
        transition: none !important;
        transform: none !important;
    }
}
