/* styles.css - External stylesheet */

/* Variables */
:root {
    --primary: #089981;
    --primary-light: #00ff88;
    --dark-bg: #0a0e27;
    --dark-secondary: #1a1f3a;
    --text-primary: #e4e7eb;
    --text-secondary: #a0aec0;
    --border-subtle: rgba(255, 255, 255, 0.05);
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-btn {
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--dark-bg);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(8, 153, 129, 0.3);
}

/* Hero Section */
.hero-content {
    max-width: 1400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text .subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.hero-cta {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

.secondary-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.secondary-btn:hover {
    background: rgba(8, 153, 129, 0.1);
    transform: translateY(-2px);
}

.hero-visual {
    animation: fadeIn 1s ease 0.8s backwards;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Dashboard Mockup */
.dashboard-mockup {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(10, 14, 39, 0.8) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: float-dashboard 6s ease-in-out infinite;
    will-change: transform;
}

@keyframes float-dashboard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #f23645;
}

.dot:nth-child(2) { background: #ff9800; }
.dot:nth-child(3) { background: var(--primary); }

.currency-grid {
    display: grid;
    gap: 1rem;
}

.currency-row {
    display: grid;
    grid-template-columns: 40px 60px 60px 60px 60px 80px 60px;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    align-items: center;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.currency-row:hover {
    background: rgba(8, 153, 129, 0.1);
    transform: translateX(5px);
}

.currency-name {
    font-weight: 600;
    color: #ffffff;
}

.strength-value {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    padding: 0.2rem 0.4rem;
    border-radius: 5px;
    text-align: center;
    font-size: 0.8rem;
}

.strength-positive { color: var(--primary-light); background: rgba(0, 255, 136, 0.1); }
.strength-negative { color: #ff4444; background: rgba(255, 68, 68, 0.1); }
.strength-neutral { color: #787B86; background: rgba(120, 123, 134, 0.1); }

.formation {
    font-size: 1rem;
    text-align: center;
}

.grade {
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 5px;
    text-align: center;
    font-size: 0.85rem;
}

.grade-a { background: rgba(0, 255, 136, 0.2); color: var(--primary-light); }
.grade-b { background: rgba(8, 153, 129, 0.2); color: var(--primary); }
.grade-c { background: rgba(255, 152, 0, 0.2); color: #ff9800; }

/* Features Section */
.features-section {
    padding: 8rem 5%;
    background: linear-gradient(180deg, rgba(26, 31, 58, 0.3) 0%, transparent 50%, rgba(26, 31, 58, 0.3) 100%);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.section-tag {
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.features-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    gap: 4rem;
}

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.feature:nth-child(even) {
    direction: rtl;
}

.feature:nth-child(even) > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-content p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: start;
    gap: 1rem;
    color: var(--text-primary);
}

.feature-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.feature-visual {
    background: linear-gradient(135deg, rgba(26, 31, 58, 0.6) 0%, rgba(10, 14, 39, 0.8) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2rem;
    backdrop-filter: blur(20px);
}

.chart-mockup {
    width: 100%;
    height: 300px;
    background: linear-gradient(to top, rgba(8, 153, 129, 0.1) 0%, transparent 100%);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.chart-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(8, 153, 129, 0.3) 20%,
        rgba(0, 255, 136, 0.4) 50%,
        rgba(8, 153, 129, 0.3) 80%,
        transparent 100%
    );
    clip-path: polygon(
        0% 100%, 10% 80%, 20% 85%, 30% 70%, 40% 65%, 50% 40%, 
        60% 45%, 70% 35%, 80% 50%, 90% 30%, 100% 25%, 100% 100%
    );
    animation: pulse-chart 3s ease-in-out infinite;
    will-change: opacity;
}

@keyframes pulse-chart {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Final CTA */
.final-cta-section {
    padding: 8rem 5%;
    text-align: center;
}

.final-cta-box {
    max-width: 900px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(8, 153, 129, 0.1) 0%, rgba(0, 255, 136, 0.05) 100%);
    border: 2px solid var(--primary);
    padding: 5rem 3rem;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
}

.final-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8, 153, 129, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
    will-change: transform;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.final-cta-content {
    position: relative;
    z-index: 1;
}

.final-cta-box h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.final-cta-box p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.final-cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.footer-links ul {
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-content, .feature {
        grid-template-columns: 1fr;
    }
    .hero-text {
        text-align: center;
    }
    .hero-stats, .hero-cta {
        justify-content: center;
    }
    .feature:nth-child(even) {
        direction: ltr;
    }
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .section-header h2 {
        font-size: 2rem;
    }
    .nav-links {
        display: none;
    }
    .currency-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        font-size: 0.75rem;
    }
    .final-cta-box {
        padding: 3rem 1.5rem;
    }
    .final-cta-box h2 {
        font-size: 2rem;
    }
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}