:root {
    --bg-color: #0A1118;
    /* Deep Off-Black Navy */
    --text-primary: #ecf0f1;
    --text-secondary: #bdc3c7;
    --accent-gold: #D4AF37;
    --accent-gold-hover: #b3922d;
    --card-bg: #1c2b3a;
    /* Slightly adjusted for contrast */
}

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

body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    /* Center the wrapper */
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    /* Prevent horizontal scroll from marquees */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/background.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    /* Very transparent */
    pointer-events: none;
    z-index: -1;
}

.app-wrapper {
    width: 100%;
    max-width: 940px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header */
.main-header {
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-direction: column;
    padding-top: 4rem;
    /* Additional padding */
}

.logo-icon {
    height: 6rem;
    /* Bigger icon */
    width: auto;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    animation: iconFloat 4s ease-in-out infinite alternate;
}

@keyframes iconFloat {
    0% {
        transform: translateY(0px);
    }

    100% {
        transform: translateY(-8px);
    }
}

h1,
h2,
h3 {
    font-family: 'Open Sans', sans-serif;
}

.logo-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 4rem;
    color: var(--text-primary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.1;
    margin-bottom: 0.2rem;
}

.logo-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
    margin-top: 0;
    text-wrap: balance;
}

@media (max-width: 600px) {
    .logo-text {
        font-size: 2.4rem;
        letter-spacing: 1px;
    }

    .logo-subtitle {
        font-size: 1rem;
        max-width: 280px;
    }

    .logo-description {
        font-size: 0.8rem;
    }
}

.logo-description {
    font-size: 0.9rem;
    /* Smaller */
    color: rgba(255, 255, 255, 0.5);
    /* More transparent */
    max-width: 600px;
    line-height: 1.6;
}

.content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 0;
    gap: 4rem;
}

/* Section Headers */
.section-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* Center align items */
    margin-bottom: 1rem;
    padding: 0 1.5rem;
    /* Padding on both sides */
}

.view-all-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    /* margin-bottom removed */
    transition: color 0.3s;
    line-height: 1.5;
    /* Match roughly with text */
}

.view-all-link:hover {
    color: var(--accent-gold);
}

.view-all-link .arrow {
    font-size: 1.1em;
    margin-left: 0.3rem;
}

.section-label {
    font-size: 1.2rem;
    color: var(--text-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-label .accent-icon {
    color: var(--accent-gold);
}

/* Testimonials */
.testimonials-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    overflow: hidden;
}

.testimonial-row {
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    /* Improve performance for masking on mobile */
    -webkit-mask-composite: source-in;
    mask-composite: intersect;
}

.testimonial-track {
    display: inline-flex;
    gap: 2rem;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: paused;
    /* Hardware acceleration for mobile performance */
    will-change: transform;
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}



.screenshot-container {
    padding: 2rem 1.5rem;
    /* Added side padding to prevent overflow/cutoff */
    position: relative;
    /* Ensure container has space for the absolute layered image */
    width: 100%;
    /* Ensure full width */
}

.app-screenshot {
    width: 100%;
    /* Full width */
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block;
    position: relative;
    z-index: 1;
}

.app-screenshot.layered {
    position: absolute;
    top: 3%;
    /* Moved down 3% */
    right: 12%;
    /* Moved left ~10% */
    z-index: 2;
    border: none;
    box-shadow: none;
    width: 18%;
    /* Smaller 10% (from 20% to 18%) */
}

.row-left .testimonial-track {
    animation-name: slideLeft;
}

.row-right .testimonial-track {
    animation-name: slideRight;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
    min-width: 300px;
    max-width: 400px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    white-space: normal;
    /* Allow text to wrap inside card */
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.testimonial-card .author {
    display: block;
    text-align: right;
    font-weight: 600;
    color: var(--accent-gold);
}

@keyframes slideLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
        /* Adjust based on duplication */
    }
}

@keyframes slideRight {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}



.features-grid {
    padding: 0 1.5rem;
    /* Padding for the grid content instead */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
    text-align: left;
    /* Left align content */
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    /* Block display for left alignment */
}

.feature-icon-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
    display: block;
}



.feature-card h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 800;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.5);
    /* More transparent */
    font-size: 0.85rem;
    /* Smaller */
    line-height: 1.6;
}

/* Platforms Section */
.platforms-grid {
    padding: 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.platform-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: default;
}

.platform-item:hover {
    border-color: var(--accent-gold);
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Featured In Section */
.featured-grid-top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.featured-grid-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 0 1.5rem;
}

.featured-card-large,
.featured-card-small {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.featured-card-large:hover,
.featured-card-small:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.featured-card-large {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-card-large .card-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.featured-card-large h4 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
}

.featured-card-large .quote {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.featured-card-large .author {
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-card-small {
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    /* Keep links from having underlines */
    color: inherit;
    /* Ensure text color doesn't change to standard link blue */
    display: block;
    /* Ensure it behaves as a container if it's an 'a' tag */
}

a.featured-card-small:hover,
a.featured-card-small:active,
a.featured-card-small:visited {
    color: inherit;
    /* Prevent color changes */
    text-decoration: none;
}

.featured-card-small .feature-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.featured-card-small h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.featured-card-small .coming-soon {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Newsletter */
.newsletter-section {
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-section h2 {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.newsletter-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.newsletter-form input {
    padding: 0.8rem 1.2rem;
    border-radius: 4px;
    border: 1px solid #445566;
    background: #151e27;
    color: white;
    font-size: 1rem;
    flex: 1;
    min-width: 250px;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-gold);
}

.newsletter-form button {
    padding: 0.8rem 2rem;
    background: var(--accent-gold);
    color: #1B2631;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.newsletter-form button:hover {
    background: var(--accent-gold-hover);
}

/* Footer */
.main-footer {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
}

.credits {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.credits a {
    color: #5d6d7e;
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Code Entry Page */
.code-entry-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding-bottom: 15vh;
    /* Push content up to optically center it with the large header */
}

.code-input-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    max-width: 500px;
}

@media (max-width: 600px) {
    .code-input-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
}

.code-input {
    background: transparent;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--accent-gold);
    font-size: 2rem;
    font-family: 'Michroma', sans-serif;
    /* Tech feel */
    letter-spacing: 1rem;
    padding: 1rem;
    text-align: center;
    width: 100%;
    max-width: 280px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

@media (max-width: 600px) {
    .code-input {
        font-size: 1.5rem;
        letter-spacing: 0.5rem;
        padding: 0.8rem;
    }

    .enter-btn {
        width: 100%;
        max-width: 280px;
    }
}

.code-input:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.enter-btn {
    background: var(--accent-gold);
    color: #1B2631;
    border: none;
    padding: 20px;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 280px;
}

.enter-btn:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-2px);
}

.enter-btn:active {
    transform: translateY(0);
}

/* Logo Link */
.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

/* Download Section */
.download-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.download-btn {
    background: var(--accent-gold);
    color: #1B2631;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.download-btn:hover {
    background: var(--accent-gold-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    border-color: var(--accent-gold);
}

.download-btn i {
    font-size: 2rem;
}

.btn-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.btn-main {
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.btn-sub {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.8;
}

/* Reviews Page Grid */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-bottom: 4rem;
    justify-items: center;
    padding: 0 1.5rem;
}

.reviews-grid .testimonial-card {
    min-width: 0;
    margin: 0;
    cursor: default;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.reviews-grid .testimonial-card:hover {
    transform: translateY(-5px);
    border-color: rgba(212, 175, 55, 0.3);
}