:root {
    --bg-base: #030008;
    --bg-surface: #0a0612;
    --bg-elevated: #120d1c;
    --bg-card: rgba(18, 13, 28, 0.6);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    --accent-purple: #a855f7;
    --accent-violet: #8b5cf6;
    --accent-indigo: #6366f1;
    --accent-blue: #3b82f6;
    --success: #22c55e;
    --danger: #ef4444;
    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-indigo) 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0.05) 100%);
    --glow-purple: 0 0 60px rgba(168, 85, 247, 0.3);
    --glow-soft: 0 0 100px rgba(168, 85, 247, 0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* Noise & Background */
.noise-overlay {
    position: fixed;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

.gradient-bg {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.gradient-orb-1 {
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-purple) 0%, transparent 70%);
    top: -400px;
    right: -200px;
    animation-delay: 0s;
}

.gradient-orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
    bottom: -200px;
    left: -200px;
    animation-delay: -7s;
}

.gradient-orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, 30px) scale(1.05);
    }

    50% {
        transform: translate(-30px, 50px) scale(0.95);
    }

    75% {
        transform: translate(-50px, -30px) scale(1.02);
    }
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
}

.nav.scrolled {
    background: rgba(3, 0, 8, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-mark {
    width: 36px;
    height: 36px;
}

.logo-mark svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.2s;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: var(--glow-soft);
}

.nav-cta svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.nav-cta:hover svg {
    transform: translateX(4px);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 24px 100px;
    max-width: 1400px;
    margin: 0 auto;
    gap: 80px;
}

.hero-content {
    flex: 1;
    max-width: 580px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 10px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    margin-bottom: 28px;
}

.eyebrow-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.9);
    }
}

.hero-eyebrow span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
}

.hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-desc {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 56px;
}

.btn-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--glow-soft);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-purple);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.btn-ghost svg {
    width: 18px;
    height: 18px;
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.hero-metrics {
    display: flex;
    align-items: center;
    gap: 36px;
}

.metric {
    text-align: left;
}

.metric-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.metric-value::after {
    content: '%';
    font-size: 24px;
    opacity: 0.5;
    margin-left: 2px;
}

.metric:last-child .metric-value::after {
    content: '+';
}

.metric-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 6px;
}

.metric-sep {
    width: 1px;
    height: 50px;
    background: var(--border-light);
}

/* Hero Visual */
.hero-visual {
    flex: 1;
    position: relative;
    max-width: 540px;
}

.visual-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle at center, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    z-index: 0;
}

.trading-card {
    position: relative;
    z-index: 1;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 24px;
    backdrop-filter: blur(40px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.trading-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.trading-pair {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pair-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #627eea 0%, #3c3c3d 100%);
    border-radius: 50%;
    font-size: 20px;
}

.pair-info {
    display: flex;
    flex-direction: column;
}

.pair-name {
    font-weight: 600;
    font-size: 16px;
}

.pair-change {
    font-size: 13px;
    font-weight: 500;
}

.pair-change.positive {
    color: var(--success);
}

.trading-timeframe {
    padding: 6px 14px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.trading-chart {
    position: relative;
    height: 220px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

#mainChart {
    width: 100%;
    height: 100%;
}

.chart-signal {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    z-index: 10;
}

.chart-signal-buy {
    background: var(--success);
    color: white;
}

.chart-signal-sell {
    background: var(--danger);
    color: white;
}

.signal-pulse {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: signalPulse 1.5s infinite;
}

@keyframes signalPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.trading-card-footer {
    display: flex;
    gap: 20px;
}

.indicator {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.indicator-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 30px;
}

.indicator-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.indicator-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.indicator-bar.vol .indicator-fill {
    background: var(--success);
}

.indicator-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

/* Floating Stats */
.floating-stat {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    animation: floatStat 4s ease-in-out infinite;
    z-index: 2;
}

.stat-1 {
    top: 20%;
    right: -60px;
    animation-delay: 0s;
}

.stat-2 {
    bottom: 15%;
    left: -40px;
    animation-delay: -2s;
}

@keyframes floatStat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.floating-stat-icon {
    font-size: 24px;
}

.floating-stat-icon-svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-purple);
}

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

.floating-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--success);
}

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

