/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #FF6B35;
    --secondary-color: #4ECDC4;
    --dark-bg: #1a1a1a;
    --darker-bg: #0f0f0f;
    --light-text: #ffffff;
    --gray-text: #b0b0b0;
    --card-bg: #2a2a2a;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
}

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

/* Header & Navigation */
header {
    background-color: var(--darker-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    padding: 1rem 0;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: bold;
}

.logo span {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-icon {
    width: 40px !important;
    height: 40px !important;
    max-width: 40px;
    max-height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--light-text);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    background-color: var(--darker-bg);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    transition: right 0.3s ease;
    z-index: 1000;
    height: calc(100vh - 70px);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu a {
    display: block;
    padding: 1rem 2rem;
    color: var(--gray-text);
    text-decoration: none;
    transition: all 0.3s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-menu a:hover {
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.05);
    padding-left: 2.5rem;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 6rem 0 4rem;
    background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 1.8rem;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    max-width: 700px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #ff7f4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--light-text);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-large {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
}

/* Video Introduction Section */
.video-intro {
    padding: 4rem 0;
    background-color: var(--dark-bg);
}

.video-intro h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Screenshots Section */
.screenshots {
    padding: 4rem 0;
    background-color: var(--darker-bg);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.screenshot-item {
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    max-width: 300px;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

.screenshot-item p {
    margin-top: 1rem;
    color: var(--gray-text);
    font-weight: 500;
}

.screenshots h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.cta-more {
    text-align: center;
    margin-top: 2rem;
}

/* Gallery Page Styles */
.gallery-hero {
    padding: 6rem 0 3rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--bg-color) 100%);
}

.gallery-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.gallery-section {
    padding: 4rem 0;
}

.gallery-section:nth-child(even) {
    background-color: var(--darker-bg);
}

.gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.gallery-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(255, 99, 71, 0.2);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-caption {
    padding: 1.5rem;
}

.gallery-caption h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.gallery-caption p {
    color: var(--gray-text);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-hero h1 {
        font-size: 2rem;
    }
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(78, 205, 196, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--gray-text);
}

.feature-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.feature-card a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Compatibility Section */
.compatibility {
    padding: 5rem 0;
    background-color: var(--darker-bg);
}

.compatibility h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.compatibility-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.tested, .compatible {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
}

.tested h3, .compatible h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.compatibility ul {
    list-style: none;
    padding-left: 0;
}

.compatibility ul li {
    padding: 0.5rem 0;
    color: var(--gray-text);
    padding-left: 1.5rem;
    position: relative;
}

.compatibility ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.note {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
    color: var(--gray-text);
}

/* Coming Soon Section */
.coming-soon {
    padding: 5rem 0;
}

.coming-soon h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.roadmap {
    max-width: 800px;
    margin: 0 auto;
}

.roadmap-item {
    background-color: var(--card-bg);
    padding: 1.5rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s;
}

.roadmap-item:hover {
    transform: translateX(10px);
}

.roadmap-icon {
    font-size: 1.5rem;
}

/* Story Section */
.story {
    padding: 5rem 0;
    background-color: var(--dark-bg);
}

.story h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.story-content {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.story-text p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-text p:first-of-type {
    color: var(--light-text);
    font-size: 1.15rem;
}

.story-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.creator-photo {
    width: 100%;
    max-width: 250px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s;
}

.creator-photo:hover {
    transform: scale(1.05);
}

.image-caption {
    font-size: 0.85rem;
    color: var(--gray-text);
    font-style: italic;
    text-align: center;
}

/* Download Section */
.download {
    padding: 5rem 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    text-align: center;
}

.download h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.download-content {
    max-width: 600px;
    margin: 0 auto;
}

.download-text {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.pricing {
    color: var(--gray-text);
    margin: 2rem 0;
    font-size: 1.1rem;
}

.requirements {
    margin-top: 2rem;
    color: var(--gray-text);
    font-size: 0.9rem;
}

.beta-option {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--gray-text);
}

.beta-link {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s;
}

.beta-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-small {
    font-size: 0.95rem;
    padding: 0.7rem 1.5rem;
}

/* Footer */
footer {
    background-color: var(--darker-bg);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--gray-text);
}

.footer-section a {
    color: var(--gray-text);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-text);
}

.location-info {
    font-size: 0.75rem;
    color: var(--gray-text);
    opacity: 0.5;
    font-style: italic;
    margin-top: 0.5rem;
}

.build-info {
    font-size: 0.7rem;
    color: var(--gray-text);
    opacity: 0.4;
    font-family: monospace;
    margin-top: 0.5rem;
}

/* Legal Pages */
.legal-content {
    padding: 4rem 0;
    max-width: 900px;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
}

.last-updated {
    color: var(--gray-text);
    font-size: 0.9rem;
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--light-text);
    margin-bottom: 1rem;
}

