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

:root {
    --bg: #f2f2f2;
    --text-primary: #0a0a0a;
    --text-tertiary: #9a9a9a;
    --accent: #0a0a0a;
    --white: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --text-primary: #ffffff;
        --text-tertiary: #808080;
        --accent: #ffffff;
        --white: #0a0a0a;
        --border: #ffffff;
    }

    .logo img {
        filter: invert(1);
    }
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: rgba(242, 242, 242, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(10, 10, 10, 0.1);
    z-index: 10;
}

.header-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.header-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.header-links a:hover {
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    .header {
        background: rgba(18, 18, 18, 0.8);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.container {
    min-height: calc(100vh - 180px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 6rem; 
    position: relative;
    z-index: 2;
}



.content-wrapper {
    width: 100%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.app-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.app-showcase::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
}

.app-demo-img {
    width: 100%;
    max-width: 600px;
    object-fit: contain;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.08));
    animation: float 6s ease-in-out infinite;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-demo-img:hover {
    transform: translateY(-5px) scale(1.02);
    filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.12));
}

.content {
    animation: fadeIn 0.8s ease-out;
}

.logo {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    margin-left: -6px;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.logo img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.1);
}

@keyframes fadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

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

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

h1 {
    font-family: 'Roboto', sans-serif;
    /* slightly reduced headline size */
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.subtitle {
    /* slightly reduced subtitle */
    font-size: clamp(.75rem, 2vw, 1.125rem);
    letter-spacing: 0.02em;
    color: var(--text-tertiary);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
}

.download-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.7s forwards;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 32px;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.6375rem;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* App Store */
.download-btn.app-store {
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
}

@media (prefers-color-scheme: dark) {
    .download-btn.app-store {
        border-color: rgba(255, 255, 255, 0.5);
    }
}

.download-btn.app-store::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.download-btn.app-store:hover::before {
    width: 300px;
    height: 300px;
}

.download-btn.app-store:hover {
    transform: translateY(-3px);
    transform: scale(.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
    border-color: #444;
}

/* Google Play */
.download-btn.play-store {
    background: transparent;
    color: var(--accent);
    border: 2px solid rgba(10, 10, 10, 0.2);
    backdrop-filter: blur(10px);
}

@media (prefers-color-scheme: dark) {
    .download-btn.play-store {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.download-btn.play-store:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(10, 10, 10, 0.2);
    transform: scale(.9);
    filter: brightness(.9);
}

@media (prefers-color-scheme: dark) {
    .download-btn.play-store:hover {
        transform: scale(.9);
        border-color: rgba(255, 255, 255, .1);
        filter: brightness(.9);
    }
}

.download-btn svg {
    width: 20px;
    height: 20px;
    z-index: 1
}

.download-btn span {
    z-index: 1
}

.footer-note {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    opacity: 0;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 6rem 1.5rem 8rem; /* Increased bottom padding on mobile */
        min-height: calc(100vh - 200px);
        justify-content: center;
    }

    .content-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .app-showcase {
        order: 1
    }

    .content {
        order: 2
    }

    .logo {
        margin: 0 auto 1rem
    }

    .download-buttons {
        flex-direction: column;
        align-items: center
    }

    .app-demo-img {
        max-width: 420px
    }
}

@media (max-width: 480px) {
    .container {
        padding: 6rem 1.5rem 8rem; /* Increased bottom padding on mobile */
        min-height: calc(100vh - 200px); /* Adjust for larger footer on mobile */
        
    justify-content: center;
    }

    .content-wrapper {
        grid-template-columns: 1fr; /* Stack content on mobile */
        gap: 3rem;
    }

    .app-showcase::before {
        width: 100%;
    }

    .app-showcase {
        order: 1
    }

    h1 {
        margin-bottom: 1rem
    }

    .subtitle {
        margin-bottom: 2rem
    }

    .app-demo-img {
        max-width: 260px
    }

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

    .download-btn {
        font-size: 0.6rem;
        padding: 10px 12px;
    }

    .footer-note {
        font-size: 0.675rem;
    }
}

/* Accessibility Focus Styles */
.footer {
    font-size: clamp(.75rem, 2vw, 1.125rem);
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: center;
    background: rgba(242, 242, 242, 0.8);
    /* Light mode with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* For Safari support */
    border-top: 1px solid rgba(10, 10, 10, 0.1);
    z-index: 10;
}

@media (prefers-color-scheme: dark) {
    .footer {
        background: rgba(18, 18, 18, 0.8);
        /* Dark mode with opacity */
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-primary);
}

@media (prefers-color-scheme: dark) {
    .footer {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

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

.footer-column {
    display: flex;
    justify-content: center;
    align-items: center;
}

.copyright {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-links a {
    color: var(--text-tertiary);
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

.privacy-container {
    min-height: calc(100vh - 180px); /* Account for header and footer */
    align-items: center;
    justify-content: center;
    padding: 6rem 2rem 6rem; /* Updated padding */
    position: relative;
    z-index: 2;
    animation: fadeIn 0.8s ease-out;
}

.privacy-container strong {
    font-family: 'Roboto', sans-serif;
    font-size: clamp(1rem, 4vw, 1.5rem);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 1rem;
    display: block;
}

.privacy-container p {
    font-size: clamp(.75rem, 2vw, 1rem);
    letter-spacing: 0.02em;
    color: var(--text-primary);
    margin-bottom: .5rem;
    line-height: 1.2;
}

.privacy-container ul {
    font-size: clamp(.75rem, 2vw, 1rem);
    letter-spacing: 0.02em;
    margin-top: 1em;
    margin-bottom: 0em;
    margin-left: 1rem;
}

.imprint-container {
    max-width: 800px;
    margin: 8rem auto;
    padding: 2rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    min-height: calc(100vh - 180px); /* Account for header and footer */
    animation: fadeIn 0.8s ease-out;
}

.imprint-container p,
.imprint-container strong {
    width: 100%;
    margin-bottom: 1rem;
}

.privacy-container a,
.imprint-container a {
    color: var(--text-tertiary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-container a:hover,
.imprint-container a:hover {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .imprint-container,
    .privacy-container {
        padding: 6rem 1.5rem 12rem; /* Increased padding for mobile */
    }
}