:root {
    /* Color Palette - White Zen Aesthetic (Nekozouneko Inspired) */
    --bg-primary: #ffffff;
    --bg-secondary: #f0f4f7;
    /* Matching Nekozouneko custom body background */
    --bg-tertiary: #e9ecef;
    --accent: #003b68;
    /* Transitioning to the deeper blue accent seen in reference */
    --accent-soft: rgba(0, 59, 104, 0.08);
    --text-primary: #1a1d23;
    --text-secondary: #495057;
    --text-muted: #868e96;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Inter', sans-serif;
    /* Prioritize Noto Sans JP as in reference */
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 180px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    z-index: 1000;
    top: calc(100% + 1rem);
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 0;
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -1.2rem;
    left: 0;
    width: 100%;
    height: 1.2rem;
}

.dropdown:hover .dropdown-content {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.dropdown-content a {
    padding: 0.75rem 1.5rem;
    display: block;
    text-transform: none;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    color: var(--text-secondary) !important;
}

.dropdown-content a:hover {
    background: var(--bg-secondary);
    color: var(--accent) !important;
}

/* Page Header (for subpages) */
.page-header {
    padding: 12rem 0 6rem;
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-primary));
    text-align: center;
}

.page-header h1 {
    font-size: 3.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)), url('zenserver_hero_bg_v2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, var(--bg-primary));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: var(--text-primary);
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

/* IP Box - Premium Glassmorphism (Light) */
.ip-box {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid var(--glass-border);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.ip-box:hover {
    background: var(--bg-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.ip-icon {
    margin-right: 0.75rem;
    color: var(--accent);
}

.ip-text {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    color: var(--text-primary);
}

/* Sections General */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header .sub-cap {
    display: block;
    font-family: 'Inter', sans-serif;
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.2rem;
    margin-bottom: 0.5rem;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

section {
    padding: 6rem 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    color: var(--text-primary);
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

/* Features/Modes & News Cards */
.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mode-card {
    background: white;
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.mode-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: var(--shadow-md);
}

.mode-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.mode-card h3 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.mode-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Command Table */
.table-container {
    width: 100%;
    overflow-x: auto;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-top: 2rem;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th,
td {
    padding: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
}

th {
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

td {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

tr:last-child td {
    border-bottom: none;
}

.cmd-code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

/* Legal & Guide Text */
.content-text {
    max-width: 900px;
    margin: 0 auto;
}

.content-text h3 {
    margin: 3.5rem 0 1.5rem;
    font-size: 1.75rem;
    color: var(--text-primary);
}

.content-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.content-text ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.content-text li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Rules Section */
.rules-container {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    background: white;
    border: 1px solid var(--glass-border);
    margin-bottom: 1.5rem;
    padding: 2rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.rule-num {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-right: 2rem;
    flex-shrink: 0;
}

.rule-item p {
    color: var(--text-primary);
    font-weight: 500;
}

/* Community Section */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.social-link {
    padding: 2.5rem;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.social-link i {
    font-size: 2.5rem;
    color: var(--accent);
}

.social-link span {
    font-weight: 700;
    color: var(--text-primary);
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

/* Footer */
footer {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    text-align: left;
    margin-bottom: 4rem;
}

.footer-brand h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.footer-brand p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-copy-ip {
    display: inline-flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.footer-copy-ip:hover {
    background: var(--bg-tertiary);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.footer-copy-ip i {
    margin-right: 0.6rem;
    color: var(--accent);
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
    text-align: center;
}

/* Staff Profiles */
.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.staff-card {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.staff-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: var(--accent-soft);
    z-index: 0;
}

.staff-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.staff-avatar {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 1;
    border: 4px solid white;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-avatar img {
    width: 60px;
}

.staff-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.staff-role {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: var(--accent-soft);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.staff-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Recruitment Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 4rem auto;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--glass-border);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: calc(-2rem - 5px);
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid white;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.timeline-content h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Page Header Adjustments */
.page-header.recruit-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    section {
        padding: 4rem 0;
    }
}