/* --- Global Styles & Variables --- */
@font-face {
    font-family: 'Silkscreen-Bold';
    src: url('fonts/Silkscreen/Silkscreen-Bold.ttf') format('truetype');
}
@font-face {
    font-family: 'Silkscreen-Regular';
    src: url('fonts/Silkscreen/Silkscreen-Regular.ttf') format('truetype');
}
@font-face {
    font-family: 'TurretRoad-ExtraBold';
    src: url('fonts/Turret_Road/TurretRoad-ExtraBold.ttf') format('truetype');
}
@font-face {
    font-family: 'TurretRoad-ExtraLight';
    src: url('fonts/Turret_Road/TurretRoad-ExtraLight.ttf') format('truetype');
}
@font-face {
    font-family: 'TurretRoad-Regular';
    src: url('fonts/Turret_Road/TurretRoad-Regular.ttf') format('truetype');
}

:root {
    --dark-bg: #0D0D0D;
    /* Near Black */
    --primary-text: #E0E0E0;
    /* Light Grey */
    --secondary-text: #A0A0A0;
    /* Medium Grey */
    --accent-color: #c574f3;
    /* Cyberpunk Blue */
    --accent-hover: #d19af1;
    /* Slightly darker blue for hover */
    --border-color: #333333;
    /* Dark grey border */

    --font-heading: 'Exo 2', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1140px;
    --spacing-unit: 1rem;
    /* Base spacing unit (adjust as needed) */
}

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

html {
    font-size: 16px;
    /* Base font size */
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--primary-text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 1.5);
    /* Add horizontal padding */
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: calc(var(--spacing-unit) * 1);
    color: var(--primary-text);
    /* Ensure headings are bright */
}

h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4rem);
    /* Responsive font size */
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    font-family: 'Silkscreen-Regular'
}

h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 3);
    /* More space below section titles */
}

h3 {
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
    color: var(--primary-text);
    /* Slightly less emphasis than H2 */
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

p {
    margin-bottom: var(--spacing-unit);
    color: var(--secondary-text);
    max-width: 70ch;
    /* Improve readability */
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover,
a:focus {
    color: var(--accent-hover);
    text-decoration: underline;
    /* Add underline on hover for clarity */
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: calc(var(--spacing-unit) * 5) 0;
    /* Vertical padding for sections */
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 0.8) calc(var(--spacing-unit) * 1.8);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    /* Slightly rounded corners, adjust if needed */
    cursor: pointer;
    transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border-color 0.2s ease-in-out;
    border: 2px solid transparent;
    margin: calc(var(--spacing-unit) * 0.5);
    /* Space between buttons */
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--dark-bg);
    /* Text color for primary button */
    border-color: var(--accent-color);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--dark-bg);
    text-decoration: none;
}

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

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: rgba(0, 255, 255, 0.1);
    /* Subtle background on hover */
    color: var(--accent-hover);
    border-color: var(--accent-hover);
    text-decoration: none;
}

/* --- Hero Section --- */
.hero {
    min-height: 90vh;
    /* Make hero take most of the screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) 0;
    /* Optional: Add a subtle background pattern or gradient */
    /* background: linear-gradient(rgba(13, 13, 13, 0.8), rgba(13, 13, 13, 1)), url('your-background.jpg') center/cover no-repeat; */
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2vw + 0.5rem, 1.4rem);
    color: var(--primary-text);
    max-width: 650px;
    margin: 0 auto calc(var(--spacing-unit) * 2);
}

p {
    font-family: 'TurretRoad-ExtraBold';
}

.hero .cta-buttons {
    margin-top: calc(var(--spacing-unit) * 1.5);
}

/* --- Features Section --- */
.features {
    background-color: #121212;
    /* Slightly different dark shade */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* Responsive grid */
    gap: calc(var(--spacing-unit) * 3);
    text-align: center;
}

.feature-item {
    /* Optional: Add subtle border or background */
    /* border: 1px solid var(--border-color); */
    /* padding: var(--spacing-unit) * 1.5; */
    /* background-color: rgba(255, 255, 255, 0.02); */
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: var(--spacing-unit);
    /* Replace text with actual icons (e.g., Font Awesome) */
    font-family: sans-serif;
    /* Fallback for bracketed text */
    font-weight: bold;
}

/* --- Benefits Section --- */
.benefits .container {
    max-width: 900px;
    /* Slightly narrower for text-heavy content */
}

.benefit-item {
    margin-bottom: calc(var(--spacing-unit) * 3);
    /* Optional: Add visual separation */
    /* border-bottom: 1px solid var(--border-color); */
    /* padding-bottom: calc(var(--spacing-unit) * 2); */
}

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

.benefit-item p {
    margin-left: auto;
    /* Align text if using alternating layout */
    margin-right: auto;
}


/* --- Final Call to Action Section --- */
.final-cta {
    background-color: var(--accent-color);
    text-align: center;
    padding: calc(var(--spacing-unit) * 4) 0;
}

.final-cta h2 {
    color: var(--dark-bg);
    /* Dark text on accent background */
}