/* Logos */
.logos {
    padding: 60px 0;
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.logos-label {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 30px;
}

.logos-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.logos-slide {
    display: flex;
    gap: 80px;
    padding-right: 80px;
}

.logos-slide span {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.logos-slide span:hover {
    opacity: 1;
    color: var(--text-primary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Section Styles */
section {
    padding: 140px 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 70px;
}

.section-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 17px;
    color: var(--text-secondary);
}

/* Features */
.features {
    background: linear-gradient(180deg, var(--bg-base) 0%, var(--bg-surface) 100%);
}

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

.feature-card {
    position: relative;
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    transition: all 0.4s ease;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
    transform: translateY(-8px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card.featured {
    border-color: rgba(168, 85, 247, 0.3);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, var(--bg-card) 100%);
}

.feature-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 12px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.feature-number {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: rgba(168, 85, 247, 0.1);
    line-height: 1;
    margin-bottom: 20px;
}

.feature-icon {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-subtle);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent-purple);
}

.feature-title {
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-desc {
    position: relative;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.feature-stats {
    position: relative;
    display: flex;
    gap: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.feature-stat {
    flex: 1;
}

.feature-stat-value {
    display: block;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--accent-purple);
}

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

/* Performance */
.performance-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px;
    backdrop-filter: blur(20px);
}

.performance-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
}

.perf-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-icon {
    font-size: 16px;
}

.perf-tab:hover {
    border-color: var(--border-light);
    color: var(--text-primary);
}

.perf-tab.active {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
}

.performance-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.perf-card {
    padding: 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.2s;
}

.perf-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.perf-card-symbol {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.perf-card-return {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.perf-card-return.positive {
    color: var(--success);
}

.perf-card-return.negative {
    color: var(--danger);
}

.perf-card-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
}

.performance-summary {
    display: flex;
    justify-content: center;
    gap: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.summary-icon {
    font-size: 32px;
}

.summary-icon-svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-purple);
}

.tab-icon-svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
}

.summary-data {
    display: flex;
    flex-direction: column;
}

.summary-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

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

/* Process */
.process {
    background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-base) 100%);
}

.process-timeline {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.process-line {
    position: absolute;
    left: 24px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-purple) 0%, transparent 100%);
}

.process-step {
    position: relative;
    display: flex;
    gap: 40px;
    padding: 40px 0;
}

.step-marker {
    position: relative;
    width: 50px;
    flex-shrink: 0;
}

.step-dot {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--accent-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-dot::before {
    content: '';
    width: 12px;
    height: 12px;
    background: var(--accent-purple);
    border-radius: 50%;
}

.step-content {
    padding-top: 10px;
}

.step-number {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

.pricing-card {
    position: relative;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    transition: all 0.3s;
}

.pricing-card:hover {
    border-color: var(--border-light);
    transform: translateY(-8px);
}

.pricing-card.popular {
    border-color: var(--accent-purple);
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.1) 0%, var(--bg-card) 50%);
    transform: scale(1.05);
    z-index: 1;
}

.pricing-card.popular:hover {
    transform: scale(1.05) translateY(-8px);
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 20px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

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

.pricing-header h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 4px;
}

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

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

.price-amount {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 56px;
    font-weight: 700;
}

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

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

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

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

.pricing-features li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.pricing-features li.included svg {
    color: var(--success);
}

.pricing-features li.excluded {
    color: var(--text-muted);
}

.pricing-features li.excluded svg {
    color: var(--text-muted);
    opacity: 0.5;
}

.pricing-cta {
    display: block;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    text-align: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.pricing-cta:hover {
    background: rgba(255, 255, 255, 0.05);
}

.pricing-cta.primary {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    box-shadow: var(--glow-soft);
}

.pricing-cta.primary:hover {
    box-shadow: var(--glow-purple);
    transform: translateY(-2px);
}

/* CTA */
.cta {
    padding: 100px 0;
}

.cta-card {
    position: relative;
    padding: 80px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
}

.cta-content h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.cta-form .form-group {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.cta-form input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.cta-form input:focus {
    border-color: var(--accent-purple);
}

.cta-form input::placeholder {
    color: var(--text-muted);
}

.cta-form button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--glow-soft);
}

.cta-form button:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.cta-form button svg {
    width: 18px;
    height: 18px;
}

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

