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

html {
    scroll-behavior: smooth;
}

:root {
    --accent-red: #ee3434;
    --accent-red-bright: #EF4444;
    --text-dark: #E5E5E5;
    --text-light: #A0A0A0;
    --bg-white: #121212;
    --bg-secondary: #1E1E1E;
    --border-color: #2A2A2A;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Page-specific body styles */
body.page-content {
    line-height: 1.8;
    padding: 40px 20px;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    width: 100%;
}

.container.page-container {
    max-width: 900px;
    padding: 0;
}

/* Header Section */
.header {
    display: flex;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.header-content {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.header-screenshots {
    flex: 1;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header.page-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
}

.logo-container {
    margin-bottom: 30px;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    box-shadow: 0 8px 24px rgba(220, 38, 38, 0.2);
    margin: 0 auto;
    display: block;
}

.logo.page-logo {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: none;
}

.app-name {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.description {
    font-size: 20px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.7;
}

/* App Store Buttons */
.app-store-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.app-store-button {
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    height: 60px;
}

.app-store-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.app-store-button img {
    height: 60px;
    width: auto;
}

/* Email Signup Section */
.email-signup-section {
    text-align: center;
    margin: 80px 0;
    padding: 60px 20px;
    background: var(--bg-secondary);
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.email-signup-title {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 0;
    margin-bottom: 15px;
}

.email-signup-description {
    font-size: 18px;
    color: var(--text-light);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.email-signup-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.email-input {
    flex: 1;
    min-width: 250px;
    padding: 16px 20px;
    font-size: 16px;
    background-color: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-dark);
    transition: all 0.2s ease;
    font-family: inherit;
}

.email-input:focus {
    outline: none;
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(238, 52, 52, 0.1);
}

.email-input::placeholder {
    color: var(--text-light);
}

.submit-button {
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    background-color: var(--accent-red);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.submit-button:hover {
    background-color: var(--accent-red-bright);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(238, 52, 52, 0.3);
}

.submit-button:active {
    transform: translateY(0);
}

.form-message {
    margin-top: 20px;
    font-size: 14px;
    display: none;
    padding: 12px;
    border-radius: 8px;
}

.form-message.success {
    display: block;
    color: #4ade80;
    background-color: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.form-message.error {
    display: block;
    color: #f87171;
    background-color: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
}

/* Screenshots Carousel */
.screenshot-carousel {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 19.5;
}

/* App Description Section */
.app-description-section {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px 20px;
    text-align: left;
}

.app-description-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
}

.qa-item {
    margin-bottom: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.qa-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.qa-question {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.4;
}

.qa-answer {
    margin-bottom: 0;
    line-height: 1.8;
    color: var(--text-light);
    font-size: 16px;
}

.qa-answer a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: inherit;
    transition: color 0.2s ease;
}

.qa-answer a:hover {
    color: var(--text-dark);
    text-decoration: underline;
}

/* Mobile Screenshots Section - Hidden on desktop */
.mobile-screenshots-section {
    display: none;
}

.header-screenshots .screenshot-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}

.header-screenshots .screenshot-item.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.screenshot-item {
    aspect-ratio: 9 / 19.5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    background: var(--bg-secondary);
}

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

/* Footer */
.footer {
    margin-top: auto;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--accent-red);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.2s ease;
    position: relative;
}

.footer-link:hover {
    color: var(--accent-red-bright);
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-red);
    transition: width 0.2s ease;
}

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

.copyright {
    color: var(--text-light);
    font-size: 14px;
    margin-top: 20px;
}

/* Page Content Styles */
.content {
    margin-top: 40px;
}

h1 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.last-updated {
    color: var(--text-light);
    font-size: 14px;
}

h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 40px;
    margin-bottom: 15px;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 10px;
}

p {
    margin-bottom: 15px;
    color: var(--text-dark);
}

ul, ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 8px;
    color: var(--text-dark);
}

.back-link {
    display: inline-block;
    margin-top: 40px;
    color: var(--accent-red);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--accent-red-bright);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
        display: flex;
        flex-direction: column;
    }

    .app-name {
        font-size: 36px;
    }

    .description {
        font-size: 18px;
        margin-bottom: 30px;
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .logo-container {
        margin-bottom: 20px;
    }

    .header {
        flex-direction: column;
        gap: 25px;
        margin-bottom: 30px;
        max-height: 65vh;
        overflow: hidden;
    }

    .header-content {
        min-width: 100%;
        flex-shrink: 0;
    }

    .header-screenshots {
        min-width: 100%;
        display: none;
    }

    .screenshot-carousel {
        max-width: 200px;
    }

    .mobile-screenshots-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin: 30px 0;
        order: 2;
    }

    .mobile-screenshot-item {
        width: 100%;
        max-width: 280px;
        aspect-ratio: 9 / 19.5;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        background: var(--bg-secondary);
    }

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

    .app-description-section {
        margin: 40px auto;
        padding: 30px 15px;
        order: 3;
    }

    .email-signup-section {
        order: 4;
    }

    .app-store-buttons {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .app-store-button {
        height: 50px;
    }

    .app-store-button img {
        height: 50px;
    }

    .email-signup-section {
        padding: 30px 15px;
        margin: 30px 0 20px 0;
        min-height: 200px;
    }

    .email-signup-title {
        font-size: 24px;
    }

    .email-signup-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .form-group {
        flex-direction: column;
    }

    .email-input {
        min-width: 100%;
        width: 100%;
    }

    .submit-button {
        width: 100%;
    }


    .app-description-section h2 {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .qa-item {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .qa-question {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .qa-answer {
        font-size: 15px;
    }

    .footer-links {
        flex-direction: column;
        gap: 15px;
    }

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    .container.page-container {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 15px 10px;
        min-height: calc(100vh - 100px);
        display: flex;
        flex-direction: column;
    }

    .app-name {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .description {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .logo {
        width: 70px;
        height: 70px;
    }

    .logo-container {
        margin-bottom: 15px;
    }

    .header {
        gap: 20px;
        margin-bottom: 25px;
        max-height: 60vh;
    }

    .header-screenshots {
        max-height: 200px;
        display: none;
    }

    .screenshot-carousel {
        max-width: 160px;
    }

    .email-signup-section {
        padding: 25px 15px;
        margin: 25px 0 15px 0;
        min-height: 180px;
    }

    .email-signup-title {
        font-size: 22px;
    }

    .app-description-section {
        margin: 30px auto;
        padding: 25px 15px;
        order: 3;
    }

    .app-description-section h2 {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .email-signup-section {
        order: 4;
    }

    .qa-item {
        margin-bottom: 20px;
        padding-bottom: 18px;
    }

    .qa-question {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .qa-answer {
        font-size: 14px;
    }

    .mobile-screenshots-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin: 30px 0;
        order: 2;
    }

    .mobile-screenshot-item {
        width: 100%;
        max-width: 280px;
        aspect-ratio: 9 / 19.5;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
        background: var(--bg-secondary);
    }

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

    .app-description-section {
        order: 3;
    }

    .email-signup-section {
        order: 4;
    }
}
