/* ---------- RESET & GLOBAL ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f6fa;
    color: #1a1a2e;
    scroll-behavior: smooth;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }

/* ---------- HEADER ---------- */
.main-header {
    background: #fff;
    border-bottom: 1px solid #e8e8f0;
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}
.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.logo {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #1a1a2e;
    cursor: pointer;
    transition: opacity 0.2s;
}
.logo:hover { opacity: 0.8; }
.logo span { font-weight: 300; color: #4a7cf7; }
.main-nav {
    display: flex;
    gap: 1.8rem;
    align-items: center;
    flex-wrap: wrap;
}
.main-nav a {
    color: #4a5568;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}
.main-nav a:hover { color: #1a1a2e; }
.main-nav .active {
    color: #1a1a2e;
    font-weight: 600;
}
.main-nav .active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a7cf7;
    border-radius: 2px;
}
.btn-discord {
    background: #4a7cf7;
    color: #fff !important;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-discord:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(74,124,247,0.2);
    color: #fff !important;
}
.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: 0.5rem;
}
.lang-selector .flag {
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.5;
    transition: opacity 0.2s, transform 0.2s;
    padding: 2px;
    border-radius: 4px;
}
.lang-selector .flag:hover { opacity: 0.8; transform: scale(1.05); }
.lang-selector .flag.active {
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #4a7cf7;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    width: 100%;
}

/* ---------- HERO ---------- */
.hero {
    padding: 2rem 0 1rem;
}
.hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.3rem;
}
.hero h1 span { color: #4a7cf7; }
.hero p {
    font-size: 1rem;
    color: #4a5568;
    max-width: 600px;
    line-height: 1.6;
}
.hero .lang-support {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: #4a7cf7;
    font-weight: 500;
}

/* ---------- TWO-COLUMN ---------- */
.home-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 0.5rem;
    align-items: start;
}

/* ---------- OWNER SECTION ---------- */
.owner-section {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.owner-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.owner-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8e8f0;
    float: left;
    margin-right: 1.2rem;
    margin-bottom: 0.3rem;
}
.owner-info h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.1rem;
}
.owner-info .bio {
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.6;
}
.owner-info .portfolio-link {
    display: inline-block;
    margin-top: 0.8rem;
    background: #4a7cf7;
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.owner-info .portfolio-link:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(74,124,247,0.2);
}

/* ---------- STAFF LIST ---------- */
.staff-section {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.staff-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}
.staff-section h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid #f0f0f4;
    padding-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.staff-section h2 svg {
    width: 22px;
    height: 22px;
    stroke: #4a7cf7;
}
.staff-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 600px) {
    .staff-list {
        grid-template-columns: 1fr 1fr;
    }
}
.staff-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    border-radius: 14px;
    padding: 1rem 1.2rem;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.25s, background 0.25s, border-color 0.25s;
    border: 1px solid transparent;
}
.staff-item:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 8px 24px rgba(74,124,247,0.12);
    background: #fff;
    border-color: #e0e7ff;
}
.staff-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e8e8f0;
    flex-shrink: 0;
    transition: border-color 0.2s, transform 0.2s;
}
.staff-item:hover .staff-avatar {
    border-color: #4a7cf7;
    transform: scale(1.04);
}
.staff-info {
    flex: 1;
    min-width: 0;
}
.staff-info .display-name {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1rem;
    line-height: 1.3;
}
.staff-info .username {
    font-size: 0.75rem;
    color: #7a8ba8;
    display: block;
    margin-top: 0.05rem;
}
.staff-info .role {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #4a7cf7, #6b8cf7);
    padding: 0.15rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    margin-top: 0.3rem;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 6px rgba(74,124,247,0.25);
}

/* ---------- BULLETS ---------- */
.bullets-section {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    text-align: center;
}
.bullets-section h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.8rem;
}
.bullets-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 0.5rem;
}
.bullet-item {
    padding: 0.5rem;
}
.bullet-item svg {
    width: 32px;
    height: 32px;
    stroke: #4a7cf7;
    margin-bottom: 0.3rem;
}
.bullet-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 0.2rem;
}
.bullet-item p {
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}

