:root {
    --main-bg: #0b0e14;
    /* Deep Navy Black */
    --text-color: #f5f7fa;
    --text-muted: #94a3b8;
    --accent-primary: #e11d48;
    /* Modern Red */
    --accent-secondary: #fbbf24;
    /* Modern Gold */
    --surface-bg: #1e293b;
    --border-color: #334155;
    --font-heading: 'Noto Serif JP', serif;
    --font-body: 'Noto Sans JP', sans-serif;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--main-bg);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.8;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Utility Classes */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) saturate(1.1);
    transform: scale(1.05);
    animation: slowZoom 30s infinite alternate;
}

@keyframes slowZoom {
    from {
        transform: scale(1.05);
    }

    to {
        transform: scale(1.15);
    }
}

.hero-content {
    z-index: 2;
    padding: 40px;
    max-width: 900px;
    opacity: 0;
    animation: fadeInUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards 0.5s;
}

.main-title {
    font-size: 4.5rem;
    line-height: 1.2;
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, #cbd5e1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.sub-title {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-weight: 300;
    letter-spacing: 0.15em;
}

/* Buttons */
.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 48px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.primary-btn {
    background: var(--accent-primary);
    color: #fff;
    border: 1px solid var(--accent-primary);
    box-shadow: 0 4px 6px -1px rgba(225, 29, 72, 0.2), 0 2px 4px -1px rgba(225, 29, 72, 0.1);
}

.primary-btn:hover {
    background: #be123c;
    border-color: #be123c;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(225, 29, 72, 0.3), 0 4px 6px -2px rgba(225, 29, 72, 0.15);
}

.secondary-btn {
    background: transparent;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    margin-left: 16px;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

/* Section Styles */
.section {
    padding: 160px 0;
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 100px;
    color: #fff;
}

.section-subtitle {
    display: block;
    font-size: 1rem;
    color: var(--accent-primary);
    margin-top: 16px;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Nostalgia Section */
.nostalgia-section {
    background-color: #0f172a;
}

.carousel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.card {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    padding: 48px 32px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--accent-primary);
    background: rgba(225, 29, 72, 0.1);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #fff;
    font-family: var(--font-body);
    /* Modern sans-serif heading */
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Revival & Evolution */
.revival-section,
.evolution-section {
    background-color: var(--main-bg);
}

.flex-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.reverse .text-content {
    order: 2;
}

.reverse .image-content {
    order: 1;
}

.text-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.image-content img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-content:hover img {
    transform: scale(1.02);
}

.old-screenshot-frame {
    border: none;
    /* Removed thick border */
    transform: none;
    /* Removed rotation */
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 40px;
    padding-left: 24px;
    border-left: 2px solid var(--border-color);
    transition: border-color 0.3s;
}

.feature-list li:hover {
    border-left-color: var(--accent-primary);
}

.feature-list strong {
    display: block;
    font-size: 1.25rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.feature-list p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Community Section */
.community-section {
    background-color: #0f172a;
    text-align: center;
}

.bbs-mockup {
    background: var(--surface-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    max-width: 800px;
    margin: 0 auto 64px;
    padding: 0;
    overflow: hidden;
    font-family: var(--font-body);
    /* Removed pixel font */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.bbs-header {
    background: #1e293b;
    color: #fff;
    padding: 16px 24px;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.bbs-row {
    display: flex;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    text-align: left;
    align-items: center;
}

.bbs-row:last-child {
    border-bottom: none;
}

.bbs-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.bbs-date {
    color: var(--text-muted);
    width: 100px;
    font-size: 0.9rem;
}

.bbs-server {
    color: var(--accent-secondary);
    width: 140px;
    font-weight: 600;
    font-size: 0.9rem;
    background: rgba(251, 191, 36, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    margin-right: 16px;
}

.bbs-title {
    color: var(--text-color);
    flex: 1;
    font-weight: 500;
}

/* Footer */
.footer {
    position: relative;
    padding: 120px 0 60px;
    text-align: center;
    color: #fff;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.footer-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.2);
}

.footer-title {
    font-size: 3.5rem;
    margin-bottom: 48px;
    background: linear-gradient(to bottom, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.specs {
    margin-top: 48px;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.copyright {
    margin-top: 80px;
    color: #475569;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .flex-container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .reverse .text-content {
        order: 1;
    }

    /* Reset order for mobile */
    .reverse .image-content {
        order: 2;
    }

    .section {
        padding: 100px 0;
    }

    .bbs-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .bbs-date,
    .bbs-server {
        width: auto;
        margin: 0;
    }
}