:root {
    /* Color Palette */
    --primary-color: #8A2BE2; /* Deep modern purple */
    --secondary-color: #4B0082;
    --accent-color: #FFD700;
    --text-main: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --bg-dark: #0F0C29;
    --bg-gradient: linear-gradient(135deg, #0F0C29 0%, #302B63 50%, #24243E 100%);
    
    /* Typography */
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-dark);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Effects */
.glass-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-gradient);
    z-index: -2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    padding: 24px 0;
    position: relative;
    z-index: 10;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #fff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.05em;
}

/* Hero Section */
.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 60px 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    animation: fadeInDown 0.8s ease-out;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-text {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.release-note {
    font-size: 0.9rem;
    color: var(--accent-color);
    opacity: 0.9;
    animation: fadeIn 1s ease-out 0.8s both;
}

/* Decorations */
.decoration {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 1;
    opacity: 0.5;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
    animation: float 10s infinite ease-in-out;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: #FF1493; /* Deep pink for mystic feel */
    bottom: -50px;
    left: -100px;
    animation: float 12s infinite ease-in-out reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    animation: pulse 8s infinite alternate;
}

/* Features Section */
.features {
    padding: 80px 0;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

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

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.feature-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer & Legal Pages */
.footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 2;
}

.footer-links {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links a, .legal-page a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover, .legal-page a:hover {
    color: var(--accent-color);
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
}

/* Legal Pages Specific Styles */
.legal-page .hero {
    min-height: 30vh;
    padding: 80px 0 40px;
}

.legal-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
}

.legal-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 80px;
    backdrop-filter: blur(10px);
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--accent-color);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 24px 0 12px;
    color: #fff;
}

.legal-content p, .legal-content li {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.legal-content ul, .legal-content ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

/* Table Style for Tokushoho */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 24px;
}

.legal-table th, .legal-table td {
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.legal-table th {
    background: rgba(0, 0, 0, 0.2);
    width: 25%;
    font-weight: 600;
    color: #fff;
}

.legal-table td {
    color: var(--text-muted);
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.3; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0.2; }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-text {
        font-size: 1rem;
    }
    .legal-table th, .legal-table td {
        display: block;
        width: 100%;
    }
    .legal-table th {
        border-bottom: none;
        background: rgba(255, 255, 255, 0.05);
    }
    .legal-content {
        padding: 24px;
    }
}
