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

:root {
    --primary-light: #58928D;
    --on-primary-light: #FFFFFF;
    --primary-container-light: #D1EDE9;
    --on-primary-container-light: #0F3A36;

    --secondary-light: #4A6360;
    --on-secondary-light: #FFFFFF;
    --secondary-container-light: #CCE8E4;
    --on-secondary-container-light: #05201D;

    --surface-light: #FAFDFB;
    --on-surface-light: #191C1C;
    --surface-variant-light: #DAE5E2;
    --on-surface-variant-light: #3F4946;

    --background-light: #FAFDFB;
    --on-background-light: #191C1C;

    --outline-light: #6F7977;
    --shadow-light: rgba(0, 0, 0, 0.15);

    --primary-dark: #92D4CE;
    --on-primary-dark: #00504A;
    --primary-container-dark: #006A63;
    --on-primary-container-dark: #B1F0EA;

    --secondary-dark: #B0CCC7;
    --on-secondary-dark: #1B3532;
    --secondary-container-dark: #324B48;
    --on-secondary-container-dark: #CCE8E4;

    --surface-dark: #191C1C;
    --on-surface-dark: #E0E3E1;
    --surface-variant-dark: #3F4946;
    --on-surface-variant-dark: #BFC9C6;

    --background-dark: #191C1C;
    --on-background-dark: #E0E3E1;

    --outline-dark: #899390;
    --shadow-dark: rgba(0, 0, 0, 0.5);
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.light-mode {
    background-color: var(--background-light);
    color: var(--on-background-light);
}

body.dark-mode {
    background-color: var(--background-dark);
    color: var(--on-background-dark);
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: background-color 0.3s;
}

.light-mode header {
    background-color: rgba(250, 253, 251, 0.95);
}

.dark-mode header {
    background-color: rgba(25, 28, 28, 0.95);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
    cursor: pointer;
}

.logo:hover {
    opacity: 0.8;
}

.light-mode .logo {
    color: var(--primary-light);
}

.dark-mode .logo {
    color: var(--primary-dark);
}

.logo-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    object-fit: contain;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s;
    color: inherit;
}

.light-mode .theme-toggle {
    color: var(--on-surface-variant-light);
}

.dark-mode .theme-toggle {
    color: var(--on-surface-variant-dark);
}

.light-mode .theme-toggle:hover {
    color: var(--primary-light);
}

.dark-mode .theme-toggle:hover {
    color: var(--primary-dark);
}

nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    color: inherit;
}

.light-mode .mobile-menu-toggle {
    color: var(--on-surface-variant-light);
}

.dark-mode .mobile-menu-toggle {
    color: var(--on-surface-variant-dark);
}

.light-mode .mobile-menu-toggle:hover {
    color: var(--primary-light);
}

.dark-mode .mobile-menu-toggle:hover {
    color: var(--primary-dark);
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    z-index: 999;
    padding: 2rem;
    backdrop-filter: blur(10px);
}

.light-mode .mobile-nav {
    background-color: rgba(250, 253, 251, 0.95);
}

.dark-mode .mobile-nav {
    background-color: rgba(25, 28, 28, 0.95);
}

.mobile-nav.active {
    display: flex;
}

.mobile-nav a {
    padding: 1rem 0;
    border-bottom: 1px solid;
    text-align: center;
    font-size: 1.1rem;
}

.light-mode .mobile-nav a {
    border-color: var(--outline-light);
}

.dark-mode .mobile-nav a {
    border-color: var(--outline-dark);
}

.mobile-nav-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 2rem 0 1rem;
}

.mobile-nav-icons a,
.mobile-nav-icons button {
    border-bottom: none !important;
    padding: 0.5rem;
}

.desktop-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.desktop-nav a {
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 0.95rem;
}

nav a i {
    font-size: 1.5rem;
}

.light-mode nav a {
    color: var(--on-surface-variant-light);
}

.dark-mode nav a {
    color: var(--on-surface-variant-dark);
}

.light-mode nav a:hover {
    color: var(--primary-light);
}

.dark-mode nav a:hover {
    color: var(--primary-dark);
}

/* Animation Keyframes */
@keyframes slideInLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    padding: 8rem 5% 4rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    order: 2;
}

.hero-screenshot {
    order: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: slideInLeft 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.2s both;
}

.screenshot-placeholder {
    width: 100%;
    max-width: 350px;
    aspect-ratio: 9/19.5;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}

.screenshot-image {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: 32px;
    padding: 8px;
    transition: all 0.3s;
}

.light-mode .screenshot-image {
    background: var(--primary-container-light);
    box-shadow: 0 8px 32px var(--shadow-light);
}

.dark-mode .screenshot-image {
    background: var(--primary-container-dark);
    box-shadow: 0 8px 32px var(--shadow-dark);
}

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

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    animation: slideInBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.4s both;
}

.light-mode .hero h1 {
    color: var(--on-background-light);
}

.dark-mode .hero h1 {
    color: var(--on-background-dark);
}

.hero .tagline {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 1rem;
    animation: slideInBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.6s both;
}

.light-mode .hero .tagline {
    color: var(--primary-light);
}

.dark-mode .hero .tagline {
    color: var(--primary-dark);
}

.hero .description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    line-height: 1.7;
    animation: slideInBottom 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.8s both;
}

.download-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) 1.2s both;
}

.download-badge {
    padding: 1rem 1.5rem;
    border-radius: 16px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    text-align: center;
}

