@font-face {
    font-family: 'MyCustomFont';
    src: url('font/a.ttf') format('truetype');
    font-display: swap; 
}

:root {
    --primary: #d9534f;
    --bg: #ffffff;
    --text: #333333;
    --sub-text: #777777;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.menu-toggle img {
    width: 30px;
    height: 30px;
}

.nav-icon-link img {
    height: 40px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background: #ffffff;
    z-index: 1001;
    transition: var(--transition);
    box-shadow: 4px 0 20px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 30px;
    border-bottom: 1px solid #f5f5f5;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.sidebar-header img {
    height: 32px;
}

.sidebar-menu {
    padding: 0 15px;
    list-style: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 20px;
    font-size: 15px;
    color: var(--text);
    text-decoration: none;
    border-radius: 12px;
    transition: var(--transition);
    margin-bottom: 4px;
}

.side-icon {
    width: 20px;
    height: 20px;
    opacity: 0.8;
}

.sidebar-menu a:hover {
    background: #fef4f4;
    color: var(--primary);
}

.sidebar-menu a:hover .side-icon {
    opacity: 1;
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: var(--bg);
}

.hero-icon {
    width: 180px;
    height: 180px;
    margin-bottom: 30px;
}

.hero-title {
    font-size: 56px;
    margin-bottom: 15px;
    font-weight: 700;
    height: 84px;
    display: flex;
    align-items: center;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--sub-text);
    margin-bottom: 60px;
    height: 32px;
    display: flex;
    align-items: center;
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--primary);
    margin-left: 2px;
}

@keyframes blink {
    50% { opacity: 0; }
}

.fade-element {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.btn-group {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 8px 22px;
    font-size: 14px;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-icon {
    width: 16px;
    height: 16px;
}

.white-svg {
    filter: brightness(0) invert(1);
}

.red-svg {
    filter: invert(37%) sepia(85%) saturate(1065%) hue-rotate(320deg) brightness(91%) contrast(88%);
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-secondary {
    border: 1.5px solid var(--primary);
    color: var(--primary);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.25);
}

.scroll-down {
    position: absolute;
    bottom: 35px;
    left: 50%;
    text-align: center;
    cursor: pointer;
}

.scroll-down.fade-element {
    transform: translateX(-50%) translateY(10px);
}

.scroll-down.fade-element.visible {
    transform: translateX(-50%) translateY(0);
}

.scroll-text {
    font-size: 14px;
    color: var(--sub-text);
    display: block;
    margin-bottom: 8px;
}

.scroll-arrow {
    width: 35px;
    height: 35px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-12px);}
    60% {transform: translateY(-6px);}
}

.docs-outer {
    background: #fdfdfd;
    padding: 60px 0 20px 0;
}

.docs-container {
    max-width: 850px;
    margin: 0 auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.02);
    border: 1px solid #f9f9f9;
}

.markdown-body h1 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.markdown-body h2 {
    font-size: 24px;
    margin: 40px 0 15px;
    color: var(--text);
}

.markdown-body p {
    margin-bottom: 15px;
    color: #444;
    font-size: 15px;
    line-height: 1.8;
}

.markdown-body ul, .markdown-body ol {
    padding-left: 20px;
    margin-bottom: 15px;
    color: #444;
    font-size: 15px;
    line-height: 1.8;
}

.markdown-body li {
    margin-bottom: 6px;
}

.markdown-body pre {
    background: #ffffff !important;
    border: 1px solid #eaeaea;
    padding: 16px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
    position: relative;
}

.markdown-body code {
    font-family: monospace;
    font-size: 14px;
    background: #f5f5f5;
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--primary);
}

.markdown-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 6px 14px;
    font-size: 12px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    color: var(--sub-text);
    transition: 0.2s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.copy-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.markdown-body blockquote {
    border-left: 4px solid var(--primary);
    padding: 16px 20px;
    background: #fffafa;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
    color: #666;
    font-size: 15px;
}

.about-section {
    padding: 40px 20px 100px 20px;
    background: #fdfdfd;
}

.about-container {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.about-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.02);
    border: 1px solid #f9f9f9;
}

.about-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text);
}

.about-card p {
    font-size: 15px;
    color: var(--sub-text);
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 25px 0;
}

.btn-sponsor {
    display: inline-block;
    padding: 10px 26px;
    background: var(--primary);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    margin-top: 5px;
    transition: var(--transition);
}

.btn-sponsor:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(217, 83, 79, 0.3);
}

.thanks-marquee-wrapper {
    height: 220px;
    overflow: hidden;
    position: relative;
    margin-top: 15px;
    mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

.thanks-marquee {
    animation: marquee-up 12s linear infinite;
}

.thanks-marquee:hover {
    animation-play-state: paused;
}

@keyframes marquee-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

.thanks-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.thanks-list li {
    padding: 12px 10px;
    margin-bottom: 4px;
    font-size: 14px;
    color: var(--text);
    border-bottom: 1px dashed #f0f0f0;
}

.scroll-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .hero-title { font-size: 40px; }
    .btn-group { flex-direction: column; width: 80%; }
    .btn { justify-content: center; }
    .about-container { grid-template-columns: 1fr; }
    .docs-container { padding: 25px; }
}
