/* ========================================
   ClawTrading - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a24;
    --bg-card: #16161f;
    
    --accent-primary: #00e676;
    --accent-secondary: #00b8d4;
    --accent-gold: #ffd700;
    
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    --border-color: #2a2a3a;
    --border-light: #3a3a4a;
    
    --success: #00e676;
    --danger: #ff5252;
    --warning: #ffd700;
    
    --gradient-primary: linear-gradient(135deg, #00e676 0%, #00b8d4 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0f 0%, #12121a 100%);
    
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(0, 230, 118, 0.15);
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-main);
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #0a0a0f;
    box-shadow: 0 4px 20px rgba(0, 230, 118, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 230, 118, 0.4);
}

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

.btn-outline:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-full {
    width: 100%;
}

.btn-discord {
    background: #5865F2;
    color: white;
    font-size: 16px;
    padding: 16px 32px;
}

.btn-discord:hover {
    background: #4752c4;
    transform: translateY(-2px);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 20px;
}

.logo-icon {
    font-size: 28px;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 230, 118, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 80% 60%, rgba(0, 184, 212, 0.1), transparent);
    z-index: -1;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

/* Chart Preview */
.hero-visual {
    position: relative;
}

.hero-image {
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.chart-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chart-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.chart-dots {
    display: flex;
    gap: 6px;
}

.chart-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
}

.chart-dots span:first-child { background: #ff5f57; }
.chart-dots span:nth-child(2) { background: #febc2e; }
.chart-dots span:nth-child(3) { background: #28c840; }

.chart-title {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.chart-body {
    position: relative;
    height: 280px;
    padding: 20px;
    background: 
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px),
        linear-gradient(var(--border-color) 1px, transparent 1px);
    background-size: 40px 40px;
}

.chart-line {
    position: absolute;
    bottom: 20%;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    transform: rotate(2deg);
    opacity: 0.3;
}

.signal-marker {
    position: absolute;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}

.signal-marker.buy {
    bottom: 45%;
    left: 25%;
    background: rgba(0, 230, 118, 0.2);
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.signal-marker.sell {
    top: 35%;
    right: 20%;
    background: rgba(255, 82, 82, 0.2);
    color: var(--danger);
    border: 1px solid var(--danger);
}

.tp-line, .sl-line {
    position: absolute;
    left: 35%;
    width: 60px;
    height: 1px;
}

.tp-line {
    top: 30%;
    background: var(--accent-primary);
}

.sl-line {
    bottom: 55%;
    background: var(--danger);
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--accent-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 230, 118, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

/* Indicators Section */
.indicators {
    padding: 100px 0;
}

.indicator-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.tab {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab.active, .tab:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.code-header span {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.copy-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.code-block pre {
    padding: 20px;
    overflow-x: auto;
    max-height: 400px;
}

.code-block code {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.8;
}

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

/* Results / Comparison Section */
.results {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.comparison-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 48px;
}

.comparison-card {
    flex: 1;
    max-width: 500px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.comparison-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.comparison-label {
    padding: 12px 20px;
    background: var(--bg-tertiary);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-image {
    width: 100%;
    min-height: 300px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.comparison-image img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: top left;
}

.comparison-desc {
    padding: 16px 20px;
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.comparison-arrow {
    color: var(--accent-primary);
    flex-shrink: 0;
}

.results-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
}

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

.rs-value {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.rs-label {
    font-size: 13px;
    color: var(--text-muted);
}

/* Wins Section */
.wins {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.wins-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.win-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
}

.win-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.win-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
}

.win-ticker {
    font-size: 16px;
    font-weight: 700;
}

.win-type {
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
}

.win-type.sell {
    background: rgba(255, 82, 82, 0.2);
    color: var(--danger);
}

.win-type.buy {
    background: rgba(0, 230, 118, 0.2);
    color: var(--accent-primary);
}

.win-image {
    width: 100%;
    overflow: hidden;
}

.win-image img {
    width: 100%;
    height: auto;
    display: block;
}

.win-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
}

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

.ws-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
}

.ws-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.ws-value.profit {
    color: var(--accent-primary);
}

.ws-value.loss {
    color: var(--danger);
}

.if-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

.if-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 230, 118, 0.1);
    color: var(--accent-primary);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.if-item span:last-child {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-glow);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    color: var(--bg-primary);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.currency {
    font-size: 20px;
    color: var(--text-secondary);
}

.amount {
    font-size: 48px;
    font-weight: 800;
}

.period {
    font-size: 14px;
    color: var(--text-muted);
}

.pricing-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features {
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li span:first-child {
    color: var(--accent-primary);
    font-weight: 700;
}

/* Discord Section */
.discord {
    padding: 100px 0;
}

.discord .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.discord-content h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.discord-content > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.discord-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}

.df-item {
    display: flex;
    gap: 16px;
}

.df-icon {
    font-size: 24px;
}

.df-item h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.df-item p {
    font-size: 13px;
    color: var(--text-muted);
}

.discord-preview {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
}

.discord-header {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.discord-message {
    display: flex;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
}

.avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.msg-content {
    flex: 1;
}

.username {
    font-weight: 700;
    margin-right: 6px;
}

.bot-tag {
    display: inline-block;
    padding: 2px 6px;
    background: #5865F2;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    color: white;
    margin-right: 8px;
}

.time {
    font-size: 11px;
    color: var(--text-muted);
}

.msg-text {
    margin-top: 8px;
    padding: 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: 
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(0, 230, 118, 0.15), transparent);
}

.cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 280px;
}

.footer-links h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero .container,
    .discord .container {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .features-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .indicator-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .features-grid,
    .pricing-grid,
    .discord-features,
    .indicator-features,
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .comparison-grid {
        flex-direction: column;
    }
    
    .wins-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-arrow {
        transform: rotate(90deg);
    }
    
    .results-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
}
