:root {
    --bg-dark: #12121c;
    --bg-light: #1c1c2b;
    --bg-card: #252538;
    --text-primary: #f0f0f5;
    --text-secondary: #a8a8b3;
    --brand-color-light: #3f8efc; 
    --brand-color-dark: #9c5fff;
    --brand-gradient: linear-gradient(45deg, var(--brand-color-light), var(--brand-color-dark));
    --btc-orange: #f7931a;
    --success: #73AF55;
    --danger: #E04B5A;
    --font-family: 'Poppins', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-family);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- HEADER --- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 20px 0;
    background: linear-gradient(to bottom, rgba(18, 18, 28, 0.9), transparent);
    transition: background-color 0.3s, box-shadow 0.3s;
}
.main-header.scrolled {
    background-color: var(--bg-dark);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.main-nav a { padding: 8px 15px; color: var(--text-secondary); font-weight: 500; transition: color 0.2s; text-decoration: none; position: relative; }
.main-nav a:hover { color: var(--text-primary); }
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-gradient);
    transition: width 0.3s ease;
}
.main-nav a:hover::after {
    width: 50%;
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.btn { padding: 8px 20px; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); }
.btn-primary { background: var(--brand-gradient); color: white; }

/* --- MAIN CONTENT & HERO --- */
.main-content {
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 80px;
}

