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

html {
    height: 100%;
    min-height: -webkit-fill-available;
    width: 100%;
    position: fixed;
    overflow: hidden;
}

body {
    font-family: 'Philosopher', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 25%, #e8f4fc 50%, #d4e9f7 75%, #87ceeb 100%);
    color: #1a4d7a;
    height: 100%;
    min-height: -webkit-fill-available;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-bottom: max(20px, env(safe-area-inset-bottom));
    position: fixed;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body::before {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 60%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0,150 Q200,80 400,150 T800,150 T1200,150 L1200,300 L0,300 Z' fill='rgba(135, 206, 235, 0.3)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: 0 bottom;
    background-size: 50% 100%;
    animation: bigWave1 25s linear infinite;
    opacity: 0.8;
    pointer-events: none;
    will-change: transform;
    -webkit-animation: bigWave1 25s linear infinite;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 200%;
    height: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0,180 Q300,100 600,180 T1200,180 L1200,300 L0,300 Z' fill='rgba(74, 144, 184, 0.25)'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: 0 bottom;
    background-size: 50% 100%;
    animation: bigWave2 20s linear infinite;
    pointer-events: none;
    will-change: transform;
    -webkit-animation: bigWave2 20s linear infinite;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    padding: 20px 0;
}

.content {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 0;
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    animation: fadeIn 1s ease-in;
    color: #2980b9;
    text-shadow: 2px 2px 4px rgba(41, 128, 185, 0.2);
}

.subtitle {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.3rem;
    opacity: 0.8;
    font-style: italic;
    animation: fadeIn 1.2s ease-in;
    color: #3498db;
}

.divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 3rem auto;
    animation: expandWidth 1s ease-out;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.4);
}

.brand-identity {
    margin-bottom: 2.5rem;
    animation: fadeIn 1.4s ease-in;
}

.slogan {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #2980b9;
    letter-spacing: 0.1rem;
}

.tagline {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0;
    opacity: 0.85;
    color: #34495e;
    max-width: 600px;
    margin: 0 auto;
}

.philosophy {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2.5rem 0 3rem;
    animation: fadeIn 1.6s ease-in;
}

.virtue {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.virtue-text {
    text-align: center;
    font-size: 1rem;
    color: #2980b9;
    font-weight: 500;
    line-height: 1.4;
}

.virtue-text em {
    font-size: 0.875rem;
    color: #5a6c7d;
    font-style: normal;
    display: block;
    margin-top: 0.25rem;
}

.app-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(41, 128, 185, 0.4);
    border-radius: 16px;
    box-shadow: 
        0 10px 40px rgba(41, 128, 185, 0.15),
        0 2px 8px rgba(41, 128, 185, 0.1);
    animation: fadeIn 1.6s ease-in, cardFloat 8s ease-in-out infinite;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2980b9 0%, #3498db 50%, #2980b9 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@-webkit-keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    gap: 1rem;
    padding: 2.5rem 2.5rem 0;
    background: none;
    position: relative;
}

.card-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 3rem;
    font-weight: 900;
    color: #2980b9;
    letter-spacing: 0.4rem;
    margin: 0;
    text-shadow: 
        3px 3px 0 rgba(52, 152, 219, 0.1),
        0 0 40px rgba(41, 128, 185, 0.15);
    position: relative;
}

.card-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2980b9;
    background: rgba(52, 152, 219, 0.1);
    border: 2px solid #2980b9;
    border-radius: 0;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    box-shadow: none;
}

.card-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 2rem;
    padding: 0 2.5rem;
    opacity: 0.9;
    font-weight: 400;
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    margin: 0 auto 2.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #2980b9 0%, #3498db 100%);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(41, 128, 185, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.05rem;
    border: none;
    width: auto;
    text-transform: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(41, 128, 185, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

.btn:active {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(41, 128, 185, 0.3);
}

.btn .arrow {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.btn:hover .arrow {
    transform: translateX(8px);
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@-webkit-keyframes cardFloat {
    0%, 100% {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
    50% {
        -webkit-transform: translateY(-10px);
        transform: translateY(-10px);
    }
}

footer {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.875rem;
    opacity: 0.6;
    color: #5a6c7d;
    animation: fadeIn 2s ease-in;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 100px;
    }
}

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

@-webkit-keyframes bigWave1 {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

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

@-webkit-keyframes bigWave2 {
    0% {
        -webkit-transform: translateX(0);
        transform: translateX(0);
    }
    100% {
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
        letter-spacing: 0.2rem;
    }
    
    .slogan {
        font-size: 1.25rem;
    }
    
    .tagline {
        font-size: 0.9375rem;
        padding: 0 1rem;
    }
    
    .philosophy {
        gap: 2rem;
    }
    
    .virtue-text {
        font-size: 0.875rem;
    }
    
    .app-card {
        max-width: 100%;
        padding: 0;
    }
    
    .card-header {
        padding: 2rem 2rem 0;
    }
    
    .card-header h2 {
        font-size: 2.5rem;
        letter-spacing: 0.3rem;
    }
    
    .card-description {
        font-size: 0.95rem;
        padding: 0 2rem;
    }
    
    .btn {
        padding: 0.95rem 1.75rem;
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .container {
        padding: 10px 0;
    }
    
    .logo h1 {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }
    
    .divider {
        margin: 2rem auto;
    }
    
    .slogan {
        font-size: 1.1rem;
    }
    
    .tagline {
        font-size: 0.875rem;
    }
    
    .philosophy {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .virtue {
        flex: 0 0 calc(50% - 0.75rem);
    }
    
    .virtue:last-child {
        flex: 0 0 100%;
    }
    
    .app-card {
        max-width: 100%;
        padding: 0;
    }
    
    .card-header {
        padding: 1.75rem 1.5rem 0;
        flex-direction: column;
        align-items: center;
        gap: 0.875rem;
    }
    
    .card-header h2 {
        font-size: 2.25rem;
        letter-spacing: 0.25rem;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.4rem 0.8rem;
    }
    
    .card-description {
        font-size: 0.9rem;
        padding: 0 1.5rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
        margin-bottom: 1.75rem;
    }
}