.cta-visual {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.cta-orb {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 280px;
}

.footer-brand .nav-logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 14px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

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

.footer-bottom .disclaimer {
    font-size: 12px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 60px;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-desc {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-metrics {
        justify-content: center;
    }

    .hero-visual {
        max-width: 100%;
    }

    .floating-stat {
        display: none;
    }

    .features-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing-card.popular {
        transform: none;
    }

    .performance-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hero-metrics {
        flex-direction: column;
        gap: 24px;
    }

    .metric-sep {
        display: none;
    }

    .performance-cards {
        grid-template-columns: 1fr;
    }

    .performance-summary {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer-grid {
        flex-direction: column;
        gap: 48px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .cta-form .form-group {
        flex-direction: column;
    }
}

/* ============================================
   AUTH MODALS
   ============================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.auth-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

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

.modal-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
}

.modal-logo svg {
    width: 100%;
    height: 100%;
}

.modal-header h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

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

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-field label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-field input {
    padding: 14px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 15px;
    transition: all 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.1);
}

.form-field input::placeholder {
    color: var(--text-muted);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-purple);
}

.checkbox-label.terms {
    font-size: 13px;
}

.checkbox-label.terms a {
    color: var(--accent-purple);
    text-decoration: none;
}

.checkbox-label.terms a:hover {
    text-decoration: underline;
}

.forgot-link {
    font-size: 14px;
    color: var(--accent-purple);
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.auth-submit {
    padding: 16px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--glow-soft);
}

.auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.social-btn:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
}

.social-btn svg {
    width: 20px;
    height: 20px;
}

.auth-switch {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-switch a {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Nav Auth Buttons */
.nav-auth {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-login {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

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

.nav-signup {
    padding: 10px 20px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--glow-soft);
}

.nav-signup:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-purple);
}

/* Bitcoin Icon */
.pair-icon.btc {
    background: linear-gradient(135deg, #f7931a 0%, #ffb84d 100%);
    color: white;
    font-weight: 700;
}

/* Trading Price Display */
.trading-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.trading-price .price-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.trading-price .price-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Chart Loading */
.chart-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
}

.chart-loading span {
    font-size: 13px;
    color: var(--text-muted);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Trading Card Stats */
.trading-card-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid var(--border);
}

.mini-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mini-stat-label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.mini-stat-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Pair change negative */
.pair-change.negative {
    color: var(--danger);
}

/* Floating stat colors */
.floating-stat-value.positive {
    color: var(--success);
}

.floating-stat-value.negative {
    color: var(--danger);
}

/* Responsive modal */
@media (max-width: 480px) {
    .auth-modal {
        max-width: calc(100% - 32px);
        padding: 32px 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .social-auth {
        grid-template-columns: 1fr;
    }

    .nav-auth {
        display: none;
    }
}
/* =========================================
   DOCS & API LAYOUT (PREMIUM)
   ========================================= */
.docs-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    padding-top: 80px;
}

.docs-sidebar {
    position: fixed;
    top: 80px;
    bottom: 0;
    width: 280px;
    background: rgba(10, 10, 12, 0.4);
    backdrop-filter: blur(12px);
    border-right: 1px solid var(--border);
    padding: 2rem;
    overflow-y: auto;
}

.docs-content {
    grid-column: 2;
    padding: 3rem 4rem;
    max-width: 1000px;
}

.sidebar-group {
    margin-bottom: 2rem;
}

.sidebar-heading {
    color: var(--text-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    margin-bottom: 1rem;
    padding-left: 1rem;
    border-left: 2px solid var(--accent-purple);
}

.sidebar-link {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-radius: 6px;
}

.sidebar-link:hover, .sidebar-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* Docs Typography */
.docs-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.docs-content h2 {
    font-size: 1.8rem;
    margin: 3rem 0 1.5rem;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.75rem;
}

.docs-content h3 {
    font-size: 1.4rem;
    margin: 2rem 0 1rem;
    color: #fff;
}

.docs-content p {
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* Code Blocks */
.code-block {
    background: #0f1115;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    position: relative;
    overflow-x: auto;
}

.code-block pre {
    font-family: 'Consolas', 'Monaco', monospace;
    color: #a5b4fc;
    font-size: 0.9rem;
    margin: 0;
}

.code-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.method-tag {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.75rem;
}

.method-get { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.method-post { background: rgba(99, 102, 241, 0.15); color: #818cf8; }

/* Endpoint Card */
.endpoint-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: border-color 0.3s;
}

.endpoint-card:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.endpoint-header {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.endpoint-path {
    font-family: monospace;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.endpoint-body {
    padding: 1.5rem;
}

/* Blog Layout */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-purple);
    box-shadow: 0 10px 30px -10px rgba(168, 85, 247, 0.2);
}

.blog-image {
    height: 200px;
    background: linear-gradient(45deg, #1e1b4b, #312e81);
    position: relative;
    overflow: hidden;
}

.blog-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    color: #fff;
}

.blog-excerpt {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: auto;
}

.blog-link {
    margin-top: 1.5rem;
    color: var(--accent-purple);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem;
}

.legal-section {
    margin-bottom: 3rem;
}

.legal-content p {
    text-align: justify;
}