/* ---------- DISCORD CALL-TO-ACTION ---------- */
.discord-cta {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}
.discord-cta p {
    color: #4a5568;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.btn-discord-large {
    display: inline-block;
    background: #4a7cf7;
    color: #fff !important;
    padding: 0.6rem 2.4rem;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}
.btn-discord-large:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 30px rgba(74,124,247,0.3);
}

/* ---------- PAGE HEADER (plugins, skripts, rules, terms) ---------- */
.page-header {
    padding: 2rem 0 1rem;
}
.page-header h1 {
    font-size: 2.4rem;
    font-weight: 700;
    color: #1a1a2e;
}
.page-header p {
    color: #7a8ba8;
    font-size: 0.95rem;
    margin-top: 0.2rem;
}
.placeholder {
    text-align: center;
    padding: 3rem 0;
    color: #7a8ba8;
}
.placeholder svg {
    width: 64px;
    height: 64px;
    stroke: #4a7cf7;
    opacity: 0.2;
    margin-bottom: 1rem;
}

/* ---------- RULES ---------- */
.rules-wrapper {
    max-width: 900px;
    margin: 0 auto;
}
.rules-card {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    margin-bottom: 2rem;
}
.rules-intro {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f4;
}
.rules-intro strong { color: #1a1a2e; }
.rule-section { margin-bottom: 1.5rem; }
.rule-section:last-child { margin-bottom: 0; }
.rule-main {
    font-weight: 700;
    color: #1a1a2e;
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
}
.rule-sub {
    font-weight: 600;
    color: #2d3748;
    font-size: 0.95rem;
    margin-top: 0.6rem;
    margin-bottom: 0.2rem;
}
.rule-sub:first-of-type { margin-top: 0.3rem; }
.rule-point {
    display: flex;
    gap: 0.5rem;
    padding: 0.15rem 0 0.15rem 1.2rem;
    font-size: 0.9rem;
    color: #4a5568;
    line-height: 1.5;
}
.rule-point .num {
    font-weight: 600;
    color: #4a7cf7;
    min-width: 40px;
    flex-shrink: 0;
}
.rules-footnote {
    text-align: center;
    color: #7a8ba8;
    font-size: 0.9rem;
    padding: 0.5rem 0 1.5rem;
    border-top: 1px solid #f0f0f4;
    margin-top: 0.5rem;
}

/* ---------- TERMS ---------- */
.terms-content {
    background: #fff;
    border: 1px solid #e8e8f0;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    max-width: 800px;
    margin: 0 auto;
}
.terms-content h2 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}
.terms-content h2:first-of-type { margin-top: 0; }
.terms-content p {
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}
.terms-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    color: #4a5568;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .home-grid { grid-template-columns: 1fr; }
    .owner-avatar {
        float: none;
        display: block;
        margin: 0 auto 0.8rem;
    }
    .main-header .container {
        flex-direction: column;
        align-items: flex-start;
    }
    .main-nav { gap: 0.8rem; }
    .hero h1 { font-size: 2.2rem; }
    .bullets-grid { grid-template-columns: 1fr; }
    .lang-selector {
        margin-left: 0;
        margin-top: 0.3rem;
    }
    .rules-card { padding: 1.5rem; }
    .terms-content { padding: 1.5rem; }
    .page-header h1 { font-size: 2rem; }
    .staff-list {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 480px) {
    .staff-item { padding: 0.8rem; gap: 0.8rem; }
    .staff-avatar { width: 44px; height: 44px; }
    .hero h1 { font-size: 1.8rem; }
    .rules-card { padding: 1rem; }
    .terms-content { padding: 1rem; }
    .page-header h1 { font-size: 1.6rem; }
    .rule-main { font-size: 0.95rem; }
    .rule-sub { font-size: 0.85rem; }
    .rule-point { font-size: 0.8rem; flex-wrap: wrap; }
}