.legal-section p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.legal-section ul li {
    padding: 0.5rem 0 0.5rem 1.5rem;
    color: var(--gray-text);
    position: relative;
    line-height: 1.6;
}

.legal-section ul li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.legal-section a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: var(--primary-color);
}

.legal-section strong {
    color: var(--light-text);
}

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

    .tagline {
        font-size: 1.3rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: flex !important;
    }

    .mobile-menu {
        display: block;
    }

    .feature-grid, .screenshot-grid {
        grid-template-columns: 1fr;
    }

    .compatibility-content {
        grid-template-columns: 1fr;
    }

    .story-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .story-text p {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }
}

/* Story Page Styles */
.story-page {
    padding: 5rem 0;
    background-color: var(--dark-bg);
}

.story-page h1 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, var(--primary-color), #ff8c42);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.story-intro .lead {
    font-size: 1.4rem;
    color: var(--light-text);
    line-height: 1.6;
}

.short-version-link {
    font-size: 1rem;
    color: var(--gray-text);
    margin-top: 1rem;
}

.short-version-link a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.short-version-link a:hover {
    color: #ff8c42;
    text-decoration: underline;
}

.story-hero-image {
    max-width: 1000px;
    margin: 3rem auto 4rem;
}

.collage-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease;
}

.collage-image:hover {
    transform: scale(1.02);
}

.story-detailed {
    max-width: 800px;
    margin: 0 auto;
}

.story-detailed h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.story-detailed h2:first-of-type {
    margin-top: 0;
}

.story-detailed p {
    color: var(--gray-text);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.story-detailed a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.story-detailed a:hover {
    color: #ff8c42;
    text-decoration: underline;
}

.strava-widget-section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
    text-align: center;
}

.strava-widget-section h2 {
    margin-top: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.strava-widget-section p {
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

.strava-widget-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.strava-widget-container iframe {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.connect-section {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin: 3rem 0;
}

.connect-section h2 {
    margin-top: 0;
    font-size: 1.8rem;
}

.connect-links {
    list-style: none;
    padding: 0;
}

.connect-links li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.connect-links li:last-child {
    border-bottom: none;
}

.connect-links strong {
    color: var(--light-text);
    display: inline-block;
    min-width: 120px;
}

.cta-box {
    background: linear-gradient(135deg, rgba(255, 105, 0, 0.1), rgba(255, 140, 66, 0.1));
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.cta-box h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.cta-box p {
    color: var(--light-text);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.cta-box .btn {
    color: #ffffff;
    background-color: var(--primary-color);
    border: none;
}

.cta-box .btn:hover {
    background-color: #ff8c42;
    color: #ffffff;
}

.story-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.story-link:hover {
    color: #ff8c42;
}

@media (max-width: 768px) {
    .story-page h1 {
        font-size: 2.2rem;
    }

    .story-intro .lead {
        font-size: 1.2rem;
    }

    .story-detailed h2 {
        font-size: 1.6rem;
    }

    .story-detailed p {
        font-size: 1rem;
    }

    .connect-links strong {
        display: block;
        margin-bottom: 0.25rem;
    }
}
