/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0e27;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand h2 {
    color: #00d4ff;
    font-size: 1.8rem;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

.nav-actions {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    color: #00d4ff;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2a2f4a 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(0, 123, 255, 0.1) 0%, transparent 50%);
}

.hero-content {
    flex: 1;
    padding: 2rem;
    z-index: 2;
    position: relative;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #00d4ff, #007bff);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 1s ease;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    line-height: 1.8;
    color: #b8c5d6;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-download {
    background: linear-gradient(45deg, #00d4ff, #007bff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-register {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-register:hover {
    background: #00d4ff;
    color: #0a0e27;
    transform: translateY(-2px);
}

.btn-large {
    padding: 1.5rem 3rem;
    font-size: 1.2rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.trading-dashboard {
    position: relative;
    z-index: 2;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    width: 350px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

.chart-placeholder {
    height: 150px;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(0, 123, 255, 0.2));
    border-radius: 10px;
    margin-bottom: 1rem;
    position: relative;
    overflow: hidden;
}

.chart-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #00d4ff;
    animation: chartLine 2s ease-in-out infinite;
}

.data-points {
    display: flex;
    justify-content: space-between;
}

.data-point {
    text-align: center;
}

.data-point .value {
    display: block;
    font-size: 1.5rem;
    font-weight: bold;
    color: #00ff88;
    margin-bottom: 0.5rem;
}

.data-point .label {
    color: #b8c5d6;
    font-size: 0.9rem;
}

/* App Description Section */
.app-description {
    padding: 6rem 0;
    background: #1a1f3a;
    color: white;
}

.app-description h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00d4ff;
}

.description-content {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.description-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #b8c5d6;
}

.brand-highlight {
    text-align: center;
}

.brand-highlight h3 {
    font-size: 2rem;
    color: #00d4ff;
    font-weight: bold;
}

/* Why Choose Section */
.why-choose {
    padding: 6rem 0;
    background: #0a0e27;
    color: white;
}

.why-choose h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00d4ff;
}

.why-description {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
}

.why-description p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #b8c5d6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-item:hover::before {
    left: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: #00d4ff;
    margin-bottom: 1.5rem;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-item p {
    color: #b8c5d6;
    line-height: 1.7;
}

/* App Installation Section */
.app-installation {
    padding: 4rem 0;
    background: #1a1f3a;
    text-align: center;
}

.app-installation h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00d4ff;
}

.installation-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.btn-primary {
    background: linear-gradient(45deg, #00d4ff, #007bff);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #00d4ff;
    border: 2px solid #00d4ff;
}

.btn-secondary:hover {
    background: #00d4ff;
    color: #1a1f3a;
    transform: translateY(-2px);
}

/* Features Highlight Section */
.features-highlight {
    padding: 6rem 0;
    background: #0a0e27;
    color: white;
}

.features-highlight h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00d4ff;
}

.highlight-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.highlight-intro p {
    font-size: 1.2rem;
    color: #b8c5d6;
    line-height: 1.8;
}

.features-numbered {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.numbered-feature {
    text-align: center;
    position: relative;
}

.number {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #00d4ff, #007bff);
    color: white;
    border-radius: 50%;
    line-height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.3);
}

.numbered-feature h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.feature-visual {
    height: 100px;
    margin: 1rem 0;
    position: relative;
}

.prediction-chart {
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 212, 255, 0.2), rgba(0, 255, 136, 0.2));
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.prediction-chart::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #00ff88;
    animation: pulse 2s ease-in-out infinite;
}

.chain-network {
    height: 100%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 20%, transparent 50%);
    border-radius: 10px;
    position: relative;
}

.chain-network::before,
.chain-network::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: #00d4ff;
    border-radius: 50%;
    top: 50%;
    animation: chainPulse 2s ease-in-out infinite;
}

.chain-network::before {
    left: 20%;
    animation-delay: 0s;
}

.chain-network::after {
    right: 20%;
    animation-delay: 1s;
}

.blockchain-explorer {
    height: 100%;
    background: repeating-linear-gradient(
        90deg,
        rgba(0, 212, 255, 0.1) 0px,
        rgba(0, 212, 255, 0.2) 10px,
        rgba(0, 212, 255, 0.1) 20px
    );
    border-radius: 10px;
    animation: blockMove 3s linear infinite;
}

.matching-engine {
    height: 100%;
    background: conic-gradient(from 0deg, #00d4ff, #007bff, #00d4ff);
    border-radius: 50%;
    animation: spin 4s linear infinite;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1a1f3a 0%, #2a2f4a 100%);
    text-align: center;
    color: white;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00d4ff;
}

.btn-cta {
    background: linear-gradient(45deg, #00d4ff, #007bff);
    color: white;
    padding: 1.5rem 4rem;
    font-size: 1.3rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 212, 255, 0.4);
}

/* Footer */
.footer {
    background: #000814;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    color: #00d4ff;
    margin-bottom: 2rem;
}

.footer-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    color: #00d4ff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #b8c5d6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: #b8c5d6;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes chartLine {
    0%, 100% {
        transform: scaleX(0.8);
        opacity: 0.6;
    }
    50% {
        transform: scaleX(1.2);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.5);
    }
}

@keyframes chainPulse {
    0%, 100% {
        transform: translateY(-50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-50%) scale(1.2);
        opacity: 1;
    }
}

@keyframes blockMove {
    0% {
        background-position: 0px 0px;
    }
    100% {
        background-position: 40px 0px;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-actions {
        display: none;
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 14, 39, 0.98);
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-actions.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 8rem 1rem 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-card {
        width: 280px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-numbered {
        grid-template-columns: 1fr;
    }

    .installation-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-sections {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.1rem;
    }

    .dashboard-card {
        width: 250px;
        padding: 1.5rem;
    }

    .footer-sections {
        grid-template-columns: 1fr;
    }
}

/* Night Mode Styles (as mentioned in the original) */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #0a0e27;
    }
    
    .hero {
        background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #2a2f4a 100%);
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Additional interactive elements */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}