@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --primary-bg: #0a0e14;
    --accent-green: #2ecc71;
    --accent-blue: #3498db;
    --accent-teal: #1abc9c;
    --text-main: #e0e6ed;
    --text-dim: #94a3b8;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.04);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: 'Outfit', sans-serif;
    color: #fff;
}

/* ── BACKGROUND GLOW ── */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
    animation: move 20s infinite alternate;
}

.circle-1 {
    width: 500px; height: 500px;
    background: var(--accent-green);
    top: -120px; right: -120px;
}

.circle-2 {
    width: 600px; height: 600px;
    background: var(--accent-blue);
    bottom: -180px; left: -180px;
    animation-delay: -5s;
}

.circle-3 {
    width: 300px; height: 300px;
    background: var(--accent-teal);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.05;
    animation-delay: -10s;
}

@keyframes move {
    from { transform: translate(0, 0); }
    to   { transform: translate(60px, 120px); }
}

/* ── LANG BAR ── */
.lang-bar {
    position: fixed;
    top: 1.2rem; right: 1.5rem;
    z-index: 100;
    display: flex; gap: 0.4rem;
}

.lang-btn {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.38rem 0.75rem;
    background: rgba(10, 14, 20, 0.92);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase;
    cursor: pointer; border-radius: 8px;
    transition: all 0.25s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.lang-btn:hover {
    border-color: var(--accent-green);
    color: var(--accent-green);
}

.lang-btn.active {
    background: linear-gradient(135deg, rgba(46,204,113,0.15), rgba(52,152,219,0.12));
    border-color: var(--accent-green);
    color: var(--accent-green);
    box-shadow: 0 0 16px rgba(46,204,113,0.2);
}

.lang-flag { font-size: 0.95rem; }

/* ── LAYOUT ── */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px 80px;
}

/* ── HEADER ── */
header {
    text-align: center;
    margin-bottom: 56px;
    animation: fadeDown 0.7s ease both;
}

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

.logo {
    width: 180px;
    margin-bottom: 24px;
    filter: drop-shadow(0 0 24px rgba(46,204,113,0.3));
    animation: float 7s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-8px); }
}

header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-green), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

header p {
    color: var(--text-dim);
    font-size: 1rem;
    letter-spacing: 0.05em;
}

.badge-date {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 5px 16px;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.badge-date svg { color: var(--accent-green); }

/* ── TOC ── */
.toc {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 22px 26px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    animation: fadeUp 0.6s ease both 0.1s;
}

.toc::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), var(--accent-blue), transparent);
}

.toc h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-green);
    margin-bottom: 14px;
    display: flex; align-items: center; gap: 8px;
}

.toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 6px;
}

.toc ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.86rem;
    padding: 5px 0;
    transition: color 0.2s;
}

.toc ul li a:hover { color: var(--accent-green); }

.toc-num {
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.72rem;
    min-width: 20px;
}

/* ── SECTIONS (accordion) ── */
.section {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    animation: fadeUp 0.55s ease both;
}

.section:hover {
    border-color: rgba(46, 204, 113, 0.25);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.section:nth-child(1) { animation-delay: 0.05s; }
.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.15s; }
.section:nth-child(4) { animation-delay: 0.2s; }
.section:nth-child(5) { animation-delay: 0.25s; }
.section:nth-child(6) { animation-delay: 0.3s; }
.section:nth-child(7) { animation-delay: 0.35s; }
.section:nth-child(8) { animation-delay: 0.4s; }

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

/* left accent bar */
.section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: linear-gradient(180deg, var(--accent-green), transparent);
    border-radius: 0;
    pointer-events: none;
}

.section { position: relative; }

/* Section header — clickable */
.section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 24px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.section-header:hover {
    background: rgba(46,204,113,0.04);
}

.section-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(46,204,113,0.08);
    border: 1px solid rgba(46,204,113,0.2);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
}

.section-meta { flex: 1; }

.section-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.section-meta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
    display: flex; align-items: center; gap: 0;
}

/* Remove the old h2::before bar — handled by .section::before now */
.section-meta h2::before { display: none; }

.section-chevron {
    color: var(--accent-green);
    font-size: 0.62rem;
    flex-shrink: 0;
    opacity: 0.6;
    transition: transform 0.35s ease, opacity 0.2s;
}

.section.open .section-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

/* Accordion body */
.section-body {
    padding: 0 24px 22px 24px;
    overflow: hidden;
    max-height: 1400px;
    transition: max-height 0.45s ease, padding 0.35s ease, opacity 0.3s ease;
    opacity: 1;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.section-body.collapsed {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-top-color: transparent;
}

.section-body-inner { padding-top: 18px; }

.section-body p {
    margin-bottom: 14px;
    color: var(--text-dim);
    font-weight: 300;
    font-size: 0.92rem;
    line-height: 1.8;
}

.section-body p:last-child { margin-bottom: 0; }

.section-body ul {
    list-style: none;
    margin-bottom: 14px;
}

.section-body li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 8px;
    color: var(--text-dim);
    font-size: 0.92rem;
    font-weight: 300;
}

.section-body li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
}

.section-body a {
    color: var(--accent-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}

.section-body a:hover {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

/* Info boxes */
.info-box {
    border-radius: 10px;
    padding: 14px 18px;
    margin: 14px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.86rem;
}

.info-box.safe {
    background: rgba(46,204,113,0.06);
    border: 1px solid rgba(46,204,113,0.2);
}

.info-box.notice {
    background: rgba(52,152,219,0.06);
    border: 1px solid rgba(52,152,219,0.2);
}

.info-box.warn {
    background: rgba(241,196,15,0.06);
    border: 1px solid rgba(241,196,15,0.2);
}

.info-box-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.info-box p { margin: 0 !important; color: var(--text-dim); }

/* Contact card */
.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(46,204,113,0.06);
    border: 1px solid rgba(46,204,113,0.2);
    border-radius: 12px;
    padding: 18px 22px;
    margin-top: 16px;
    transition: background 0.3s;
}

.contact-card:hover { background: rgba(46,204,113,0.1); }
.contact-card .contact-icon { font-size: 1.8rem; }
.contact-card .contact-label {
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.contact-card a {
    color: var(--accent-green);
    font-size: 0.95rem;
    font-weight: 600;
    border: none !important;
}

.contact-card a:hover { color: #fff; }

/* ── FOOTER ── */
.footer-note {
    text-align: center;
    margin-top: 48px;
    font-size: 0.82rem;
    color: var(--text-dim);
    opacity: 0.7;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--primary-bg); }
::-webkit-scrollbar-thumb { background: rgba(46,204,113,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-green); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
    .lang-bar {
        top: auto; bottom: 1.2rem; right: 50%; transform: translateX(50%);
        background: rgba(10,14,20,0.95); padding: 0.4rem;
        border-radius: 10px; border: 1px solid var(--glass-border);
    }
    .container { padding: 40px 16px 90px; }
    .logo { width: 130px; }
    .section-header { padding: 14px 18px; }
    .section-body { padding: 0 18px 18px; }
    .toc ul { grid-template-columns: 1fr; }
    .contact-card { flex-direction: column; gap: 10px; }
}
