/* Reset & Base Styles */
:root {
    --primary-color: #FCD535;
    --primary-hover: #F0B90B;
    --text-main: #1E2329;
    --text-muted: #474D57;
    --text-light: #707A8A;
    --bg-main: #FFFFFF;
    --bg-light: #FAFAFA;
    --bg-gray: #F5F5F5;
    --border-color: #EAECEF;
    --success-color: #0ECB81;
    --danger-color: #F6465D;
    --warning-bg: #FFFAEB;
    --warning-border: #FCD535;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1000px; /* Narrower for better reading experience */
    margin: 0 auto;
    padding: 0 24px;
}

.container-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    line-height: 1.3;
    color: #181A20;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background-color: var(--primary-color);
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #181A20;
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(240, 185, 11, 0.3);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    height: 64px;
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: #181A20;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Selector */
.lang-selector {
    position: relative;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-main);
}

.lang-current {
    padding: 3px 8px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: none;
    flex-direction: column;
    min-width: 120px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.lang-dropdown.show {
    display: flex;
}

.lang-option {
    padding: 3px 8px;
    transition: background-color 0.2s;
    font-size: 0.7rem;
}

.lang-option:hover {
    background-color: var(--bg-light);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 100px 0 60px;
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 100%);
    border-bottom: 1px solid var(--border-color);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.highlight {
    color: var(--primary-hover);
}

.hero-content p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #F0B90B;
}

/* Hero Visual (CSS Drawn) */
.hero-visual {
    position: relative;
    height: 360px;
    width: 100%;
    perspective: 1000px;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    position: absolute;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    padding: 24px;
}

.main-panel {
    width: 320px;
    height: 320px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) rotateY(-5deg);
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.panel-balance {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.panel-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    margin-bottom: 24px;
}

.panel-chart .bar {
    flex: 1;
    background: linear-gradient(0deg, var(--primary-color) 0%, #FFE566 100%);
    border-radius: 4px 4px 0 0;
}

.bar-30 { height: 30%; }
.bar-40 { height: 40%; }
.bar-50 { height: 50%; }
.bar-60 { height: 60%; }
.bar-80 { height: 80%; }
.bar-100 { height: 100%; }

.panel-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.asset-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: var(--bg-light);
    border-radius: 8px;
}

.asset-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0.7rem;
    font-weight: bold;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.asset-icon.btc { background-image: url(/assets/icon/btc.svg); }
.asset-icon.eth { background-image: url(/assets/icon/eth.svg); }

.asset-info {
    display: flex;
    justify-content: space-between;
    flex: 1;
    font-weight: 600;
    font-size: 0.9rem;
}

.side-panel-1 {
    width: 220px;
    top: 60px;
    left: -20px;
    transform: translateZ(-30px) rotateY(-10deg);
    z-index: 1;
}

.side-panel-2 {
    width: 200px;
    bottom: 20px;
    right: -10px;
    transform: translateZ(30px) rotateY(-5deg);
    z-index: 3;
}

.svg-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(14, 203, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: #0ECB81;
}

.panel-text {
    font-weight: 600;
    font-size: 0.95rem;
}

.panel-subtext {
    font-size: 0.8rem;
    color: var(--text-light);
}

