:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #ec4899;
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --text-white: #f8fafc;
    --text-gray: #94a3b8;
    --accent: #22d3ee;
    --container: 1200px;
}

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

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1 { font-size: 4rem; font-weight: 700; line-height: 1.1; margin-bottom: 1.5rem; }
h2 { font-size: 2.5rem; font-weight: 600; margin-bottom: 1rem; }
h3 { font-size: 1.5rem; font-weight: 600; margin-bottom: 0.5rem; }
p { color: var(--text-gray); font-size: 1.1rem; }
span { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-left: 1rem;
}

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

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
}

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

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent, var(--bg-dark));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
}

/* Sections */
.section {
    padding: 8rem 0;
}

.bg-dark {
    background-color: #0b1120;
}

.text-center {
    text-align: center;
}

.section-header {
    margin-bottom: 4rem;
}

/* Grid */
.grid {
    display: grid;
    gap: 2rem;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.items-center { align-items: center; }

/* Cards */
.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Tech Section */
.tech-list {
    list-style: none;
    margin-top: 2rem;
}

.tech-list li {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    position: relative;
}

.tech-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.contract-box {
    background: #000;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.box-label {
    font-family: monospace;
    color: var(--text-gray);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

pre {
    color: var(--accent);
    font-family: 'Courier New', Courier, monospace;
    margin-bottom: 0.5rem;
}

/* Tokenomics */
.tokenomics-grid {
    gap: 4rem;
}

.token-card {
    padding: 3rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.token-card.burn {
    background: linear-gradient(135deg, #ef444415, #ef444430);
    border: 1px solid #ef444450;
}

.token-card.mint {
    background: linear-gradient(135deg, #10b98115, #10b98130);
    border: 1px solid #10b98150;
}

/* Documents */
.doc-list {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-item:last-child {
    border-bottom: none;
}

/* Footer */
footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-delayed {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lang-switcher {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.lang-btn:hover:not(.active) {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Doc Group Styling */
.doc-group {
    margin-bottom: 3rem;
    padding: 1.5rem 2.5rem;
}

.doc-group:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.doc-group h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
}

.doc-group .doc-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.doc-group .doc-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .grid-3, .grid-2 { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
    .nav-links { display: none; }
    .nav-actions { gap: 0.8rem; }
    .lang-btn { padding: 4px 8px; font-size: 0.7rem; }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: var(--bg-card);
    margin: 2vh auto;
    padding: 0;
    width: 95%;
    max-width: 1200px;
    height: 95vh;
    max-height: 95vh;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.close-modal {
    color: var(--text-gray);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: white;
}

.modal-body {
    padding: 2.5rem;
    overflow-y: auto;
    color: var(--text-white);
}

/* Markdown Content Styling */
.markdown-content {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.8;
    color: #334155;
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.markdown-content h1 { 
    font-size: 2.2rem; 
    font-weight: 800;
    margin: 0 0 2rem; 
    color: #1e293b;
    border-left: 6px solid var(--primary);
    padding-left: 1rem;
}

.markdown-content h2 { 
    font-size: 1.6rem; 
    font-weight: 700;
    margin: 2.5rem 0 1.2rem; 
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9; 
    padding-bottom: 0.5rem; 
}

.markdown-content h3 { 
    font-size: 1.3rem; 
    font-weight: 600;
    margin: 1.8rem 0 0.8rem; 
    color: #334155;
}

.markdown-content p { 
    margin-bottom: 1.2rem; 
    color: #475569; 
    text-align: justify;
}

.markdown-content ul, .markdown-content ol { 
    margin: 0 0 1.5rem 1.5rem; 
}

.markdown-content li { 
    margin-bottom: 0.6rem; 
    color: #475569;
}

.markdown-content blockquote {
    border-left: 4px solid #e2e8f0;
    padding-left: 1.5rem;
    font-style: italic;
    color: #64748b;
    margin: 2rem 0;
}

.markdown-content hr { 
    border: none; 
    border-top: 2px dashed #f1f5f9; 
    margin: 3rem 0; 
}

.markdown-content code { 
    background: #f1f5f9; 
    color: #475569;
    padding: 0.2rem 0.4rem; 
    border-radius: 4px; 
    font-family: 'Fira Code', monospace;
    font-size: 0.9em;
}

.markdown-content pre {
    background: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

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