:root {
    --bg-color: #0A0E14;
    --card-bg: rgba(22, 27, 34, 0.7);
    --accent-gold: #C5A059;
    --text-primary: #F0F6FC;
    --text-secondary: #8B949E;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', 'Sawarabi Mincho', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Canvas Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

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

.section-padding {
    padding: 100px 0;
}

.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: baseline; }

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-gold);
}

.btn-primary {
    border: 1px solid var(--accent-gold);
    padding: 0.6rem 1.2rem;
    border-radius: 2px;
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-color) 0%, rgba(10, 14, 20, 0.4) 100%), url('assets/hero.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1;
    opacity: 0.6;
}

.hero-content {
    z-index: 10;
    position: relative;
}

.badge {
    font-size: 0.75rem;
    color: var(--accent-gold);
    letter-spacing: 0.3rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.accent {
    color: var(--accent-gold);
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.2rem;
    color: var(--text-secondary);
}

.mouse-icon {
    width: 25px;
    height: 40px;
    border: 1px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.mouse-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background-color: var(--accent-gold);
    animation: scroll-wheel 2s infinite;
}

@keyframes scroll-wheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 20px); opacity: 0; }
}

/* Manifesto Section */
.section-title {
    font-size: 0.8rem;
    letter-spacing: 0.4rem;
    color: var(--accent-gold);
    margin-bottom: 4rem;
    text-transform: uppercase;
}

.glass-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    padding: 4rem;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}

.large-text {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.body-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 800px;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 800px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 4px;
    width: 1px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    padding-left: 40px;
    margin-bottom: 60px;
}

.time-point {
    position: absolute;
    top: 8px;
    left: 0;
    width: 9px;
    height: 9px;
    background: var(--accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-gold);
}

.category {
    font-size: 0.7rem;
    color: var(--accent-gold);
    letter-spacing: 0.1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.time-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.time-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Structure Section (Grid) */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1px; /* Divider effect */
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
}

.layer-card {
    background: var(--bg-color);
    padding: 3rem 2rem;
    text-align: left;
    transition: background 0.3s ease;
}

.layer-card:hover {
    background: rgba(197, 160, 89, 0.05);
}

.layer-num {
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.layer-card h3 {
    margin-bottom: 1rem;
    letter-spacing: 0.1rem;
}

.layer-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Archives Section */
.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.archive-item {
    padding: 2.5rem;
    border-bottom: 1px solid var(--glass-border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.archive-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.archive-date {
    font-size: 0.7rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
}

.archive-item h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.archive-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.text-link {
    text-decoration: none;
    font-size: 0.8rem;
    color: var(--accent-gold);
    letter-spacing: 0.1rem;
}

/* Footer */
footer {
    padding: 100px 0 50px;
    border-top: 1px solid var(--glass-border);
}

.footer-info p {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.footer-bottom {
    margin-top: 80px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

/* Fade-in Animations */
.fade-in { opacity: 0; animation: fadeIn 1s forwards; }
.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }
.delay-3 { animation-delay: 1.2s; }

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

@media (max-width: 768px) {
    .nav-links { display: none; }
    h1 { font-size: 3rem; }
    .glass-card { padding: 2rem; }
}