/* LEFT SIDE */
.hero-text { padding-right: 5%; }
.hero-text .number { 
    font-size: clamp(40px, 6vw, 72px); 
    font-weight: 800; 
    line-height: 1; 
    background: var(--brand-gradient); 
    -webkit-background-clip: text; 
    background-clip: text; 
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: gradient-flow 5s ease-in-out infinite;
}
.hero-text h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; line-height: 1.1; margin-bottom: 25px; }
.hero-text .text-secondary { font-size: 16px; max-width: 400px; line-height: 1.7; }
.download-section { margin-top: 40px; }
.download-section span { color: var(--text-secondary); font-size: 14px; margin-bottom: 15px; display: block; }
.app-buttons { display: flex; gap: 15px; }
.app-download-wrapper { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.app-button { display: flex; align-items: center; gap: 12px; padding: 10px 15px; background-color: var(--bg-card); border-radius: 12px; text-decoration: none; transition: all 0.2s; width: 180px; }
.app-button:hover { background-color: var(--bg-light); transform: translateY(-3px); }
.app-button-icon { flex-shrink: 0; }
.app-button-icon svg { color: var(--text-primary); width: 28px; height: 28px;}
.app-button-text { display: flex; flex-direction: column; line-height: 1.2; font-weight: 500; flex-grow: 1; color: var(--text-primary); }
.app-button-text span:last-child { font-size: 13px; color: var(--text-secondary); }
.app-button-qr { flex-shrink: 0; padding-left: 10px; border-left: 1px solid var(--bg-dark); }
.app-button-qr svg { color: var(--text-secondary); }
.app-version { font-size: 12px; color: var(--text-secondary); padding-left: 5px; }

/* --- RIGHT SIDE - VISUAL --- */
.hero-visual {
    position: relative;
    width: 100%;
    height: 80vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px; 
}
.rotating-coin {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: rotate-coin 40s linear infinite;
    transform-style: preserve-3d;
}
.rotating-coin svg {
    width: 100%;
    height: 100%;
    max-width: 800px;
    max-height: 800px;
    fill: var(--btc-orange);
}

.crypto-widget-container {
    position: absolute;
    z-index: 10;
    transform: rotateY(-15deg) rotateX(5deg);
    box-shadow: -40px 40px 100px rgba(0,0,0,0.5);
    width: 450px;
    border-radius: 24px;
    background: rgba(28, 28, 43, 0.7);
    border: 1px solid var(--bg-card);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    overflow: hidden;
}

.crypto-card {
    padding: 25px;
    border-bottom: 1px solid var(--bg-card);
}
.crypto-card-price .symbol { font-size: 16px; font-weight: 600; color: var(--text-secondary); margin-bottom: 5px; }
.crypto-card-price .price { font-size: 32px; font-weight: 700; }
.crypto-card-price .change { font-size: 18px; font-weight: 600; }
.crypto-card-price .change.positive { color: var(--success); }
.crypto-card-price .change.negative { color: var(--danger); }

.other-coins-list {
    padding: 10px 15px 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.other-coin-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border-radius: 8px;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;
}
.other-coin-item:hover {
    transform: translateX(5px);
    background-color: rgba(255, 255, 255, 0.04);
}
.other-coin-item .info { display: flex; align-items: center; gap: 12px; }
.other-coin-item .icon { width: 32px; height: 32px; }
.other-coin-item .icon .sol-color { fill: #9945FF; }
.other-coin-item .icon .xrp-color { fill: #B0B7C3; }
.other-coin-item .icon .icx-color { fill: #00E5FF; }
.other-coin-item .icon .matic-color { fill: #8247E5; }
.other-coin-item .icon .usdt-color { fill: #26A17B; }
.other-coin-item .icon .doge-color { fill: #C3A634; }
.other-coin-item .icon .tron-color { fill: #EF0027; }
.other-coin-item .name-symbol .name { font-size: 16px; font-weight: 500; color: var(--text-primary); }
.other-coin-item .name-symbol .symbol { font-size: 13px; color: var(--text-secondary); }
.other-coin-item .price-info { text-align: right; }
.other-coin-item .price { font-size: 16px; font-weight: 500; color: var(--text-primary); }
.other-coin-item .change { font-size: 13px; }
.other-coin-item .change.positive { color: var(--success); }
.other-coin-item .change.negative { color: var(--danger); }

@keyframes rotate-coin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes gradient-flow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* --- SCROLL-BASED ANIMATIONS --- */
.faq-section, .cta-section, .main-footer-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.faq-section.visible, 
.cta-section.visible, 
.main-footer-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- FAQ Section --- */
.faq-section { background-color: var(--bg-dark); padding: 100px 0; text-align: center; }
.faq-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 50px; }
.faq-accordion { max-width: 800px; margin: 0 auto; text-align: left; }
.faq-accordion details { background-color: transparent; border-bottom: 1px solid var(--bg-card); margin-bottom: 10px; }
.faq-accordion summary { padding: 20px 10px; font-weight: 500; font-size: 18px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 20px; position: relative; color: var(--text-primary); }
.faq-accordion summary::-webkit-details-marker { display: none; }
.faq-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 1px solid var(--text-secondary); border-radius: 50%; font-size: 14px; color: var(--text-secondary); flex-shrink: 0; }
.faq-accordion summary::after { content: '+'; font-size: 28px; color: var(--text-secondary); position: absolute; right: 10px; transition: transform 0.2s ease-in-out; }
.faq-accordion details[open] summary::after { transform: rotate(45deg); }
.faq-accordion p { padding: 0 10px 20px 58px; color: var(--text-secondary); line-height: 1.7; }

/* --- CTA Section --- */
.cta-section { background-color: var(--bg-light); padding: 80px 0; text-align: center; }
.cta-section h2 { font-size: 36px; font-weight: 700; margin-bottom: 30px; }
.btn-cta { background-color: #fcd535; color: #12121c; padding: 15px 40px; font-size: 18px; border-radius: 8px; text-decoration: none; }
.btn-cta:hover { opacity: 0.9; }

/* --- Footer Section --- */
.main-footer-section { background-color: #0B0B13; padding-top: 60px; color: var(--text-secondary); font-size: 14px; }
.footer-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 60px; }
.footer-column h4 { color: var(--text-primary); font-size: 16px; font-weight: 600; margin-bottom: 20px; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 12px; }
.footer-column a { color: var(--text-secondary); text-decoration: none; transition: color 0.2s; }
.footer-column a:hover { color: var(--brand-color-light); }
.social-icons { display: flex; gap: 15px; }
.social-icons a { width: 24px; height: 24px; color: var(--text-secondary); }
.social-icons a:hover { color: var(--text-primary); }
.social-icons svg { width: 100%; height: 100%; }
.footer-bottom { border-top: 1px solid var(--bg-card); padding: 20px 0; text-align: center; font-size: 14px; }

/* --- RESPONSIVE --- */
@media(max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-text { padding: 0; }
    .download-section, .app-buttons { justify-content: center; }
    .hero-visual { display: none; }
}
@media(max-width: 768px) {
    .main-nav { display: none; }
    .hero-text h1, .hero-text .number { font-size: 48px; }
    .faq-accordion summary { font-size: 16px; }
    .faq-accordion p { padding-left: 20px; padding-right: 20px; }
    .faq-number { display: none; }
    .footer-container { grid-template-columns: 1fr 1fr; }
}