.trend-up {
    color: #0ECB81;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

/* Alert Box (Disclaimer) */
.alert-box {
    background-color: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: 8px;
    padding: 16px;
    margin: 32px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.alert-success {
    background-color: #F0FDF4;
    border-color: #86EFAC;
}

.alert-icon {
    color: #F0B90B;
    flex-shrink: 0;
    margin-top: 2px;
}

.success-icon {
    color: #0ECB81;
}

.alert-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Table of Contents */
.toc {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.sticky-toc {
    position: sticky;
    top: 88px;
}

.toc-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toc-list li {
    break-inside: avoid;
}

.toc-list a {
    color: var(--text-muted);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc-list a::before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
}

.toc-list a:hover {
    color: var(--primary-hover);
}

/* Article Content Layout */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
    padding-top: 40px;
}

.content-area {
    min-width: 0;
}

.article-section {
    padding: 60px 0;
    border-bottom: 1px solid var(--border-color);
}

.article-section:first-of-type {
    padding-top: 0;
}

.article-section:last-child {
    border-bottom: none;
}

/* Pros & Cons */
.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 32px 0;
}

.pc-box {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.pc-title {
    font-size: 1.2rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-title.pros { color: var(--success-color); }
.pc-title.cons { color: var(--danger-color); }

.pc-list {
    list-style: none;
}

.pc-list li {
    position: relative;
    padding-left: 32px;
    margin-bottom: 16px;
    color: var(--text-muted);
}

.pc-list li svg {
    position: absolute;
    left: 0;
    top: 4px;
}

.pros .pc-list li svg { color: var(--success-color); }
.cons .pc-list li svg { color: var(--danger-color); }

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.feature-card {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.04);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-hover);
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Steps */
.step-list {
    margin-top: 32px;
}

.step-item {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    background: var(--bg-main);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.step-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
}

.step-number {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: var(--bg-light);
    color: var(--text-main);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

.step-content h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.step-content p {
    color: var(--text-muted);
}

/* --- CSS Illustrations & Mockups --- */
.css-illustration {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.mock-browser {
    width: 100%;
    max-width: 500px;
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.mock-browser-header {
    background-color: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.dot.red { background-color: #ff5f56; }
.dot.yellow { background-color: #ffbd2e; }
.dot.green { background-color: #27c93f; }

.mock-url {
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-left: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mock-browser-body {
    padding: 2rem;
    background-color: #fff;
}

.mock-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mock-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.mock-input {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-light);
    background-color: #f8fafc;
}

.highlight-input {
    border-color: var(--primary-color);
    background-color: rgba(240, 185, 11, 0.05);
    color: var(--text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.check-icon {
    color: #16a34a;
    font-weight: bold;
}

.mock-btn {
    background-color: var(--primary-color);
    color: #000;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* --- KYC Grid --- */
.kyc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.kyc-card {
    background-color: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.kyc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.kyc-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(240, 185, 11, 0.1);
    color: var(--primary-hover);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.kyc-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.kyc-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Fee Table */
.table-responsive {
    overflow-x: auto;
    margin: 32px 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-main);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.data-table th, .data-table td {
    padding: 16px 24px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-light);
    font-weight: 600;
    color: var(--text-main);
}

.data-table tr:last-child td {
    border-bottom: none;
}

.data-table tr:hover td {
    background-color: var(--bg-light);
}

/* FAQ */
.faq-container {
    margin-top: 32px;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 16px;
    background: var(--bg-main);
}

.faq-question {
    padding: 20px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question svg {
    transition: transform 0.3s ease;
    color: var(--text-light);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 24px 20px;
    max-height: 500px; /* Arbitrary large number */
}

/* Author Box */
.author-box {
    display: flex;
    gap: 24px;
    background: var(--bg-light);
    padding: 32px;
    border-radius: 12px;
    margin-top: 60px;
    border: 1px solid var(--border-color);
    margin-bottom: 60px;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #181A20;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
    min-width: 0;
}

.author-info h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.author-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background-color: #181A20;
    color: #B7BDC6;
    padding: 64px 0 32px;
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #EAECEF;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin: 24px 0;
}

.footer-links a {
    transition: color 0.2s;
}

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

.copyright {
    margin-top: 32px;
    font-size: 0.875rem;
}

.footer-disclaimer {
    margin-top: 16px;
    font-size: 0.75rem;
    opacity: 0.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

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

.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* Responsive */
@media (max-width: 992px) {
    .main-layout {
        grid-template-columns: 1fr;
    }
    
    .sticky-toc {
        position: static;
        margin-bottom: 32px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-meta {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pros-cons-grid, .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .toc-list {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: var(--bg-main);
        flex-direction: column;
        gap: 0;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path 0.3s ease-in-out;
    }

    .nav-links.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-links a {
        padding: 16px 24px;
        border-top: 1px solid var(--border-color);
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-actions {
        flex-direction: column;
    }
    
    .article-section {
        padding: 40px 0;
    }

    .step-item {
        flex-direction: column;
        gap: 16px;
        padding: 24px;
    }
    
    .author-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}
