/* 
 * Advanced & Professional CSS for OpenAne Promotional Site
 * Version 2.0 - Enhanced UI/UX
 */

:root {
    --primary-color: #ffd700; /* Gold from 1.html */
    --accent-color: #ff6633; /* Red/Up color from 1.html */
    --success-color: #00ff00; /* Green from 1.html */
    --bg-dark: #050505;
    --bg-panel: #111111;
    --bg-card: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #999999;
    --border-color: #2a2a2a;
    --border-glow: rgba(255, 215, 0, 0.1);
    --nav-height: 70px;
    --transition-speed: 0.4s;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

body {
    font-family: "Inter", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    /* Custom scrollbar for IE, Edge and Firefox */
    -ms-overflow-style: none;
    scrollbar-width: thin;
    scrollbar-color: #000 #000;
}

/* Custom scrollbar */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: #000;
}

body::-webkit-scrollbar-thumb {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #111;
}

/* Apply to all scrollable elements */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: #000;
    border: 1px solid #333;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #111;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Ticker System --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: #000;
    border-bottom: 1px solid var(--border-color);
    height: 35px;
    position: fixed;
    top: 50px;
    z-index: 1001;
    display: flex;
    align-items: center;
    flex-direction: row;
    white-space: nowrap;
}

.ticker-title {
    background: var(--primary-color);
    color: #000;
    padding: 0 15px;
    font-size: 12px;
    font-weight: 800;
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.ticker {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding-right: 100%;
    animation: ticker 60s linear infinite;
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    padding: 0 20px;
    font-size: 13px;
    font-family: var(--font-mono);
}

.ticker-up { color: var(--accent-color); }
.ticker-down { color: var(--success-color); }
.positive { color: var(--accent-color); }
.negative { color: var(--success-color); }
.flash-up { animation: flashUp 600ms ease-out; }
.flash-down { animation: flashDown 600ms ease-out; }
@keyframes flashUp {  
    0% { background-color: rgba(255, 102, 51, 0.25); }  
    100% { background-color: transparent; }  
}
@keyframes flashDown {  
    0% { background-color: rgba(0, 255, 0, 0.25); }  
    100% { background-color: transparent; }  
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* --- Header --- */
header {
    height: 40px;
    background-color: #000;
    border-bottom: 1px solid var(--primary-color);
    position: fixed;
    top: 85px; /* Below ticker and market overview */
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
}

nav {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 20px;
}

.nav-left {
    flex: 1;
}

.nav-tagline {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 700;
}

.nav-logo {
    margin: 0 20px;
}

.nav-logo a {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 900;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-logo small {
    font-size: 12px;
    margin-left: 5px;
    font-weight: 400;
}

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

.nav-links a {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    padding: 0 5px;
}

.nav-links a::after {
    content: '●';
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 8px;
    opacity: 0.6;
}

.nav-links li:last-child a::after {
    display: none;
}

.nav-links a:hover, .nav-links a.active {
    background-color: var(--primary-color);
    color: #000;
    border-radius: 2px;
}

/* --- Hero --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.05) 0%, rgba(0, 0, 0, 1) 70%), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=dynamic%20financial%20background%20with%20golden%20stock%20charts%20and%20currency%20symbols%20on%20dark%20background%2C%20professional%20finance%20theme&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    padding-top: 160px;
    position: relative;
    animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 900;
    background: linear-gradient(135deg, #fff 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 45px;
    max-width: 650px;
}

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

.btn {
    padding: 16px 32px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--primary-color);
    color: #000;
    border: none;
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

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

.btn-outline:hover,
.btn-outline:focus {
    background: rgba(255, 215, 0, 0.05);
    transform: translateY(-5px);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* --- Live Dashboard Simulator --- */
.dashboard-preview {
    margin-top: 80px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}

.dashboard-header {
    background: #1a1a1a;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.dots { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.dashboard-body {
    padding: 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    height: 400px;
}

.sim-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 13px;
}

.sim-table th {
    text-align: left;
    color: var(--text-muted);
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.sim-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #1a1a1a;
}

.mini-chart-container {
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

/* --- Features Section --- */
.features {
    padding: 120px 0;
}

.section-tag {
    color: var(--primary-color);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 15px;
    text-align: center;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 70px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-card {
    background: var(--bg-card);
    padding: 50px 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 30px;
    display: block;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #fff;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
}

/* --- Data Ecosystem --- */
.ecosystem {
    background-color: var(--bg-panel);
    padding: 100px 0;
}

.eco-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.eco-item {
    text-align: center;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
}

.eco-item img {
    height: 30px;
    filter: grayscale(1) invert(1);
    opacity: 0.5;
    margin-bottom: 15px;
}

/* --- Contact Page Styles --- */
.contact-header {
    padding: 60px 0;
    background-color: var(--bg-panel);
    margin-top: 75px;
}

.contact-content {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.support-item {
    margin-bottom: 20px;
}

.support-item h4 {
    color: var(--accent-color);
    margin-bottom: 10px;
}

.support-item p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.social-icons {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-panel);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
}

/* Form Styles */
.contact-form {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-light);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: #000;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn-primary {
    width: 100%;
    border: none;
}

/* FAQ Section */
.faq-section {
    background-color: var(--bg-panel);
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
}

.faq-item h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.faq-item p {
    color: var(--text-muted);
}

/* --- Call to Action Section --- */
.cta-section {
    padding: 150px 0;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: 48px;
    margin-bottom: 30px;
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 50px;
    font-size: 18px;
}

/* --- Footer --- */
footer {
    padding: 100px 0 50px;
    background: #000;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-logo {
    font-size: 24px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.footer-desc {
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 16px;
    margin-bottom: 25px;
    color: #fff;
}

.footer-col ul li {
    margin-bottom: 15px;
}

.footer-col ul li a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-col ul li a:hover,
.footer-col ul li a:focus {
    color: var(--primary-color);
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    padding: 2px 4px;
    border-radius: 2px;
}

.mobile-menu-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

.copyright-bar {
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
}

/* --- Mobile Menu Button --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

/* --- Mobile --- */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .eco-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 52px; }
    .cta-section h2 { font-size: 36px; }
}

@media (max-width: 768px) {
    .container { padding: 0 25px; }
    .hero h1 { font-size: 42px; }
    .features-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .eco-grid { grid-template-columns: 1fr; }
    .dashboard-body { grid-template-columns: 1fr; height: auto; }
    .mini-chart-container { display: none; }
    .mobile-menu-btn { display: block; }
    .nav-tagline {
        display: none;
    }
    .nav-logo a {
        font-size: 20px;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 75px;
        left: 0;
        width: 100%;
        background: #000;
        padding: 40px;
        z-index: 1000;
        gap: 20px;
    }
    .nav-links.active {
        display: flex;
    }
    .nav-links a::after {
        display: none;
    }
    .cta-section {
        padding: 100px 0;
    }
    .cta-section h2 { font-size: 28px; }
    .cta-section p { font-size: 16px; }
    .btn-group {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    /* Contact Page Responsive */
    .contact-header {
        margin-top: 75px;
    }
    .contact-content {
        padding: 60px 0;
    }
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form {
        padding: 30px;
    }
    .faq-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 32px; }
    .hero p { font-size: 16px; }
    .section-title h2 { font-size: 32px; }
    .feature-card {
        padding: 30px 20px;
    }
    .footer-grid {
        gap: 40px;
    }
    .copyright-bar {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}
