:root {
    --bg-color: #0d0d0d;
    --text-color: #ffffff;
    --accent-color: #e91e63;
    /* Vibrant Red/Pink */
    --accent-gradient: linear-gradient(135deg, #d81b60, #ff5252);
    /* Raspberry to Red */
    --secondary-text: #a1a1a6;
    --card-bg: rgba(28, 28, 30, 0.6);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    background-color: var(--bg-color);
    /* Add a subtle mesh gradient background */
    background: radial-gradient(circle at 50% -20%, #880e4f 0%, #0d0d0d 60%),
        radial-gradient(circle at 80% 80%, #b71c1c 0%, #0d0d0d 40%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

p {
    color: rgba(255, 255, 255, 0.6);
    /* Reduced brightness (was 0.85/0.7) */
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.description b {
    color: rgba(255, 255, 255, 0.9);
    /* Reduced from pure white */
    font-weight: 700;
    font-size: 1.35rem;
    /* Slightly larger */
    display: block;
    /* Make it feel like a subheadline */
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Layout */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 2rem 1rem;
    /* Reduced from 4rem */
}

/* Content Sections */
/* Content Sections */
.description {
    max-width: 700px;
    margin: 1rem auto;
    /* Reduced from 2rem */
    text-align: center;
}

.features {
    max-width: 900px;
    /* Wider container for grid */
    margin: 3rem auto;
    text-align: center;
}

.features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Responsive Grid */
    gap: 1.5rem;
    margin-top: 2rem;
}

.features li {
    background: rgba(255, 255, 255, 0.03);
    /* Subtle glass effect */
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: left;
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
    position: relative;
    padding-left: 1.5rem;
    display: flex;
    align-items: flex-start;
}

.features li:hover {
    background: rgba(255, 255, 255, 0.07);
    transform: translateY(-5px);
    border-color: rgba(233, 30, 99, 0.3);
    /* Subtle red border on hover */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.features li::before {
    content: "✦";
    /* Star/Sparkle bullet */
    color: var(--accent-color);
    font-weight: bold;
    font-size: 1.2rem;
    margin-right: 1rem;
    line-height: 1.2;
    position: static;
    /* Reset positioning for flex layout */
}

/* Screenshot Gallery */
.gallery-section {
    width: 100%;
    margin: 3rem 0;
    padding: 1rem 0;
    overflow: hidden;
}

.gallery-container {
    display: flex;
    overflow-x: auto;
    gap: 1.5rem;
    padding: 1rem 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE 10+ */
    -webkit-overflow-scrolling: touch;
}

.gallery-container::-webkit-scrollbar {
    display: none;
    /* Safari and Chrome */
}

.gallery-item {
    flex: 0 0 auto;
    width: 220px;
    border-radius: 20px;
    /* More rounded like a phone */
    cursor: pointer;
    transition: var(--transition);
    scroll-snap-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Heavier shadow */
    border: 2px solid rgb(255, 255, 255);
    /* Subtle red border */
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(233, 30, 99, 0.3);
    /* Red glow on hover */
    border-color: rgba(233, 30, 99, 0.8);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    outline: none;
    z-index: 1002;
}

.nav-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 50px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    padding: 20px;
    z-index: 1001;
    transition: all 0.2s ease;
    border-radius: 50%;
    user-select: none;
    line-height: 1;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* On mobile, arrows might overlap image so we make them smaller */
@media (max-width: 600px) {
    .nav-btn {
        padding: 10px;
        font-size: 30px;
        background: rgba(0, 0, 0, 0.5);
    }
}

/* Logo */
.logo {
    margin-bottom: 0.5rem;
    /* Reduced from 2rem */
}

.logo img {
    max-width: 120px;
    height: auto;
    border-radius: 22px;
    /* iOS-style curvature */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Main Title Gradient */
.main-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
    /* Reduced from 2rem */
    line-height: 1.1;
}

.title-top {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.title-bottom {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ff80ab 0%, #ff5252 100%);
    -webkit-background-clip: text;
    background-clip: text;
    /* Fix lint ID: dc72e819 */
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    padding-bottom: 10px;
    /* Prevent clipping of descenders */
}

/* Mobile adjustments */
@media (max-width: 600px) {

    .title-top,
    .title-bottom {
        font-size: 2.2rem;
    }
}

.logo-text {
    font-size: 2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    /* Fix lint ID: 8f6522c3 */
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Updated Buttons */
.buttons-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
    padding: 0 1rem;
    margin-left: -0.75rem;
    /* Compensate for button margins */
    margin-right: -0.75rem;
}

.buttons-container .btn {
    margin: 0.75rem;
    /* Explicit margin for robust spacing */
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(216, 27, 96, 0.3);
    background: var(--accent-gradient);
    /* Red Gradient Default */
}

/* Removed separate ios/android colors to keep uniform red theme */

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
    box-shadow: 0 10px 25px rgba(216, 27, 96, 0.5);
    color: #ffffff;
}

/* Ensure text remains white against red background */


.btn svg {
    margin-right: 0.5rem;
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--secondary-text);
}

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

.copyright {
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Page Content (Terms, Privacy) */
.page-content {
    text-align: left;
    align-items: flex-start;
    padding-top: 2rem;
}

.page-content h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #fff 0%, #a1a1a6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
}

.page-content p {
    margin-bottom: 1rem;
    color: var(--secondary-text);
}

.back-link {
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    color: var(--secondary-text);
    font-size: 0.9rem;
}

.back-link:hover {
    color: var(--text-color);
}

.back-link svg {
    margin-right: 0.5rem;
    width: 16px;
    height: 16px;
}