:root {
    --bg-color: #0d0f1a;
    --glass-bg: rgba(20, 24, 44, 0.6);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #f0f2f5;
    --text-muted: #9ba1b0;
    --accent-1: #ff2a5f; /* TikTok-ish pink/red */
    --accent-2: #00f2fe; /* Cyan */
    --font-heading: 'Outfit', sans-serif;
    --font-jp: 'Noto Sans JP', sans-serif;
}

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

body {
    background: var(--bg-color) url('background.png') center/cover no-repeat fixed;
    color: var(--text-main);
    font-family: var(--font-heading);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Overlay for readability */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(13, 15, 26, 0.7); /* dark overlay */
    z-index: -2;
}

/* Background Animated Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    bottom: -150px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(30px, 50px) scale(1.1); }
}

/* Glassmorphism Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    margin: 2rem 0;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    z-index: 10;
}

.doc-container {
    text-align: left;
    max-width: 800px;
}

/* App Icons */
.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.app-icon:hover {
    transform: scale(1.05);
}

.doc-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.app-icon-small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Typography */
.title {
    font-family: var(--font-jp);
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.gradient-text {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro p {
    margin-bottom: 1rem;
    color: #c4c9d4;
    font-size: 1.05rem;
}

/* Navigation & Buttons */
.links-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.button {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(90deg, var(--accent-1), #d81b60);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 42, 95, 0.3);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 42, 95, 0.5);
}

.button-outline {
    background: transparent;
    border: 1px solid var(--text-muted);
    color: var(--text-main);
    box-shadow: none;
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    box-shadow: none;
}

/* Social Buttons */
.social-btn.tiktok {
    background: linear-gradient(90deg, #69C9D0, #EE1D52);
    box-shadow: 0 4px 15px rgba(238, 29, 82, 0.3);
}

.social-btn.facebook {
    background: #1877F2;
    box-shadow: 0 4px 15px rgba(24, 119, 242, 0.3);
}

.social-btn.youtube {
    background: #FF0000;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.social-btn.tiktok:hover {
    box-shadow: 0 6px 20px rgba(238, 29, 82, 0.5);
}

.social-btn.facebook:hover {
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
}

.social-btn.youtube:hover {
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent-2);
}

/* Document specific styling */
.doc-container h2 {
    font-size: 2.2rem;
    margin-bottom: 0;
}

.last-updated {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent-2);
}

.content p {
    margin-bottom: 1rem;
    color: #c4c9d4;
}

footer {
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    z-index: 10;
    text-align: center;
}

footer a {
    color: var(--accent-2);
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 0.8;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

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

/* Responsive */
@media (max-width: 600px) {
    body {
        padding: 1rem;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .glass-container {
        padding: 2rem 1.5rem;
        width: 100%;
        margin: 1rem 0;
        border-radius: 20px;
    }
    
    .links {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .button {
        width: 100%;
        text-align: center;
        padding: 0.9rem;
    }
    
    .button-outline {
        padding: 0.8rem;
    }
    
    .app-icon {
        width: 80px;
        height: 80px;
        border-radius: 18px;
    }
    
    .doc-container h2 {
        font-size: 1.8rem;
    }
    
    .links-container {
        margin-top: 1.5rem;
    }
}
