/* Modern, professional styling for ABI Trading Platform website */

:root {
    --primary-color: #00ff88;
    --secondary-color: #ff6600;
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --text-primary: #ffffff;
    --text-secondary: #c0c0c0;
    --card-bg: #1a1a1a;
    --border-color: #333333;
    --accent-glow: rgba(0, 255, 136, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    border-bottom: 2px solid var(--primary-color);
    padding: 2rem 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--accent-glow);
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* Hero Section */
.hero {
    padding: 4rem 0;
    text-align: center;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 2rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-dark);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: #00cc6f;
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.feature-card p {
    color: var(--text-secondary);
}

/* How It Works */
.how-it-works {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.section-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.how-it-works h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.step-number {
    background: var(--primary-color);
    color: var(--bg-dark);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.step p {
    color: var(--text-secondary);
}

/* Merchant Loop Section */
.merchant-loop {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.merchant-loop h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.loop-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

.loop-step {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: center;
    min-width: 150px;
    max-width: 180px;
    transition: all 0.3s ease;
    flex: 1 1 auto;
}

.loop-step:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.2);
}

.loop-step.loop-profit {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(255, 102, 0, 0.1) 100%);
}

.loop-step.loop-profit:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.3);
}

.loop-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.loop-step h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.loop-step.loop-profit h3 {
    color: var(--secondary-color);
}

.loop-step p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.loop-arrow {
    font-size: 2rem;
    color: var(--primary-color);
    font-weight: bold;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .loop-arrow {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
    
    .loop-container {
        flex-direction: column;
    }
}

/* Investment Theory Section */
.investment-theory {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.investment-theory h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.theory-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.theory-chart-container {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
}

.theory-chart {
    width: 100%;
    height: auto;
    max-width: 600px;
}

.theory-explanation {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.theory-point {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.theory-point h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.theory-point p {
    color: var(--text-secondary);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .theory-content {
        grid-template-columns: 1fr;
    }
    
    .theory-chart-container {
        order: 2;
    }
    
    .theory-explanation {
        order: 1;
    }
}

/* Screenshot Section */
.screenshot {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.screenshot h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.screenshot-description {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.screenshot-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--border-color);
}

.screenshot-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-image:hover {
    transform: scale(1.02);
}

.screenshot-placeholder {
    display: none;
    width: 100%;
    min-height: 500px;
    background: var(--card-bg);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem;
}

.screenshot-placeholder.show {
    display: flex;
}

.placeholder-content {
    color: var(--text-secondary);
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.placeholder-content p {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.placeholder-content small {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hide placeholder if image loads */
.screenshot-image:not([src=""]) ~ .screenshot-placeholder {
    display: none;
}

/* Download Section */
.download {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.download h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.download-card {
    max-width: 700px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    text-align: center;
    box-shadow: 0 0 40px var(--accent-glow);
}

.download-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.download-card > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.download-info {
    text-align: left;
    margin: 2rem 0;
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 8px;
}

.download-info ul {
    list-style: none;
    color: var(--text-secondary);
}

.download-info li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.download-info li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.download-note {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.download-warning {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 196, 0, 0.08);
    border: 1px solid rgba(255, 196, 0, 0.35);
    border-radius: 8px;
    color: var(--text-secondary);
    text-align: left;
    line-height: 1.55;
}

.download-warning h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.download-warning p {
    margin-bottom: 0.75rem;
}

.download-warning ol {
    margin: 0.5rem 0 1rem 1.25rem;
    padding-left: 1rem;
}

.download-warning li {
    margin-bottom: 0.35rem;
}

/* Update Instructions */
.update-instructions {
    max-width: 700px;
    margin: 3rem auto 0;
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-align: left;
}

.update-instructions h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.update-instructions > p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.update-instructions ol {
    color: var(--text-primary);
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.update-instructions ol li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.update-instructions ol li strong {
    color: var(--primary-color);
}

.update-instructions code {
    background: var(--bg-dark);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', monospace;
    color: var(--primary-color);
    font-size: 0.9em;
    border: 1px solid var(--border-color);
}

.update-warning {
    background: rgba(255, 102, 0, 0.1);
    border-left: 4px solid var(--secondary-color);
    padding: 1rem;
    border-radius: 4px;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.update-warning strong {
    color: var(--secondary-color);
}

/* Community Message Section */
.community-message {
    padding: 4rem 0;
    background: var(--bg-darker);
}

.community-message h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.community-message-content {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    line-height: 1.8;
}

.community-message-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.community-message-content strong {
    color: var(--primary-color);
}

.community-message-content .signature {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* For Tencent Section */
.for-tencent {
    padding: 4rem 0;
    background: var(--bg-dark);
}

.for-tencent h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.tencent-message {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 12px;
    border: 2px solid var(--secondary-color);
    line-height: 1.8;
}

.tencent-message p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.tencent-message strong {
    color: var(--secondary-color);
}

.policy-list {
    list-style: none;
    margin: 2rem 0;
    padding-left: 0;
}

.policy-list li {
    padding: 1rem;
    margin-bottom: 1rem;
    background: var(--bg-dark);
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
}

.policy-list li strong {
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.signature {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-secondary);
}

/* Community Section */
.community {
    padding: 4rem 0;
    background: var(--bg-darker);
    text-align: center;
}

.community h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.community > .container > p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.community-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.community-link {
    padding: 1rem 2rem;
    background: var(--card-bg);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
}

.community-link:hover {
    background: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-2px);
}

/* Signature Email Link */
.signature a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.signature a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    text-align: center;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.disclaimer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .hero h2 {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .step {
        flex-direction: column;
        text-align: center;
    }

    .tencent-message {
        padding: 2rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--primary-color);
    color: var(--bg-dark);
}

