/* TradingView Signal Bot Page */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary-color: #3861fb;
    --primary-dark: #2850e8;
    --secondary-color: #00c9a7;
    --bg-dark: #0f1419;
    --bg-secondary: #1a1f26;
    --bg-card: #1e2329;
    --text-primary: #ffffff;
    --text-secondary: #b7bdc6;
    --text-muted: #848e9c;
    --border-color: #2b3139;
    --success: #00c9a7;
    --danger: #f6465d;
    --warning: #fcd535;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header */
.header {
    background: rgba(15, 20, 25, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    width: 100%;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 60px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 28px;
    height: 28px;
    stroke-width: 2.5;
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a {
    color: #b7bdc6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 1rem;
}

.nav a:hover,
.nav a.active {
    color: #fff;
}

.btn-text {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: opacity 0.3s;
}

.btn-text:hover {
    opacity: 0.8;
}

.btn-sm {
    padding: 12px 24px;
    font-size: 1rem;
    border-radius: 8px;
    font-weight: 600;
}

/* Hero Section */
.hero-section {
    padding: 100px 0;
    background: #0f1419;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, #b7bdc6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 24px;
    font-weight: 600;
}

.hero-description {
    font-size: 1.2rem;
    color: #848e9c;
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 60px;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: #3861fb;
    color: white;
}

.btn-primary:hover {
    background: #2850e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(56, 97, 251, 0.25);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    background: rgba(56, 97, 251, 0.1);
}

.btn-large {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Signal Bot Preview */
.hero-image-container {
    position: relative;
}

.signal-bot-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.preview-header {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.preview-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.preview-status {
    color: var(--success);
    font-size: 0.9rem;
}

.preview-body {
    padding: 20px;
}

.signal-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 12px;
    transition: all 0.3s;
}

.signal-item:hover {
    background: #252a31;
    transform: translateX(4px);
}

.signal-item:last-child {
    margin-bottom: 0;
}

.signal-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.signal-icon svg {
    width: 24px;
    height: 24px;
}

.signal-up {
    background: rgba(0, 201, 167, 0.1);
    color: var(--success);
}

.signal-down {
    background: rgba(246, 70, 93, 0.1);
    color: var(--danger);
}

.signal-flash {
    background: rgba(252, 213, 53, 0.1);
    color: var(--warning);
}

.signal-text {
    flex: 1;
    font-size: 0.95rem;
}

.signal-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 60px;
}

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
    box-shadow: 0 8px 24px rgba(56, 97, 251, 0.2);
}

.step-number {
    position: absolute;
    top: -12px;
    left: 24px;
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 20px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(56, 97, 251, 0.1) 0%, rgba(91, 124, 255, 0.1) 100%);
    border-radius: 16px;
    color: var(--primary-color);
}

.step-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.step-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.step-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s;
}

.feature-box:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(56, 97, 251, 0.1) 0%, rgba(91, 124, 255, 0.1) 100%);
    border-radius: 16px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 2.5;
}

.feature-box h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.feature-box p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Webhook Setup */
.webhook-setup {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.setup-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 60px;
}

.setup-step {
    margin-bottom: 40px;
}

.setup-step-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.setup-step-number {
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.85rem;
    font-weight: 600;
}

.setup-step h3 {
    font-size: 1.3rem;
    font-weight: 700;
}

.setup-step p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.7;
}

.webhook-url-box {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px;
    align-items: center;
}

.webhook-url-box code {
    flex: 1;
    color: var(--primary-color);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--primary-dark);
}

.code-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
}

.code-block code {
    color: var(--secondary-color);
    font-family: 'Monaco', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
}

.copy-icon-svg {
    width: 16px;
    height: 16px;
}

/* TradingView Preview */
.tradingview-preview {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.tv-header {
    padding: 16px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
}

.tv-body {
    padding: 24px;
}

.tv-field {
    margin-bottom: 20px;
}

.tv-field:last-child {
    margin-bottom: 0;
}

.tv-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.tv-input,
.tv-textarea {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.tv-textarea {
    font-family: 'Monaco', 'Courier New', monospace;
    line-height: 1.6;
}

.tv-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: 6px;
    color: var(--text-muted);
}

/* Exchanges Section */
.exchanges-section {
    padding: 100px 0;
}

.exchanges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.exchange-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.exchange-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.exchange-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.exchange-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.exchange-logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    transition: all 0.3s;
}

.exchange-logo svg {
    width: 48px;
    height: 48px;
}

.exchange-logo.binance {
    background: linear-gradient(135deg, #f3ba2f 0%, #f0b90b 100%);
    color: #000;
}

.exchange-logo.okx {
    background: linear-gradient(135deg, #000 0%, #1a1a1a 100%);
    color: #fff;
}

.exchange-logo.gate {
    background: linear-gradient(135deg, #17e1ac 0%, #13b68a 100%);
    color: #000;
}

.exchange-logo.bybit {
    background: linear-gradient(135deg, #f7a600 0%, #ff9500 100%);
    color: #000;
}

.exchange-logo.bitget {
    background: linear-gradient(135deg, #00f0ff 0%, #00c8ff 100%);
    color: #000;
}

.exchange-logo.coinbase {
    background: linear-gradient(135deg, #0052ff 0%, #0041cc 100%);
    color: #fff;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5b7cff 100%);
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.cta-section .btn-primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .btn-primary:hover {
    background: #f0f0f0;
}

.cta-section .btn-secondary {
    background: transparent;
    border-color: white;
    color: white;
}

.cta-section .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-color);
    width: 100%;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-col a,
.footer-col p {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .setup-content {
        grid-template-columns: 1fr;
    }

    .exchanges-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .steps-grid,
    .features-grid,
    .exchanges-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav {
        gap: 16px;
    }

    .section-title {
        font-size: 2rem;
    }
}