.light-mode .download-badge {
    background: var(--surface-variant-light);
    color: var(--on-surface-light);
}

.dark-mode .download-badge {
    background: var(--surface-variant-dark);
    color: var(--on-surface-dark);
}

.download-badge:hover {
    transform: translateY(-4px);
}

.light-mode .download-badge:hover {
    box-shadow: 0 8px 24px var(--shadow-light);
}

.dark-mode .download-badge:hover {
    box-shadow: 0 8px 24px var(--shadow-dark);
}

.download-badge-icon {
    font-size: 2rem;
}

.download-badge-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.download-badge-image {
    display: inline-block;
    transition: all 0.3s;
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.download-badge-image:nth-child(1) {
    animation-delay: 1.4s;
}

.download-badge-image:nth-child(2) {
    animation-delay: 1.5s;
}

.download-badge-image:nth-child(3) {
    animation-delay: 1.6s;
}

.download-badge-image:nth-child(4) {
    animation-delay: 1.7s;
}

.download-badge-image img {
    height: 80px;
    width: auto;
}

.download-badge-image:hover {
    transform: translateY(-4px);
    filter: brightness(1.3);
}


.stats {
    padding: 2rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    animation: slideInRight 1s cubic-bezier(0.4, 0, 0.2, 1) 1.2s both;
}

.stat-item {
    padding: 1.5rem 1rem;
    text-align: center;
    border-radius: 16px;
    transition: all 0.3s;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.stat-item:nth-child(1) {
    animation-delay: 1.4s;
}

.stat-item:nth-child(2) {
    animation-delay: 1.5s;
}

.stat-item:nth-child(3) {
    animation-delay: 1.6s;
}

.stat-item:nth-child(4) {
    animation-delay: 1.7s;
}

.light-mode .stat-item {
    background: rgba(218, 229, 226, 0.3);
}

.dark-mode .stat-item {
    background: rgba(63, 73, 70, 0.3);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.light-mode .stat-number {
    color: var(--primary-light);
}

.dark-mode .stat-number {
    color: var(--primary-dark);
}

.stat-label {
    font-size: 0.95rem;
    opacity: 0.8;
}


.features {
    padding: 4rem 5%;
    /* make padding top a bit bigger */
    padding-top: 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 4rem;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: -2rem;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-content {
    padding: 2rem;
}

.feature-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.light-mode .feature-content h3 {
    color: var(--primary-light);
}

.dark-mode .feature-content h3 {
    color: var(--primary-dark);
}

.feature-content p {
    font-size: 1.1rem;
    opacity: 0.85;
    line-height: 1.7;
}

.feature-screenshot {
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-screenshot-placeholder {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 9/19.5;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.light-mode .feature-screenshot-placeholder {
    background: transparent;
    border: 2px solid var(--outline-light);
    box-shadow: 0 4px 16px var(--shadow-light);
}

.dark-mode .feature-screenshot-placeholder {
    background: transparent;
    border: 2px solid var(--outline-dark);
    box-shadow: 0 4px 16px var(--shadow-dark);
}

.feature-screenshot-placeholder:hover {
    transform: scale(1.05);
}

.feature-row:nth-child(even) .feature-content {
    order: 2;
}

.feature-row:nth-child(even) .feature-screenshot {
    order: 1;
}

.contributing {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.contributing-card {
    padding: 2rem;
    border-radius: 24px;
    transition: all 0.3s;
}

.light-mode .contributing-card {
    background: var(--surface-variant-light);
    color: var(--on-surface-light);
}

.dark-mode .contributing-card {
    background: var(--surface-variant-dark);
    color: var(--on-surface-dark);
}

.contributing-card:hover {
    transform: translateY(-4px);
}

.light-mode .contributing-card:hover {
    box-shadow: 0 8px 24px var(--shadow-light);
}

.dark-mode .contributing-card:hover {
    box-shadow: 0 8px 24px var(--shadow-dark);
}

.contributing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contributing-card p {
    opacity: 0.85;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.contributing-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: opacity 0.3s;
}

.light-mode .contributing-link {
    color: var(--primary-light);
}

.dark-mode .contributing-link {
    color: var(--primary-dark);
}

.contributing-link:hover {
    opacity: 0.7;
}

footer {
    padding: 3rem 5%;
    text-align: center;
    margin-top: 4rem;
}

.light-mode footer {
    background: var(--surface-variant-light);
    color: var(--on-surface-variant-light);
}

.dark-mode footer {
    background: var(--surface-variant-dark);
    color: var(--on-surface-variant-dark);
}

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

.footer-links a {
    text-decoration: none;
    transition: opacity 0.3s;
}

.light-mode .footer-links a {
    color: var(--on-surface-variant-light);
}

.dark-mode .footer-links a {
    color: var(--on-surface-variant-dark);
}

.footer-links a:hover {
    opacity: 0.7;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-content {
        order: 1;
        text-align: center;
    }

    .hero-screenshot {
        order: 2;
    }

    .download-badges {
        justify-content: center;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .feature-row:nth-child(even) .feature-content,
    .feature-row .feature-content {
        order: 1;
    }

    .feature-row:nth-child(even) .feature-screenshot,
    .feature-row .feature-screenshot {
        order: 2;
    }

    .feature-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .desktop-nav {
        display: none;
    }

    .hero {
        padding: 6rem 5% 3rem;
    }

    .download-badges {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}