:root {
    --bg-color: #000000;
    --text-color: #f5f5f7;
    --text-secondary: #86868b;
    --accent-color: #0071e3;
    --card-bg: #1c1c1e;
    --nav-bg: rgba(0, 0, 0, 0.8);
    --glass-bg: rgba(28, 28, 30, 0.7);
    --border-color: #333336;
    --font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.8;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: 44px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.nav-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.lang-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
    border-left: 1px solid var(--border-color);
    padding-left: 20px;
}

.lang-switcher a {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.5;
}

.lang-switcher a.active {
    opacity: 1;
    font-weight: 600;
}

.nav-links a {
    color: var(--text-color);
    font-size: 12px;
    font-weight: 400;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
}

/* --- Premium Hero Section --- */
.hero {
    position: relative;
    padding-top: 120px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: radial-gradient(circle at 20% 30%, rgba(255, 154, 139, 0.15) 0%, transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 113, 227, 0.1) 0%, transparent 40%);
    overflow: hidden;
}

.hero h1 {
    font-size: 64px;
    background: linear-gradient(180deg, #fff 0%, #888 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    text-align: center;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

/* --- Premium Triple iPhone Showcase --- */
.hero-showcase {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 2000px;
}

.showcase-item {
    position: absolute;
    width: 250px;
    height: auto;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6));
}

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

/* Device screenshot wrapper for raw app screens (EN/DE) */
.iphone-frame {
    width: 100%;
    border-radius: 32px;
    overflow: hidden;
    border: 2px solid #3a3a3c;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 30px 60px rgba(0, 0, 0, 0.6);
    background: #000;
}

.iphone-screen {
    width: 100%;
    aspect-ratio: 1260 / 2736;
    overflow: hidden;
    line-height: 0;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* App screenshot galleries & cards */
.app-screenshot-gallery {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
    padding: 0 16px;
}

.app-screenshot {
    width: 220px;
    max-width: min(220px, 42vw);
    height: auto;
    aspect-ratio: 1260 / 2736;
    object-fit: cover;
    object-position: top center;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: block;
    border: 2px solid #3a3a3c;
}

.app-screenshot--card {
    width: 130px;
    max-width: 38%;
    height: auto;
    aspect-ratio: 1260 / 2736;
    object-fit: cover;
    object-position: top center;
    border-radius: 18px;
    border: 2px solid #3a3a3c;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
}

/* Specific Positions */
.item-left {
    transform: translateX(-180px) translateZ(-100px) rotateY(25deg);
    z-index: 1;
    opacity: 0.8;
}

.item-center {
    z-index: 3;
    transform: translateZ(100px);
}

.item-right {
    transform: translateX(180px) translateZ(-100px) rotateY(-25deg);
    z-index: 1;
    opacity: 0.8;
}

/* Ambient Glow */
.ambient-glow {
    position: absolute;
    width: 800px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 154, 139, 0.08) 0%, transparent 70%);
    filter: blur(120px);
    pointer-events: none;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Sections & Layouts */
section {
    padding: 100px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-title {
    font-size: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.two-col-grid-small {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.card h3 {
    margin-bottom: 15px;
}

/* Mobile & Tablet Optimization */
@media (max-width: 1024px) {
    .hero-showcase {
        transform: scale(0.85);
    }
    .two-col-grid {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    nav {
        height: auto;
        padding-bottom: 10px;
    }
    .nav-content {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    .lang-switcher {
        margin-left: 0;
        border-left: none;
        padding-left: 0;
    }
    .hero {
        padding-top: 140px;
        text-align: center;
    }
    .hero h1 {
        font-size: 42px;
    }
    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    .hero-showcase {
        height: 400px;
        transform: scale(0.65);
        margin-top: 20px;
    }
    .item-left { transform: translateX(-80px) translateZ(-150px) rotateY(15deg); }
    .item-right { transform: translateX(80px) translateZ(-150px) rotateY(-15deg); }
    
    .two-col-grid, .two-col-grid-small {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    /* Layout specific fixes */
    #vision .fade-in {
        order: initial !important;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 36px;
    }
    .hero-showcase {
        height: 350px;
        transform: scale(0.5);
    }
    .item-left, .item-right {
        display: none;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .app-screenshot {
        width: 160px;
        max-width: 70vw;
    }
    .app-screenshot--card {
        width: 110px;
        max-width: 32vw;
    }
}

/* Footer */
footer {
    background-color: #161617;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 12px;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    border-top: 1px solid #424245;
    padding-top: 20px;
}

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

/* Buttons */
.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 980px;
    font-weight: 500;
    font-size: 17px;
    text-align: center;
}

/* Animations */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.animations-ready .fade-in {
    opacity: 1;
    transform: translateY(0);
}

.visible {
    opacity: 1;
    transform: translateY(0);
}

.highlight {
    color: var(--accent-color);
    font-weight: 600;
}