.final-cta p {
    color: rgba(13, 13, 13, 0.9);
    /* Dark, slightly transparent text */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .btn-primary {
    background-color: var(--dark-bg);
    color: var(--accent-color);
    border-color: var(--dark-bg);
}

.final-cta .btn-primary:hover,
.final-cta .btn-primary:focus {
    background-color: #222;
    /* Slightly lighter dark */
    border-color: #222;
    color: var(--accent-color);
}

.final-cta .btn-secondary {
    color: var(--dark-bg);
    border-color: var(--dark-bg);
}

.final-cta .btn-secondary:hover,
.final-cta .btn-secondary:focus {
    background-color: rgba(13, 13, 13, 0.1);
    color: var(--dark-bg);
    border-color: var(--dark-bg);
}


/* --- Footer --- */
footer {
    padding: calc(var(--spacing-unit) * 2) 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
    margin-top: calc(var(--spacing-unit) * 3);
}

footer p {
    color: var(--secondary-text);
    font-size: 0.9rem;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.footer-nav a {
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin: 0 calc(var(--spacing-unit) * 0.75);
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: var(--accent-color);
}

/* --- Responsiveness --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .feature-grid {
        gap: calc(var(--spacing-unit) * 2);
    }

    .hero {
        min-height: 70vh;
    }

    .cta-buttons .btn {
        display: block;
        /* Stack buttons on small screens */
        width: 80%;
        max-width: 300px;
        margin: var(--spacing-unit) auto;
        /* Center stacked buttons */
    }
}

:root {
    --primary-color: #602284;
    --secondary-color: #b9b9b9; /* A light complementary color */
    --text-dark: #333;
    --text-light: #fff;
    --border-radius-main: 8px;
    --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.1);
    --shadow-primary-glow: 0 0 15px rgba(96, 34, 132, 0.3);
}

.feature-screenshot-reporting {
    padding: 60px 20px;
    background-color: #d9aff3;
    text-align: center;
}

.feature-screenshot-reporting .container {
    max-width: 1100px;
    margin: 0 auto;
}

.feature-screenshot-reporting .section-title {
    font-size: 2.5rem; /* Adjust as needed */
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature-screenshot-reporting .section-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.reporting-steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.step {
    display: flex;
    align-items: center;
    gap: 30px;
    text-align: left;
    opacity: 0; /* For fade-in animation */
    transform: translateY(20px); /* For fade-in animation */
    animation: fadeInStep 0.8s ease-out forwards;
}

/* Stagger animations for steps */
.step:nth-child(2) {
    animation-delay: 0.2s;
}
.step:nth-child(3) {
    animation-delay: 0.4s;
}


.step-reverse {
    flex-direction: row-reverse;
}

.screenshot-placeholder {
    flex: 1;
    min-width: 250px; /* Minimum width */
    max-width: 450px; /* Maximum width */
    aspect-ratio: 9 / 16; /* Common phone screen ratio, adjust as needed */
    background-color: #e0e0e0; /* Placeholder background */
    border-radius: var(--border-radius-main);
    box-shadow: var(--shadow-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* If you plan to put actual images */
}

#placeholder-select-app {
    aspect-ratio: unset; /* Remove fixed aspect ratio */
    height: auto;        /* Allow height to adjust to content */
}

/* Default aspect ratio (portrait for app screens) */
#placeholder-app-match-list {
    aspect-ratio: unset; /* Remove fixed aspect ratio */
    width: auto;
}

#placeholder-select-app img {
    width: 100%;         /* Make image fill container width */
    height: auto;        /* Adjust height automatically to maintain aspect ratio */
    display: block;      /* Prevents extra space below the image */
}

#placeholder-app-match-list img {
    height: 100%;         /* Make image fill container width */
    width: auto;        /* Adjust height automatically to maintain aspect ratio */
    display: block;      /* Prevents extra space below the image */
}

/* Landscape aspect ratio for the first screenshot (game) */
#placeholder-share-gallery {
    aspect-ratio: 16 / 9;
     /* You might want to adjust max-width specifically for landscape if needed,
       but the general max-width should still work. Test with your actual image. */
}

.screenshot-placeholder:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.screenshot-placeholder .placeholder-text {
    color: #777;
    font-style: italic;
    font-size: 0.9rem;
}

/* Specific style for the main app UI showcase */
.app-ui-showcase {
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-primary-glow);
}


.step-content {
    flex: 1.5; /* Give more space to text content */
}

.step-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
}

.feature-cta {
    margin-top: 60px;
}

.cta-button {
    font-family: 'Exo 2', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 15px 35px;
    text-decoration: none;
    border-radius: var(--border-radius-main);
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    box-shadow: var(--shadow-light);
}

.cta-button:hover {
    background-color: #4a1b69; /* Darker shade of primary */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

/* Fade-in animation for steps */
@keyframes fadeInStep {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .step, .step-reverse {
        flex-direction: column;
        text-align: center;
    }

    .screenshot-placeholder {
        width: 90%; /* Allow landscape to use more width if available */
        max-width: 400px; /* Max width for landscape on mobile */
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 20px;
    }

    /* Ensure portrait placeholders don't become too narrow */
    #placeholder-select-app,
    #placeholder-app-match-list {
        max-width: 320px; /* More constrained width for portrait on mobile */
    }

    .feature-screenshot-reporting .section-title {
        font-size: 2rem;
    }
    .step-content h3 {
        font-size: 1.5rem;
    }
}